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

gen/go: field of enum type should not be a pointer type in gen'd code #55

Open
pkieltyka opened this issue Aug 8, 2019 · 2 comments
Open
Assignees
Labels
todo items we should do
Milestone

Comments

@pkieltyka
Copy link
Member

No description provided.

@1vn
Copy link

1vn commented Dec 30, 2019

One workaround is to override the pointer type by specifying go.field.type

  - type: UserType
    + go.field.type = UserType

Note, if you use this as a service parameter (i.e. UpdateUserType(userID: int64, type: UserType) the service interface will still expect a pointer arg for the enum

@pkieltyka pkieltyka added the todo items we should do label Aug 7, 2023
@pkieltyka pkieltyka added this to the next milestone Feb 23, 2024
@LukasJenicek
Copy link
Contributor

Done by: webrpc/gen-golang#53

@LukasJenicek LukasJenicek self-assigned this Feb 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
todo items we should do
Projects
None yet
Development

No branches or pull requests

3 participants