JSON Schema validation in Postman

preview_player
Показать описание
Writing a JSON Schema is a good and effective way to test the structure of the HTTP response body.

Unfortunately, anyone new to writing a JSON schema will assume that this is an easy task. This often leads to incorrect JSON schema and worst, tests that never fail.

___

// 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 a question, it is best to ask your question on the Postman User Group on Facebook or on the Postman Community (links below).

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

▸▸▸ JOIN the Postman User Group on Facebook

▸▸▸ The OFFICIAL Postman community forum

___

// YOUR SUPPORT ON PATREON MATTERS

If you enjoy this content, help me create more like this. Consider supporting me on Patreon.

___

// IMPRINT

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

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

vdespa
Автор

I'm starting to use Postman at work and your tips are incredibly valuable. Thank You very much!

Przemek_K_
Автор

I'm about to start creating my first RESTful API, and I have to say that this video alone is going to allow me to focus more on writing the code than the documentation etc. Thank you, keep up the good work Valentin.

daniellister
Автор

The tutorial was very useful for me. I have not understood how schema validation works until I watch this video. Thank you, Valentin!

lucabamo
Автор

Thanks a lot! I moved from not even knowing what a schema is to being able to build a basic one and test it.

sipinthatbub
Автор

This basic json schema validation help me a lot! Thank you very much Valentin!

mireyca
Автор

Thanks for creating these tutorials.
Honestly, I've learned a lot from your UDEMY course and these tutorials.

rajatt
Автор

You are just the greatest teacher! How do you find so simple words to explain complex things, I just don't get it... But thank you very much for your hard work! Bought your excellent Postman course on Udemy and several friends did the same after my advice. Again, thank you! Waiting for the new videos about JSON-Schema from you.

teleport
Автор

Thank you Valentin.. ! It was very helpful at right time of testing.

rajiv
Автор

Great video! Nice and clear! Straight to the point!

djmileno
Автор

Hey Valentin, thanks for this video!
I just finished your Udemy course but I struggle a bit to follow up with this one here, are there any video/documentation that I should be aware maybe before watching the Schema?
Thanks a lot!

Kariemessi
Автор

Extremely helpfull this video, I've looking for something to improve my tests in API beyond the status code, body and header....thanks a lot!

gustavosouza
Автор

Hi Valentin Despa, Thank you for sharing such valuable educational videos. Could you please share the link where did you learn this from. Is there a need to create a mock server for the testing purposes?

sumitghewade
Автор

Hi there, How we can validate a json schema which is dynamically changing?

janithdesilva
Автор

Your videos are so useful! Thank you :)

mylenna
Автор

Hi Valentin. Thank You very much for sharing all of this tips! I have a question : it's possible to retrive the schemas from external sources (for example from files or somewhere in the cloud) without write maybe long variables in the Postman code? Thank you!

AndreaBoboOboe
Автор

@valentin Despa. I am finding your videos USEFUL. Thank you for sharing your knowledge with the world. One question: { "Value": ""} ---let's say this is the response body. What can I write in "properties": { "Value": {"type": should be the type I am expecting blank value. Thank you.

gsVerka
Автор

Hi, schema of my response body is dynamic i.e... Sometimes response body is
{"address": xyz street, "zip code": 12345, "city": ABCD}.
Sometimes it's
{"address": xyz street, "zip code": 12345}.
How can i code"required" in the Tests in such a scenario. Thanks

satinderpal
Автор

Thank you! that was very helpful ! :-)

maorlv
Автор

What is the rationale of assuming every property is option unless specified otherwise? That seems designed to give false negatives.

jadedrakerider