weldx.asdf.validators.wx_shape_validator#

weldx.asdf.validators.wx_shape_validator(validator, wx_shape, instance, schema)#

Custom validator for checking dimensions for objects with ‘shape’ property.

ASDF documentation: https://asdf.readthedocs.io/en/2.6.0/asdf/extensions.html#adding-custom-validators

Parameters
  • validator – A jsonschema.Validator instance.

  • wx_shape – Enable shape validation for this schema.

  • instance – Tree serialization (with default dtypes) of the instance

  • schema – Dict representing the full ASDF schema.

Yields

asdf.ValidationError

Return type

Iterator[ValidationError]