Skip to content

Conversation

karenetheridge
Copy link
Member

This is a port of the relevant bits in #4959.

  • Literal style names are now rendered in sans-serif as code

  • "primitive" is not rendered as code, as it refers to one of string, number, boolean or null, not a literal type name.

  • be explicit that the style table shows ALL valid combinations

  • no schema changes are needed for this pull request

- Literal style names are now rendered in sans-serif as code
- "primitive" is not rendered as code, as it refers to one of string,
number, boolean or null, not a literal type name.
@karenetheridge karenetheridge requested review from a team as code owners September 25, 2025 18:57
##### Style Values

In order to support common ways of serializing simple parameters, a set of `style` values are defined.
In order to support common ways of serializing simple parameters, a set of `style` values are defined. Combinations not represented in this table are not permitted.
Copy link
Contributor

Choose a reason for hiding this comment

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

That adds a MUST NOT requirement, which we cannot do in a patch release.

Copy link
Member Author

Choose a reason for hiding this comment

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

This requirement already existed; it is not adding a new one. It was just not mentioned here.

Copy link
Contributor

Choose a reason for hiding this comment

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

Where is it mentioned?

Copy link
Member Author

Choose a reason for hiding this comment

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

It's the table itself here that sets out the permitted combinations of styles and in. But this is the way it's been since at least 3.0, and the schemas also set out these restrictions (see the "styles-for-path", "styles-for-header" etc definitions) -- so I believe the very strong intent is that no other combinations are permitted.

Copy link
Member Author

Choose a reason for hiding this comment

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

The 3.2 spec contains this language and the same table of combinations of styles and in, and we did not change any aspect of this spec (other than adding in: querystring and style: cookie) in 3.2; the schemas are also identical between 3.1 and 3.2. If the restriction had been new in 3.2, it would have been a breaking change, which we do not do in minor releases.

So this is just a clarification, not a change.

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.

2 participants