TestProject Forum

How to handle Schema validation in API

I need to compare json file and response file .means i need to check what we have in response file fields should match with expected status fields.but my file in swagger file format.how can i pass the file path in Schema path in testproject.in swagger file we have number of API calls.so please suggest me how can do that .postman we have save json schema into onevarible and in response we should validate like pm.response.to.have.jsonSchema(schema).same like postman i need to validate

Hi @mani_mpart,
Can you share how is the response looking when you make this call in a test?