ad hoc
ad hoc
Hey @calvinrp thanks for helping out! Actually I can get stuff working by just vendoring everything in my package `wit/deps` directory: ``` ❯ tree -d -l wit wit └── deps...
The response model is inconsequential in this example. I am not interested in the output of the endpoint but in the prints
The issue is with how the request model is being parsed, I have identified the sources of the regressions and have linked them. I am happy to submit a patch...
Name is passed as an empty field which is a behavior that we observed http clients to have. Inspecting the code we can see that this was handled before by...
Also note that it's only for forms, json bodies work as intended
I'm afk right now, I'll prepare a more self contained reproducer for you :)
The gist of it is that some clients handle a null field in a form as an empty form field (rather than the absence thereof) before the pr that I...
https://github.com/fastapi/fastapi/blob/4633b1bca933e68dac5c3bcce797ff5963debe2a/fastapi/dependencies/utils.py#L695-L700 This section of code is the most telling: if the value is an empty string, then return the default value for that field
@alv2017 take the following example, this is the `x-www-form-urlencoded` case: ```python from typing import Annotated, Optional import fastapi app = fastapi.FastAPI() @app.post("/") def root( age: Annotated[Optional[int], fastapi.Form()] = None, ):...
My pleasure. I can submit a fix, if this is acknowleged as a bug.