-
-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Workaround for HotChoc handling of arrays (#70)
* #68 * fix: Turn the list into an array as expected, then validate (ChilliCream/graphql-platform#4350) * 7.2.1
- Loading branch information
1 parent
b68cafd
commit 1d1983c
Showing
9 changed files
with
153 additions
and
105 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
22 changes: 3 additions & 19 deletions
22
src/FairyBread.Tests/GeneralTests.Query_Array_Works_caseData=1.verified.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,5 @@ | ||
{ | ||
Errors: [ | ||
{ | ||
Message: Unexpected Execution Error, | ||
Path: { | ||
Name: readWithArrayArg | ||
}, | ||
Locations: [ | ||
{ | ||
Line: 1, | ||
Column: 9 | ||
} | ||
], | ||
Exception: { | ||
$type: InvalidOperationException, | ||
Type: InvalidOperationException, | ||
Message: Cannot validate instances of type 'List`1'. This validator can only validate instances of type 'FooInputDto[]'. | ||
} | ||
} | ||
] | ||
Data: { | ||
readWithArrayArg: SomeInteger: 1, SomeString: hello | ||
} | ||
} |
22 changes: 3 additions & 19 deletions
22
src/FairyBread.Tests/GeneralTests.Query_Array_Works_caseData=2.verified.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,5 @@ | ||
{ | ||
Errors: [ | ||
{ | ||
Message: Unexpected Execution Error, | ||
Path: { | ||
Name: readWithArrayArg | ||
}, | ||
Locations: [ | ||
{ | ||
Line: 1, | ||
Column: 9 | ||
} | ||
], | ||
Exception: { | ||
$type: InvalidOperationException, | ||
Type: InvalidOperationException, | ||
Message: Cannot validate instances of type 'List`1'. This validator can only validate instances of type 'FooInputDto[]'. | ||
} | ||
} | ||
] | ||
Data: { | ||
readWithArrayArg: SomeInteger: 1, SomeString: hello | ||
} | ||
} |
22 changes: 3 additions & 19 deletions
22
src/FairyBread.Tests/GeneralTests.Query_Array_Works_caseData=3.verified.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,5 @@ | ||
{ | ||
Errors: [ | ||
{ | ||
Message: Unexpected Execution Error, | ||
Path: { | ||
Name: readWithArrayArg | ||
}, | ||
Locations: [ | ||
{ | ||
Line: 1, | ||
Column: 9 | ||
} | ||
], | ||
Exception: { | ||
$type: InvalidOperationException, | ||
Type: InvalidOperationException, | ||
Message: Cannot validate instances of type 'List`1'. This validator can only validate instances of type 'FooInputDto[]'. | ||
} | ||
} | ||
] | ||
Data: { | ||
readWithArrayArg: SomeInteger: 1, SomeString: hello, SomeInteger: 1, SomeString: hello | ||
} | ||
} |
29 changes: 18 additions & 11 deletions
29
src/FairyBread.Tests/GeneralTests.Query_Array_Works_caseData=4.verified.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
29 changes: 18 additions & 11 deletions
29
src/FairyBread.Tests/GeneralTests.Query_Array_Works_caseData=5.verified.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
53 changes: 42 additions & 11 deletions
53
src/FairyBread.Tests/GeneralTests.Query_Array_Works_caseData=6.verified.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters