Skip to content

Commit

Permalink
Pull graphql-java with oneof fix and add more tests (#467)
Browse files Browse the repository at this point in the history
Co-authored-by: Felipe Reis <[email protected]>
  • Loading branch information
felipe-gdr and felipe-gdr-atlassian authored Nov 3, 2023
1 parent 6d5cf42 commit 8bc3a66
Show file tree
Hide file tree
Showing 2 changed files with 52 additions and 1 deletion.
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": {}
}

0 comments on commit 8bc3a66

Please sign in to comment.