Fix for https://github.com/Khan/genqlient/issues/342. As use_struct_references is incompatible with omitempty and pointer validation, the most simple change is to disable the validation when the use_struct_references is enabled. Note this implementation disables the validation even for types that are not influenced by use_struct_references, but still better than disabling the validation globally.
I have:
[x] Written a clear PR title and description (above)
Fix for https://github.com/Khan/genqlient/issues/342. As
use_struct_references
is incompatible withomitempty
andpointer
validation, the most simple change is to disable the validation when theuse_struct_references
is enabled. Note this implementation disables the validation even for types that are not influenced byuse_struct_references
, but still better than disabling the validation globally.I have: