-
-
Notifications
You must be signed in to change notification settings - Fork 59
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
Misalignment in Protobuf Specification with Updated XML and JSON Schemas for LicenseChoice #465
Comments
each schema is an implementation of the spec - with the goal to make it possible to model the specification with clear guidelines. spec is:
In ProtoBuff we see specification/schema/bom-1.6.proto Lines 367 to 375 in 8e131b1
where |
because it was correct, already. You can build a structure with multiple licenses, as it is described by the CycloneDX spec. specification/schema/bom-1.6.proto Line 116 in 8e131b1
multi license component here: https://github.com/CycloneDX/specification/blob/8e131b1688ccfe41e1bfdd4b3280f33dcc06d04c/tools/src/test/resources/1.6/valid-metadata-license-1.6.textproto |
@jkowalleck You can currently build everything that is expected, that is a list of licenses or a single license expression. However, you can also build a list of license expressions, which is not intended. |
I acknowledge a lack of documentation there. Will drop a PR to have it added. |
see CycloneDX#465 Signed-off-by: Jan Kowalleck <jan.kowalleck@gmail.com>
please review #468 |
please also be aware of upcoming #454 |
Up to version 1.5, there was a discrepancy between the XML and the JSON Schema, which was resolved as per #204/#205. Since that update,
LicenseChoice
has become a complex type in the JSON formats to match the XML Schema. It is now defined to potentially include a list of licenses and an (optional) expression.However, the corresponding protobuf specification was not updated to reflect these changes. As a result, the protobuf still retains the list of
LicenseChoice
as shown below:The text was updated successfully, but these errors were encountered: