In this video, we are covering JSON Schema validation in POSTMAN, It is very important that you add JSON Schema validation in your API Test of POSTMAN.
Website used - https://staging.engineer.ai
Download Notes https://sdet.live/notes
Topics Covered -
What is JSON Schema
Basic JSON Schema example
JSON Schema Validation Data Types
JSON schema validation in postman
Overview of https://www.jsonschemavalidator.net/
Create your Own JSON Schema -
JSON Schema Additional properties, max min array -
JSON Schema Draft 07 -
JSON Schema Tiny validator -
JSON Schema AJV Demo -
What is JSON?
JSON stands for JavaScript Object Notation
JSON is a lightweight format for storing and transporting data
What JSON Schema
JSON Schema is a contract for your JSON document that defines the expected data types and format of each field in the response
Why JSON Schema Validation required?
Using JSON Schema to construct a model of your API response makes it easier to validate your API is returning the data is should.
Monitor your API responses, ensuring they adhere to a specified format.
Get alerted when breaking changes occur.
How to do JSON Schema Validation in Postman Step by Step?
Generate JSON Schema
https://jsonschema.net/#/
Object Assertions and check REQD Properties. We do this so that every element in the JSON becomes mandatory.
Number Assertions and check Use number, not integer for all numeric instances
Configure and Test using Postman
Notes about JSON Schema Validation - https://dynalist.io/d/eDFZUS1L8emTU5BbMYLYMHZi
JSON Schema Documentation - http://json-schema.org/
API Used - https://reqres.in/api/users/2
JSON Schema Creator Tool - https://jsonschema.net/
More About Tiny Validator - http://geraintluff.github.io/tv4/
Join Facebook Group : http://bit.ly/learntesting2019
Website: https://scrolltest.com
Website: https://thetestingacademy.com
Twitter: https://twitter.com/itstechmode
#jsonschemavalidation #jsonschema #json #jsonschemavalidationinpostman #postman