garimabalodi | 2022-11-10 09:30:43 UTC | #1
Hi Dev Forum,
I am trying to create a data action that would fetch me result of fromUser from the below API result , where method="ACK" . I am using translation map as below:- "translationMap": { "fromUser": "$.data[?(@.method == 'ACK')].fromUser" }
it gives me an error on invalid schema , when I test my data action . what could be the issue ?
"message": "JSON failed schema validation for the following reasons: Schema: # @/properties/fromUser. Error location: /fromUser. instance type (array) does not match any allowed primitive type (allowed: [\"string\"])", "code": "invalid.schema"
result of my platform API is :- { "data": [ { "id": "0", "method": "ACK", "ruriUser": "00912269228600", "ruriDomain": "10.107.217.91", "fromUser": "07003552060", "fromTag": "1c1448938614", "toUser": "00912269228600", "callid": "2682298129112022456@121.244.175.56", "cseq": "1 ACK", "userAgent": "Mediant SW/v.7.40A.100.114", "correlationId": "2682298129112022456@121.244.175.56", "node": "remotenode", "dbnode": "remotenode", "selfUri": "/api/v2/telephony/siptraces" }, ........ ...... .......... more results }
Jerome.Saint-Marc | 2022-11-15 09:49:08 UTC | #2
Duplicate
system | 2022-12-16 09:49:48 UTC | #3
This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.
This post was migrated from the old Developer Forum.
ref: 17163