Default class name without javaType

61 views
Skip to first unread message

sodoff...@gmail.com

unread,
Jul 2, 2019, 4:52:52 AM7/2/19
to jsonschema2pojo-users
Hi, I'm using the gradle plugin to generate classes for a schema file I've been given called CANCELLATION_QUOTE_REQUEST.json. It doesn't contain javaType.

I've seen some comments eg https://stackoverflow.com/questions/49179756/how-to-change-default-outputschema-java-class-name-generated-by-jsonschema2pojo and https://stackoverflow.com/questions/30815841/pojo-generated-from-jsonschema2pojo-generating-class-that-should-not-exist indicating that the generated class should be CancellationQuoteRequest.java but I'm getting CANCELLATION_QUOTE_REQUEST.java.

Do you know what I need to do to get the class name to generate from the file name in camel case and without underscores?  I'd rather be able to generate from the files provided and not have to maintain a second copy.

sodoff...@gmail.com

unread,
Jul 2, 2019, 5:34:07 AM7/2/19
to jsonschema2pojo-users
I got it working by changing propertyWordDelimiters = [] as char[] shown in https://github.com/joelittlejohn/jsonschema2pojo/tree/master/jsonschema2pojo-gradle-plugin to propertyWordDelimiters = ['-','_'] as char[]
Reply all
Reply to author
Forward
0 new messages