Body for RedirectResponse #7087
Replies: 4 comments
-
|
I believe 204 is fine since it is named
|
Beta Was this translation helpful? Give feedback.
-
It's issue only about 3XX responses. About 307 especially. For clearly, I delete other status codes mentioned in first message. Thanks. |
Beta Was this translation helpful? Give feedback.
-
|
Hmm, I'm not sure I understand what you need or what you are suggesting 🤔 Could you please create a minimal self-contained example that shows your use case? ☕
|
Beta Was this translation helpful? Give feedback.
-
|
Assuming the original need was handled, this will be automatically closed now. But feel free to add more comments or create new issues or PRs. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Good day.
I found some conflict (as I see it) between RedirectResponse class and openapi schema.
We can't define a content. But only 304 status code (of the redirect codes) really can't have a body.
This fact and
STATUS_CODES_WITH_NO_BODY = {..., 304}makes a trouble with openapi schema validation.May be, we should allow set a content with check for the 304 status_code (and nullify content if it is)?
Beta Was this translation helpful? Give feedback.
All reactions