|
3 | 3 | "$id": "https://stac-extensions.github.io/sat/v1.0.0/schema.json", |
4 | 4 | "title": "Satellite Extension", |
5 | 5 | "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 | + }, |
6 | 18 | "oneOf": [ |
7 | 19 | { |
8 | 20 | "$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 | + }, |
23 | 60 | { |
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" |
60 | 63 | ] |
61 | 64 | }, |
62 | 65 | { |
63 | | - "$ref": "#/definitions/fields" |
| 66 | + "required": [ |
| 67 | + "sat:orbit_state_vectors" |
| 68 | + ] |
64 | 69 | } |
65 | 70 | ] |
66 | 71 | }, |
67 | | - "assets": { |
68 | | - "type": "object", |
69 | | - "additionalProperties": { |
70 | | - "$ref": "#/definitions/fields" |
71 | | - } |
| 72 | + { |
| 73 | + "$ref": "#/definitions/fields" |
72 | 74 | } |
73 | | - } |
| 75 | + ] |
74 | 76 | }, |
75 | | - { |
76 | | - "$ref": "#/definitions/stac_extensions" |
| 77 | + "assets": { |
| 78 | + "type": "object", |
| 79 | + "additionalProperties": { |
| 80 | + "$ref": "#/definitions/fields" |
| 81 | + } |
77 | 82 | } |
78 | | - ] |
| 83 | + } |
79 | 84 | }, |
80 | 85 | { |
81 | 86 | "$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": { |
114 | 87 | "type": "object", |
115 | 88 | "required": [ |
116 | | - "stac_extensions" |
| 89 | + "type" |
117 | 90 | ], |
118 | 91 | "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" |
123 | 105 | } |
124 | 106 | } |
125 | 107 | } |
126 | | - }, |
| 108 | + } |
| 109 | + ], |
| 110 | + "definitions": { |
127 | 111 | "fields": { |
128 | 112 | "type": "object", |
129 | 113 | "properties": { |
|
0 commit comments