Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

param examples have no effect on UI #12

Open
bourdakos1 opened this issue Jun 19, 2020 · 0 comments
Open

param examples have no effect on UI #12

bourdakos1 opened this issue Jun 19, 2020 · 0 comments

Comments

@bourdakos1
Copy link
Member

If a param has an example, the UI should use the example as the placeholder for the text input and render an example in the params table.

Example:

components:
  schemas:
    CurrencyCode:
      type: string
      example: USD
/**
 * GET /currency/{code}
 * @pathParam {CurrencyCode} code - A three letter currency code.
 * @response 200 - OK
 */

should render:

Path Params
code string[] - REQUIRED
A three letter currency code.
Example: USD

with a try it out example:
code

USD
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant