Repository navigation
Commit f740eb7
committed
Fix #4200: Allow empty union base definitions when extensions add members
The GraphQL spec grammar makes UnionMemberTypes optional in a
UnionTypeDefinition, allowing patterns like:
union Pet
extend union Pet = Cat | Dog
Previously, the UnionTypesChecker rejected empty base definitions before
considering extensions. Now it checks for extensions with member types
before reporting an error.
https://claude.ai/code/session_01JBZ9kgZK35T4G7aPiaymV71 parent 121e207 commit f740eb7
2 files changed
Lines changed: 35 additions & 3 deletions
File tree
- src
- main/java/graphql/schema/idl
- test/groovy/graphql/schema/idl
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
48 | 53 | | |
49 | 54 | | |
50 | 55 | | |
| |||
66 | 71 | | |
67 | 72 | | |
68 | 73 | | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
69 | 82 | | |
70 | 83 | | |
71 | 84 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1787 | 1787 | | |
1788 | 1788 | | |
1789 | 1789 | | |
| 1790 | + | |
| 1791 | + | |
| 1792 | + | |
| 1793 | + | |
| 1794 | + | |
| 1795 | + | |
| 1796 | + | |
| 1797 | + | |
| 1798 | + | |
| 1799 | + | |
| 1800 | + | |
| 1801 | + | |
| 1802 | + | |
| 1803 | + | |
| 1804 | + | |
| 1805 | + | |
| 1806 | + | |
| 1807 | + | |
| 1808 | + | |
1790 | 1809 | | |
1791 | 1810 | | |
1792 | 1811 | | |
1793 | 1812 | | |
1794 | | - | |
| 1813 | + | |
1795 | 1814 | | |
1796 | | - | |
| 1815 | + | |
1797 | 1816 | | |
1798 | | - | |
| 1817 | + | |
1799 | 1818 | | |
1800 | 1819 | | |
1801 | 1820 | | |
| |||
0 commit comments