Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Better compatibility to field names generated by protoc-gen-go #96

Merged
merged 3 commits into from
Feb 4, 2016

Conversation

yugui
Copy link
Member

@yugui yugui commented Jan 28, 2016

Stop emulating the conversion rule. Use their implementation of the name conversion instead.

c.f. #85

@dmitshur
Copy link
Contributor

Nice change!

@achew22
Copy link
Collaborator

achew22 commented Jan 28, 2016

Will this have any affect on the field names in the swagger documentation?

yugui added 3 commits January 28, 2016 14:55
Use the metadata proto.GetProperty returns instead.

Since the conversion rule is getting complicated, it is hard to emulate
the rule. c.f. #85
Use the implementation in protoc-gen-go itself
@yugui yugui force-pushed the feature/avoid-custom-pascal-snake branch from ed4040d to 1da1435 Compare January 28, 2016 05:55
@yugui
Copy link
Member Author

yugui commented Jan 28, 2016

Will this have any affect on the field names in the swagger documentation?

I don't think so because swagger generator does not directly use name conversion, and the currently gogen.CamelCase and utilities.PascalFromSnake are exactly same.

@achew22
Copy link
Collaborator

achew22 commented Jan 28, 2016

LGTM

yugui added a commit that referenced this pull request Feb 4, 2016
Better compatibility to field names generated by protoc-gen-go
@yugui yugui merged commit 97a6b0b into master Feb 4, 2016
@yugui yugui deleted the feature/avoid-custom-pascal-snake branch February 4, 2016 04:07
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants