René's URL Explorer Experiment


Title: Skip OneOf input validation walk when no @oneOf type is reachable by joshgord · Pull Request #4516 · graphql-java/graphql-java · GitHub

Open Graph Title: Skip OneOf input validation walk when no @oneOf type is reachable by joshgord · Pull Request #4516 · graphql-java/graphql-java

X Title: Skip OneOf input validation walk when no @oneOf type is reachable by joshgord · Pull Request #4516 · graphql-java/graphql-java

Description: ValuesResolverOneOfValidation recursively inspects coerced input values even when their types cannot reach an @oneOf input object. Schema-aware argument and variable coercion can skip that dedicated walk for those types. The schema now owns an immutable reachability map, computed during schema construction. Reverse traversal from OneOf types handles recursive input graphs and unresolved type references. Type-changing builds recompute the map; transformWithoutTypes shares it. Both the standard builder and FastBuilder are covered. There is no JVM-wide cache that retains discarded schema types. Existing resolver signatures remain available. Schema-less calls and detached input types retain the original validation walk. Code registry field visibility and the existing OneOf error behavior remain unchanged. The JMH benchmark separates cached-document execution, direct variable coercion, and schema construction. Its parameters select absent, unrelated, or reachable OneOf types and recursive input graphs of depth 1 or 8.

Open Graph Description: ValuesResolverOneOfValidation recursively inspects coerced input values even when their types cannot reach an @oneOf input object. Schema-aware argument and variable coercion can skip that dedicate...

X Description: ValuesResolverOneOfValidation recursively inspects coerced input values even when their types cannot reach an @oneOf input object. Schema-aware argument and variable coercion can skip that dedicate...

Opengraph URL: https://github.com/graphql-java/graphql-java/pull/4516

X: @github

direct link

Domain: github.com

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:7cacc285-1a76-176f-675d-2fe9949c4c57
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idC500:1F2F:6616FD:88038C:6B018ADE
html-safe-nonce8475703ae07bc7ab6db0332a950e56c8fef47ca0bf84ff76348e1509cb93109e
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDNTAwOjFGMkY6NjYxNkZEOjg4MDM4Qzo2QjAxOEFERSIsInZpc2l0b3JfaWQiOiI0OTU2NzMyMjg5NjQ1MTIwMjIyIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmac606763354edf8e6164f7eee219c0ce24eaefe0f4be1e19bc59bfe2d7224e4b98
hovercard-subject-tagpull_request:5040310112
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///pull_requests/show/files
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/graphql-java/graphql-java/pull/4516/files
twitter:imagehttps://avatars.githubusercontent.com/u/52458?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/52458?s=400&v=4
og:image:altValuesResolverOneOfValidation recursively inspects coerced input values even when their types cannot reach an @oneOf input object. Schema-aware argument and variable coercion can skip that dedicate...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
Nonecc5dfdd32f62ebd3223cab3af3aa2b268d3605218237326a48a99d1efd89495c
turbo-cache-controlno-preview
diff-viewunified
go-importgithub.com/graphql-java/graphql-java git https://github.com/graphql-java/graphql-java.git
octolytics-dimension-user_id14289921
octolytics-dimension-user_logingraphql-java
octolytics-dimension-repository_id38602457
octolytics-dimension-repository_nwographql-java/graphql-java
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id38602457
octolytics-dimension-repository_network_root_nwographql-java/graphql-java
turbo-body-classeslogged-out env-production page-responsive full-width
disable-turbotrue
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release8c77c9e8439031ad54c75a250694842892f693e1
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/graphql-java/graphql-java/pull/4516/files#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgraphql-java%2Fgraphql-java%2Fpull%2F4516%2Ffiles
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgraphql-java%2Fgraphql-java%2Fpull%2F4516%2Ffiles
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=graphql-java%2Fgraphql-java
Reloadhttps://github.com/graphql-java/graphql-java/pull/4516/files
Reloadhttps://github.com/graphql-java/graphql-java/pull/4516/files
Reloadhttps://github.com/graphql-java/graphql-java/pull/4516/files
graphql-javahttps://github.com/graphql-java
graphql-javahttps://github.com/graphql-java/graphql-java
Codehttps://github.com/graphql-java/graphql-java
Issues27 (27)https://github.com/graphql-java/graphql-java/issues
Pull requests35 (35)https://github.com/graphql-java/graphql-java/pulls
Discussionshttps://github.com/graphql-java/graphql-java/discussions
Actionshttps://github.com/graphql-java/graphql-java/actions
Projectshttps://github.com/graphql-java/graphql-java/projects
Wikihttps://github.com/graphql-java/graphql-java/wiki
Security and qualityhttps://github.com/graphql-java/graphql-java/security
Insightshttps://github.com/graphql-java/graphql-java/insights
Sign up for GitHub https://github.com/signup?return_to=%2Fgraphql-java%2Fgraphql-java%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2Fgraphql-java%2Fgraphql-java%2Fissues%2Fnew%2Fchoose
joshgordhttps://github.com/joshgord
graphql-java:masterhttps://github.com/graphql-java/graphql-java/tree/master
joshgord:oneof-validation-short-circuithttps://github.com/joshgord/graphql-java/tree/oneof-validation-short-circuit
Conversation 6 https://github.com/graphql-java/graphql-java/pull/4516
Commits 5 https://github.com/graphql-java/graphql-java/pull/4516/commits
Checks 1 https://github.com/graphql-java/graphql-java/pull/4516/checks
Files changed https://github.com/graphql-java/graphql-java/pull/4516/files
Please reload this pagehttps://github.com/graphql-java/graphql-java/pull/4516/files
Skip OneOf input validation walk when no @oneOf type is reachable https://github.com/graphql-java/graphql-java/pull/4516/files#top
Show all changes 5 commits https://github.com/graphql-java/graphql-java/pull/4516/files
4843c71 Skip OneOf input validation walk when no @oneOf type is reachable Oct 27, 2026 https://github.com/graphql-java/graphql-java/pull/4516/commits/4843c71ff53bbb7dcb747045f91d2af3401c5bc0
058976b Scope OneOf input reachability metadata to each schema Oct 31, 2026 https://github.com/graphql-java/graphql-java/pull/4516/commits/058976b683ed416b9e409182eb3b3b05eae3a77d
5bf805a Merge master into OneOf validation branch Oct 31, 2026 https://github.com/graphql-java/graphql-java/pull/4516/commits/5bf805a7af1b8def6d3590c33d040d478ab209d2
ee25dd5 Clarify resolver nullability and internal method visibility Oct 31, 2026 https://github.com/graphql-java/graphql-java/pull/4516/commits/ee25dd59964a97ecac6f6fac247512826d073cba
fd56231 Add JMH workloads for OneOf input coercion Oct 31, 2026 https://github.com/graphql-java/graphql-java/pull/4516/commits/fd562315f78fa84ba9f8f8853f59760a5b9870f8
Clear filters https://github.com/graphql-java/graphql-java/pull/4516/files
Please reload this pagehttps://github.com/graphql-java/graphql-java/pull/4516/files
Please reload this pagehttps://github.com/graphql-java/graphql-java/pull/4516/files
OneOfInputCoercionBenchmark.java https://github.com/graphql-java/graphql-java/pull/4516/files#diff-e48bbeb35b3a098e9b2851dc7f09d1163d93cdf5810f3cb68a7fee82b85c0171
NodeVisitorWithTypeTracking.java https://github.com/graphql-java/graphql-java/pull/4516/files#diff-03a40f6237769ca44a192860b2e78306589329e8104ab802519d6754108750e4
ExecutionStepInfoFactory.java https://github.com/graphql-java/graphql-java/pull/4516/files#diff-138954a21c4570b0318b23824e4cdba803a47f37ea074e2eb8598fd89ae88f91
ValuesResolver.java https://github.com/graphql-java/graphql-java/pull/4516/files#diff-5574cfd989be07c440b2e43f9eb0fac3c3490561ba036b1dea9ce7695101ba9e
ValuesResolverConversion.java https://github.com/graphql-java/graphql-java/pull/4516/files#diff-80b8748b24d21f6277a1e5019cd808621d276b1abb50bd87672d447f5c840ef0
ValuesResolverOneOfValidation.java https://github.com/graphql-java/graphql-java/pull/4516/files#diff-aa850fe4d226b7cf918bd7a0700052cfb62840a9a635f92163fc9f992cbea0c5
DirectivesResolver.java https://github.com/graphql-java/graphql-java/pull/4516/files#diff-f365afe38ae9c8e4266315295638a3bd5a6f84f85373cd794ad4b14c39d59090
GraphQLSchema.java https://github.com/graphql-java/graphql-java/pull/4516/files#diff-a234c614ce8dd6a83d2a968bcde64e148233fd4e45df3d8c2601f2ac2b91a058
OneOfInputTypeReachability.java https://github.com/graphql-java/graphql-java/pull/4516/files#diff-8a57aa97e27bd62fd57e34e804c0f80d4756820b398d9cdc6b83fbe1e48411b2
OneOfInputCoercionBenchmarkTest.groovy https://github.com/graphql-java/graphql-java/pull/4516/files#diff-f7c26c691bd9c6a8d6b8ae2505193d4738705d4a39f190fc0a978c0aa4627ec3
ValuesResolverTest.groovy https://github.com/graphql-java/graphql-java/pull/4516/files#diff-6df3af80107d5608b74eb17ef8f3b544ff9cf0e6c4ea06b02bf0accabf119821
OneOfInputTypeReachabilityTest.groovy https://github.com/graphql-java/graphql-java/pull/4516/files#diff-4c3c63ab725f398d343002c0fce50a0b9653714c555f5d789bb65e7485978132
src/jmh/java/benchmark/OneOfInputCoercionBenchmark.javahttps://github.com/graphql-java/graphql-java/pull/4516/files#diff-e48bbeb35b3a098e9b2851dc7f09d1163d93cdf5810f3cb68a7fee82b85c0171
View file https://github.com/joshgord/graphql-java/blob/fd562315f78fa84ba9f8f8853f59760a5b9870f8/src/jmh/java/benchmark/OneOfInputCoercionBenchmark.java
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/graphql-java/graphql-java/pull/4516/{{ revealButtonHref }}
src/main/java/graphql/analysis/NodeVisitorWithTypeTracking.javahttps://github.com/graphql-java/graphql-java/pull/4516/files#diff-03a40f6237769ca44a192860b2e78306589329e8104ab802519d6754108750e4
View file https://github.com/joshgord/graphql-java/blob/fd562315f78fa84ba9f8f8853f59760a5b9870f8/src/main/java/graphql/analysis/NodeVisitorWithTypeTracking.java
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/graphql-java/graphql-java/pull/4516/{{ revealButtonHref }}
https://github.com/graphql-java/graphql-java/pull/4516/files#diff-03a40f6237769ca44a192860b2e78306589329e8104ab802519d6754108750e4
https://github.com/graphql-java/graphql-java/pull/4516/files#diff-03a40f6237769ca44a192860b2e78306589329e8104ab802519d6754108750e4
src/main/java/graphql/execution/ExecutionStepInfoFactory.javahttps://github.com/graphql-java/graphql-java/pull/4516/files#diff-138954a21c4570b0318b23824e4cdba803a47f37ea074e2eb8598fd89ae88f91
View file https://github.com/joshgord/graphql-java/blob/fd562315f78fa84ba9f8f8853f59760a5b9870f8/src/main/java/graphql/execution/ExecutionStepInfoFactory.java
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/graphql-java/graphql-java/pull/4516/{{ revealButtonHref }}
https://github.com/graphql-java/graphql-java/pull/4516/files#diff-138954a21c4570b0318b23824e4cdba803a47f37ea074e2eb8598fd89ae88f91
https://github.com/graphql-java/graphql-java/pull/4516/files#diff-138954a21c4570b0318b23824e4cdba803a47f37ea074e2eb8598fd89ae88f91
src/main/java/graphql/execution/ValuesResolver.javahttps://github.com/graphql-java/graphql-java/pull/4516/files#diff-5574cfd989be07c440b2e43f9eb0fac3c3490561ba036b1dea9ce7695101ba9e
View file https://github.com/joshgord/graphql-java/blob/fd562315f78fa84ba9f8f8853f59760a5b9870f8/src/main/java/graphql/execution/ValuesResolver.java
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/graphql-java/graphql-java/pull/4516/{{ revealButtonHref }}
https://github.com/graphql-java/graphql-java/pull/4516/files#diff-5574cfd989be07c440b2e43f9eb0fac3c3490561ba036b1dea9ce7695101ba9e
https://github.com/graphql-java/graphql-java/pull/4516/files#diff-5574cfd989be07c440b2e43f9eb0fac3c3490561ba036b1dea9ce7695101ba9e
https://github.com/graphql-java/graphql-java/pull/4516/files#diff-5574cfd989be07c440b2e43f9eb0fac3c3490561ba036b1dea9ce7695101ba9e
https://github.com/graphql-java/graphql-java/pull/4516/files#diff-5574cfd989be07c440b2e43f9eb0fac3c3490561ba036b1dea9ce7695101ba9e
https://github.com/graphql-java/graphql-java/pull/4516/files#diff-5574cfd989be07c440b2e43f9eb0fac3c3490561ba036b1dea9ce7695101ba9e
https://github.com/graphql-java/graphql-java/pull/4516/files#diff-5574cfd989be07c440b2e43f9eb0fac3c3490561ba036b1dea9ce7695101ba9e
https://github.com/graphql-java/graphql-java/pull/4516/files#diff-5574cfd989be07c440b2e43f9eb0fac3c3490561ba036b1dea9ce7695101ba9e
https://github.com/graphql-java/graphql-java/pull/4516/files#diff-5574cfd989be07c440b2e43f9eb0fac3c3490561ba036b1dea9ce7695101ba9e
src/main/java/graphql/execution/ValuesResolverConversion.javahttps://github.com/graphql-java/graphql-java/pull/4516/files#diff-80b8748b24d21f6277a1e5019cd808621d276b1abb50bd87672d447f5c840ef0
View file https://github.com/joshgord/graphql-java/blob/fd562315f78fa84ba9f8f8853f59760a5b9870f8/src/main/java/graphql/execution/ValuesResolverConversion.java
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/graphql-java/graphql-java/pull/4516/{{ revealButtonHref }}
https://github.com/graphql-java/graphql-java/pull/4516/files#diff-80b8748b24d21f6277a1e5019cd808621d276b1abb50bd87672d447f5c840ef0
https://github.com/graphql-java/graphql-java/pull/4516/files#diff-80b8748b24d21f6277a1e5019cd808621d276b1abb50bd87672d447f5c840ef0
https://github.com/graphql-java/graphql-java/pull/4516/files#diff-80b8748b24d21f6277a1e5019cd808621d276b1abb50bd87672d447f5c840ef0
https://github.com/graphql-java/graphql-java/pull/4516/files#diff-80b8748b24d21f6277a1e5019cd808621d276b1abb50bd87672d447f5c840ef0
https://github.com/graphql-java/graphql-java/pull/4516/files#diff-80b8748b24d21f6277a1e5019cd808621d276b1abb50bd87672d447f5c840ef0
https://github.com/graphql-java/graphql-java/pull/4516/files#diff-80b8748b24d21f6277a1e5019cd808621d276b1abb50bd87672d447f5c840ef0
https://github.com/graphql-java/graphql-java/pull/4516/files#diff-80b8748b24d21f6277a1e5019cd808621d276b1abb50bd87672d447f5c840ef0
https://github.com/graphql-java/graphql-java/pull/4516/files#diff-80b8748b24d21f6277a1e5019cd808621d276b1abb50bd87672d447f5c840ef0
https://github.com/graphql-java/graphql-java/pull/4516/files#diff-80b8748b24d21f6277a1e5019cd808621d276b1abb50bd87672d447f5c840ef0
https://github.com/graphql-java/graphql-java/pull/4516/files#diff-80b8748b24d21f6277a1e5019cd808621d276b1abb50bd87672d447f5c840ef0
https://github.com/graphql-java/graphql-java/pull/4516/files#diff-80b8748b24d21f6277a1e5019cd808621d276b1abb50bd87672d447f5c840ef0
https://github.com/graphql-java/graphql-java/pull/4516/files#diff-80b8748b24d21f6277a1e5019cd808621d276b1abb50bd87672d447f5c840ef0
https://github.com/graphql-java/graphql-java/pull/4516/files#diff-80b8748b24d21f6277a1e5019cd808621d276b1abb50bd87672d447f5c840ef0
src/main/java/graphql/execution/ValuesResolverOneOfValidation.javahttps://github.com/graphql-java/graphql-java/pull/4516/files#diff-aa850fe4d226b7cf918bd7a0700052cfb62840a9a635f92163fc9f992cbea0c5
View file https://github.com/joshgord/graphql-java/blob/fd562315f78fa84ba9f8f8853f59760a5b9870f8/src/main/java/graphql/execution/ValuesResolverOneOfValidation.java
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/graphql-java/graphql-java/pull/4516/{{ revealButtonHref }}
https://github.com/graphql-java/graphql-java/pull/4516/files#diff-aa850fe4d226b7cf918bd7a0700052cfb62840a9a635f92163fc9f992cbea0c5
https://github.com/graphql-java/graphql-java/pull/4516/files#diff-aa850fe4d226b7cf918bd7a0700052cfb62840a9a635f92163fc9f992cbea0c5
https://github.com/graphql-java/graphql-java/pull/4516/files#diff-aa850fe4d226b7cf918bd7a0700052cfb62840a9a635f92163fc9f992cbea0c5
src/main/java/graphql/execution/directives/DirectivesResolver.javahttps://github.com/graphql-java/graphql-java/pull/4516/files#diff-f365afe38ae9c8e4266315295638a3bd5a6f84f85373cd794ad4b14c39d59090
View file https://github.com/joshgord/graphql-java/blob/fd562315f78fa84ba9f8f8853f59760a5b9870f8/src/main/java/graphql/execution/directives/DirectivesResolver.java
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/graphql-java/graphql-java/pull/4516/{{ revealButtonHref }}
https://github.com/graphql-java/graphql-java/pull/4516/files#diff-f365afe38ae9c8e4266315295638a3bd5a6f84f85373cd794ad4b14c39d59090
https://github.com/graphql-java/graphql-java/pull/4516/files#diff-f365afe38ae9c8e4266315295638a3bd5a6f84f85373cd794ad4b14c39d59090
Please reload this pagehttps://github.com/graphql-java/graphql-java/pull/4516/files
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.