Skip to content

v3.2: Strengthen generic data types to a SHOULD - #4657

Merged
miqui merged 1 commit into
OAI:v3.2-devfrom
handrews:generics
Jun 14, 2025
Merged

v3.2: Strengthen generic data types to a SHOULD#4657
miqui merged 1 commit into
OAI:v3.2-devfrom
handrews:generics

Conversation

@handrews

@handrewshandrews commented Jun 5, 2025

Copy link
Copy Markdown
Member

I thought I had already done this one-word change but I guess I forgot!

This was added as a MAY in 3.1.1 but we can make it a SHOULD in 3.2.

I'd love to make it a MUST but there might be scenarios where it is not feasible, or where alternate interpretations are valid. For example, the OAS schema and the JSON Schema metaschema use $dynamicRef, but to support a recursive data structure rather than a generic one.

This is the minimum change to more strongly encourage support for this much-demanded feature (it closed 5 separate issues when we added it) that currently is one of the least-supported JSON Schema keywords despite high demand.

  • no schema changes are needed for this pull request

This was added as a MAY in 3.1.1 but we can make it a SHOULD in 3.2.
@handrewshandrews added this to the v3.2.0 milestone Jun 5, 2025
@handrews
handrews requested review from a team as code ownersJune 5, 2025 19:07
@ralfhandl
ralfhandl requested a review from a teamJune 6, 2025 10:10
@handrews
handrews marked this pull request as draft June 14, 2025 17:30
@handrews
handrews marked this pull request as ready for review June 14, 2025 17:31
@miqui
miqui merged commit bbea8ff into OAI:v3.2-devJun 14, 2025
@handrews
handrews deleted the generics branch June 19, 2025 17:08
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants

@handrews@karenetheridge@ralfhandl@miqui