okapi icon indicating copy to clipboard operation
okapi copied to clipboard

Support multiple content types per path

Open keorn opened this issue 5 years ago • 0 comments

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!)

keorn avatar Jan 12 '20 17:01 keorn