Hello,
I am trying to Parse JSON to get an outcome from the approval where to let pass it with or without comments, but getting an error "message" like: "Required properties are missing from object: comments.".
Here is the schema used:
{
"type": "array",
"items": {
"type": "object",
"properties": {
"responder": {
"type": "object",
"properties": {
"id": {
"type": "string"
},
"displayName": {
"type": "string"
},
"email": {
"type": "string"
},
"tenantId": {
"type": "string"
},
"userPrincipalName": {
"type": "string"
}
}
},
"requestDate": {
"type": "string"
},
"responseDate": {
"type": "string"
},
"approverResponse": {
"type": "string"
},
"comments": {
"type": [
"string", "null"
]
}
},
"required": [
"responder",
"requestDate",
"responseDate",
"approverResponse",
"comments"
]
}
}
Please, help me to figure out what is wrong?!
Best regards,
Alexandra