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: incorrect output of Record with numeric key #1321

Merged
merged 1 commit into from Jul 31, 2022

Conversation

baggoedw
Copy link
Contributor

@baggoedw baggoedw commented Jul 4, 2022

As highlighted in the following issue: #1262

A Record with a numeric key is incorrectly outputted as an array instead of an object.

To fix this, I'm proposing we check the id of the constraintType. If that is a number, then we can safely assume it's an array. When it is an object, the id contains an alias.

@domoritz domoritz enabled auto-merge (squash) July 31, 2022 13:34
@domoritz domoritz merged commit cce5e89 into vega:next Jul 31, 2022
@baggoedw baggoedw deleted the fix/record-numeric-key branch August 1, 2022 08:23
@github-actions
Copy link

🚀 PR was released in v1.1.0 🚀

@github-actions github-actions bot added released This issue/pull request has been released. and removed prerelease labels Sep 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
released This issue/pull request has been released.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants