Skip to main content

validate_extensible_fields

Function validate_extensible_fields 

Source
pub fn validate_extensible_fields(
    body: &HashMap<String, Value>,
    entity: &ResolvedEntity,
    registry: &ExtensibleRegistry,
    mode: ValidateMode,
) -> Result<(), AppError>
Expand description

Validate the extensible-fields bags in a (snake_cased top-level) request body against the per-tenant registry. Rejects unknown keys, type mismatches, and constraint violations with HTTP 422. Plain (non-extensible) JSON columns are ignored entirely.