Skip to main content

assert_additive_settlement_extra

Function assert_additive_settlement_extra 

Source
pub fn assert_additive_settlement_extra(
    extra: &Map<String, Value>,
    enrichment: &Map<String, Value>,
    caller_label: &str,
) -> Result<(), HookPolicyError>
Expand description

Ensures scheme response enrichment only adds new extra fields, including nested objects.

ยงErrors

HookPolicyError when enrichment would overwrite an existing field.