The general structure of validators is established enough to start using python type hints as a building blocks for validators. The main aim is to allow a familiar, simple syntax to produce type-only validators. First iteration should just be able to handle dataclasses, and be aimed at handling common serializable types.
Should be easy to allow customization to users either through:
overrides to the Validator in a subclass or instantation
The general structure of validators is established enough to start using python type hints as a building blocks for validators. The main aim is to allow a familiar, simple syntax to produce type-only validators. First iteration should just be able to handle
dataclass
es, and be aimed at handling common serializable types.Should be easy to allow customization to users either through:
Validator
in a subclass or instantationAnnotated
type hints on the subject class