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
Instructor
Ashish Thakur Replied on 18/05/2020
Yes if the response does not match with the schema then the test should fail
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