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

fix: use anyOf instead of oneOf for better IDE compatibility #255

Merged
merged 1 commit into from
Jan 29, 2025

Conversation

Vampire
Copy link
Collaborator

@Vampire Vampire commented Jan 29, 2025

No description provided.

Copy link
Collaborator Author

Vampire commented Jan 29, 2025

This stack of pull requests is managed by Graphite. Learn more about stacking.

@Vampire
Copy link
Collaborator Author

Vampire commented Jan 29, 2025

It's probably also more performant in all validators, as it can stop parsing once it found a matching option and does not have to check whether another option is matching.

@Vampire
Copy link
Collaborator Author

Vampire commented Jan 29, 2025

@krzema12 krzema12 changed the title fix: Use anyOf instead of oneOf for better IDE compatibility fix: use anyOf instead of oneOf for better IDE compatibility Jan 29, 2025
@krzema12 krzema12 merged commit 21d4eee into main Jan 29, 2025
5 checks passed
@krzema12 krzema12 deleted the vampire/oneOf-to-anyOf branch January 29, 2025 15:11
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.

2 participants