-
-
Notifications
You must be signed in to change notification settings - Fork 16
/
Copy pathtea.schema.yaml
88 lines (88 loc) · 2.14 KB
/
tea.schema.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
---
"$schema": http://json-schema.org/draft-07/schema#
"$id": https://raw.githubusercontent.com/CycloneDX/transparency-exchange-api/refs/heads/main/spec/tea.schema.yaml
title: Transparency Exchange API Schema
description: Schema for the domain objects of the Transparency Exchange API
"$defs":
#
# General types
#
uuid:
type: string
description: A UUID
pattern: "^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"
identifier_type:
type: string
description: Enumeration of identifiers types
enum:
- cpe
- tei
- purl
identifier:
type: object
description: An identifier with a specified type
properties:
type:
"$ref": "#/$defs/identifier_type"
description: Type of identifier, e.g., `cpe`, `purl`, or `tei`
id:
type: string
id: The complete identifier
#
# Domain objects
#
product:
type: object
title: TEA Product
description: A TEA product
properties:
uuid:
"$ref": "#/$defs/uuid"
description: A unique identifier for this product
name:
type: string
description: Product name in clear text
identifiers:
type: array
description: A list of identifiers that apply to this product
items:
"$ref": "#/$defs/identifier"
leaves:
type: array
description: A list of TEA Leaves
items:
"$ref": "#/$defs/uuid"
description: The unique identifier of the TEA Leaf
required:
- uuid
- name
- identifiers
- leaves
leaf:
type: object
description: A TEA leaf
properties:
uuid:
"$ref": "#/$defs/uuid"
required:
- uuid
collection:
type: object
description: A TEA collection
properties:
uuid:
"$ref": "#/$defs/uuid"
version:
type: integer
default: 1
description: Collection version, incremented each time its content changes.
required:
- uuid
artifact:
type: object
description: A security-related document
properties:
uuid:
"$ref": "#/$defs/uuid"
required:
- uuid