YAML Schema

YAML Schema is a tool to define and validate the structure and constraints of YAML documents, in YAML.

The YAML Schema specification is based on JSON Schema (https://json-schema.org/), but expressed as YAML.

It also provides a reference implementation and CLI, ys, at https://github.com/yaml-schema/yaml-schema

Getting Started

If you’re new to YAML Schema, we recommend starting with these guides:

  1. Installation - Install the ys command-line tool
  2. Basic Usage - Learn the fundamentals of schema validation
  3. Features - YAML Schema features

Getting Help


This documentation is built with Just the Docs, a modern documentation theme for Jekyll.


This site uses Just the Docs, a documentation theme for Jekyll.