CLI Tool for converting pydantic models into typescript definitions
Full Changelog: https://github.com/phillipdupuis/pydantic-to-typescript/compare/v1.0.9...v1.0.10
Primary changes:
exclude
pydantic models from the generated typescript definitions. This is done by providing the names of the models which should be excluded. For CLI users, this can be accomplished via the --exclude
option, ex: --exclude MyCustomBaseModel
to exclude the model named MyCustomBaseModel from the results. And if you want to exclude multiple models, provide multiple options, ex: --exclude Foo --exclude Bar
to exclude both Foo and Bar. For python users, this same behavior can be accomplished by passing a tuple of model names as the exclude
kwarg to generate_typescript_defs
.Additional changes:
eslint-disable
directive.