Skip to main content

apply_single_fix_patch

Function apply_single_fix_patch 

Source
pub fn apply_single_fix_patch(
    doc: &Document,
    patch: &FixPatch,
) -> Result<Document, String>
Expand description

Apply a single FixPatch to a yamlpath::Document, returning a new Document.

ReplaceValue and Remove delegate to yamlpatch. ReplaceKey is handled with a custom string-level rename since yamlpatch has no native “rename key” operation.