swagger-ui icon indicating copy to clipboard operation
swagger-ui copied to clipboard

Display example values for form fields

Open ZuzKay opened this issue 2 years ago • 1 comments

Hi, I'd like to request a way to display example values of form fields, i.e. multipart-form or x-www-form-urlencoded requests.

Currently, when I define an example value for a form field, it is not displayed by default. Only when I click "Try it out".

Definition:

image

Default view:

image

Try it out view:

image

For better readability and scannability, it would be useful to always display examples, maybe in a similar way that it's done for headers.

image

Thanks!

ZuzKay avatar Jun 29 '22 11:06 ZuzKay

@ZuzKay fyi, I transferred this issue from SwaggerEditor to SwaggerUI, and labeled as a feature request

tim-lai avatar Jul 06 '22 16:07 tim-lai