Explore StrictYAML usage guides and validators
masterStrictYAML provides a variety of guides for common YAML tasks, including building documents, schema validation, merging, and roundtripping. It also offers a rich set of compound and scalar validators to enforce strict data structures.
Common Tasks
- Building and Roundtripping: Build YAML documents from scratch, or read, edit, and write them back out (roundtripping).
- Validation: Perform either/or schema validation, revalidate existing documents, and label exceptions.
- Manipulation: Merge YAML documents and get line numbers for specific YAML elements.
- Parsing: Parse YAML without a schema.
Validator Types
- Compound Validators: Used for complex structures like
FixedSeq(fixed length sequences),Map(mappings with defined/optional/pattern keys),Seq(sequences), andUniqueSeq(sequences of unique items). - Scalar Validators: Used for individual values like
Bool(booleans),Datetime,Decimal,Float,Int,HexInt,Enum(enumerated values),Regex(string regex validation), andStr(strings).