Closed cosmicBboy closed 2 years ago
fixed by #741
Does this PR supports FastAPI HTTP 422 error responses when schema raises SchemaError
?
hey @deepaerial I'm not certain but it'll use whatever error response routine that fastapi uses, which I believe is pydantic... but please feel free to add a reproducible code snippet if you need help debugging
Is your feature request related to a problem? Please describe.
FastAPI supports pydantic models as part of request bodies and responses. Pandera now integrates with pydantic, but there are a few more things needed to integrate with FastAPI in a more seamless manner. Doing this will create a nicer experience when requests/responses involve dataframes:
Describe the solution you'd like
At a high level, we want to:
Support
DataFrame[Schema]
types in http method function definitions:Support
response_model
for serialization of dataframes to different formatsSupport File Request endpoints
With the
response_model
argument, users should be able to upload compressed binaries, e.g. parquet or feather format: