graphql-client icon indicating copy to clipboard operation
graphql-client copied to clipboard

[RFE] A new attribute to suppress `Other` enum variants

Open mathstuf opened this issue 7 years ago • 2 comments

Sometimes a deserialization error would be better than having to deal with unknown types. It also allows enums to impl Copy.

mathstuf avatar Sep 13 '18 12:09 mathstuf

This seems doable and desirable. What should the option be named? I am thinking of something like enums_no_other_variant.

tomhoule avatar Sep 15 '18 17:09 tomhoule

Sounds fine to me.

mathstuf avatar Sep 15 '18 18:09 mathstuf