GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Allow empty unions to be completed by extensions by andimarek · Pull Request #4388 · graphql-java/graphql-java

Conversation

@andimarek

@andimarek andimarek commented May 19, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Member

Summary

  • Allow SDL union definitions with no base members when union extensions provide members
  • Keep truly empty unions invalid, including directive-only extensions
  • Validate union extension members against the previous effective union so duplicates across the base definition or earlier extensions are rejected
  • Add regression coverage for Empty union base definitions rejected before extensions are merged (spec violation) #4200 and additional draft-spec union extension cases

Fixes #4200

Testing

  • ./gradlew test --tests graphql.schema.idl.SchemaGeneratorTest --tests graphql.schema.idl.SchemaTypeCheckerTest

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@github-actions

github-actions Bot commented May 19, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor

Test Report

Test Results

Java Version Total Passed Failed Errors Skipped
Java 11 5831 (+5 🟢) 5775 (+5 🟢) 0 (±0) 0 (±0) 56 (±0)
Java 17 5831 (+5 🟢) 5774 (+5 🟢) 0 (±0) 0 (±0) 57 (±0)
Java 21 5831 (+5 🟢) 5774 (+5 🟢) 0 (±0) 0 (±0) 57 (±0)
Java 25 5831 (+5 🟢) 5774 (+5 🟢) 0 (±0) 0 (±0) 57 (±0)
jcstress 32 (±0) 32 (±0) 0 (±0) 0 (±0) 0 (±0)
Total 23356 (+20 🟢) 23129 (+20 🟢) 0 (±0) 0 (±0) 227 (±0)

Code Coverage (Java 25)

Metric Covered Missed Coverage vs Master
Lines 29580 3131 90.4% ±0.0%
Branches 8679 1533 85.0% ±0.0%
Methods 7905 1210 86.7% ±0.0%

Changed Class Coverage (2 classes)

Class Line Branch Method
g.s.i.SchemaTypeExtensionsChecker +0.5% 🟢 ±0.0% +1.9% 🟢
g.s.i.UnionTypesChecker ±0.0% +7.1% 🟢 ±0.0%

Full HTML report: build artifact jacoco-html-report

Updated: 2026-05-20 00:51:11 UTC

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@andimarek
Allow empty unions to be completed by extensions
da15585
@andimarek
andimarek force-pushed the test-4200-empty-union-base branch from d585e69 to da15585 Compare May 20, 2026 00:41
@andimarek
andimarek merged commit a53a129 into master May 20, 2026
11 checks passed

Uh oh!

There was an error while loading. Please reload this page.

@andimarek andimarek mentioned this pull request May 20, 2026
Empty union base definitions rejected before extensions are merged (spec violation) #4200
Closed
@andimarek andimarek mentioned this pull request Aug 20, 2026
Backport 26.1: Allow empty unions to be completed by extensions #4447
Merged
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Empty union base definitions rejected before extensions are merged (spec violation)

Uh oh!

There was an error while loading. Please reload this page.

1 participant

@andimarek
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.
You are visitor 01402520 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.