Skip to content

Question: intent of schema license definition required properties #493

Closed Answered by jkowalleck
jhoward-lm asked this question in Q&A
Discussion options

You must be logged in to vote

The intention is to have exactly one of name or id present.
And that is exactly what the current JSON schema does.

The JSON schema:

"oneOf": [
{
"required": ["id"]
},
{
"required": ["name"]
}
],
"additionalProperties": false,
"properties": {
"bom-ref": {
"$ref": "#/definitions/refType",
"title": "BOM Reference",
"description": "An optional identifier which can be used to reference the license elsewhere in the BOM. Every bom-ref MUST be unique within the BOM.\nValue SHOULD not start with the BOM-Link intro 'urn:cdx:' to avoid conflicts with BOM…

Replies: 3 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Answer selected by jkowalleck
Comment options

You must be logged in to vote
0 replies

This comment was marked as off-topic.

@jkowalleck

This comment was marked as off-topic.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants