GREsau / GREsau/okapi

Support multiple content types per path

Open
#10 0 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
Rust
Stars
740
Forks
127
PR merge metrics
No merged PRs in 30d

Description

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

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.