Is it a bug or a JVM/Jackson limitation that `Opti...
# graphql-kotlin
t
Is it a bug or a JVM/Jackson limitation that
OptionalInput<List<Foo>>
will become
OptionalInput<List<LinkedHashMap>>
runtime, or is it something I've done wrong?
d
server or client?
t
server
Foo is e.g.
Copy code
class Foo(val bar: String)
so the structure looks something like:
Copy code
fun foobar(fooRequest: FooRequest) ....


class FooRequest(
    val foos: OptionalInput<List<Foo>>,
)

class Foo(
    val bar: String
)
d
might be a bug
t
I'll clone the repo and try to make a minimal test case
d
👍 thanks
t
I believe the bug's already been reported as https://github.com/ExpediaGroup/graphql-kotlin/issues/1312 and also possibly #1220. Still going to try to get this reproduced in a test case when I get time
Ok, here's the test cases. I'm not sure if the test cases can be made to work without Jackson making changes to their api, but at least the test cases could hopefully help any investigation into the problems. https://github.com/ExpediaGroup/graphql-kotlin/pull/1363
d
👍 thanks I'll take a look