Query related to Json schema comparison- Module 15 | Rest Assured Forum
A
Abdul Rahman Posted on 17/05/2020

This question is with reference to module 15 i.e Json schema validation

 

The get request's response which we get has id but the schema which I used is without id so how the test case passed while on the other hand if we add extra required field which is not there is response, then test gets failed

 

so according to me, if the schema file do not have id then test case should fail because response has id


S
Support Team Replied on 18/05/2020

Yes if the response does not match with the schema then the test should fail


A
Abdul Rahman Replied on 18/05/2020

Please read my question.. I was expecting the answer of following query

The get response which we get has id but the schema which I used is without id so how the test case passed

 


Related Posts