We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
protoc --version
Here is an enum in my proto file
enum battery_status { STARTED = 0; STOPED = 1; ABSENT = 2; }
To send it back in JSON, I use battery_status.encode()
I get :
["status": "ABSENT"]
Is there a way that the dictionary outputted uses raw value ?
What I want is to get :
["status":2]
Thanks
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Description
Version of protoc (
protoc --version
)libprotoc 3.6.1
Version of ProtocolBuffers.framework
Protobuf-swift version: 4.0
Description
Here is an enum in my proto file
enum battery_status {
STARTED = 0;
STOPED = 1;
ABSENT = 2;
}
To send it back in JSON, I use battery_status.encode()
I get :
["status": "ABSENT"]
Is there a way that the dictionary outputted uses raw value ?
What I want is to get :
["status":2]
Thanks
The text was updated successfully, but these errors were encountered: