Skip to content

Commit

Permalink
deploy: 65edf9b
Browse files Browse the repository at this point in the history
  • Loading branch information
emmanuelmathot committed Nov 19, 2024
1 parent da11495 commit 6a5d1fa
Show file tree
Hide file tree
Showing 2 changed files with 421 additions and 0 deletions.
143 changes: 143 additions & 0 deletions v2.0.0/schema-vrt.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,143 @@
{
"$schema": "http://json-schema.org/draft-07/schema#",
"$id": "https://stac-extensions.github.io/virtual-assets/v1.0.0/schema.json#",
"title": "Virtual Assets Extension",
"description": "STAC Virtual Assets Extension for STAC Items and STAC Collections.",
"oneOf": [
{
"$comment": "This is the schema for STAC Items. Remove this object if this extension only applies to Collections.",
"allOf": [
{
"type": "object",
"required": [
"type",
"assets"
],
"properties": {
"type": {
"const": "Feature"
},
"assets": {
"type": "object",
"additionalProperties": {
"$ref": "#/definitions/fields"
}
}
}
},
{
"$ref": "#/definitions/stac_extensions"
}
]
},
{
"allOf": [
{
"type": "object",
"required": [
"type",
"assets"
],
"properties": {
"type": {
"const": "Collection"
},
"assets": {
"type": "object",
"additionalProperties": {
"$ref": "#/definitions/fields"
}
},
"item_assets": {
"type": "object",
"additionalProperties": {
"$ref": "#/definitions/fields"
}
}
}
},
{
"$ref": "#/definitions/stac_extensions"
}
]
}
],
"definitions": {
"stac_extensions": {
"type": "object",
"required": [
"stac_extensions"
],
"properties": {
"stac_extensions": {
"type": "array",
"contains": {
"const": "https://stac-extensions.github.io/virtual-assets/v1.0.0/schema.json"
}
}
}
},
"fields": {
"type": "object",
"allOf": [
{
"if": {
"properties": {
"roles": {
"const": "virtual"
}
},
"required": [
"vrt:hrefs"
]
}
}
],
"properties": {
"vrt:hrefs": {
"title": "Virtual Asset references",
"type": "array",
"items": {
"type": "object",
"required": [
"key",
"href"
],
"properties": {
"key": {
"type": "string",
"minLength": 1
},
"href": {
"oneOf": [
{
"type": "string",
"format": "iri-reference",
"minLength": 1
},
{
"type": "string",
"minLength": 2,
"pattern": "^#.*$"
}
]
}
}
}
},
"vrt:algorithm": {
"title": "Algorithm",
"type": "string"
},
"vrt:algorithm_opts": {
"title": "Algorithm Options",
"type": "object"
}
},
"patternProperties": {
"^(?!vrt:)": {}
},
"additionalProperties": false
}
}
}
Loading

0 comments on commit 6a5d1fa

Please sign in to comment.