Sometimes we need to validate our API's response if it correctly returning JSON structure.
We may unintended add some secret fields to JSON response such as passwords, tokens.
To be aware of this we should test the JSON response if does it matches our need.
I've wrote chai plugin which helps to test JSON structures with ease.
https://github.com/Adizbek/chai-json-validation
Please rate my work and leave comments below about plugin
Top comments (0)