Skip to content

Commit

Permalink
revert: reinstate stac_extensions schema definitions
Browse files Browse the repository at this point in the history
ref: eb3d494 (commit being reverted)
discussion: #60 (comment)
upstream issue: stac-extensions/template#10
  • Loading branch information
dwsilk committed Sep 27, 2021
1 parent e3f7058 commit 112ad5f
Show file tree
Hide file tree
Showing 4 changed files with 60 additions and 0 deletions.
15 changes: 15 additions & 0 deletions extensions/camera/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,24 @@
}
}
}
},
{
"$ref": "#/definitions/stac_extensions"
}
],
"definitions": {
"stac_extensions": {
"type": "object",
"required": ["stac_extensions"],
"properties": {
"stac_extensions": {
"type": "array",
"contains": {
"const": "https://linz.github.io/stac/_STAC_VERSION_/camera/schema.json"
}
}
}
},
"fields": {
"type": "object",
"properties": {
Expand Down
15 changes: 15 additions & 0 deletions extensions/linz/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,24 @@
},
{
"$ref": "#/definitions/linz"
},
{
"$ref": "#/definitions/stac_extensions"
}
],
"definitions": {
"stac_extensions": {
"type": "object",
"required": ["stac_extensions"],
"properties": {
"stac_extensions": {
"type": "array",
"contains": {
"const": "https://linz.github.io/stac/_STAC_VERSION_/linz/schema.json"
}
}
}
},
"linz": {
"type": "object",
"required": ["title", "linz:security_classification", "linz:created", "linz:updated"],
Expand Down
12 changes: 12 additions & 0 deletions extensions/quality/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,18 @@
}
],
"definitions": {
"stac_extensions": {
"type": "object",
"required": ["stac_extensions"],
"properties": {
"stac_extensions": {
"type": "array",
"contains": {
"const": "https://linz.github.io/stac/_STAC_VERSION_/quality/schema.json"
}
}
}
},
"quality": {
"type": "object",
"properties": {
Expand Down
18 changes: 18 additions & 0 deletions extensions/template/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,9 @@
}
}
}
},
{
"$ref": "#/definitions/stac_extensions"
}
]
},
Expand Down Expand Up @@ -59,6 +62,9 @@
}
}
},
{
"$ref": "#/definitions/stac_extensions"
},
{
"$comment": "Remove this object if this extension does not define top-level fields for Collections.",
"$ref": "#/definitions/fields"
Expand All @@ -67,6 +73,18 @@
}
],
"definitions": {
"stac_extensions": {
"type": "object",
"required": ["stac_extensions"],
"properties": {
"stac_extensions": {
"type": "array",
"contains": {
"const": "https://linz.github.io/stac/_STAC_VERSION_/template/schema.json"
}
}
}
},
"fields": {
"$comment": "Add your new fields here. Don't require them here, do that above in the item schema.",
"type": "object",
Expand Down

0 comments on commit 112ad5f

Please sign in to comment.