Skip to content

Fix oneOf + required rendering issues - #692

Merged
PatStLouis merged 2 commits into
w3c:mainfrom
eric-schuh:fix_oneof_required_rendering_issues
Sep 1, 2026
Merged

Fix oneOf + required rendering issues#692
PatStLouis merged 2 commits into
w3c:mainfrom
eric-schuh:fix_oneof_required_rendering_issues

Conversation

@eric-schuh

@eric-schuh eric-schuh commented Aug 4, 2026

Copy link
Copy Markdown
Collaborator

This PR attempts to address #605 which details how OAS components that make use of both oneOf and required were not being rendered correctly.

To fix, the oas.yaml was updated for the IssueRequests and OpenIDClientProfile components were updated to match the pattern of oneOf+required found in the ExchangeParticipationClientMessage component. I don't believe that these changes modify the underlying meaning of the OAS for these components but I would be nice to have that double checked.

As part of this the IssueRequests:credentialTemplateIndex property was updated from the type: "number" to type: "string". This was primarily because I could not find any other instance of type: "number" being used. If we want to keep this as type: "number" a respec-oas update will be needed as currently it has no case handling for "number" types.

To fix this in other ways, changes to respec-oas will be needed. Currently this PR is not dependent on any respec-oas changes.

… with required in the same pattern as ExchangeParticipationClientMessage to resolve rendering issues without respec-oas update
@PatStLouis

Copy link
Copy Markdown
Collaborator

discussed: we should favor the OAS accuracy, rendered OAS comes second. Lets review the semantics of the data models to ensure they are representative of the expected request/response bodies.

@TallTed TallTed left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

lgtm

@kezike

kezike commented Aug 25, 2026

Copy link
Copy Markdown
Collaborator

@eric-schuh Does PR #706 obviate this PR (you mentioned that it overrides PR #691, but not sure if it does the same for this PR)?

@PatStLouis

Copy link
Copy Markdown
Collaborator

discussed: Merge this as is and then review the spec holistically for pattern alignment based on the following observation

Investigate the possible duplication related to oneOf object nesting. @dlongley suggested expressing which properties are acceptable by referencing the property name under oneOf and hope no 2 configuration share the same properties as required

@PatStLouis
PatStLouis merged commit d483739 into w3c:main Sep 1, 2026
3 checks passed
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.

4 participants