Популярное

Музыка Кино и Анимация Автомобили Животные Спорт Путешествия Игры Юмор

Интересные видео

2025 Сериалы Трейлеры Новости Как сделать Видеоуроки Diy своими руками

Топ запросов

смотреть а4 schoolboy runaway турецкий сериал смотреть мультфильмы эдисон
dTub
Скачать

An Introduction to JSON Schema: A Practical Look

Автор: Erik Wilde

Загружено: 2022-03-23

Просмотров: 14993

Описание:

This introduction to JSON Schema features Simon Plenderleith walking viewers through some examples of how to use JSON Schema for practical JSON validation. As an independent Node.js consultant, Simon frequently uses JSON Schema and shares with us some examples to get started with JSON Schema.
We start by introducing a basic JSON Schema for validating a request payload, using cooking recipes as an example. In the first example we introduce the JSON Schema concepts of $schema, keywords, types, and required properties.
The next step is to improve the schema for recipes by turning the ingredients into a JSON array. For this, we extend the basic JSON Schema to validate the updated property which now is an array. This demonstrates how to add a sub schema to validate the items in an array.
The final step is to introduce references withing the schema, turning the recipe model into one that recursively allows ingredients to be complete recipes. This demonstrates how in JSON Schema complete schema or specific parts of schemas can be reused.
All the materials shown in this video are available online, and here also are additional links to some of the things mentioned in the video:

Code examples in this video: https://github.com/simonplend/talks/t...
JSON Schema: https://json-schema.org/
Ajv JSON schema validator: https://ajv.js.org/
Fastify Node.js web framework: https://www.fastify.io/
Understanding JSON Schema: https://json-schema.org/understanding...
Tutorial: Get started with validation in Node.js: https://simonplend.com/get-started-wi...
Simon's website: https://simonplend.com/
Simon on Twitter:   / simonplend  


00:00 Introduction
00:56 JSON Schema usage as a developer
01:42 How complicated is it to get started with JSON Schema?
03:58 JSON Schema implementations in Node.js
05:40 Getting started with the examples
06:12 A simple JSON Schema for validating a recipe
14:12 Which types does JSON Schema have?
15:41 JSON Schema validation in action
20:15 Improving the JSON Schema by using an array
26:48 Using recursion in JSON Schema
33:09 Wrapping it up

An Introduction to JSON Schema: A Practical Look

Поделиться в:

Доступные форматы для скачивания:

Скачать видео mp4

  • Информация по загрузке:

Скачать аудио mp3

Похожие видео

array(10) { [0]=> object(stdClass)#6298 (5) { ["video_id"]=> int(9999999) ["related_video_id"]=> string(11) "GB6wLooVFEI" ["related_video_title"]=> string(101) "Deep Focus Radio - Музыка для кодирования и производительности" ["posted_time"]=> string(0) "" ["channelName"]=> string(15) "Chill Music Lab" } [1]=> object(stdClass)#6271 (5) { ["video_id"]=> int(9999999) ["related_video_id"]=> string(11) "hoeJFWar-b4" ["related_video_title"]=> string(123) "REST Assured & JSON Schema Validator // Демо-занятие курса «Java QA Engineer. Professional»" ["posted_time"]=> string(19) "1 год назад" ["channelName"]=> string(45) "OTUS IT Онлайн - образование" } [2]=> object(stdClass)#6296 (5) { ["video_id"]=> int(9999999) ["related_video_id"]=> string(11) "mXPE2tgY1TM" ["related_video_title"]=> string(45) "API Business Models: Creating Value with APIs" ["posted_time"]=> string(21) "2 года назад" ["channelName"]=> string(10) "Erik Wilde" } [3]=> object(stdClass)#6303 (5) { ["video_id"]=> int(9999999) ["related_video_id"]=> string(11) "jSx84DYwymo" ["related_video_title"]=> string(34) "API Formats: Why JSON won over XML" ["posted_time"]=> string(21) "4 года назад" ["channelName"]=> string(10) "Erik Wilde" } [4]=> object(stdClass)#6282 (5) { ["video_id"]=> int(9999999) ["related_video_id"]=> string(11) "GxmfcnU3feo" ["related_video_title"]=> string(36) "The Complete Web Development Roadmap" ["posted_time"]=> string(28) "11 месяцев назад" ["channelName"]=> string(21) "Programming with Mosh" } [5]=> object(stdClass)#6300 (5) { ["video_id"]=> int(9999999) ["related_video_id"]=> string(11) "b4009ZC9nkU" ["related_video_title"]=> string(67) "Why does JSON Schema validate so many things? Add More Constraints!" ["posted_time"]=> string(21) "2 года назад" ["channelName"]=> string(10) "Erik Wilde" } [6]=> object(stdClass)#6295 (5) { ["video_id"]=> int(9999999) ["related_video_id"]=> string(11) "8nOTE8owKy0" ["related_video_title"]=> string(45) "APIs and Web Services: What's the Difference?" ["posted_time"]=> string(21) "3 года назад" ["channelName"]=> string(10) "Erik Wilde" } [7]=> object(stdClass)#6305 (5) { ["video_id"]=> int(9999999) ["related_video_id"]=> string(11) "pQtlhCFBrU0" ["related_video_title"]=> string(156) "АСЛАНЯН: Как у тебя отберут машину. Китайский резиновый шпион. Монорельс умер / МАШИНЫ" ["posted_time"]=> string(22) "22 часа назад" ["channelName"]=> string(29) "Ходорковский LIVE" } [8]=> object(stdClass)#6281 (5) { ["video_id"]=> int(9999999) ["related_video_id"]=> string(11) "cLDqCgAwe2w" ["related_video_title"]=> string(44) "Open API and OpenAPI: What's the Difference?" ["posted_time"]=> string(21) "3 года назад" ["channelName"]=> string(10) "Erik Wilde" } [9]=> object(stdClass)#6299 (5) { ["video_id"]=> int(9999999) ["related_video_id"]=> string(11) "blWdjRUPP6E" ["related_video_title"]=> string(72) "Разведчик о том, как использовать людей" ["posted_time"]=> string(23) "1 месяц назад" ["channelName"]=> string(18) "Коллектив" } }
Deep Focus Radio - Музыка для кодирования и производительности

Deep Focus Radio - Музыка для кодирования и производительности

REST Assured & JSON Schema Validator // Демо-занятие курса «Java QA Engineer. Professional»

REST Assured & JSON Schema Validator // Демо-занятие курса «Java QA Engineer. Professional»

API Business Models: Creating Value with APIs

API Business Models: Creating Value with APIs

API Formats: Why JSON won over XML

API Formats: Why JSON won over XML

The Complete Web Development Roadmap

The Complete Web Development Roadmap

Why does JSON Schema validate so many things? Add More Constraints!

Why does JSON Schema validate so many things? Add More Constraints!

APIs and Web Services: What's the Difference?

APIs and Web Services: What's the Difference?

АСЛАНЯН: Как у тебя отберут машину. Китайский резиновый шпион. Монорельс умер / МАШИНЫ

АСЛАНЯН: Как у тебя отберут машину. Китайский резиновый шпион. Монорельс умер / МАШИНЫ

Open API and OpenAPI: What's the Difference?

Open API and OpenAPI: What's the Difference?

Разведчик о том, как использовать людей

Разведчик о том, как использовать людей

© 2025 dtub. Все права защищены.



  • Контакты
  • О нас
  • Политика конфиденциальности



Контакты для правообладателей: [email protected]