-
Notifications
You must be signed in to change notification settings - Fork 9.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Documentation for OpenAPI's Header Object should be verbose #1965
Comments
Probably a better way to solve this problem would be by looking at the schema (although it is currently in need of some help, or at least our schema publishing process is). But that's a place for explicit enumeration, while the spec is more for human readability. |
@OAI/tsc review request: do we want to repeat things in the Header Object section or leave it as-is? |
Let's spell out explicitly which fixed fields a Header Object has, instead of requiring every reader to do the mental excercise:
This already rules out half of the fixed fields of a parameter object, as our favorite In recent Moonwalk discussions we figured out that headers and parameters are quite different beasts shaped by different boundary conditions, and these significant differences confirm our finding. |
TDC decision to add a fixed fields table to make it clear which fields a header object has. Also valuable to call out where header fields are different than parameter fields. |
PR merged for 3.0.4 and ported to 3.1.1 via PR #3921! |
Context: I'm implementing support for
examples
in an OpenAPI tool.I have a pretty good working knowledge of the Specification, but to make sure I didn't miss anything, I Cmd+F'd the 3.0.2 document for
examples
. and took note of which objects mention it. I missed Header Object in my list, because it only mentions that it derives itself from the Parameter Object, lacking a full documentation block that enumerates the keys that it supports.I only noticed this because I was looking up Header Object specifically, for an unrelated task.
The text was updated successfully, but these errors were encountered: