-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Adding symbols, JSON->JAVA? #596
Comments
PS. I am using Maven plugin to do that. |
Could you give me an example? |
I have something like this in my json scheme: EMPTY(":", "\u2265", "<"); |
Ah, I see. There are no characters in your enum that are valid in a Java identifier. If you can change the schema, you can add some meaningful names to your enum values using In this case we don't really have anything useful in the schema to use as a Java identifier. There's still a bug though, you should probably have gotten: EMPTY(":"),
EMPTY_("\u2265"),
EMPTY__("<") |
* Fix Javadoc for TypeRule * Use unique enum constant names Fix #596.
When I am trying to convert json scheme to java object and I have an enum which are symbols like ":", "<", etc. The problem there is that when these enums are converted to java, they are done as : "EMPTY(":", "\u2265", "<");" and this token EMPTY is generating an error which is correct since the names to these symbols cant be found. Any solutions for this problem? Thanks in advance.
The text was updated successfully, but these errors were encountered: