Skip to content

feat: add PoC of handling discriminator for oneOf/anyOf cases in OpenAPI 3.1 #4952

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

Open
wants to merge 6 commits into
base: main
Choose a base branch
from

Conversation

glowcloud
Copy link
Contributor

No description provided.

@glowcloud glowcloud requested a review from char0n June 12, 2025 09:32
@glowcloud glowcloud self-assigned this Jun 12, 2025
@glowcloud glowcloud added enhancement New feature or request OpenAPI 3.1 labels Jun 12, 2025
}

// skip if neither oneOf nor anyOf is present
if (!isArrayElement(schemaElement.oneOf) && !isArrayElement(schemaElement.anyOf)) {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This might need to be removed when we'll be handling allOf case.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request OpenAPI 3.1
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant