Validate STAC based on JSON Schemas.
This validator uses JSON schemas, read from URIs provided by a SchemaUriMap
, to validate STAC core objects and extensions.
schema_uri_map – The SchemaUriMap
that defines where the validator will retrieve the JSON schemas for validation. Defaults to an instance of DefaultSchemaUriMap
Note: This class requires the jsonschema
library to be installed.
DEPRECATED
Validate a core stac object.
Return value can be None or specific to the implementation.
stac_dict – Dictionary that is the STAC json of the object.
stac_object_type – The stac object type of the object encoded in stac_dict. One of STACObjectType
.
stac_version – The version of STAC to validate the object against.
href – Optional HREF of the STAC object being validated.
no validation occurred.
STACValidationError – if stac_dict is not valid. The exception is raised from the “best” error, as determined by the jsonschema library. To access all jsonschema validation errors, use STACValidationError.source
.
Validate an extension stac object.
Return value can be None or specific to the implementation.
stac_dict – Dictionary that is the STAC json of the object.
stac_object_type – The stac object type of the object encoded in stac_dict. One of STACObjectType
.
stac_version – The version of STAC to validate the object against.
extension_id – The extension ID to validate against.
href – Optional HREF of the STAC object being validated.
no validation occurred.
STACValidationError – if stac_dict is not valid. The exception is raised from the “best” error, as determined by the jsonschema library. To access all jsonschema validation errors, use STACValidationError.source
.
Raised when unable to fetch a schema.
STACValidator defines methods for validating STAC JSON. Implementations define methods for validating core objects and extension. By default the JsonSchemaSTACValidator is used by PySTAC; users can define their own STACValidator implementation and set that validator to be used by pystac by using the set_validator()
method.
Validate a STAC object JSON.
stac_dict – Dictionary that is the STAC json of the object.
stac_object_type – The stac object type of the object encoded in stac_dict. One of STACObjectType
.
stac_version – The version of STAC to validate the object against.
extensions – Extension IDs for this stac object.
href – Optional href of the STAC object being validated.
core object and any extensions. Element type is specific to the STACValidator implementation.
List[Any]
Validate a core stac object.
Return value can be None or specific to the implementation.
stac_dict – Dictionary that is the STAC json of the object.
stac_object_type – The stac object type of the object encoded in stac_dict. One of STACObjectType
.
stac_version – The version of STAC to validate the object against.
href – Optional HREF of the STAC object being validated.
Validate an extension stac object.
Return value can be None or specific to the implementation.
stac_dict – Dictionary that is the STAC json of the object.
stac_object_type – The stac object type of the object encoded in stac_dict. One of STACObjectType
.
stac_version – The version of STAC to validate the object against.
extension_id – The extension ID of the extension to validate against.
href – Optional HREF of the STAC object being validated.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4