generate-schema
generate-schema copied to clipboard
Incorrect Schema generation for Objects embedded in array inside array for version 2.6.0
PFB the following snippet of json
"Persons": [
[
{
"Person": {
"Confidence": 52,
"Id": "XXXXY",
"Urls": [],
"Face": {
"Confidence": 99.9940185546875,
"Quality": {
"Brightness": 69.32221984863281,
"Sharpness": 46.177310943603516
},
"BoundingBox": {
"Left": 0.4975961744785309,
"Top": 0.25,
"Height": 0.2094016969203949,
"Width": 0.11778845638036728
},
"Pose": {
"Pitch": -4.6145734786987305,
"Roll": -5.172172546386719,
"Yaw": 24.621706008911133
},
"Landmarks": [
{
"Type": "eyeLeft",
"X": 0.5388702750205994,
"Y": 0.32651984691619873
},
{
"Type": "eyeRight",
"X": 0.5758471488952637,
"Y": 0.3228190243244171
},
{
"Type": "nose",
"X": 0.5691379308700562,
"Y": 0.3715713620185852
},
{
"Type": "mouthLeft",
"X": 0.5409747958183289,
"Y": 0.4054807424545288
},
{
"Type": "mouthRight",
"X": 0.5757172703742981,
"Y": 0.39944666624069214
}
]
},
"Name": "John Doe"
},
"Timestamp": 4000
},
{
"Person": {
"Confidence": 50,
"Id": "XXXXY",
"Urls": [],
"Face": {
"Confidence": 99.99772644042969,
"Quality": {
"Brightness": 78.21239471435547,
"Sharpness": 32.335453033447266
},
"BoundingBox": {
"Left": 0.4663461744785309,
"Top": 0.279914528131485,
"Height": 0.21581196784973145,
"Width": 0.12139423191547394
},
"Pose": {
"Pitch": -1.8032464981079102,
"Roll": -3.601317882537842,
"Yaw": 18.598796844482422
},
"Landmarks": [
{
"Type": "eyeLeft",
"X": 0.5119572877883911,
"Y": 0.35759350657463074
},
{
"Type": "eyeRight",
"X": 0.5483719110488892,
"Y": 0.355496883392334
},
{
"Type": "nose",
"X": 0.5384360551834106,
"Y": 0.40178537368774414
},
{
"Type": "mouthLeft",
"X": 0.5115289092063904,
"Y": 0.43868288397789
},
{
"Type": "mouthRight",
"X": 0.5490919351577759,
"Y": 0.4344561994075775
}
]
},
"Name": "John Doe"
},
"Timestamp": 4480
}
]
],
generates schema as below
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"Persons": {
"type": "array",
"items": {
"type": "array"
}
}
}
Please advise.