[FR] Support Pydantic V2 without leveraging import pydantic.v1
#3392
Labels
python
Python models, clients, and server interfaces
import pydantic.v1
#3392
Describe the bug
In my python generator config I specify pydantic version v2, but still wind up with pydantic.v1 imports.
To reproduce
Use the following generator config
Using 1.0.1 also has this issue, but I wanted to try with the latest to avoid the issue with a local unnecessary version file.
Grab any openapi you want, I'll attach one here as well.
Run fern generate. I do mine as
fern generat --local --log-level=debug
Look at any of the generated classes and see that the import statement is
Expected behavior
Screenshots
CLI Version
The version of the Fern CLI you are using (found in
fern.config.json
)."version": "0.21.0"
Uploaded as txt as github won't allow me to upload yaml 🤷
openapi.txt
The text was updated successfully, but these errors were encountered: