generated from stac-extensions/template
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
da11495
commit 6a5d1fa
Showing
2 changed files
with
421 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
} | ||
} | ||
} |
Oops, something went wrong.