fern-api / fern

Input OpenAPI. Output SDKs and Docs.
https://buildwithfern.com
Apache License 2.0
2.6k stars 139 forks source link

fix(python): handle non union self referencing schemas again, but better this time #4608

Closed armandobelardo closed 3 weeks ago

armandobelardo commented 3 weeks ago

This pull request introduces changes to the add_field method in the fern_aware_pydantic_model.py file. The method now returns the field variable and adds a new section to handle transitive circular dependencies.

Changes: