Skip to content

v3.3: cleanup: removed json-style format from yaml examples#5301

Open
karenetheridge wants to merge 1 commit intoOAI:v3.3-devfrom
karenetheridge:ether/v3.3-remove-json-markup
Open

v3.3: cleanup: removed json-style format from yaml examples#5301
karenetheridge wants to merge 1 commit intoOAI:v3.3-devfrom
karenetheridge:ether/v3.3-remove-json-markup

Conversation

@karenetheridge
Copy link
Copy Markdown
Member

...and fixed a deprecated "value" in an example

  • no schema changes are needed for this pull request

...and fixed a deprecated "value" in an example
@karenetheridge karenetheridge requested review from a team as code owners April 23, 2026 00:06
@karenetheridge karenetheridge changed the title cleanup: removed json-style format from yaml examples v3.3: cleanup: removed json-style format from yaml examples Apr 23, 2026
@handrews
Copy link
Copy Markdown
Member

I did all of that on purpose. I'm not going to fight over it, but it was intentional to make it feel more JSON-like for JSON examples.

Comment thread src/oas.md
petType: Cat
color: White
gender: male
breed: Persian
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The immediately preceding text no longer makes sense...

Alternatively, since all JSON is valid YAML, the example value can use JSON syntax within a YAML document

... since the example value now does not use JSON syntax

Comment thread src/oas.md
"title": "An Older Book",
"rating": 4.5
}
serializedValue: {"author":"A. Writer","title":"An Older Book","rating":4.5}
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this changes serializedValue from a string to a json object, does not look correct

@notEthan
Copy link
Copy Markdown
Contributor

It's not touched by this PR, but related - I notice that https://spec.openapis.org/oas/v3.2.0.html#json-examples says "When writing in YAML, JSON syntax can be used for dataValue (as shown in the noRating example)" but then the dataValue for noRating does not use JSON syntax.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants