You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
type MessagingPlatform string
const (
MessagingPlatformSLACk MessagingPlatform = "SLACK"
)
I believe this is because Slack contains the initialism SLA so it's keeping the initialism capitalized and then capitalizing the first letter. Possible relevant code file
What did you expect?
I would expect a way to express that the SLA substring is not an initialism and have it look like Slack. What would you recommend to enable this?
Minimal graphql.schema and models to reproduce
See above
versions
gqlgen version v0.17.57
go version go version go1.23.4 darwin/arm64
The text was updated successfully, but these errors were encountered:
Hey @amruth-opal you could use the config option go_initialisms to drop all the default initialisms and replace them with your own which may help?
go_initialisms:
replace_defaults: true # if true, the default initialisms will get dropped in favor of the new ones instead of being added
initialisms: # List of initialisms to for Go names
- 'CC'
- 'BCC'
What happened?
if you declare an enum in your schema like
the go type it codegens
I believe this is because Slack contains the initialism SLA so it's keeping the initialism capitalized and then capitalizing the first letter. Possible relevant code file
What did you expect?
I would expect a way to express that the SLA substring is not an initialism and have it look like
Slack
. What would you recommend to enable this?Minimal graphql.schema and models to reproduce
See above
versions
gqlgen version
v0.17.57go version
go version go1.23.4 darwin/arm64The text was updated successfully, but these errors were encountered: