pydantic-to-typescript
pydantic-to-typescript copied to clipboard
Update for pydantic 2
Pydantic 2.0 just came out. This PR uses their new syntax.
One difference is that Optional parameters now output property:
All the tests passed locally.
What's the difference between this PR and https://github.com/phillipdupuis/pydantic-to-typescript/pull/40 or https://github.com/phillipdupuis/pydantic-to-typescript/pull/38 ?
Can they be consolidated?