oneyaml
YAML 1.2 libraries with typed reads and edits that keep your comments. Same behavior in every language.
Languages
Change one value. Everything else stays exactly as you wrote it.
# Web service server: host: 0.0.0.0 port: 8080 # public tags: [web]
# Web service server: host: 0.0.0.0 port: 9090 # public tags: [web, api]
One parser, one meaning
Typed reads and the lossless document share one parser and one resolver, so they never disagree about what a file means.
Edits that keep your file
An untouched document writes back byte for byte. An edit, a JSON Patch or a merge patch changes only what it touches, in the file’s own style, and every comment stays with its entry.
Correct YAML 1.2 by default
yes is a string and 0777 is a decimal. Every YAML 1.1 behavior is a named setting, off by default.
Safe on any input
Resource limits on every read, a stricter profile for untrusted input, and errors with a category and a position that mean the same in every language.
oneyaml-kit checks every library
A language-neutral YAML 1.2 conformance suite and benchmark harness. The libraries share behavior, not code, and the kit holds that behavior as data: the full YAML test suite plus cases for edits, patches, errors and safety. Every library runs it before release, and so can you, against any YAML library, with one small adapter.
The same kit holds the benchmarks: each answer is checked before it is timed, against the strongest competitor on each task, and the losses are published with the wins.
The source is public on GitHub. There is no release yet.
Same behavior in every language
Each oneyaml is written from scratch for its own language, with an API that feels native there. What they share is behavior: the same reading of every file, the same edits, the same errors. One conformance kit checks every library.