Motov Yurii

Results 218 comments of Motov Yurii

Sorry, I don't quite understand what you mean. In the example I mentioned before, endpoint "/a" expects the authorization token to be passed as a Header parameter with the name...

Just found [PR 10147](https://github.com/tiangolo/fastapi/pull/10147) which also fixes this issue, but that PR is wider since it also fixes the same problem in other security tools. I think we should close...

Just noticed that optional list parameters are not displayed correctly in Swagger. `list_int: Optional[list[int]] = Form(None)` is displayed as optional field without type. Even though in `openapi.json` its type is...

> Hypercorn supports the WSDR (WebSocket Denial Response), and Uvicorn has a PR to implement it already. And... There aren't many server implementations around. Also, I'm a maintainer of Starlette,...

As an idea: wouldn't it be better to ask Starlette to add a config option like `file_upload_class: type = UploadFile`? So that Starlette would create instances of proper class and...

> Allowing arbitrary subclass injection might be more convenient for us as a consumer, but it’s not a trivial change; it would incur maintenance and support costs for Starlette. What...

This implementation should be refactored to not include project structure and code of the app as text, but store code in separate files instead. This way it will be easier...

There is also https://github.com/fastapi/fastapi/pull/12502 that solves close issue - inability to pass `None` if form field is nullable, but default value is not `None`: Code example in the details ```py...

Looked at this PR one more time. @Ashish-Pandey62, ~~could you please explain why you removed indentations and added `;`?~~ ~~I think we should avoid adding unnecessary changes. Especially if it...

> @YuriiMotov I've fixed the indentation issues. Regarding the semicolons, I added them as it's generally recommended for consistency and to prevent potential issues, even though they're optional in JS....