Hello All
i am trying to get a POJO class generated for an extended schema definition below also attached.
using jsonschema2pojo 0.5.1
I am expecting to get ShippingAddress class generated. However i am seeing it as getting generated as root Object rather than ShippingAddress
private Object shippingAddress;
Pls help to find out how can i get this
attaching both schema and generated class
{
"definitions": {
"address": {
"type": "object",
"properties": {
"street_address": {
"type": "string"
},
"city": {
"type": "string"
},
"state": {
"type": "string"
}
},
"required": [
"street_address",
"city",
"state"
]
}
},
"$schema": "http://json-schema.org/draft-07/schema#",
"$id": "http://example.com/root.json",
"type": "object",
"title": "The Root Schema",
"properties": {
"shipping_address": {
"allOf": [
{
"$ref": "#/definitions/address"
},
{
"properties": {
"type": {
"enum": [
"residential",
"business"
]
}
},
"required": [
"type"
]
}
]
}
}
}