bee-travels/openapi-comment-parser

param examples have no effect on UI

bourdakos1 opened this issue · 0 comments

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