Motov Yurii

Results 21 issues of Motov Yurii

Is it possible to get a list of missed responses for my app? I don't want to automatically add responses. I want to just to see the list of missed...

enhancement

At the moment, it's not obvious for newcomers what the order of middleware execution is when more than one middleware is added. This PR adds clarification on the stacking behavior...

docs

## Problem description ```python app = FastAPI() class MyModel(BaseModel): """ A model with a form feed character in the title. \f Text after form feed character. """ @app.get("/foo") def foo(v:...

bug

## Description This PR allows passing multiple status codes or exceptions to `exception_handler`. ``` @app.exception_handler((401, 403)) def auth_error_handler(request, exc): pass @app.exception_handler((FileTooLargeError, UnsupportedFileTypeError)) def file_upload_error_handler(request, exc): pass ``` ## Motivation This...

feature

I want to control for which exceptions to log traceback and for which not. For example, I want to only print nice one-line log for my custom exception (e.g. `MyJobFailed(reason="DB...

## Description This PR is an attempt to finally solve the issue with security tools returning error response with status code `403` instead of `401` when credentials are not provided....

bug

Added missing variants for code examples in "Advanced User Guide" and tests for them. Update code includes in several pages of "Tutorial" and "How-to" to use highest version of variants...

docs

FastAPI currently allows configuring upload limits only at the application level (using middleware), which makes it difficult to apply different constraints to different endpoints. In some cases you may want...

feature

Tests for different types of parameters: * `Query` * `Path` * `Header` * `Cookie` * `Form` * `File` * `Body` Some of these tests currently fail on `master`. Here is...

refactor

## Credits The author of solution is @sneakers-the-rat. Initial PR: #13464. I just separated these changes from (IMO) unnecessary\unrelated changes, refactored the code a bit and simplified tests to make...

bug