Skip to main content

validate_space_state

Function validate_space_state 

Source
pub fn validate_space_state(
    event_type: &str,
    content: &Value,
) -> Result<(), MatrixError>
Expand description

Rejects malformed m.space.child / m.space.parent content. Empty {} is a removal and always valid; otherwise via must be a non-empty list of strings, order (if any) a short string of printable ASCII, suggested (if any) a bool.