I wonder if this would somehow be possible: class Picture(BaseModel): src: Union[FilePath, stricturl(allowed_schemes=["https"])] I have this test, which is
Is there a way for a FastAPI application to not display a model in its schema documentation? I have some models which are slight variations of others, and with
I would like to set default email in case email not provided, i.e: name = a last_name = b email = None email will become "a_b@email.com" I tried something li
I'm trying to write pydantic validators, but I can't seem to understand how to make use of the kwargs argument that is mentioned in the docs. I would like to p
Problem in a nutshell I am having issues with the hypothesis build strategy and custom pydantic data types (no values are returned when invoking the build strat