Using StrictYAML
How to:
- Build a YAML document from scratch in code
- Either/or schema validation of different, equally valid different kinds of YAML
- Labeling exceptions
- Merge YAML documents
- Revalidate an already validated document
- Reading in YAML, editing it and writing it back out
- Get line numbers of YAML elements
- Parsing YAML without a schema
Compound validators:
- Fixed length sequences (FixedSeq)
- Mappings combining defined and undefined keys (MapCombined)
- Mappings with arbitrary key names (MapPattern)
- Mapping with defined keys and a custom key validator (Map)
- Using a YAML object of a parsed mapping
- Mappings with defined keys (Map)
- Optional keys with defaults (Map/Optional)
- Validating optional keys in mappings (Map)
- Sequences of unique items (UniqueSeq)
- Sequence/list validator (Seq)
- Updating document with a schema
Scalar validators:
- Boolean (Bool)
- Parsing comma separated items (CommaSeparated)
- Datetimes (Datetime)
- Decimal numbers (Decimal)
- Email and URL validators
- Empty key validation
- Enumerated scalars (Enum)
- Floating point numbers (Float)
- Hexadecimal Integers (HexInt)
- Integers (Int)
- Validating strings with regexes (Regex)
- Parsing strings (Str)
Restrictions: