weldx.asdf.validators.wx_tag_validator¶
- weldx.asdf.validators.wx_tag_validator(validator, tagname, instance, schema)¶
Validate instance tag string with flexible version syntax.
The following syntax is allowed to validate against:
wx_tag: http://stsci.edu/schemas/asdf/core/software-* # allow every version wx_tag: http://stsci.edu/schemas/asdf/core/software-1 # fix major version wx_tag: http://stsci.edu/schemas/asdf/core/software-1.2 # fix minor version wx_tag: http://stsci.edu/schemas/asdf/core/software-1.2.3 # fix patch version
- Parameters
validator – A jsonschema.Validator instance.
tagname – tag string with custom version syntax to validate against
instance – Tree serialization (with default dtypes) of the instance
schema – Dict representing the full ASDF schema.
- Returns
- Return type