pyvalid icon indicating copy to clipboard operation
pyvalid copied to clipboard

Support for type hints

Open eterey opened this issue 5 years ago • 0 comments

Provide the ability to validate input/output values base on type hints. It's possible to use inspect.signature, typing.get_origin(), typing.get_args(), etc for retrieving information about type hints.

We'll need to create decorator, which analyzes type hints, generates the set of rules base in the hints and validates input/output data agaisnt these rules.

eterey avatar Nov 04 '20 19:11 eterey