-
-
Notifications
You must be signed in to change notification settings - Fork 61
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[FEATURE] xml catalog for XSD #479
base: master
Are you sure you want to change the base?
Conversation
tools/src/test/java/org/cyclonedx/schema/XmlCatalogVerificationTest.java
Show resolved
Hide resolved
…remove here everything related to the XML catalog. Signed-off-by: Nicolas-Peiffer <[email protected]>
2aa0f99
to
c55eebe
Compare
…ate the XML catalog content match local XSD file content Signed-off-by: Nicolas-Peiffer <[email protected]> Refactor the code, fix indentation Signed-off-by: Nicolas-Peiffer <[email protected]> surround the asserEquals with the dynamicTests.add(dynamicTest( Signed-off-by: Nicolas-Peiffer <[email protected]>
c55eebe
to
28258d5
Compare
Thanks for the PR. I think the addition of an xmlcatalog is fine, however, I don't think that |
One could say that the XML catalogs directly supports the CycloneDX specification XSD files by providing a way to bind local filepath with schema URI / namespace, even in an environment disconnected from the internet. So in that sense, the XML catalog file But the content of the
I personally do not consider the But let me remind you why I did this PR in the first place...Lets compare XSD files from I notice the
This makes more difficult to use the CycloneDX schemas, as there are as many CycloneDX schemas as there are implementation. Below are the results of commands:
|
Adding an XML catalog file and corresponding Java unit tests to validate the XML catalog content match local XSD file content.
Please see also: #477
I needed to modify the
pom.xml
to include the path to theschema/
folder. This might not be a Java/maven best practice, but given how the folders are organised, I have no other solutions without changing the folders location:Java unit tests seem okay, see picture below: