Skip to content

Commit 7dba14f

Browse files
committed
docs: annotations
Signed-off-by: Jan Kowalleck <[email protected]>
1 parent ddc4842 commit 7dba14f

File tree

2 files changed

+45
-10
lines changed

2 files changed

+45
-10
lines changed

schema/bom-1.7.proto

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2401,14 +2401,14 @@ message CryptoProperties {
24012401
message Citation {
24022402
// Optional unique identifier for the citation
24032403
optional string bom_ref = 1;
2404-
// Field reference using JSON Pointer format
2404+
// One or more JSON Pointers(https://datatracker.ietf.org/doc/html/rfc6901) identifying the BOM fields to which the attribution applies.
24052405
repeated string pointer = 2;
2406-
// Timestamp when the citation occurred
2406+
// Timestamp when the attribution was made or the information was supplied.
24072407
google.protobuf.Timestamp timestamp = 3;
2408-
// The entity (component, service, org, or person) that supplied the data (optional)
2408+
// The `bom-ref` of an object, such as a component, service, organisational entity, or person that supplied the cited information.
24092409
optional string attributed_to = 4;
2410-
// The process (workflow/formula/task) that generated the data (optional)
2410+
// An optional `bom-ref` to a process (such as a formula, workflow, task, or step) defined in the `formulation` section that executed or generated the attributed data.
24112411
optional string process = 5;
2412-
// Optional human-readable note
2412+
// An optional description or comment about the context or quality of the data attribution.
24132413
optional string note = 6;
24142414
}

schema/bom-1.7.xsd

Lines changed: 40 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8369,16 +8369,51 @@ limitations under the License.
83698369
<xs:complexType name="citationType">
83708370
<xs:sequence>
83718371
<xs:element name="pointers" minOccurs="1" maxOccurs="1">
8372+
<xs:annotation>
8373+
<xs:documentation>
8374+
One or more JSON Pointers(https://datatracker.ietf.org/doc/html/rfc6901) identifying the BOM fields to which the attribution applies.
8375+
</xs:documentation>
8376+
</xs:annotation>
83728377
<xs:complexType>
83738378
<xs:sequence>
8374-
<xs:element name="pointer" type="xs:string" minOccurs="1" maxOccurs="unbounded"/>
8379+
<xs:element name="pointer" type="xs:string" minOccurs="1" maxOccurs="unbounded">
8380+
<xs:annotation>
8381+
<xs:documentation>
8382+
A JSON Pointer(https://datatracker.ietf.org/doc/html/rfc6901) identifying the BOM field to which the attribution applies. Users of other serialisation formats (e.g. XML) shall use the JSON Pointer format to ensure consistent field referencing across representations.
8383+
</xs:documentation>
8384+
</xs:annotation>
8385+
</xs:element>
83758386
</xs:sequence>
83768387
</xs:complexType>
83778388
</xs:element>
8378-
<xs:element name="timestamp" type="xs:dateTime" minOccurs="1" maxOccurs="1"/>
8379-
<xs:element name="attributedTo" type="bom:refLinkType" minOccurs="0" maxOccurs="1"/>
8380-
<xs:element name="process" type="bom:refLinkType" minOccurs="0" maxOccurs="1"/>
8381-
<xs:element name="note" type="xs:string" minOccurs="0" maxOccurs="1"/>
8389+
<xs:element name="timestamp" type="xs:dateTime" minOccurs="1" maxOccurs="1">
8390+
<xs:annotation>
8391+
<xs:documentation>
8392+
The date and time when the attribution was made or the information was supplied.
8393+
</xs:documentation>
8394+
</xs:annotation>
8395+
</xs:element>
8396+
<xs:element name="attributedTo" type="bom:refLinkType" minOccurs="0" maxOccurs="1">
8397+
<xs:annotation>
8398+
<xs:documentation>
8399+
The `bom-ref` of an object, such as a component, service, organisational entity, or person that supplied the cited information.
8400+
</xs:documentation>
8401+
</xs:annotation>
8402+
</xs:element>
8403+
<xs:element name="process" type="bom:refLinkType" minOccurs="0" maxOccurs="1">
8404+
<xs:annotation>
8405+
<xs:documentation>
8406+
An optional `bom-ref` to a process (such as a formula, workflow, task, or step) defined in the `formulation` section that executed or generated the attributed data.
8407+
</xs:documentation>
8408+
</xs:annotation>
8409+
</xs:element>
8410+
<xs:element name="note" type="xs:string" minOccurs="0" maxOccurs="1">
8411+
<xs:annotation>
8412+
<xs:documentation>
8413+
An optional description or comment about the context or quality of the data attribution.
8414+
</xs:documentation>
8415+
</xs:annotation>
8416+
</xs:element>
83828417
<xs:any namespace="##other" processContents="lax" minOccurs="0" maxOccurs="unbounded">
83838418
<xs:annotation>
83848419
<xs:documentation>

0 commit comments

Comments
 (0)