From the course: JSON Essential Training
Unlock the full course today
Join today to access over 24,700 courses taught by industry experts.
Challenge: Work with JSON Schema - JavaScript Tutorial
From the course: JSON Essential Training
Challenge: Work with JSON Schema
(light music) - [Instructor] Ready to try your hand at working with JSON schema? It's time for a challenge. The start code for this video includes JSON data returned from an API that provides weather forecasts. Your challenge is to create a schema that validates data in this structure, it's fine to use a schema generator for this challenge. However you create the schema, customize it with the URI shown here for its ID. Once you've created your schema, save it to the schema.js file as the value of the weather schema variable, also validate it using a schema validator and make any adjustments to the code so it passes validation. This exercise should take you about 15 minutes. When you're done join me in the next video, and I'll walk you through how I approached it.
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
-
-
-
-
(Locked)
What is JSON Schema?2m 57s
-
(Locked)
Create a basic schema with JSON Schema6m 47s
-
(Locked)
Validate JSON data against a schema3m 42s
-
(Locked)
Specify required properties with JSON Schema4m 59s
-
(Locked)
Work with schema generators7m 29s
-
(Locked)
Challenge: Work with JSON Schema52s
-
(Locked)
Solution: Work with JSON Schema4m 23s
-
(Locked)
-
-