Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pull graphql-java with oneof fix and add more tests #467

Merged
merged 1 commit into from
Nov 3, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lib/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ plugins {
id("com.bnorm.power.kotlin-power-assert")
}

val graphqlJavaVersion = "0.0.0-2023-10-22T23-20-11-ea4414f"
val graphqlJavaVersion = "0.0.0-2023-10-30T22-58-00-448780b"
val slf4jVersion = "1.7.25"

dependencies {
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
name: "oneOf fails when nested input"
enabled: true
overallSchema:
MyService: |
type Query {
search(by: SearchInput): String
}

input SearchInput {
name: String
id: IdInput
}

input IdInput @oneOf {
email: String
id: ID
}

underlyingSchema:
MyService: |-
type Query {
search(by: SearchInput): String
}

input SearchInput {
name: String
id: IdInput
}

input IdInput @oneOf {
email: String
id: ID
}
query: |
query myQuery {
search(by: {id: {email: null}})
}
variables: { }
serviceCalls: []
# language=JSON
response: |-
{
"data": null,
"errors": [{
"message":"OneOf type field 'IdInput.email' must be non-null.",
"extensions":{
"classification":"ValidationError"
}
}],
"extensions": {}
}
Loading