Skip to content

Commit

Permalink
examples not supported inside schema
Browse files Browse the repository at this point in the history
  • Loading branch information
Phil Sturgeon committed Oct 24, 2019
1 parent 5bd02e1 commit 6563fea
Showing 1 changed file with 0 additions and 26 deletions.
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:
zip-example:
$ref: '#/components/examples/zip-example'
```

In a response:

```yaml
Expand Down

0 comments on commit 6563fea

Please sign in to comment.