stoplightio / elements

Build beautiful, interactive API Docs with embeddable React or Web Components, powered by OpenAPI and Markdown.

Home Page:https://stoplight.io/open-source/elements/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Add an ability to choose string typed example query params from dropdown or autocomplete

diego351 opened this issue · comments

For now the request form only suggests string examples like this(unless they are defined enums):

image

date_min and date_max params are strings with valid string examples

I would like to have an option to choose examples from dropdown as in swagger-ui, as an autocomplete, with an option to customise the string before sending request.

Possible solution

Dropdown similar to what enum currently offers, but with examples as list items, choosing example should replace currently typed in value in console