You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: schema/bom-1.7.proto
+10-10
Original file line number
Diff line number
Diff line change
@@ -106,16 +106,16 @@ message Component {
106
106
optionalstringgroup=7;
107
107
// The name of the component. This will often be a shortened, single name of the component. Examples: commons-lang3 and jquery
108
108
stringname=8;
109
-
oneofversion_choice {
110
-
// The component version. The version should ideally comply with semantic versioning but is not enforced.
111
-
// Version was made optional in v1.4 of the spec.
112
-
// For backward compatibility, it is recommended to use an empty string to represent components without version information.
113
-
stringversion=9;
114
-
// For an external component, this specifies the accepted version range.
115
-
// The value must adhere to the Package URL Version Range syntax (vers), as defined at https://github.com/package-url/purl-spec/blob/master/VERSION-RANGE-SPEC.rst.
116
-
// May only be used if `isExternal` is set to `true`.
117
-
stringversionRange=33;
118
-
}
109
+
// The component version. The version should ideally comply with semantic versioning but is not enforced.
110
+
// Version was made optional in v1.4 of the spec.
111
+
// For backward compatibility, it is recommended to use an empty string to represent components without version information.
112
+
// This field must be used exclusively, either 'version' or 'versionRange', but not both.
113
+
stringversion=9;
114
+
// For an external component, this specifies the accepted version range.
115
+
// The value must adhere to the Package URL Version Range syntax (vers), as defined at https://github.com/package-url/purl-spec/blob/master/VERSION-RANGE-SPEC.rst.
116
+
// May only be used if `isExternal` is set to `true`.
117
+
// M>ust be used exclusively, either 'version' or 'versionRange', but not both.
118
+
optionalstringversionRange=33;
119
119
// Specifies a description for the component
120
120
optionalstringdescription=10;
121
121
// Specifies the scope of the component. If a scope is not specified, SCOPE_REQUIRED scope should be assumed by the consumer of the BOM
Copy file name to clipboardexpand all lines: schema/bom-1.7.schema.json
+2-2
Original file line number
Diff line number
Diff line change
@@ -923,12 +923,12 @@
923
923
"version": {
924
924
"$ref": "#/definitions/version",
925
925
"title": "Component Version",
926
-
"description": "The component version. The version should ideally comply with semantic versioning but is not enforced."
926
+
"description": "The component version. The version should ideally comply with semantic versioning but is not enforced.\nMust be used exclusively, either 'version' or 'versionRange', but not both."
927
927
},
928
928
"versionRange": {
929
929
"$ref": "#/definitions/versionRange",
930
930
"title": "Component Version Range",
931
-
"description": "For an external component, this specifies the accepted version range.\nThe value must adhere to the Package URL Version Range syntax (vers), as defined at <https://github.com/package-url/purl-spec/blob/master/VERSION-RANGE-SPEC.rst>.\nMay only be used if `.isExternal` is set to `true`."
931
+
"description": "For an external component, this specifies the accepted version range.\nThe value must adhere to the Package URL Version Range syntax (vers), as defined at <https://github.com/package-url/purl-spec/blob/master/VERSION-RANGE-SPEC.rst>.\nMay only be used if `.isExternal` is set to `true`.\nThis field must be used exclusively, either 'version' or 'versionRange', but not both."
0 commit comments