Skip to content

Address issue in marshalling of non-object keys - #2116

Merged
anderseknert merged 1 commit into
open-policy-agent:mainfrom
charlieegan3:eval-selection-round-trip
Oct 6, 2026
Merged

anderseknert merged 1 commit into
open-policy-agent:mainfrom
charlieegan3:eval-selection-round-trip

Conversation

@charlieegan3

@charlieegan3 charlieegan3 commented Oct 5, 2026 •

Copy link
Copy Markdown
Contributor

follows
#2104 (comment)

but #2118 addresses original issue. This is just an extra fix.

@anderseknert

Copy link
Copy Markdown
Member

I think this was fixed as part of the JSON v2 PR. Sorry, had missed that you fixed it too 😅 Do you think main is good as is now?

@charlieegan3
charlieegan3 force-pushed the eval-selection-round-trip branch from 1483f65 to 9aeaae9 Compare October 6, 2026 14:32
Evaluating a query like `{1: "a"}` in the language server failed.
The encoder wrote number, bool and similar keys as raw JSON values,
not as strings, and dropped the member value. Those keys now use their
string form, like other non-string keys.

Signed-off-by: Charlie Egan <charlie_egan@apple.com>
@charlieegan3
charlieegan3 force-pushed the eval-selection-round-trip branch from 9aeaae9 to 840ba8e Compare October 6, 2026 14:42
@charlieegan3 charlieegan3 changed the title Return ast values from evaluation Address issue in marshalling of non-object keys Oct 6, 2026
@charlieegan3

Copy link
Copy Markdown
Contributor Author

Have updated the PR description, as there is still an issue non obj keys.

@charlieegan3

Copy link
Copy Markdown
Contributor Author

But removed the rest

@anderseknert anderseknert left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Good fix!

@anderseknert
anderseknert added this pull request to the merge queue Oct 6, 2026
Merged via the queue into open-policy-agent:main with commit 4813a37 Oct 6, 2026
6 checks passed
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