phillipdupuis / pydantic-to-typescript

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

Add --to-camel option to convert from snake_case to camelCase #35

Open ryanjdillon opened 1 year ago

ryanjdillon commented 1 year ago

What this PR does

Why this is necessary

We would like our resulting TS interfaces to follow the camel case convention when the model is defined via TS, and snake case when in Python

Also, the CLI hard fails when no Pydantic models are found.