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
As stated in documentation here https://swagger.io/docs/specification/adding-examples/
In OpenApi 3.0 swagger supports multiple examples in requestbody. However, on swagger hub this is not the case. I have replicated the example provided in the documentation. It appears that examples in the request body are not taken into consideration when rendering the UI
Demonstration API definition
As stated in documentation here https://swagger.io/docs/specification/adding-examples/
In OpenApi 3.0 swagger supports multiple examples in requestbody. However, on swagger hub this is not the case. I have replicated the example provided in the documentation. It appears that examples in the request body are not taken into consideration when rendering the UI
I have created an example api using the yaml code from the documentation above.
Please see: https://app.swaggerhub.com/apis/SoftInc/kkk/1.0.0
YAML
Current Behavior
The code above includes two examples of the user Jessica and Ron
When the above request is rendered on the UI it's displayed as below.
Expected Behavior
Based on the open 3.0 documentation link provided. The expected results should be (multiple examples):
Context
I want to use multiple examples in a response array to show all the possible errors that can be returned from the end point.
The text was updated successfully, but these errors were encountered: