The extractor will extract the options attribute from the validator and inject its value into the schema under the enum keyword.
Currently the extractor supports any attribute with the _InValidator defined, even if it doesn't have an explicit type.
I added two test cases, if you think there should be more I would love to add them, just say which tests are missing :)
Support attrs in validator.
The extractor will extract the
options
attribute from the validator and inject its value into the schema under theenum
keyword.Currently the extractor supports any attribute with the
_InValidator
defined, even if it doesn't have an explicit type.I added two test cases, if you think there should be more I would love to add them, just say which tests are missing :)
Thanks for the great library :heart: