Skip to content

adjust/fix default values - #216

Closed
jkowalleck wants to merge 2 commits into
CycloneDX:v1.5-devfrom
jkowalleck:v1.5-dev-fix-defaults
Closed

jkowalleck wants to merge 2 commits into
CycloneDX:v1.5-devfrom
jkowalleck:v1.5-dev-fix-defaults

Conversation

@jkowalleck

@jkowalleck jkowalleck commented May 7, 2023 •

Copy link
Copy Markdown
Member

streamlined default values over multiple schema definitions types.

closes #78

Signed-off-by: Jan Kowalleck <[email protected]>
@jkowalleck jkowalleck added this to the 1.5 milestone May 7, 2023
"required": [
"bomFormat",
"specVersion",
"version"

@jkowalleck jkowalleck May 7, 2023 •

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

version has a default value and is therefore optional.

it already is optional in XML with default value.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

see also #78

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

specVersion should be required.

@jkowalleck jkowalleck Jun 26, 2023 •

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Comment thread schema/bom-1.5.xsd
</xs:annotation>
</xs:element>
<xs:element name="scope" type="bom:scope" minOccurs="0" maxOccurs="1">
<xs:element name="scope" type="bom:scope" minOccurs="0" maxOccurs="1" default="required">

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

set the same default value that was already annotated in xs:documentation

@jkowalleck jkowalleck changed the title adjust default values adjust/fix default values May 8, 2023
@jkowalleck jkowalleck linked an issue May 30, 2023 that may be closed by this pull request
@jkowalleck
jkowalleck requested review from a team and removed request for a team June 23, 2023 10:13
@jkowalleck

jkowalleck commented Jun 25, 2023 •

Copy link
Copy Markdown
Member Author

added label "defect",
just like the related issue #78 was flagged as such

"required": [
"bomFormat",
"specVersion",
"version"

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

specVersion should be required.

"bomFormat",
"specVersion",
"version"
"specVersion"

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@jkowalleck

Copy link
Copy Markdown
Member Author

@stevespringett, could you explain what needs to be changed?

you mentioned in your review

specVersion should be required.

it still is, see #216 (comment)

is this enough?

@stevespringett stevespringett modified the milestones: 1.5, 1.6 Jun 26, 2023
@stevespringett
stevespringett deleted the branch CycloneDX:v1.5-dev June 26, 2023 02:49
@jkowalleck jkowalleck mentioned this pull request Jun 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

JSON schema inconsistency

3 participants