Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
Server routes with more than one `consumes` duplicates parameters (2to3 shims bug) #324
In Swagger specifications, there was no differentiation between the different content types for HTTP bodies submitted to any given endpoint.
As a result, when converting swagger to OpenAPI 3.x, it's necessary to duplicate all parameters for each content type in the resulting specification.
Unfortunately, it seems as though parameters are concatted irrespective of mediaType without deduplicating them.
This results in: