Skip to main content

Module yaml

Module yaml 

Source
Expand description

Native yaml module for YAML parsing and serialization.

Exports: yaml.parse(text), yaml.parse_all(text), yaml.stringify(value), yaml.is_valid(text)

Phase 1.B (ADR-006 §2.7.4) status: yaml.parse / yaml.parse_all / yaml.stringify REMAIN DEFERRED pending the N4 (any-input typed marshal) and N6 (any-output typed marshal) architectural decisions per docs/defections.md HashMap-marshal cluster’s sub-decision queue.

  • yaml.parse(text) -> Result<any> and yaml.parse_all(text) -> Result<Array<any>> return polymorphic recursive serde_yaml::Value-equivalent trees. Mapping to N6.
  • yaml.stringify(value: any) takes a polymorphic value: any input parameter that maps to N4.

yaml.is_valid(text) is migratable standalone.

Until N4 + N6 land, the bodies use the variadic register_typed_function shape (per ADR-006 §2.7.4 ruling) and return Err(...) for the deferred halves; is_valid is fully functional.

Functions§

create_yaml_module
Create the yaml module with YAML parsing and serialization functions.