Skip to main content

Module parser

Module parser 

Source

Enums§

ParseError
Errors that can occur during YAML parsing.

Functions§

diagnose_file
Parse and diagnose a resource file. When the saphyr-spans feature is enabled and the file parses cleanly under saphyr, diagnostics carry source spans for root-level codes. Otherwise spans are absent.
parse_resource
Parse a YAML string into a ResourceDefinition.
parse_resource_file
Parse a resource YAML file from disk.
parse_resource_str
Parse a resource definition from a YAML string using the default (serde_yaml) parser. Used by tests and tooling that already have the YAML in memory. Endpoint defaults are NOT applied; use parse_resource if you need them.