-
Notifications
You must be signed in to change notification settings - Fork 315
Closed
Description
The support for query string examples introduced in 9f2fa93 as a fix to #269 seems to use the value of the examples, rather than the name (if they have one, e.g. when using examples instead of example).
For instance, say I have this parameter:
parameters:
- name: q
in: query
description: A search query to filter the returned items
schema:
type: string
examples:
'Filter by prefix':
value:
prefix:foobar
'Limit number of returned items':
value:
limit:20And here's what I'd expect to see instead:

(Especially since the content of the example is already shown in the text box, so it's just redundant to show it also in the link label.)
I realize that the examples added in 9f2fa93 use generic names like example1, example2, etc., but since the examples field of OpenAPI parameter objects contains a map, where the keys can be arbitrary strings, it would make sense to assume the names are semantically valid.
Metadata
Metadata
Assignees
Labels
No labels
