OpenAPI-Specification icon indicating copy to clipboard operation
OpenAPI-Specification copied to clipboard

v3.2: Explain Param/Header/Enc example serialization

Open handrews opened this issue 8 months ago • 2 comments

NOTE: This is another PR split out from PR #4647, and makes significant changes to the style serialization for headers compared to that PR, and clarifies the other policies that already existed in PR #4647. This should be more consistent than what was there before, as I commented in the last call when I was unsure of header serialization.

The rules for this have not been clear, and are not always intuitive. This states and explains them directly and ensures that the Style Examples table matches the rules.

  • [ ] schema changes are included in this pull request
  • [ ] schema changes are needed for this pull request but not done yet
  • [X] no schema changes are needed for this pull request

handrews avatar Jun 09 '25 18:06 handrews

I have added updates to the Parameter and Header Object examples, as they fit here (and unlike with the Example Object, do not cause the diff to become unreadable).

If you would like more examples added, please help get this PR merged and then feel free to open further PRs. There are endless things we could add and I would like to get the existing things updated first.

handrews avatar Jun 10 '25 03:06 handrews

I have also added a more complex header example, which @karenetheridge I think addresses your concern in this area.

handrews avatar Jun 10 '25 18:06 handrews

Between the ongoing debate over serializedValue in the Example Object and the discussions here, I'm re-thinking how to explain this better. Putting this in draft for now- I might revive it or close it in favor of new PRs.

handrews avatar Jul 05 '25 18:07 handrews

Closing in favor of #4800 and #4801.

handrews avatar Jul 18 '25 21:07 handrews