Validate Response Data With JSON Schema

preview_player
Показать описание
This video explains how to validate incoming JSON data from an API endpoint using JSON Schema and Ajv. If you rely on the data you receive to use consistent keys, data types, or formats, then JSON Schema is a tool you'll want to use. Define the schema in Postman, and Postman will use the built-in Ajv library to compile and run your JSON Schema.

Рекомендации по теме
Комментарии
Автор

great example though, just what I needed. Thanks.

hexatorus
Автор

not sure how this example passed with the '$schema' attribute still in there. mine failed until i removed the '$schema' line.

hexatorus