-
Notifications
You must be signed in to change notification settings - Fork 43
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
Handle conflicts like private within Java generated models #142
Comments
Yep, Java keywords can end up in the generated code if they are keys in the JSON scheme, unfortunately. Since the Java support currently uses Gson, we could do |
We may should introduce some way to overwrite the property name which maps over to the property name. We already do something similar (automatic) with properties on Objective-C side I think. cc @rahul-malik ^ Any thoughts? |
Right now we have a list of reserved words that will get modified to avoid compilation errors. It's specific for objc but we should probably have a list for all languages |
@maicki - Tricky part with remapping variable names is things like the interop that we want to have between things like Flow <-> ObjC/Java. I believe we'd want the same name substitutions to apply in all languages which means our list would be the union of all reserved keywords in supported languages. |
@maicki @NightlyNexus @ay8s - This change just landed which will rewrite reserved words for the Java output. #187 |
No description provided.
The text was updated successfully, but these errors were encountered: