Skip to content

Commit 6370475

Browse files
committed
Change example back
This is at the Media Type Object level, and JSON examples are to be written as inline JSON/YAML. If we were at the Parameter Object level, we would use the URI percent-encoded string form, but the example field is not allowed with the content field.
1 parent 634855e commit 6370475

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/oas.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1112,9 +1112,10 @@ content:
11121112
# Allow an arbitrary JSON object to keep
11131113
# the example simple
11141114
type: object
1115-
example:
1116-
# Shown with whitespace minimized
1117-
'{"numbers":[1,2],"flag":null}'
1115+
example: {
1116+
"numbers": [1, 2],
1117+
"flag": null
1118+
}
11181119
```
11191120

11201121
Assuming a path of `/foo`, a server of `https://example.com`, the full URL incorporating the value from the `example` field (with whitespace minimized) would be:

0 commit comments

Comments
 (0)