Khan / genqlient

a truly type-safe Go GraphQL client
MIT License
1.03k stars 99 forks source link

config option `optional` is not validated #255

Closed benjaminjkraft closed 1 year ago

benjaminjkraft commented 1 year ago

This option is effectively an enum but right now it's just string-typed, so if you do optional: pointerz it will effectively be equivalent to optional: value (the default). We should validate it!

DylanRJohnston-FZ commented 1 year ago

I've fixed this in #252