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

gqlgen truncates tag value with : #2687

Closed
linyao22 opened this issue Jun 21, 2023 · 0 comments · Fixed by #2759
Closed

gqlgen truncates tag value with : #2687

linyao22 opened this issue Jun 21, 2023 · 0 comments · Fixed by #2759

Comments

@linyao22
Copy link

What happened?

We have existing schema uses tag value containing :. With v0.17.25 or later (PR #2533), the tag string is split by :, causing malformed value in generated model. Example:

  exampleField: String
    @goTag(key: "someKey", value: "path:to:example")

Generated:

ExampleField string `someKey:"path`

What did you expect?

This line in modelgen to split by first : so that the entire value is kept in full form.

Minimal graphql.schema and models to reproduce

See above.

versions

Since v0.17.25

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant