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

gorma should handle mixed camel and snake cases #90

Open
bketelsen opened this issue Mar 13, 2016 · 1 comment
Open

gorma should handle mixed camel and snake cases #90

bketelsen opened this issue Mar 13, 2016 · 1 comment

Comments

@bketelsen
Copy link
Member

make gorma smarter about mixing camel & snake case in the 'goa' side of the design.

@jrnt30
Copy link

jrnt30 commented Feb 20, 2017

Little context for those coming to the project "green". If you do have camel casing in your MediaType or Payload, when you generate your models, you will most likely encounter an error when building around a missing method.

Ex. assuming the User media type contains Attribute("realName")

models/user_helper.go:49: tmp1.RealNameToRealName undefined (type *string has no field or method RealNameToRealName)

Currently the only way that I have found to resolve this is to change Attribute("realName") to not use camel casing and instead use Attribute("real_name")

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