Skip to content

Commit

Permalink
feat: devide metadata from its component
Browse files Browse the repository at this point in the history
- add `component.manufacturer`
- add `component.authors`
- deprecate `component.author` in favour of `component.authors` and `component.manufacturer`
- deprecate `metatada.manufature` in favour of `metadata.component.manufacturer`
- deprecate `metadata.supplier` in favour of `metadata.component.supplier`

Signed-off-by: Jan Kowalleck <[email protected]>
  • Loading branch information
jkowalleck committed Feb 14, 2024
1 parent b90ef7a commit 4ca69c9
Showing 1 changed file with 28 additions and 8 deletions.
36 changes: 28 additions & 8 deletions schema/bom-1.6.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -666,10 +666,16 @@
}
]
},
"manufacturer" :{
"type": "array",
"title": "BOM Manufacturer",
"description": "The organization that created the BOM. Manufacturer is common in BOMs created through automated processes. BOMs created through manual means may have '@.authors' instead.",
"items": {"$ref": "#/definitions/organizationalEntity"}
},
"authors" :{
"type": "array",
"title": "Authors",
"description": "The person(s) who created the BOM. Authors are common in BOMs created through manual processes. BOMs created through automated means may not have authors.",
"title": "BOM Authors",
"description": "The person(s) who created the BOM. Authors are common in BOMs created through manual processes. BOMs created through automated means may have '@.manufacturer' instead.",
"items": {"$ref": "#/definitions/organizationalContact"}
},
"component": {
Expand All @@ -678,13 +684,15 @@
"$ref": "#/definitions/component"
},
"manufacture": {
"title": "Manufacture",
"description": "The organization that manufactured the component that the BOM describes.",
"deprecated": true,
"title": "Component Manufacture (legacy)",
"description": "[Deprecated] - DO NOT USE. This will be removed in a future version. Use the `@.component.manufacturer` instead.\nThe organization that manufactured the component that the BOM describes.",
"$ref": "#/definitions/organizationalEntity"
},
"supplier": {
"title": "Supplier",
"description": " The organization that supplied the component that the BOM describes. The supplier may often be the manufacturer, but may also be a distributor or repackager.",
"deprecated": true,
"title": "Component Supplier (legacy)",
"description": "[Deprecated] - DO NOT USE. This will be removed in a future version. Use `@.component.supplier` instead.\n The organization that supplied the component that the BOM describes. The supplier may often be the manufacturer, but may also be a distributor or repackager.",
"$ref": "#/definitions/organizationalEntity"
},
"licenses": {
Expand Down Expand Up @@ -865,10 +873,22 @@
"description": " The organization that supplied the component. The supplier may often be the manufacturer, but may also be a distributor or repackager.",
"$ref": "#/definitions/organizationalEntity"
},
"manufacturer": {
"title": "Component Manufacturer",
"description": "The organization that created the component. Manufacturer is common in components created through automated processes. Components created through manual means may have `@.authors` instead.",
"$ref": "#/definitions/organizationalEntity"
},
"authors" :{
"type": "array",
"title": "Component Authors",
"description": "The person(s) who created the component. Authors are common in components created through manual processes. Components created through automated means may have `@.manufacturer` instead.",
"items": {"$ref": "#/definitions/organizationalContact"}
},
"author": {
"deprecated": true,
"type": "string",
"title": "Component Author",
"description": "The person(s) or organization(s) that authored the component",
"title": "Component Author (legacy)",
"description": "[Deprecated] - DO NOT USE. This will be removed in a future version. Use `@.authors` or `@.manufacturer` instead.\nThe person(s) or organization(s) that authored the component",
"examples": ["Acme Inc"]
},
"publisher": {
Expand Down

0 comments on commit 4ca69c9

Please sign in to comment.