A premium video course by Sourcemeta logo Sourcemeta

Master JSON Schema
for OpenAPI

OpenAPI builds on top of JSON Schema. Go beyond basic API design and learn the advanced techniques that separate elite API architects from the rest.

Available exclusively on

API Masters

Taught by a member of the JSON Schema Technical Steering Committee

Learn more about the instructor

Get unstuck fast: Private Slack access with your instructor

What Makes This Course Different?

Go from basic schemas to expert-level mastery with proven techniques used by elite API teams

The 80%

OpenAPI is Just a Wrapper

OpenAPI is essentially a thin wrapper around JSON Schema. In production specs like Stripe's 100,000+ line specification, over 80% is pure JSON Schema. Want better OpenAPI specs? With this course, you will master the 80% that actually matters.

Advanced Mastery

Beyond Simple Validation

You probably don't know how dynamic references, `unevaluatedProperties`, the vocabulary system, or annotation extraction work. Most developers never get past trivial validation. This course covers the advanced mechanisms that separate experts from everyone else.

Engineering Principles

Treat Your Schemas as Code

Learn to debug schemas with advanced trace inspection tools, write unit tests for them, enforce quality with linters, and deploy them to registries. This course teaches the software engineering practices and tools that professional teams use to write build production-grade schemas.

Knowledge You Won't Find in Any Documentation

This curriculum is based on years of experience building JSON Schema tooling, delivering custom training, and consulting with Fortune 500 enterprises on API and schema design. Every module is packed with advance insights you won't find elsewhere.

After watching this course, you will be ready to write advanced JSON Schema tools and contribute to the JSON Schema open-source organisation.
14
Modules
9+
Hours

Course Outline

14 comprehensive modules covering the entirety of JSON Schema 2020-12 from fundamentals to advanced patterns

Why JSON Schema is the Secret to World-Class API Design

  • What is JSON Schema and Why Learn It?
  • JSON Schema's Role in OpenAPI and API Specifications
  • Understanding OpenAPI as a Wrapper Around JSON Schema
  • Best Practices: Organizing Schemas as Separate Files

Keywords, Vocabularies, Dialects, and Meta-Schemas

  • Understanding JSON Schema Keywords: The Atomic Building Blocks
  • JSON Schema Vocabularies: Grouping Related Keywords
  • Dialects and Meta-Schemas: Encoding and Validating JSON Schema Versions
  • Subschemas: The Recursive Tree Structure of JSON Schema

A Systematic Approach to Reading Any JSON Schema

  • Two Ways of Using JSON Schema: Evaluation vs Static Analysis
  • JSON vs YAML: Syntax Differences and Semantic Equivalence
  • Step 1: Determining the Dialect
  • Step 2: Identifying Vocabularies
  • Step 3: Understanding Keywords and Checking Dependencies
  • Step 4: Evaluating Keywords in Order
  • Understanding JSON Schema as a Constraint-Driven Language

From Unicode Encoding to Regular Expressions and Format Validation

  • Unicode Fundamentals: How Computers Represent Text
  • Basic String Validation with type, const, and enum
  • String Length Constraints: minLength and maxLength
  • Pattern Matching with Regular Expressions and ECMA-262
  • The format Keyword: Semantic Validation and Common Pitfalls

Integers, Floats, Precision, and Interoperability

Validation, Containment, and Tuple Patterns

Properties, Patterns, and Advanced Composition Techniques

Unlocking Conditional Logic and Advanced Validation

  • Multiple Type Validation with Array-Mode type
  • Disjunction Logic with anyOf
  • Exclusive Choice with oneOf
  • Conjunction Logic with allOf
  • Conditional Schemas with if, then, and else
  • Negation with the not Keyword

Mastering Schema Composition and Bundling

  • URI Fundamentals and RFC 3986
  • Schema Resources and the $id Keyword
  • Reusable Schemas with $defs
  • Schema References with $ref and JSON Pointers
  • Internal vs External References
  • Position-Independent References with $anchor
  • JSON Schema Bundling and De-referencing

Mastering unevaluatedProperties and unevaluatedItems

Extensible Schemas with $dynamicAnchor and $dynamicRef

  • Understanding the Dynamic Scope
  • Registering Fragments with $dynamicAnchor
  • Runtime Lookups with $dynamicRef
  • Schema Extension Patterns and Polymorphic Validation

Extracting Metadata from the Validation Process

The Content Vocabulary for Non-JSON Data

From Data Modeling to Production OpenAPI Specifications

  • Planning Your Problem Domain and Data Model
  • Implementing Schemas Following Best Practices
  • Testing and Quality Assurance for JSON Schemas
  • Deploying Schemas to Registries
  • Composing Schemas into OpenAPI Specifications

What Developers Are Saying

Join hundreds of API developers taking their API design skills to the next level

"Juan Cruz Viotti has an exceptionally deep understanding of JSON Schema and how to leverage it to solve real-world problems. His course provides tremendous value for organizations looking to train their teams on operationalizing JSON Schemas for API design, data validation, and model definition. His practical approach goes beyond theory to show how JSON Schema can become a core part of your technical infrastructure."

"Taking Juan's course on JSON Schema for OpenAPI was truly enlightening. He brings an unmatched depth of knowledge to the table. His firsthand experience developing and evolving the JSON Schema ecosystem makes his teaching uniquely practical and insightful. A must-take for anyone serious about mastering JSON Schema in modern API development."

"I have been using JSON Schema without even realizing it sometimes. Juan's teachings really helped me take a step forward in actually understanding the specs for real-world use-cases that I had not thought of, even though I stumble across them pretty much daily!"

Juan Cruz Viotti

Taught by Juan Cruz Viotti

Juan Cruz Viotti is a member of the JSON Schema Technical Steering Committee, O'Reilly author, award-winning University of Oxford alumnus, and founder of Sourcemeta.

He consults with companies on API governance and schema design strategies, and maintains key open-source software in the JSON Schema ecosystem such as the Learn JSON Schema reference documentation site, the Blaze high-performance C++ schema validator, and the popular JSON Schema CLI.

Join the Top 1% of API Designers

Stop struggling with JSON Schema. Master the world's most widely adopted schema language, and learn the advanced patterns and best practices that separate elite API architects from the rest.

14
In-depth Modules
9+
Hours of Content
Lifetime Access
Slack Support
Start Learning Now

Available exclusively on

API Masters

Open Source

We maintain key open-source projects that make working with JSON Schema a breeze. Explore our projects on GitHub to learn more!