johngeorgewright / runtyping

Generate runtype validation from static types & JSON schema.
MIT License
43 stars 5 forks source link

Feature request: support validation attribute in json schema #427

Closed slevy85 closed 1 year ago

slevy85 commented 1 year ago

Hi and thank you fr this great library.

The json schema provides some validation attributes like minLength, maxLength and others, it would be nice to have them reflected in the generated code also.

What do you think ?