Recursive AI
oneyamlSpecification

Same behavior in every language.

Each oneyaml library is written from scratch for its language. What they share is behavior, and one conformance kit checks it.

The shared behavior

YAML 1.2 by default

yes is a string, 0777 a decimal integer, ~ null. Every library reads every scalar the same way.

YAML 1.1 is opt-in

Each 1.1 behavior, << merge keys included, is off by default and one clear step to turn on.

One reading, two layers

Typed reads and the lossless document run on one parser and one resolver, so they never disagree.

Minimal-diff edits

Set a value and only that value changes, in its own style. An untouched document writes back byte for byte.

Comments stay put

Comments outside an edit are never touched. Comments inside a value you replace or remove go with it.

The same errors

Every error has a category that means the same thing in every language, at a position counted the same way.

JSON Patch for YAML

Apply RFC 6902 and RFC 7396 patches to a YAML file. A patch applies in full or not at all, and a write through an alias is refused.

Drop-in compatibility

Adapters for each language’s popular YAML libraries (yaml.v3 and sigs.k8s.io/yaml in Go, YamlDotNet and SharpYaml in C#), so switching is one step, with every difference listed.

Conformance

Checked, not promised

Every library passes the full yaml-test-suite before release, plus our own cases for edits, comments and diagnostics.

Read more