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
The is_instance_schema function does not work for annotated types.
A potential solution could be to either remove the annotations or avoid checking is_instance since the validator of the inner type T of Option[T] should validate the value itself.
Environment
Pydantic version: latest
The text was updated successfully, but these errors were encountered:
Bug Description
Pydantic schema fails to validate user-defined types.
Expected Behavior
The Pydantic schema should successfully validate user-defined types.
Code Example
Below is a minimal code example to illustrate the issue:
Additional Context
is_instance_schema
function does not work for annotated types.is_instance
since the validator of the inner typeT
ofOption[T]
should validate the value itself.Environment
The text was updated successfully, but these errors were encountered: