Forum Discussion

ssin48's avatar
ssin48
Occasional Contributor
9 years ago

How to perform JSON response schema validation using REST?

Sample JSON request:

 

{
"beneficiaryDetails":{
"beneficiaries":[
{
"allocation":"100",
"fullname":"Spouse",
"relationship":{
"code":"1",
"name":"Spouse"
}
}
],
"beneficiaryChoice":"Preferred"
}
}

  • TanyaYatskovska's avatar
    TanyaYatskovska
    SmartBear Alumni (Retired)

    Hi ssin48,

     

    You need to use the JSON Schema Compliance assertion. Have you tried adding it to your project?