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
fail-fast feature might be extended and used not only for sequence types. It might be useful for other types like mappings or models.
I can see that it can be powerful feature when you can from python validator stop validation process by raising an exception.
As was mentioned by @adriangb here - #1322 (comment)
I would like to work on both features if you don't mind.
Please let me know if you have some tips and ideas about implementation!
Seems fine to me. I'm less sure about the FailNow structure; it might be better to instead pass fail_fast in the info and then let custom validators decide when to fail fast that way.
Basic implementation here - #1321
Context:
#1322 (comment)
pydantic/pydantic#9708 (comment)
fail-fast feature might be extended and used not only for sequence types. It might be useful for other types like mappings or models.
I can see that it can be powerful feature when you can from python validator stop validation process by raising an exception.
As was mentioned by @adriangb here - #1322 (comment)
I would like to work on both features if you don't mind.
Please let me know if you have some tips and ideas about implementation!
cc @sydney-runkle @adriangb
The text was updated successfully, but these errors were encountered: