GeezerVison is showing github.com — Fix input cycle validation for non-null lists by andimarek · Pull Request #4386 · graphql-java/graphql-java
Conversation
Summary
Verification
- Confirmed the new regression test fails on current master with:
[self!] forms an unsatisfiable cycle
- ./gradlew test --tests graphql.schema.validation.NoUnbrokenInputCyclesTest
- ./gradlew test --tests 'graphql.schema.validation.*'
Fixes #4214
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
RafeArnold reacted with heart emoji
Test Report
Test Results
| Java Version |
Total |
Passed |
Failed |
Errors |
Skipped |
| Java 11 |
5828 (+2 🟢) |
5772 (+2 🟢) |
0 (±0) |
0 (±0) |
56 (±0) |
| Java 17 |
5828 (+2 🟢) |
5771 (+2 🟢) |
0 (±0) |
0 (±0) |
57 (±0) |
| Java 21 |
5828 (+2 🟢) |
5771 (+2 🟢) |
0 (±0) |
0 (±0) |
57 (±0) |
| Java 25 |
5828 (+2 🟢) |
5771 (+2 🟢) |
0 (±0) |
0 (±0) |
57 (±0) |
| jcstress |
32 (±0) |
32 (±0) |
0 (±0) |
0 (±0) |
0 (±0) |
| Total |
23344 (+8 🟢) |
23117 (+8 🟢) |
0 (±0) |
0 (±0) |
227 (±0) |
Code Coverage (Java 25)
| Metric |
Covered |
Missed |
Coverage |
vs Master |
| Lines |
29551 |
3130 |
90.4% |
±0.0% |
| Branches |
8669 |
1533 |
85.0% |
±0.0% |
| Methods |
7892 |
1210 |
86.7% |
±0.0% |
Changed Class Coverage (1 class)
| Class |
Line |
Branch |
Method |
| g.s.v.NoUnbrokenInputCycles |
+2.6% 🟢 |
+4.4% 🟢 |
±0.0% |
Full HTML report: build artifact jacoco-html-report
Updated: 2026-05-20 00:55:07 UTC
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
|
Double-checked against the current GraphQL draft spec. Example 83 is exactly the case covered by this PR:
input Example { self: [Example!]! value: String }
The spec says this circular reference is valid because self may be an empty list, and the Input Object type validation rule says a recursive chain is valid when at least one field in the chain is nullable or a List type.
Spec reference: https://spec.graphql.org/draft/#sec-Input-Objects.Circular-References
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Assignees
No one assigned
Milestone
No milestone
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.