HI Steve,
Thank you for the confirmation and additional clarification.
Paul
Original Message:
Sent: 3/6/2024 9:19:00 AM
From: Steve Linn
Subject: RE: Creating JSON Schemas with Arrays
Hi Paul,
You beat me to the answer :-) I'll just add that the UI for definitions will only show the root primitive properties, but it will not step into object and arrays to show their children as you noted.
Regards,
Steve
------------------------------
Steve Linn
Senior Consulting I/T Specialist
IBM
------------------------------
Original Message:
Sent: Tue March 05, 2024 01:44 PM
From: Paul Dango
Subject: Creating JSON Schemas with Arrays
The answer is to select the option to infer the schema from a sample json payload.
The source view provides the full schema created. Although the form view does not display the full schema.
------------------------------
Paul Dango
Original Message:
Sent: Mon March 04, 2024 05:55 PM
From: Paul Dango
Subject: Creating JSON Schemas with Arrays
HI,
I have a requirement to create a JSON schema from the following sample payload. I have figured out creating the basic properties. I need help in creating the array of objects within the structure using the form option in the design panel.
{
"PurchaseOrderNumber": "889980039555432200",
"orderStatus": "Shipped",
"orderDate": "20231003",
"orderTimeStamp": "172709",
"carrier": "WILL",
"actualPickupPersonName": "JOBY JOSEPH",
"timeZone": "EST",
"lineitemsCollection": [
{
"lineitemsItem": {
"articleNumber": "000000000000010045",
"itemQuantity": 4.000,
"unit": "EA",
"dotCollection": [
{
"dotItem": {
"dot": "DOT5678902517"
}
},
{
"dotItem": {
"dot": "DOT5678902517"
}
},
{
"dotItem": {
"dot": "DOT5678902518"
}
},
{
"dotItem": {
"dot": "DOT5678902519"
}
}
]
}
Thanks,
Paul
------------------------------
Paul Dango
------------------------------