Features

YAML Schema provides comprehensive validation capabilities for YAML documents. This section covers all the features available in the YAML Schema specification.

Core Features

  • CLI - Command-line interface usage
  • Basics - Fundamental schema concepts including empty schemas, boolean schemas, and type validation
  • Types - Support for all YAML types: strings, numbers, integers, booleans, nulls, arrays, and objects
  • Validation - Validation constraints including enums, constants, length, range, and pattern matching
  • Composition - Schema composition with allOf, anyOf, oneOf, and not
  • Multiple Types - Support for multiple type values
  • References - Reusable schema definitions with $defs and $ref

Type System

YAML Schema supports the following types:

  • string - Text values
  • number - Numeric values (integers and floats)
  • integer - Whole numbers
  • boolean - True/false values
  • null - Null values
  • array - Ordered lists
  • object - Key-value mappings

Each type can be combined with validation constraints to create precise schemas for your YAML documents.


Table of contents


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