Skip to content

Commit 763a839

Browse files
committed
Core Schema Draft
- add a core schema as draft
1 parent 11a477a commit 763a839

File tree

1 file changed

+63
-0
lines changed

1 file changed

+63
-0
lines changed

schema/openeox_core_json_schema.json

+63
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
{
2+
"$schema": "https://json-schema.org/draft/2020-12/schema",
3+
"$id": "https://docs.oasis-open.org/openeox/tbd/openeox_core_json_schema.json",
4+
"title": "EOL and EOS Information",
5+
"description": "A draft schema for representing End-of-Life (EOL) and End-of-Support (EOS) information in OpenEoX.",
6+
"type": "object",
7+
"$defs": {
8+
"schema_t": {
9+
"title": "OpenEoX Core schema",
10+
"description": "Specifies the schema the JSON object must be valid against.",
11+
"type": "string",
12+
"enum": [
13+
"https://docs.oasis-open.org/openeox/tbd/openeox_core_json_schema.json"
14+
]
15+
}
16+
},
17+
"required": ["$schema", "last_updated", "status"],
18+
"properties": {
19+
"$schema": {
20+
"$ref": "#/$defs/schema_t"
21+
},
22+
"last_updated": {
23+
"title": "Timestamp of last change",
24+
"description": "Contains the RFC 3339 timestamp when the record was last updated.",
25+
"type": "string",
26+
"format": "date-time"
27+
},
28+
"status": {
29+
"title": "List of status",
30+
"description": "Contains a list of status elements.",
31+
"type": "array",
32+
"minItems": 1,
33+
"uniqueItems": true,
34+
"items": {
35+
"title": "Status",
36+
"description": "Contains a single entry in the product lifecycle.",
37+
"type": "object",
38+
"required": ["category", "timestamp"],
39+
"properties": {
40+
"category": {
41+
"title": "Status category",
42+
"description": "Contains the category of the status",
43+
"type": "string",
44+
"enum": ["EndOfLife", "EndOfSupport"]
45+
},
46+
"timestamp": {
47+
"title": "Timestamp",
48+
"description": "Contains the timestamp at which the product enters the category.",
49+
"type": "string",
50+
"oneOf": [
51+
{
52+
"format": "date-time"
53+
},
54+
{
55+
"enum": ["tba"]
56+
}
57+
]
58+
}
59+
}
60+
}
61+
}
62+
}
63+
}

0 commit comments

Comments
 (0)