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
Examine the following code, I have 2 examples for 200 http response, I want both them to be included in result swagger.yaml and then to be seen in web interface provided by the gem
However the second response gets evaluated only and overwrites the first one as they both return same http code.
Steps to Test or Reproduce
Create 2 responses with the same response http code
Expected behavior
2 responses are evaluated and seen in the result swagger.yaml file
Additional context
Is 1 example per response is by design or it is unexpected behavior? What is the right approach for such cases? Make 1 big example with all possible params? The example above from real controller index action where you can both filter collection and receive full collection with no filters.
Dependency versions
The version of are you using for:
Rswag: 2.8.0
RSpec: 3.12
Rails: 6.1.7.6
Ruby: 3.1.4
Relates to which version of OAS (OpenAPI Specification)
OAS2
OAS3
OAS3.1
The text was updated successfully, but these errors were encountered:
Describe the bug
Examine the following code, I have 2 examples for 200 http response, I want both them to be included in result
swagger.yaml
and then to be seen in web interface provided by the gemHowever the second response gets evaluated only and overwrites the first one as they both return same http code.
Steps to Test or Reproduce
Expected behavior
2 responses are evaluated and seen in the result
swagger.yaml
fileAdditional context
Is 1 example per response is by design or it is unexpected behavior? What is the right approach for such cases? Make 1 big example with all possible params? The example above from real controller index action where you can both filter collection and receive full collection with no filters.
Dependency versions
The version of are you using for:
Relates to which version of OAS (OpenAPI Specification)
The text was updated successfully, but these errors were encountered: