schematic-ipsum
schematic-ipsum copied to clipboard
internal $ref throws uncaught exception
Modifying the sample JSON schema to add an internal ref to a previously defined object throws uncaught exception. Removing the "parent" object generates test data without exception.
{
"type": "object",
"properties": {
"id": {
"type": "string",
"ipsum": "id"
},
"fullname": {
"type": "object",
"id": "ns:fullname",
"properties": {
"firstname": {
"type": "string",
"ipsum": "name"
},
"lastname": {
"type": "string",
"ipsum": "name"
}
}
},
"parent": {
"type": "object",
"$ref": "ns:fullname"
},
"email": {
"type": "string",
"format": "email"
},
"bio": {
"type": "string",
"ipsum": "sentence"
},
"age": {
"type": "integer"
},
"avatar": {
"type": "string",
"ipsum": "small image"
}
}
}