You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It appears that multiple operations that share a path are merged into a single operation, even if they are different. Say, for example, I have two operations, one gives my resource as XML, one as JSON.
Only one of the operations appears. This used to work correctly in previous versions, but appears to be broken now (using swagger-ui 2.1.3).
The text was updated successfully, but these errors were encountered:
In the current version of Swagger (and previous ones) a unique operation is a combination of a path and an HTTP verb. The content-type plays no part in it. Prior to 2.0, it was possible to add such definitions due to the structure of the JSON, but that was still invalid and unsupported. In 2.0, you simply cannot do that structure-wise. If you're using an older version, swagger-ui will first transform your spec to 2.0 which will lead to one definition clobbering the other. This is not a bug, this is by design.
Yup. Sorry about that, but it's been that way since day one of the spec. The only difference is it wasn't possible to enforce it versions prior to 2.0.
It appears that multiple operations that share a path are merged into a single operation, even if they are different. Say, for example, I have two operations, one gives my resource as XML, one as JSON.
Only one of the operations appears. This used to work correctly in previous versions, but appears to be broken now (using swagger-ui 2.1.3).
The text was updated successfully, but these errors were encountered: