Skip to content

Commit ad59560

Browse files
committed
Fixed wrong schema definition in InputObjectValidatorTests
1 parent c2b4542 commit ad59560

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/FSharp.Data.GraphQL.Tests/Variables and Inputs/InputObjectValidatorTests.fs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -76,9 +76,9 @@ type InputObjectNested (homeAddress : InputObject, workAddress : InputObject vop
7676
let InputObjectNestedType =
7777
Define.InputObject<InputObjectNested> (
7878
"InputObjectOptional",
79-
[ Define.Input ("homeAddress", InputRecordType)
80-
Define.Input ("workAddress", Nullable InputRecordType)
81-
Define.Input ("mailingAddress", Nullable InputRecordType) ],
79+
[ Define.Input ("homeAddress", InputObjectType)
80+
Define.Input ("workAddress", Nullable InputObjectType)
81+
Define.Input ("mailingAddress", Nullable InputObjectType) ],
8282
fun (inputObject: InputObjectNested) ->
8383
match inputObject.MailingAddress, inputObject.WorkAddress with
8484
| None, ValueNone -> ValidationError <| createSingleError "MailingAddress or WorkAddress must be provided"

0 commit comments

Comments
 (0)