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

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.

Contents