Skip to content

Conversation

handrews
Copy link
Member

@handrews handrews commented May 13, 2025

IIRC, we discussed a while ago that we don't need both JSON and YAML examples. And there are many examples now that are only shown in YAML. This standardizes on YAML for all OAD examples. In addition to cutting down on the ever-growing length of the spec, I find this more readable when there are a bunch of examples in a row, as you're not constantly skipping over duplicates.

We still use JSON for example payloads, and there is one example in Appendix F that discusses retrieving OADs by content type, so those continue to show JSON.

Also standardize on lowercase language names for fenced code blocks, as that was more common (I think the uppercase ones were mostly added by me).

  • no schema changes are needed for this pull request

We still use JSON for example payloads, and there is one example
in Appendix F that discusses retrieving OADs by content type,
so those continue to show JSON.

Also standardize on lowercase language names for fenced code
blocks, as that was more common (I think the uppercase ones
were mostly added by me).
@handrews handrews added this to the v3.2.0 milestone May 13, 2025
@handrews handrews requested review from a team as code owners May 13, 2025 23:23
@handrews handrews added the editorial Wording and stylistic issues label May 13, 2025
Copy link
Contributor

@ralfhandl ralfhandl left a comment

Choose a reason for hiding this comment

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

we don't need both JSON and YAML examples

Correct, the same example in both JSON and YAML is redundant.

However I'd like to have some examples in JSON only, and some in YAML only, to avoid the impression that YAML is preferred or even mandatory.

@ralfhandl ralfhandl requested a review from a team May 15, 2025 06:41
@handrews
Copy link
Member Author

@ralfhandl that's not what I recall being discussed, and it would be work that I don't really have bandwidth for to figure out which should be which and go back and change it. I also just disagree in general- people can figure out JSON from YAML and JSON wastes space. Also, Appendix F does show both and discusses retrieval strategies for supporting both media types.

@ralfhandl ralfhandl requested a review from a team May 15, 2025 14:50
@handrews
Copy link
Member Author

handrews commented May 15, 2025

@ralfhandl if later on you want to switch some to JSON to balance it out, I definitely will not object. But I appreciate being able to reduce the duplication for now as a first step. Thank you for the approval! 🙏

Copy link
Contributor

@mikekistler mikekistler left a comment

Choose a reason for hiding this comment

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

Looks good! 👍

@handrews handrews merged commit f855d47 into OAI:v3.2-dev May 15, 2025
2 checks passed
@handrews handrews deleted the nojson branch June 19, 2025 17:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

editorial Wording and stylistic issues

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants