| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
* init * improve spec alignment * Avoid unnecessary circular default validation work --------- Co-authored-by: Andreas Marek <andimarek@fastmail.fm>
Test ReportTest Results
|
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
Backport of #4253 to the 26.x maintenance branch.
Input object fields can define default values in ways that form cycles. For example:
The defaults form an infinitely expanding value. This PR implements the specification InputObjectDefaultValueHasCycle validation so these schemas are rejected during schema validation instead of overflowing while defaults are coerced.
Implementation notes:
This behavior matches the GraphQL specification and graphql-js v17 implementation: