Skip to content

Commit 17edf01

Browse files
Merge branch 'main' into osv
2 parents 5a29daa + 3e4cd2e commit 17edf01

File tree

1 file changed

+82
-98
lines changed

1 file changed

+82
-98
lines changed

json-schema/schema.json

Lines changed: 82 additions & 98 deletions
Original file line numberDiff line numberDiff line change
@@ -3,127 +3,111 @@
33
"$id": "https://stac-extensions.github.io/sat/v1.0.0/schema.json",
44
"title": "Satellite Extension",
55
"description": "STAC Sat Extension to a STAC Item.",
6+
"type": "object",
7+
"required": [
8+
"stac_extensions"
9+
],
10+
"properties": {
11+
"stac_extensions": {
12+
"type": "array",
13+
"contains": {
14+
"const": "https://stac-extensions.github.io/sat/v1.0.0/schema.json"
15+
}
16+
}
17+
},
618
"oneOf": [
719
{
820
"$comment": "This is the schema for STAC Items.",
9-
"allOf": [
10-
{
11-
"type": "object",
12-
"required": [
13-
"type",
14-
"properties",
15-
"assets"
16-
],
17-
"properties": {
18-
"type": {
19-
"const": "Feature"
20-
},
21-
"properties": {
22-
"allOf": [
21+
"type": "object",
22+
"required": [
23+
"type",
24+
"properties",
25+
"assets"
26+
],
27+
"properties": {
28+
"type": {
29+
"const": "Feature"
30+
},
31+
"properties": {
32+
"allOf": [
33+
{
34+
"anyOf": [
35+
{
36+
"required": [
37+
"sat:platform_international_designator"
38+
]
39+
},
40+
{
41+
"required": [
42+
"sat:orbit_state"
43+
]
44+
},
45+
{
46+
"required": [
47+
"sat:absolute_orbit"
48+
]
49+
},
50+
{
51+
"required": [
52+
"sat:relative_orbit"
53+
]
54+
},
55+
{
56+
"required": [
57+
"sat:anx_datetime"
58+
]
59+
},
2360
{
24-
"anyOf": [
25-
{
26-
"required": [
27-
"sat:platform_international_designator"
28-
]
29-
},
30-
{
31-
"required": [
32-
"sat:orbit_state"
33-
]
34-
},
35-
{
36-
"required": [
37-
"sat:absolute_orbit"
38-
]
39-
},
40-
{
41-
"required": [
42-
"sat:relative_orbit"
43-
]
44-
},
45-
{
46-
"required": [
47-
"sat:anx_datetime"
48-
]
49-
},
50-
{
51-
"required": [
52-
"sat:orbit_cycle"
53-
]
54-
},
55-
{
56-
"required": [
57-
"sat:orbit_state_vectors"
58-
]
59-
}
61+
"required": [
62+
"sat:orbit_cycle"
6063
]
6164
},
6265
{
63-
"$ref": "#/definitions/fields"
66+
"required": [
67+
"sat:orbit_state_vectors"
68+
]
6469
}
6570
]
6671
},
67-
"assets": {
68-
"type": "object",
69-
"additionalProperties": {
70-
"$ref": "#/definitions/fields"
71-
}
72+
{
73+
"$ref": "#/definitions/fields"
7274
}
73-
}
75+
]
7476
},
75-
{
76-
"$ref": "#/definitions/stac_extensions"
77+
"assets": {
78+
"type": "object",
79+
"additionalProperties": {
80+
"$ref": "#/definitions/fields"
81+
}
7782
}
78-
]
83+
}
7984
},
8085
{
8186
"$comment": "This is the schema for STAC Collections.",
82-
"allOf": [
83-
{
84-
"type": "object",
85-
"required": [
86-
"type"
87-
],
88-
"properties": {
89-
"type": {
90-
"const": "Collection"
91-
},
92-
"assets": {
93-
"type": "object",
94-
"additionalProperties": {
95-
"$ref": "#/definitions/fields"
96-
}
97-
},
98-
"item_assets": {
99-
"type": "object",
100-
"additionalProperties": {
101-
"$ref": "#/definitions/fields"
102-
}
103-
}
104-
}
105-
},
106-
{
107-
"$ref": "#/definitions/stac_extensions"
108-
}
109-
]
110-
}
111-
],
112-
"definitions": {
113-
"stac_extensions": {
11487
"type": "object",
11588
"required": [
116-
"stac_extensions"
89+
"type"
11790
],
11891
"properties": {
119-
"stac_extensions": {
120-
"type": "array",
121-
"contains": {
122-
"const": "https://stac-extensions.github.io/sat/v1.0.0/schema.json"
92+
"type": {
93+
"const": "Collection"
94+
},
95+
"assets": {
96+
"type": "object",
97+
"additionalProperties": {
98+
"$ref": "#/definitions/fields"
99+
}
100+
},
101+
"item_assets": {
102+
"type": "object",
103+
"additionalProperties": {
104+
"$ref": "#/definitions/fields"
123105
}
124106
}
125107
}
126-
},
108+
}
109+
],
110+
"definitions": {
127111
"fields": {
128112
"type": "object",
129113
"properties": {

0 commit comments

Comments
 (0)