Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion docgen/json/gen.sh
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,6 @@ generate () {
mkdir -p "$OUT_DIR"

generate-schema-doc \
--config no_link_to_reused_ref \
--config no_show_breadcrumbs \
--config no_collapse_long_descriptions \
--deprecated-from-description \
Expand Down
2 changes: 1 addition & 1 deletion schema/2.0/cyclonedx-2.0-bundled.min.schema.json

Large diffs are not rendered by default.

1,569 changes: 1,221 additions & 348 deletions schema/2.0/cyclonedx-2.0-bundled.schema.json

Large diffs are not rendered by default.

367 changes: 153 additions & 214 deletions schema/2.0/model/cyclonedx-component-2.0.schema.json

Large diffs are not rendered by default.

31 changes: 31 additions & 0 deletions schema/2.0/model/cyclonedx-data-2.0.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,37 @@
},
"title": "Data flow direction",
"description": "Specifies the flow direction of the data. Direction is relative to the service."
},
"dataContents": {
"type": "object",
"title": "Data Contents",
"description": "The contents of the data, either embedded as an attachment or referenced by URL, optionally with integrity hashes and configuration properties.",
"additionalProperties": false,
"properties": {
"attachment": {
"$ref": "cyclonedx-common-2.0.schema.json#/$defs/attachment",
"title": "Data Attachment",
"description": "A way to include textual or encoded data."
},
"url": {
"type": "string",
"title": "Data URL",
"description": "The URL to where the data can be retrieved.",
"format": "iri-reference"
},
"hashes": {
"type": "array",
"title": "Hashes",
"description": "Cryptographic hashes of the referenced or attached data, so that a consumer can verify it is the same data recorded.",
"items": { "$ref": "cyclonedx-common-2.0.schema.json#/$defs/hash" }
},
"properties": {
"type": "array",
"title": "Configuration Properties",
"description": "Name-value parameters that describe or configure the data.",
"items": { "$ref": "cyclonedx-common-2.0.schema.json#/$defs/property" }
}
}
}
}
}
18 changes: 2 additions & 16 deletions schema/2.0/model/cyclonedx-declaration-2.0.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -234,23 +234,9 @@
"type": "string"
},
"contents": {
"type": "object",
"$ref": "cyclonedx-data-2.0.schema.json#/$defs/dataContents",
"title": "Data Contents",
"description": "The contents or references to the contents of the data being described.",
"additionalProperties": false,
"properties": {
"attachment": {
"title": "Data Attachment",
"description": "A way to include textual or encoded data.",
"$ref": "cyclonedx-common-2.0.schema.json#/$defs/attachment"
},
"url": {
"type": "string",
"title": "Data URL",
"description": "The URL to where the data can be retrieved.",
"format": "iri-reference"
}
}
"description": "The contents or references to the contents of the data being described."
},
"classification": {
"$ref": "cyclonedx-data-2.0.schema.json#/$defs/dataClassification"
Expand Down
Loading
Loading