JSON Schema Validation Rest Assured: In this video we will learn How to perform the JSON Schema Validation using Rest Assured in Java.
What is JSON Schema Validation?
JSON Schema is a declarative language for validating the format and structure of a JSON Object. It allows us to specify the number of special primitives to describe exactly what a valid JSON Object will look like.
Reference
To Create JSON Schema - https://www.jsonschema.net/
To Validation JSON Schema - https://www.jsonschemavalidator.net/
Rest Assured Code - https://sdet.live/821H
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