smallrye-graphql
smallrye-graphql copied to clipboard
[Server] Generics: @NonNull Ignored for Generic List Element
Hi!
Thank you for this amazing project! I've been using it in production for a while now. 😄
I stumbled upon a potential bug:
- 🟢
@NonNull List<@NonNull String> list;
correctly maps tolist: [String!]!
. - 🐛
@NonNull List<@NonNull CustomGeneric<String>> list;
maps tolist: [CustomGeneric_String]!
(list elements are no longer null-safe im schema). - ⚠️
@NonNull List<@NonNull CustomGeneric<@NonNull String>> list;
maps tolist: [CustomGeneric_String!]!
, however.
Please see my M(N)WE: https://github.com/schulzp/smallrye-graphql-generics
Thanks for this. We will have a look a.s.a.p.
@jmartisk how is your availability to look at this ?
I wonder if this is related ? #1366
I remember fixing the client-side counterpart of this just before leaving on PTO. I don't have much insight into how the server side handles generics, I didn't write that relevant code, so I hoped somebody else would step in :) I can put it on my TODO if nobody else wants it, but I have quite a backlog right now.