Skip to content

Commit 98d888d

Browse files
committed
fixed schema and docs
Signed-off-by: Jan Kowalleck <[email protected]>
1 parent 5708d61 commit 98d888d

File tree

3 files changed

+29
-32
lines changed

3 files changed

+29
-32
lines changed

schema/bom-1.7.proto

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -515,7 +515,7 @@ message Metadata {
515515
// The organization that created the BOM. Manufacturer is common in BOMs created through automated processes. BOMs created through manual means may have '.authors' instead.
516516
optional OrganizationalEntity manufacturer = 10;
517517
// The Traffic Light Protocol (TLP) classification that controls the sharing and distribution of the component that the BOM describes.
518-
optional Tlp distribution = 11;
518+
optional TlpClassification distribution = 11;
519519
}
520520

521521
message Lifecycles {
@@ -677,17 +677,19 @@ message Swid {
677677
optional string url = 7;
678678
}
679679

680-
// The Traffic Light Protocol (TLP) classification for the component that the BOM describes. TLP is a classification system for identifying the potential risk associated with artefact, including whether it is subject to certain types of legal, financial, or technical threats. Refer to https://www.first.org/tlp/ for further information. The default classification is `TLP_CLEAR`
681-
enum Tlp {
682-
// buf:lint:ignore ENUM_ZERO_VALUE_SUFFIX -- `TLP_CLEAR` is our fallback, the default.
680+
// Traffic Light Protocol (TLP) is a classification system for identifying the potential risk associated with artefact, including whether it is subject to certain types of legal, financial, or technical threats. Refer to https://www.first.org/tlp/ for further information.
681+
//The default classification is "CLEAR"
682+
enum TlpClassification {
683+
// The information is not subject to any restrictions as regards the sharing.
684+
// buf:lint:ignore ENUM_ZERO_VALUE_SUFFIX -- "CLEAR" is our fallback, the default.
683685
TLP_CLEAR = 0;
684-
// Limited distribution but can be shared within a community.
686+
// The information is subject to limited disclosure, and recipients can share it within their community but not via publicly accessible channels.
685687
TLP_GREEN = 1;
686-
// Limited distribution but can be shared within an organization and with clients
688+
// The information is subject to limited disclosure, and recipients can only share it on a need-to-know basis within their organization and with clients.
687689
TLP_AMBER = 2;
688-
// Limited distribution but can be shared within an organization.
690+
// The information is subject to limited disclosure, and recipients can only share it on a need-to-know basis within their organization.
689691
TLP_AMBER_AND_STRICT = 3;
690-
// Restricted distribution to individual recipients and must not be shared.
692+
// The information is subject to restricted distribution to individual recipients only and must not be shared.
691693
TLP_RED = 4;
692694
}
693695

schema/bom-1.7.schema.json

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -721,23 +721,23 @@
721721
}
722722
},
723723
"tlpClassification": {
724+
"title": "Traffic Light Protocol (TLP) Classification",
725+
"description": "Traffic Light Protocol (TLP) is a classification system for identifying the potential risk associated with artefact, including whether it is subject to certain types of legal, financial, or technical threats. Refer to [https://www.first.org/tlp/](https://www.first.org/tlp/) for further information.\nThe default classification is \"CLEAR\"",
724726
"type" : "string",
725727
"default": "CLEAR",
726-
"title": "Traffic Light Protocol (TLP) Classification",
727-
"description": "The Traffic Light Protocol (TLP) classification for the component that the BOM describes. TLP is a classification system for identifying the potential risk associated with artefact, including whether it is subject to certain types of legal, financial, or technical threats. Refer to [https://www.first.org/tlp/](https://www.first.org/tlp/) for further information. The default classification is CLEAR",
728728
"enum": [
729+
"CLEAR",
730+
"GREEN",
729731
"AMBER",
730732
"AMBER_AND_STRICT",
731-
"GREEN",
732-
"RED",
733-
"CLEAR"
733+
"RED"
734734
],
735735
"meta:enum": {
736-
"AMBER": "The BOM is subject to limited disclosure, and recipients can only share the BOM on a need-to-know basis within their organization and with clients.",
737-
"AMBER_AND_STRICT": "The BOM is subject to limited disclosure, and recipients can only share the BOM on a need-to-know basis within their organization.",
738-
"GREEN": "The BOM is subject to limited disclosure, and recipients can share the BOM within their community but not via publicly accessible channels.",
739-
"RED": "The BOM is subject to restricted distribution to individual recipients only and must not be shared.",
740-
"CLEAR": "The BOM is not subject to any restrictions as regards the sharing of the information within the BOM."
736+
"CLEAR": "The information is not subject to any restrictions as regards the sharing.",
737+
"GREEN": "The information is subject to limited disclosure, and recipients can share it within their community but not via publicly accessible channels.",
738+
"AMBER": "The information is subject to limited disclosure, and recipients can only share it on a need-to-know basis within their organization and with clients.",
739+
"AMBER_AND_STRICT": "The information is subject to limited disclosure, and recipients can only share it on a need-to-know basis within their organization.",
740+
"RED": "The information is subject to restricted distribution to individual recipients only and must not be shared."
741741
}
742742
},
743743
"tool": {

schema/bom-1.7.xsd

Lines changed: 9 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -256,7 +256,7 @@ limitations under the License.
256256
Formal registration is optional.</xs:documentation>
257257
</xs:annotation>
258258
</xs:element>
259-
<xs:element name="distribution" type="bom:tlpType" minOccurs="0" maxOccurs="1">
259+
<xs:element name="distribution" type="bom:tlpClassificationType" default="CLEAR" minOccurs="0" maxOccurs="1">
260260
<xs:annotation>
261261
<xs:documentation>The Traffic Light Protocol (TLP) classification that controls the sharing and distribution
262262
of the component that the BOM describes.</xs:documentation>
@@ -396,51 +396,46 @@ limitations under the License.
396396
</xs:anyAttribute>
397397
</xs:complexType>
398398

399-
<xs:simpleType name="tlpType" default="CLEAR">
399+
<xs:simpleType name="tlpClassificationType">
400400
<xs:annotation>
401401
<xs:documentation xml:lang="en">
402-
The Traffic Light Protocol (TLP) classification for the component that the BOM describes. TLP is a classification
403-
system for identifying the potential risk associated with artefact, including whether it is subject to certain
404-
types of legal, financial, or technical threats. Refer to https://www.first.org/tlp/ for further information.
405-
The default classification is CLEAR.
402+
Traffic Light Protocol (TLP) is a classification system for identifying the potential risk associated with artefact, including whether it is subject to certain types of legal, financial, or technical threats. Refer to https://www.first.org/tlp/ for further information.
403+
The default classification is "CLEAR"
406404
</xs:documentation>
407405
</xs:annotation>
408406
<xs:restriction base="xs:string">
409407
<xs:enumeration value="CLEAR">
410408
<xs:annotation>
411409
<xs:documentation>
412-
The BOM is not subject to any restrictions as regards the sharing of the information within the BOM.
410+
The information is not subject to any restrictions as regards the sharing.
413411
</xs:documentation>
414412
</xs:annotation>
415413
</xs:enumeration>
416414
<xs:enumeration value="GREEN">
417415
<xs:annotation>
418416
<xs:documentation>
419-
The BOM is subject to limited disclosure, and recipients can share the BOM within their community
420-
but not via publicly accessible channels.
417+
The information is subject to limited disclosure, and recipients can share it within their community but not via publicly accessible channels.
421418
</xs:documentation>
422419
</xs:annotation>
423420
</xs:enumeration>
424421
<xs:enumeration value="AMBER">
425422
<xs:annotation>
426423
<xs:documentation>
427-
The BOM is subject to limited disclosure, and recipients can only share the BOM on a need-to-know
428-
basis within their organization and with clients.
424+
The information is subject to limited disclosure, and recipients can only share it on a need-to-know basis within their organization and with clients.
429425
</xs:documentation>
430426
</xs:annotation>
431427
</xs:enumeration>
432428
<xs:enumeration value="AMBER_AND_STRICT">
433429
<xs:annotation>
434430
<xs:documentation>
435-
The BOM is subject to limited disclosure, and recipients can only share the BOM on a need-to-know
436-
basis within their organization.
431+
The information is subject to limited disclosure, and recipients can only share it on a need-to-know basis within their organization.
437432
</xs:documentation>
438433
</xs:annotation>
439434
</xs:enumeration>
440435
<xs:enumeration value="RED">
441436
<xs:annotation>
442437
<xs:documentation>
443-
The BOM is subject to restricted distribution to individual recipients only and must not be shared.
438+
The information is subject to restricted distribution to individual recipients only and must not be shared.
444439
</xs:documentation>
445440
</xs:annotation>
446441
</xs:enumeration>

0 commit comments

Comments
 (0)