JSON Schema validation (nested objects, arrays) in Postman - Part II

preview_player
Показать описание
In this tutorial, we will look at more advanced things regarding JSON schema validation: for example (nested objects, arrays…). They all are part of the response body and it’s very important to know how to deal with them.

You will learn how to how to limit the number of properties that you get in the response, how to make changes in response, how to avoid the unknown properties and want to get informed if something changes in the response, adding additional configuration into the schema, those are called additional properties.
___

// POSTMAN COMPLETE GUIDE ONLINE COURSE

👉 Want to learn more about Postman? Check my Postman online course.

Get it at a special price and help support this YouTube channel:

___

// I HAVE A QUESTION!

I do my best to answer all comments here on YouTube but I cannot make any guarantees.

If you have purchased the Postman Online Course, please use the Q&A section or send me a message on Udemy.

Please do not email me or contact me on other channels as I might not be able to answer. Sorry!

___

// I HAVE A VIDEO IDEA

Do you want me to create a video on a specific topic? Just fill out the form below:

___

// P L A Y L I S T S

___

// F R E E R E S O U R C E S

▸▸▸ DOWNLOAD the FREE Postman Quick Reference Guide

▸▸▸ Ask a question on Discord

▸▸▸ JOIN the Postman User Group on Facebook

▸▸▸ The OFFICIAL Postman community forum

▸▸▸ 👉 Subscribe to the "Testing and automation with Valentine" newsletter for bi-weekly tutorials, tips, and news from the industry.

___

// IMPRINT

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

👉 Want to learn more about Postman? Check my Postman online course.

vdespa
Автор

You rock. Schema validation is most important for an api. Thanks a ton

rashmiambedkar
Автор

YOU'RE A LIFE SAVER!! 🙇‍♂️🙇‍♂️

also could you please help me here
how to validate array with object inside:
ex:
"FA": [
{
"name": "abc",
"id": null,
"valueType": "String",
}

]
I have been trying to get a solution for this but there's nothing which helps.

imvdhruv
Автор

Great vid. Damn, JSON Schema goes HAM.

sqyttles
Автор

That's what I wanted, thanks Valentin! :)

onp
Автор

Thanks! Now I can build the schema I need for my work.

sipinthatbub
Автор

Thank you very much Valentin. As always, simple, quick & straight to the point. Very very useful post. Thanks for your efforts

chandu
Автор

ur awesome, great api tutorials, even learners can easily understand

kritisk
Автор

How do you validate an array of objects? What would that look like? I am working on a piece and running into issues with python jsonschema validator. Was wondering if you could help with what an array (of 2 elements [{'a':'10}, {'b':'English'}]) of objects would look like

journeyofacamera
Автор

Thanks for the video. This helped me figure out how to simplify testing error responses with regards to consistency from method to method within the same endpoint. I had situations where dev did small changes. This will make things very easy to track.

jotunros
Автор

Thank you Valentin, that help me a lot!

mireyca
Автор

Create a video to test FastApi using postman e.g testing the schema of swagger/openapi.json using postman

sanyk
Автор

Hello Valentin - my JSON response is array of type : multiple objects - but the object properties are common
[
{
"id": 1,
"name": "Bob",
"ready": "Not Ready"
},
{
"id": 2,
"name": "Steve",
"ready": "Ready"
},
{
"id": 3,
"name": "Ted",
"ready": "Ready"
}
] - How to write a schema that matches multiple objects with same properties ?

harishkce
Автор

Great content buddy, you really deserve a like and an subscription

kevincalero
Автор

Thanks for the series Valentine. I'm just wondering these automation scripts and validations are using by developers or it is common within QA teams as well ?

mehmetesen
Автор

I've looking for any document (video or post) about schema using postman and finally I found this one!
I justa have one question:
To validate any JSON external I have to read his document right? using swagger or any other?

gustavosouza
Автор

thanks a lot! Can we do the same for OAS 3.0 Schemas?

SandraLuna
Автор

i want to read the key accepted from below list of objects and strings but even i give invalid key also it is returning pass status pls help on this.
[
{
"accepted": false,
"tob": {
"code": "xxx",
"types": [
{
"code": "xxx",
"value": "xxx"
}
]
}
]
below is my code:
var responseSchema={
"type": "array",
"title": "accepted",
// "value": true,
"description": "This is an Veto statuses Rest Service",
"required": ["accepted"],
"properties": {
"accepted": {
"type": "boolean"
},
}
};

honeyclementina
Автор

Hi I need to help to validate json schema while there is object under the array. Object contain few tags and one array and again array will contain multiple object and each object have multiple tags...it's really important please help me

amritarai
Автор

Thx!.. Awesome.. How about an array of objects?

[
{
"property":,
"property2":,
"property3":,
},
{
"property":,
"property2":,
"property3":,
}, ... etc
]

TheKikzter