-
-
Notifications
You must be signed in to change notification settings - Fork 58
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
[Defect]: Inconsistency of formats: can data in data components be repeated? #518
Comments
Thanks for reporting. Looks like a defect in the XML Schema. The correct fix should be to make maxOccurs unbounded. |
changing the current ProtoBuff item from |
Why is this? Is proto2 supported as well? For proto3:
Unless I'm mistaken, all messages that contained only a single "data" would continue to work, and this is the kind of compatibility that you are looking for, isn't it? |
the field in question is a complex type - a @nscuro what do you think? the XML could be fixed in an upcoming dot release, too. i would pull this fix into the upcoming 1.6.1 if this is okay. |
1.6.1 is ok @jkowalleck |
may I ask you for a code review of the proposed fix? #530 |
fixes <#518> --------- Signed-off-by: Jan Kowalleck <[email protected]> Signed-off-by: Jan Kowalleck <[email protected]> Co-authored-by: andreas-hilti <[email protected]>
Describe the defect
In JSON, the data member of a (data) component is an array: https://cyclonedx.org/docs/1.6/json/#components_items_data
In protobuf, it is not repeated:
specification/schema/bom-1.6.proto
Lines 142 to 143 in bfb6f8b
Also in xml it is not repeated:
specification/schema/bom-1.6.xsd
Lines 701 to 706 in bfb6f8b
for instance this is not valid:
Additional context
The text was updated successfully, but these errors were encountered: