Commit 95cc3af
committed
Treat non-nullable scalars as scalars
When using a non-nullable scalar as input type
a regression was introduced by the upgrade of jackson.
A jackson exception occurs internally in the MethodFieldResolver
because the correct deserialiser/serialiser cannot be found.
Somehow this was hidden when using earlier versions of jackson
where this just worked anyhow, but due to changes in jackson this
bug is uncovered. The correct way is of course to fix this in
isScalarType to cover non-nullable scalars, and not rely on
functionality in jackson which no longer seems to be supported.1 parent 0ee4f39 commit 95cc3af
File tree
1 file changed
+6
-4
lines changed- src/main/kotlin/com/coxautodev/graphql/tools
1 file changed
+6
-4
lines changedLines changed: 6 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
| 14 | + | |
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| |||
121 | 121 | | |
122 | 122 | | |
123 | 123 | | |
124 | | - | |
125 | | - | |
| 124 | + | |
| 125 | + | |
126 | 126 | | |
127 | 127 | | |
128 | | - | |
| 128 | + | |
129 | 129 | | |
| 130 | + | |
| 131 | + | |
130 | 132 | | |
131 | 133 | | |
132 | 134 | | |
| |||
0 commit comments