|
1 | 1 | { |
2 | 2 | "$schema": "http://json-schema.org/draft-07/schema#", |
3 | | - "$id": "https://stac-extensions.github.io/template/v1.0.0/schema.json#", |
4 | | - "title": "Template Extension", |
5 | | - "description": "STAC Template Extension for STAC Items and STAC Collections.", |
| 3 | + "$id": "https://github.com/AstrodynamicLimited/mission-space-weather/tree/main/json-schema/schema.json", |
| 4 | + "title": "Mission.Space Weather Extension Schema", |
| 5 | + "description": "Mission.Space Weather Extension schema for STAC Items and Collections.", |
6 | 6 | "oneOf": [ |
7 | 7 | { |
8 | 8 | "$comment": "This is the schema for STAC Items. Remove this object if this extension only applies to Collections.", |
|
24 | 24 | "properties": { |
25 | 25 | "allOf": [ |
26 | 26 | { |
27 | | - "$comment": "Require fields here for Item Properties.", |
28 | 27 | "required": [ |
29 | 28 | "ms_weather:geometric_factor", |
30 | 29 | "ms_weather:sensor_count", |
|
62 | 61 | ], |
63 | 62 | "anyOf": [ |
64 | 63 | { |
65 | | - "$comment": "This is the schema for the fields in Summaries. By default, only checks the existence of the properties, but not the schema of the summaries.", |
66 | 64 | "required": [ |
67 | 65 | "summaries" |
68 | 66 | ], |
|
91 | 89 | } |
92 | 90 | }, |
93 | 91 | "require_all_field": { |
94 | | - "$comment": "Please list all fields here so that we can force the existence of one of them in other parts of the schemas.", |
95 | 92 | "allOf": [ |
96 | 93 | {"required": ["ms_weather:geometric_factor"]}, |
97 | 94 | {"required": ["ms_weather:sensor_count"]}, |
|
101 | 98 | ] |
102 | 99 | }, |
103 | 100 | "fields": { |
104 | | - "$comment": "Add your new fields here. Don't require them here, do that above in the corresponding schema.", |
105 | 101 | "type": "object", |
106 | 102 | "properties": { |
107 | 103 | "ms_weather:geometric_factor":{ |
|
128 | 124 | }, |
129 | 125 | "patternProperties": { |
130 | 126 | "^(?!ms_weather:)": { |
131 | | - "$comment": "Above, change `template` to the prefix of this extension" |
| 127 | + "$comment": "No extra fields using ms_weather (except those in fields) are allowable with this pattern property." |
132 | 128 | } |
133 | 129 | }, |
134 | 130 | "additionalProperties": false |
|
0 commit comments