{"action":"created","issue":{"url":"https://api.github.com/repos/joelittlejohn/jsonschema2pojo/issues/596","repository_url":"https://api.github.com/repos/joelittlejohn/jsonschema2pojo","labels_url":"https://api.github.com/repos/joelittlejohn/jsonschema2pojo/issues/596/labels{/name}","comments_url":"https://api.github.com/repos/joelittlejohn/jsonschema2pojo/issues/596/comments","events_url":"https://api.github.com/repos/joelittlejohn/jsonschema2pojo/issues/596/events","html_url":"https://github.com/joelittlejohn/jsonschema2pojo/issues/596","id":166349867,"number":596,"title":"Adding symbols, JSON->JAVA?","user":{"login":"amitabhuddi","id":7301750,"avatar_url":"https://avatars.githubusercontent.com/u/7301750?v=3","gravatar_id":"","url":"https://api.github.com/users/amitabhuddi","html_url":"https://github.com/amitabhuddi","followers_url":"https://api.github.com/users/amitabhuddi/followers","following_url":"https://api.github.com/users/amitabhuddi/following{/other_user}","gists_url":"https://api.github.com/users/amitabhuddi/gists{/gist_id}","starred_url":"https://api.github.com/users/amitabhuddi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/amitabhuddi/subscriptions","organizations_url":"https://api.github.com/users/amitabhuddi/orgs","repos_url":"https://api.github.com/users/amitabhuddi/repos","events_url":"https://api.github.com/users/amitabhuddi/events{/privacy}","received_events_url":"https://api.github.com/users/amitabhuddi/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2016-07-19T14:45:35Z","updated_at":"2016-07-20T09:46:14Z","closed_at":null,"body":"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."},"comment":{"url":"https://api.github.com/repos/joelittlejohn/jsonschema2pojo/issues/comments/233903103","html_url":"https://github.com/joelittlejohn/jsonschema2pojo/issues/596#issuecomment-233903103","issue_url":"https://api.github.com/repos/joelittlejohn/jsonschema2pojo/issues/596","id":233903103,"user":{"login":"joelittlejohn","id":686384,"avatar_url":"https://avatars.githubusercontent.com/u/686384?v=3","gravatar_id":"","url":"https://api.github.com/users/joelittlejohn","html_url":"https://github.com/joelittlejohn","followers_url":"https://api.github.com/users/joelittlejohn/followers","following_url":"https://api.github.com/users/joelittlejohn/following{/other_user}","gists_url":"https://api.github.com/users/joelittlejohn/gists{/gist_id}","starred_url":"https://api.github.com/users/joelittlejohn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joelittlejohn/subscriptions","organizations_url":"https://api.github.com/users/joelittlejohn/orgs","repos_url":"https://api.github.com/users/joelittlejohn/repos","events_url":"https://api.github.com/users/joelittlejohn/events{/privacy}","received_events_url":"https://api.github.com/users/joelittlejohn/received_events","type":"User","site_admin":false},"created_at":"2016-07-20T09:46:14Z","updated_at":"2016-07-20T09:46:14Z","body":"Ah, I see. There are no characters in your enum that are valid in a Java identifier.\r\n\r\nIf you can change the schema, you can add some meaningful names to your enum values using `javaEnumNames` like this:\r\n\r\nhttps://github.com/joelittlejohn/jsonschema2pojo/blob/f23641fb5a492d86f2e8de001299f21353601df8/jsonschema2pojo-integration-tests/src/test/resources/schema/enum/enumWithCustomJavaNames.json\r\n\r\nIn 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 got:\r\n\r\n```java\r\nEMPTY(\":\"),\r\nEMPTY_(\"\\u2265\"),\r\nEMPTY__(\"<\")\r\n```"}}
{"actor":{"display_login":"joelittlejohn"}}