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

enums_by_name does not seem to be working using maven plugin #57

Closed
vrecan opened this issue Nov 12, 2014 · 2 comments
Closed

enums_by_name does not seem to be working using maven plugin #57

vrecan opened this issue Nov 12, 2014 · 2 comments

Comments

@vrecan
Copy link

vrecan commented Nov 12, 2014

What steps will reproduce the problem?
1.) Using the given pom file and proto file generate code and then attempt deserialize it into json. The json string still has numeric values for enums.

What is the expected output? What do you see instead?
numeric values in place of the enum string values

pom
proto

What version of the product are you using? On what operating system?
1.0.8 on osx

@kshchepanovskyi
Copy link
Member

As I see you are using java_bean template, but compiler option enums_by_name works only with java_v2protoc_schema.

@vrecan
Copy link
Author

vrecan commented Nov 13, 2014

I missed that, thank you!

@vrecan vrecan closed this as completed Nov 13, 2014
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