Skip to content

Commit b4ce5e0

Browse files
committed
Clarify schema
1 parent 699c8a8 commit b4ce5e0

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

json-schema/schema.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"description": "STAC Template Extension for STAC Items and STAC Collections.",
66
"oneOf": [
77
{
8-
"$comment": "This is the schema for STAC Items.",
8+
"$comment": "This is the schema for STAC Items. Remove this object if this extension only applies to Collections.",
99
"allOf": [
1010
{
1111
"type": "object",
@@ -45,7 +45,7 @@
4545
]
4646
},
4747
{
48-
"$comment": "This is the schema for STAC Collections.",
48+
"$comment": "This is the schema for STAC Collections. Remove this object if this extension does not define top-level fields for Collections AND can't be used in collection assets or item asset defintions.",
4949
"allOf": [
5050
{
5151
"type": "object",
@@ -71,10 +71,10 @@
7171
}
7272
},
7373
{
74-
"$comment": "Remove this and the following object if this is not an extension to a Collection.",
7574
"$ref": "#/definitions/stac_extensions"
7675
},
7776
{
77+
"$comment": "Remove this object if this extension does not define top-level fields for Collections.",
7878
"$ref": "#/definitions/fields"
7979
}
8080
]

0 commit comments

Comments
 (0)