Skip to main content

validate_unique_mapping_keys

Function validate_unique_mapping_keys 

Source
pub fn validate_unique_mapping_keys(text: &str) -> Result<(), YamlDiagnostic>
Expand description

Rejects duplicate or complex YAML mapping keys before value materialization.

§Parameters

§Returns

Returns the successful value produced by crate::yaml::validate_unique_mapping_keys or an error when the operation fails.

§Errors

Returns an error value when crate::yaml::validate_unique_mapping_keys cannot complete successfully.

§Performance

Performance is proportional to the size of the supplied inputs and any parsed or loaded data consumed by crate::yaml::validate_unique_mapping_keys.

§Examples

ⓘ
let _result = pharos_runtime_core::yaml::validate_unique_mapping_keys("{}");
  • crate::yaml for adjacent helpers that share the same runtime surface.