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

[297]Remove implicit mapping when an explicit is present in the spec #298

Merged
merged 2 commits into from
Mar 31, 2022

Conversation

JanC
Copy link
Contributor

@JanC JanC commented Jan 27, 2022

As explained in #297, this PR removes the implicit case when an explicit mapping is present in a discriminator

fixes #297

@JanC
Copy link
Contributor Author

JanC commented Mar 28, 2022

hey @yonaskolb do you think this will be merged?

Copy link
Owner

@yonaskolb yonaskolb left a comment

Choose a reason for hiding this comment

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

Happy to accept this with a changelog entry

@JanC
Copy link
Contributor Author

JanC commented Mar 31, 2022

done 🎉

@yonaskolb yonaskolb merged commit 6e0f18c into yonaskolb:master Mar 31, 2022
@@ -9,6 +9,7 @@

### Fixed
- Fixed compilation with Xcode 13 #282 @sroebert
- Fixed duplicated switch cases when using explicit mappings in oneOf discriminator #297 @JanC
Copy link
Owner

@yonaskolb yonaskolb Mar 31, 2022

Choose a reason for hiding this comment

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

Oh, wrong version. I'll move up in master

Copy link
Owner

Choose a reason for hiding this comment

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

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thank you!

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.

Too many cases generated when oneOf discriminator has explicit mappings
2 participants