Skip to content

Fix null literals in JSON and Object scalar lists - #211

Merged
andimarek merged 1 commit into
masterfrom
codex/fix-json-null-list-literals
Nov 3, 2026
Merged

andimarek merged 1 commit into
masterfrom
codex/fix-json-null-list-literals

Conversation

@andimarek

Copy link
Copy Markdown
Member

JSON and Object scalar literals such as [1, null, 2] currently throw an internal AssertException. Preserve null elements by handling NullValue directly in the shared literal parser, including nested lists and lists inside objects. Object fields now use the same null handling instead of a separate special case.

Add regression coverage for Object scalar AST parsing and complete GraphQL queries using the JSON scalar. Cover null-only and mixed lists, nested lists, lists inside objects, null object fields, top-level null, and JSON variables.

Validation:

  • Before the fix, nine regression cases reproduced the internal assertion failure.
  • ./gradlew clean build: all 1,130 tests passed on Java 25, with none skipped.
  • Ran the full compiled suite on Java 17 using a temporary Gradle init script: all 1,130 tests passed, with none skipped.

@andimarek
andimarek merged commit 5dc2bfe into master Nov 3, 2026
1 check 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