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

directive arg name keyword is not converted #860

Closed
lian-yue opened this issue Sep 15, 2019 · 0 comments · Fixed by #907
Closed

directive arg name keyword is not converted #860

lian-yue opened this issue Sep 15, 2019 · 0 comments · Fixed by #907
Labels
bug Something isn't working

Comments

@lian-yue
Copy link
Contributor

What happened?

gofmt failed on *** expected 'IDENT', found 'type' (and 1 more errors)

What did you expect?

Minimal graphql.schema and models to reproduce

directive @permission(
    type: String!
) on FIELD_DEFINITION | INPUT_FIELD_DEFINITION

versions

gqlgen version v0.9.4-0.20190828043904-55b2144289de

Bug location

https://github.com/99designs/gqlgen/blob/master/codegen/directive.go#L170

res += fmt.Sprintf(", %s %s", templates.ToGoPrivate(arg.Name) templates.CurrentImports.LookupType(arg.TypeReference.GO))
@vektah vektah added the bug Something isn't working label Sep 16, 2019
lian-yue added a commit to lian-yue/gqlgen that referenced this issue Oct 20, 2019
fix 99designs#860 directive arg name keyword is not converted
vektah added a commit that referenced this issue Oct 28, 2019
fix #860 directive arg name keyword is not converted
cgxxv pushed a commit to cgxxv/gqlgen that referenced this issue Mar 25, 2022
fix 99designs#860 directive arg name keyword is not converted
cgxxv pushed a commit to cgxxv/gqlgen that referenced this issue Mar 25, 2022
fix 99designs#860 directive arg name keyword is not converted
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

Successfully merging a pull request may close this issue.

2 participants