Skip to content

Latest commit

 

History

History
37 lines (29 loc) · 1.54 KB

File metadata and controls

37 lines (29 loc) · 1.54 KB
layout default
title Features
nav_order 3
has_children true

Features

This section documents validation and schema keywords supported by YAML Schema and the ys CLI. For the normative keyword set, see the published schema at yaml-schema.yaml.

Topics

  • CLI — Command-line usage, instance $schema, JSON errors
  • Basics — Empty schemas, boolean schemas, basic types
  • Types — Strings (including Unicode length), numbers, arrays, objects, etc.
  • String formatsformat for dates, times, email, URI, UUID, and custom labels
  • Validation — Enums, const, descriptions, shared constraint examples
  • CompositionallOf, anyOf, oneOf, not
  • Multiple typestype: [string, number] style unions
  • ConditionalsdependentRequired, dependentSchemas, if / then / else
  • Unevaluated keywordsunevaluatedProperties, unevaluatedItems
  • References$defs, $ref, external resolution, circular refs

Type system

YAML Schema supports these 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

Types combine with validation keywords and composition to describe your YAML documents.