Open sjain700 opened 10 months ago
Hi. When posting code snippets like this, please use backtick blocks like this:
It makes things a lot easier to read. I have added them on your example.
Could you try adding this inside the vendorAttributes schema:
"existingJavaType":"java.util.Map<String, CustomClass>",
You will probably have to pull CustomClass out into its own file so that this gets generated too.
I wanted just a map of List values like below: I just wanted a field to be private Map<String, List<String>> varieties
"varieties" : {
"type" : "object",
"existingJavaType" : "java.util.Map<String,List<String>>",
"additionalProperties" : {
"type" : "array",
"items" : {
"type" : "string"
}
}
}
But I see that the generated code fails compilation because it doesn't recognize java.util.List
and doesn't import in the generated code :( Any help please @joelittlejohn ? Thanks !
Hi
Please use fully qualified names when referring to types that are outside same or java.lang
package, eg.:
"varieties": {
"type": "object",
"existingJavaType": "java.util.Map<String, java.util.List<String>>",
"additionalProperties": {
"type": "array",
"items": {
"type": "string"
}
}
}
I want to create a simple pojo class like:
the Json i am using:
but getting 3 classes as output:
What property to set or this is the expected behavior?