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

feat: allow for multiple req body content_type #876

Merged
merged 3 commits into from
May 14, 2024

Conversation

TroyKomodo
Copy link
Contributor

@TroyKomodo TroyKomodo commented Feb 26, 2024

This change adds the ability to specify multiple accepted request body content-types.

Resolves #896

@TroyKomodo
Copy link
Contributor Author

@juhaku any updates on this PR?

@juhaku
Copy link
Owner

juhaku commented May 12, 2024

Seems like a format is not correct, you should first run cargo fmt for the project.

Copy link
Owner

@juhaku juhaku left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, but two things need to be addressed. 🙂

  1. Fix format.
  2. The docs need to be updated with the changed functionality of the content type support for the request body. The correct place to change the functionality is in utoipa-gen/src/lib.rs and you can find it under the utoipa::path macro request body heading.

This change adds the ability to specify multiple accepted request body
content-types.
@juhaku juhaku force-pushed the troy/multi-req-content-type branch from 2cfeb93 to 103c104 Compare May 14, 2024 16:20
@juhaku juhaku force-pushed the troy/multi-req-content-type branch from 103c104 to d1b2f17 Compare May 14, 2024 16:22
@juhaku juhaku merged commit 2661057 into juhaku:master May 14, 2024
7 checks passed
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 this pull request may close these issues.

Is it possible to accept multiple content-types for requests?
2 participants