Openapi 2.0
OpenAPI/Swagger 2.0 example
, . description
. , Swagger UI v2, v3. 12+ Dredd, x-example
:
parameters:
- name: address
in: query
description: Address to be foobared. Example: '123, FakeStreet'. # <-----
required: true
type: string
x-example: 123, FakeStreet # <-----
OpenAPI 3.0
OpenAPI 3.0:
parameters:
- name: address
in: query
description: Address to be foobared
required: true
schema:
type: string
example: 123, FakeStreet # <----
example: 456, AnotherStreet # Overrides schema-level example