phillipdupuis / pydantic-to-typescript

CLI Tool for converting pydantic models into typescript definitions
MIT License
285 stars 48 forks source link

Added by_alias #18

Open joshuashaffer opened 2 years ago

joshuashaffer commented 2 years ago

Resolves #2.

Allows you to select whether you want the generated model to use the public-facing model property (by_alias=False, default) or the aliased field name (by_alias=True).