Skip to content

fix: fully unwrap union aliases in mapped keys to avoid generating incorrect additionalProperties #2232

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

Merged

Conversation

alexchexes
Copy link
Contributor

@alexchexes alexchexes commented Apr 14, 2025

Closes #2231

Version

Published prerelease version: v2.4.1-next.1

Changelog

🎉 This release contains work from a new contributor! 🎉

Thank you, Alex (@alexchexes), for all your work!

🐛 Bug Fix

  • fix: fully unwrap union aliases in mapped keys to avoid generating incorrect additionalProperties #2232 (@alexchexes)
  • fix: avoid incorrect additionalProperties for Pick<..., AliasLiteralUnion> #2230 (@alexchexes)

🔩 Dependency Updates

Authors: 2

Copy link
Collaborator

@arthurfiorette arthurfiorette left a comment

Choose a reason for hiding this comment

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

LGTM

@arthurfiorette arthurfiorette self-assigned this May 16, 2025
@arthurfiorette
Copy link
Collaborator

Tested it locally and also worked as expected. Thanks!

@arthurfiorette arthurfiorette merged commit 8c44ddf into vega:next May 16, 2025
3 of 4 checks passed
Copy link

🚀 PR was released in v2.4.1-next.1 🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Pick with union of unions of literals generates wrong additionalProperties.
3 participants