Skip to main content

validate_updatable_section

Function validate_updatable_section 

Source
pub fn validate_updatable_section(
    section: &str,
    schema: &TypeDefinition,
) -> Result<(), ValidationError>
Expand description

Reject an memstead_update attempt to write a section that is either the virtual relationships surface (managed by memstead_relate) or not part of the type’s updatable_fields allowlist. When the allowlist is empty the section passes — types that opt out of the allowlist accept any declared section.