You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Possible Regression: RecursionError validating oneOf/allOf schema in 0.7.2 (works in 0.7.1) #400
changed the title [-]Possible Regression: RecursionError validating discriminator schema in 0.7.2 (works in 0.7.1)[/-][+]Possible Regression: RecursionError validating oneOf/allOf schema in 0.7.2 (works in 0.7.1)[/+]on Jun 13, 2025
@tembleking It appears that #391 (released in v0.7.2) will recurse until Python raises an exception.
Would you review this bug report and consider how to prevent this?
For example, perhaps it would be possible to have a default argument like max_depth=5 attached to the ._collect_properties() method that is decremented each time the method calls itself.
Activity
[-]Possible Regression: RecursionError validating discriminator schema in 0.7.2 (works in 0.7.1)[/-][+]Possible Regression: RecursionError validating oneOf/allOf schema in 0.7.2 (works in 0.7.1)[/+]kurtmckee commentedon Jun 26, 2025
@tembleking It appears that #391 (released in v0.7.2) will recurse until Python raises an exception.
Would you review this bug report and consider how to prevent this?
For example, perhaps it would be possible to have a default argument like
max_depth=5attached to the._collect_properties()method that is decremented each time the method calls itself.