Hope everyone is doing good.
I have a trigger:
The request body json schema is:
{
"items": {
"additionalProperties": false,
"properties": {
"key": {
"type": "string"
},
"value": {
"type": "string"
}
},
"required": [
"key",
"value"
],
"type": "object"
},
"type": "array",
"required": [
"key",
"value"
]
}
I am trying to output an error if a Field is missing.
Sample: When my request is like this below where there is no "value".
[
{ "key": "Request_ID" }
]
I need to output an error like "Missing Field: value".
Is this possible??
Here's a sample run where there is missing field.
It is still successful even though there is a missing field which is value.