Is there a way to autogenerate java classes from json with jsonschema2pojo where the generics include a primitive byte array? For example i want to generate this private Map<String, byte[]> mappy;
and so far I managed to generate private Map<String, Byte[]> mappy;
by using this:
"properties": {
"mappy": {
"id": "/response/images",
"title": "(images) The images property.",
"javaType" : "java.util.Map<String, Byte[]>",
"type" : "object"
}
}
but I'd rather use the primitive byte array instead of the Byte array. If i try to use byte[]
instead of Byte[]
jsonschema2pojo throws an exception.