Is your feature request related to a problem? Please describe.
The python-fastapi generator constructs models with pydantic v1.
Describe the solution you'd like
It would be nice to have an option to use pydantic v2, such as discussed in this comment.
Describe alternatives you've considered
I've considered using the python generator but it doesn't match my use-case as seemlessly as the python-fastapi generator.