RuntimeError: Unable to apply constraint strict to schema lax-or-strict
when trying to set strictness on enum fields
#7759
Labels
bug V2
Bug related to Pydantic V2
Initial Checks
Description
To allow "enum matching" from json input, I depend on setting enum field validation to
strict=False
.This worked fine with pydantic 2.1.0.
Expectation would be that this works for enums. 😄
Thanks for your great work.
Example Code
Python, Pydantic & OS Version
The text was updated successfully, but these errors were encountered: