Skip to content

Commit

Permalink
Define a quoting rule for yaml examples OAI#1720.
Browse files Browse the repository at this point in the history
## This PR

Define a quoting rules for yaml examples.
  • Loading branch information
ioggstream authored Dec 21, 2018
1 parent 50c1525 commit e62dca1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions versions/3.0.2.md
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,8 @@ In order to preserve the ability to round-trip between YAML and JSON formats, YA

- Tags MUST be limited to those allowed by the [JSON Schema ruleset](http://www.yaml.org/spec/1.2/spec.html#id2803231).
- Keys used in YAML maps MUST be limited to a scalar string, as defined by the [YAML Failsafe schema ruleset](http://yaml.org/spec/1.2/spec.html#id2802346).
- strings MUST contain no quoting unless necessary and default to double quote unless single quote is necessary.


**Note:** While APIs may be defined by OpenAPI documents in either YAML or JSON format, the API request and response bodies and other content are not required to be JSON or YAML.

Expand Down

0 comments on commit e62dca1

Please sign in to comment.