Skip to content
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

Cast discriminator when no title present #574

Merged
merged 1 commit into from Nov 22, 2023

Conversation

albertored
Copy link
Contributor

When elements of a discriminator does not have a title property the cast fails. The mapping can indeed contain references so we can fallback to use them to retrieve the discriminator schema from ctx.schemas.

A part for variables renaming the main change is this

Copy link
Contributor

@zorbash zorbash left a comment

Choose a reason for hiding this comment

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

LGTM

@zorbash zorbash merged commit 531607c into open-api-spex:master Nov 22, 2023
12 checks passed
hou8 pushed a commit to hou8/open_api_spex that referenced this pull request Apr 18, 2024
Co-authored-by: Alberto Sartori <alberto.sartori@hpe.com>
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.

None yet

2 participants