Raised when unable to fetch a schema.
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
.
Sets the STACValidator to use in PySTAC.
validator – The STACValidator implementation to use for validation.
Validates a STACObject
.
stac_object – The stac object to validate.
validator – A custom validator to use for validation of the STAC object. If omitted, the default validator from RegisteredValidator
will be used instead.
core object and any extensions. Element type is specific to the STACValidator implementation.
List[Any]
Validate a STACObject
, or a STAC object serialized as JSON into a dict.
If the STAC object represents a catalog or collection, this function will be called recursively for each child link and all contained items.
stac_object – STAC object to validate
href – HREF of the STAC object being validated. Used for error reporting and resolving relative links.
stac_io – Optional StacIO instance to use for reading hrefs. If None, the StacIO.default() instance is used.
STACValidationError or ValueError – STACValidationError is raised if the STAC object or any contained catalog, collection, or item has a validation error. ValueError is raised if stac_object is a STACObject and href is not None, or if stac_object is a dict and href is None.
Validate a stac object serialized as JSON into a dict.
If the STAC object represents a catalog or collection, this function will be called recursively for each child link and all contained items.
stac_dict – Dictionary that is the STAC json of the object.
href – HREF of the STAC object being validated. Used for error reporting and resolving relative links.
stac_io – Optional StacIO instance to use for reading hrefs. If None, the StacIO.default() instance is used.
STACValidationError – if the STAC object or any contained catalog, collection, or item has a validation error
Validate a stac object serialized as JSON into a dict.
This method delegates to the call to validate()
for the STACValidator
registered via set_validator()
or JsonSchemaSTACValidator
by default.
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
. If not supplied, this will use PySTAC’s identification logic to identify the object type.
stac_version – The version of STAC to validate the object against. If not supplied, this will use PySTAC’s identification logic to identify the stac version
extensions – Extension IDs for this stac object. If not supplied, PySTAC’s identification logic to identify the extensions.
href – Optional HREF of the STAC object being validated.
validator – A custom validator to use for validation of the STAC dictionary. If omitted, the default validator from RegisteredValidator
will be used instead.
core object and any extensions. Element type is specific to the STACValidator implementation.
List[Any]
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