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

Generated code does not compile if member name is "type" #4

Open
sscarduzio opened this issue Nov 6, 2014 · 2 comments
Open

Generated code does not compile if member name is "type" #4

sscarduzio opened this issue Nov 6, 2014 · 2 comments

Comments

@sscarduzio
Copy link

Type is a reserved word in Scala, if you try to generate a case class for something like:
{"type": "a"}
it will not compile.

Solution: generate case class code with back ticks, like:
type

@pierre-borckmans
Copy link

Just pushed a PR for this

@guizmaii
Copy link

As said @pierre-borckmans, related to #6

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

3 participants