Repository navigation
Releases
Releases · ThorFuchs/Swift-YAML
Swift-YAML 0.1.0
First public release.
YAMLParserparses YAML 1.2 into exact Swift-JSON 1.9.0 values, using the core schema:parsefor at most one document;parseStreamfor multi-document streams;parseFrontmatterfor Markdown frontmatter.
YAMLFrontmatter.splitseparates frontmatter from the body, with file-relative line
numbers.YAMLLimitsbounds input bytes, depth, nodes and alias expansion. Cancellation is
supported.YAMLErrorreports 16 stable codes with a 1-based line and column.- All 402 yaml-test-suite cases (data-2022-01-17) are run: 0 known failures, and 43
documented rejections of YAML that JSON cannot represent. - Tested on macOS, Linux x86_64 and arm64, and WebAssembly (WASI).
Installation
.package(url: "https://github.com/ThorFuchs/Swift-YAML.git", from: "0.1.0")Documentation: https://thorfuchs.github.io/Swift-YAML/documentation/yaml/