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

Introducing new Enum value doesn't result in default value in client #1262

Open
agoodsell5 opened this issue Aug 4, 2022 · 1 comment
Open

Comments

@agoodsell5
Copy link

We have a client generated using protoc with the Typescript option included and are then making requests using grpc-web.

We recently introduced a new value to an enum, and as we are following the proto guidelines of have a default value assigned to 0 for the first value of the enum, we expected the the client to default to this value until it was updated and made aware of the new enum value.

This does not seem to have happened, instead the int value of the enum is present.

Is there a setting that can be applied so that the default enum value is used in the situation the client is unaware of the enum value?

@sampajano
Copy link
Collaborator

Hi thanks for the report!

could you explain a bit more about what you mean by "instead the int value of the enum is present"?

Potentially with a short code snippets? Thanks!

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

No branches or pull requests

2 participants