Skip to content

Commit 6019701

Browse files
authored
Update schema.json
1 parent e31424e commit 6019701

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

json-schema/schema.json

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{
22
"$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.",
66
"oneOf": [
77
{
88
"$comment": "This is the schema for STAC Items. Remove this object if this extension only applies to Collections.",
@@ -24,7 +24,6 @@
2424
"properties": {
2525
"allOf": [
2626
{
27-
"$comment": "Require fields here for Item Properties.",
2827
"required": [
2928
"ms_weather:geometric_factor",
3029
"ms_weather:sensor_count",
@@ -62,7 +61,6 @@
6261
],
6362
"anyOf": [
6463
{
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.",
6664
"required": [
6765
"summaries"
6866
],
@@ -91,7 +89,6 @@
9189
}
9290
},
9391
"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.",
9592
"allOf": [
9693
{"required": ["ms_weather:geometric_factor"]},
9794
{"required": ["ms_weather:sensor_count"]},
@@ -101,7 +98,6 @@
10198
]
10299
},
103100
"fields": {
104-
"$comment": "Add your new fields here. Don't require them here, do that above in the corresponding schema.",
105101
"type": "object",
106102
"properties": {
107103
"ms_weather:geometric_factor":{
@@ -128,7 +124,7 @@
128124
},
129125
"patternProperties": {
130126
"^(?!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."
132128
}
133129
},
134130
"additionalProperties": false

0 commit comments

Comments
 (0)