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, andnot - Multiple Types - Support for multiple type values
- References - Reusable schema definitions with
$defsand$ref
Type System
YAML Schema supports the following types:
string- Text valuesnumber- Numeric values (integers and floats)integer- Whole numbersboolean- True/false valuesnull- Null valuesarray- Ordered listsobject- Key-value mappings
Each type can be combined with validation constraints to create precise schemas for your YAML documents.