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

The examples keyword is not supported inside schema #2042

Merged
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 0 additions & 26 deletions versions/3.0.3.md
Original file line number Diff line number Diff line change
Expand Up @@ -1929,18 +1929,6 @@ validate compatibility automatically, and reject the example value(s) if incompa

##### Example Object Examples

In a model:

```yaml
schemas:
properties:
name:
type: string
examples:
name:
$ref: http://example.org/petapi-examples/openapi.json#/components/examples/name-example
```

In a request body:

```yaml
Expand Down Expand Up @@ -1968,20 +1956,6 @@ requestBody:
externalValue: 'http://foo.bar/examples/address-example.txt'
```

In a parameter:

```yaml
parameters:
- name: 'zipCode'
in: 'query'
schema:
type: 'string'
format: 'zip-code'
examples:
philsturgeon marked this conversation as resolved.
Show resolved Hide resolved
zip-example:
$ref: '#/components/examples/zip-example'
```

In a response:

```yaml
Expand Down