|
137 | 137 | "description": "The date and time (timestamp) when the BOM was created." |
138 | 138 | }, |
139 | 139 | "tools": { |
140 | | - "type": "array", |
141 | | - "title": "Creation Tools", |
142 | | - "description": "The tool(s) used in the creation of the BOM.", |
143 | | - "additionalItems": false, |
144 | | - "items": {"$ref": "#/definitions/tool"} |
| 140 | + "oneOf": [ |
| 141 | + { |
| 142 | + "type": "object", |
| 143 | + "title": "Creation Tools", |
| 144 | + "description": "The tool(s) used in the creation of the BOM.", |
| 145 | + "additionalProperties": false, |
| 146 | + "properties": { |
| 147 | + "components": { |
| 148 | + "type": "array", |
| 149 | + "additionalItems": false, |
| 150 | + "items": {"$ref": "#/definitions/component"}, |
| 151 | + "uniqueItems": true, |
| 152 | + "title": "Components", |
| 153 | + "description": "A list of software and hardware components used as tools" |
| 154 | + }, |
| 155 | + "services": { |
| 156 | + "type": "array", |
| 157 | + "additionalItems": false, |
| 158 | + "items": {"$ref": "#/definitions/service"}, |
| 159 | + "uniqueItems": true, |
| 160 | + "title": "Services", |
| 161 | + "description": "A list of services used as tools. This may include microservices, function-as-a-service, and other types of network or intra-process services." |
| 162 | + } |
| 163 | + } |
| 164 | + }, |
| 165 | + { |
| 166 | + "type": "array", |
| 167 | + "title": "Creation Tools (legacy)", |
| 168 | + "description": "[Deprecated] The tool(s) used in the creation of the BOM.", |
| 169 | + "additionalItems": false, |
| 170 | + "items": {"$ref": "#/definitions/tool"} |
| 171 | + } |
| 172 | + ] |
145 | 173 | }, |
146 | 174 | "authors" :{ |
147 | 175 | "type": "array", |
|
183 | 211 | "tool": { |
184 | 212 | "type": "object", |
185 | 213 | "title": "Tool", |
186 | | - "description": "Information about the automated or manual tool used", |
| 214 | + "description": "[Deprecated] - DO NOT USE. This will be removed in a future version. This will be removed in a future version. Use component or service instead. Information about the automated or manual tool used", |
187 | 215 | "additionalProperties": false, |
188 | 216 | "properties": { |
189 | 217 | "vendor": { |
|
1792 | 1820 | } |
1793 | 1821 | }, |
1794 | 1822 | "tools": { |
1795 | | - "type": "array", |
1796 | | - "title": "Creation Tools", |
1797 | | - "description": "The tool(s) used to identify, confirm, or score the vulnerability.", |
1798 | | - "additionalItems": false, |
1799 | | - "items": {"$ref": "#/definitions/tool"} |
| 1823 | + "oneOf": [ |
| 1824 | + { |
| 1825 | + "type": "object", |
| 1826 | + "title": "Tools", |
| 1827 | + "description": "The tool(s) used to identify, confirm, or score the vulnerability.", |
| 1828 | + "additionalProperties": false, |
| 1829 | + "properties": { |
| 1830 | + "components": { |
| 1831 | + "type": "array", |
| 1832 | + "additionalItems": false, |
| 1833 | + "items": {"$ref": "#/definitions/component"}, |
| 1834 | + "uniqueItems": true, |
| 1835 | + "title": "Components", |
| 1836 | + "description": "A list of software and hardware components used as tools" |
| 1837 | + }, |
| 1838 | + "services": { |
| 1839 | + "type": "array", |
| 1840 | + "additionalItems": false, |
| 1841 | + "items": {"$ref": "#/definitions/service"}, |
| 1842 | + "uniqueItems": true, |
| 1843 | + "title": "Services", |
| 1844 | + "description": "A list of services used as tools. This may include microservices, function-as-a-service, and other types of network or intra-process services." |
| 1845 | + } |
| 1846 | + } |
| 1847 | + }, |
| 1848 | + { |
| 1849 | + "type": "array", |
| 1850 | + "title": "Tools (legacy)", |
| 1851 | + "description": "[Deprecated] The tool(s) used to identify, confirm, or score the vulnerability.", |
| 1852 | + "additionalItems": false, |
| 1853 | + "items": {"$ref": "#/definitions/tool"} |
| 1854 | + } |
| 1855 | + ] |
1800 | 1856 | }, |
1801 | 1857 | "analysis": { |
1802 | 1858 | "type": "object", |
|
0 commit comments