Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fragments_other_variant option is always on #446

Open
frymawe opened this issue Mar 27, 2023 · 2 comments
Open

fragments_other_variant option is always on #446

frymawe opened this issue Mar 27, 2023 · 2 comments
Labels
bug Something isn't working

Comments

@frymawe
Copy link

frymawe commented Mar 27, 2023

The codegen option fragments_other_variant does not create any change in the code generated. The root cause I ran into was that the schema I was using actually had Other as one of the enumerations causing a conflict with the generated Other(&str). graphql_client_codegen/src/codegen/enums.rs Generates the Other(&str) without regard to the settings in options. It is probably a different issue, but coming up with a name less likely to collide than Other might be a good idea too.

@tomhoule tomhoule added the bug Something isn't working label Mar 28, 2023
@slyons
Copy link

slyons commented Dec 21, 2023

I'm getting hit by this as well:

error[E0428]: the name `Other` is defined multiple times
  --> src/cmds/creds/ls.rs:29:10
   |
29 | #[derive(GraphQLQuery)]
   |          ^^^^^^^^^^^^ `Other` redefined here

@khumps
Copy link

khumps commented Oct 24, 2024

currently running into this as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants