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
Is your feature request related to a problem? Please describe.
Let me reopen a follow up from the previous issue:
If using the Annotated pattern to define validators as shown above, it seems that while we can unwrap the annotation (which fixes most of the issues), it does not pick up on the validator itself.
E.g. when defining
defrandom_add(v: str) ->str:
returnv+"1"
with
field_without_default: Annotated[str, AfterValidator(random_add)]
"""Shows the *[Required]* marker in the signature."""