Infinite recursion on model_json_schema()
if recusive model is a field in another model
#7655
Closed
1 task done
Initial Checks
Description
Calling
model_json_schema()
on a model with a recursive field results in a recursion error if the recursive model is used as a type in another model field.Example error:
Example Code
Python, Pydantic & OS Version
The text was updated successfully, but these errors were encountered: