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
/api/resource/User:
get:
tags:
- usersummary: "Get All Users"description: "Retrieve a list of all User records."parameters:
- name: fieldsin: querydescription: "Comma-separated list of fields to include in the response."schema:
type: stringexamples:
- 'field'
Describe the bug you're encountering
Swagger UI doesn't use example or parameter when using the examples key (as an array). I got it to work using the deprecated example
To reproduce...
Steps to reproduce the behavior:
write a sample swagger yaml in swagger editor
add a path and add a param field.
add example example to the properties and you can see the example value.
replace with examples as an array and you'd lose the example value
Expected behavior
should be able to render the example vaue when using examples
Screenshots
Additional context or thoughts
Willing to attempt fixing this - if it gets approved to be a bug
The text was updated successfully, but these errors were encountered:
Q&A (please complete the following information)
Content & configuration
Example Swagger/OpenAPI definition:
Describe the bug you're encountering
Swagger UI doesn't use example or parameter when using the examples key (as an array). I got it to work using the deprecated example
To reproduce...
Steps to reproduce the behavior:
example
to the properties and you can see the example value.Expected behavior
should be able to render the example vaue when using examples
Screenshots
Additional context or thoughts
Willing to attempt fixing this - if it gets approved to be a bug
The text was updated successfully, but these errors were encountered: