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

Support multiple content types per path #10

Open
keorn opened this issue Jan 12, 2020 · 0 comments
Open

Support multiple content types per path #10

keorn opened this issue Jan 12, 2020 · 0 comments
Labels
bug Something isn't working

Comments

@keorn
Copy link

keorn commented Jan 12, 2020

When attempting to specify two routes with the same path and method, but different accepted format (e.g. format = "application/json" vs format = "application/cbor") error message appears: An OpenAPI operation has already been added for ...

The reason is that currently only method and path are taken into account when adding a new routes, while format should be considered as well.

(Thanks a lot for a nice crate!)

@ralpha ralpha added the bug Something isn't working label Sep 15, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants