Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

make request_body allow multiple content types like responses do #692

Closed
EmmFloClax opened this issue Jul 19, 2023 · 2 comments · Fixed by #1066
Closed

make request_body allow multiple content types like responses do #692

EmmFloClax opened this issue Jul 19, 2023 · 2 comments · Fixed by #1066

Comments

@EmmFloClax
Copy link

#[utopia::path(request_body(content = MyObject, content_type = ["application/json", "application/vnd.apache.arrow.stream"])
is not allowed, I can only declare one content_type but by functions allows data of both types to be accepted. I can have multple content_types for the response, can we have this feature for request_body?

@juhaku
Copy link
Owner

juhaku commented Jul 20, 2023

Yeah, that is has not been implemented for request_body. Surely this could also be implemented for request_body in future if it supports this format by OpenAPI spec.

@juhaku
Copy link
Owner

juhaku commented Sep 26, 2024

Is being implemented here #1066

@juhaku juhaku moved this to In Progress in utoipa kanban Sep 26, 2024
@juhaku juhaku changed the title response_body does not allow multple content_types make request_body allow multiple content types like responses do Sep 26, 2024
@github-project-automation github-project-automation bot moved this from In Progress to Done in utoipa kanban Sep 26, 2024
@juhaku juhaku moved this from Done to Released in utoipa kanban Oct 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Released
Development

Successfully merging a pull request may close this issue.

2 participants