Skip to main content

check_profile_value

Function check_profile_value 

Source
fn check_profile_value(name: &str, value: &Value) -> Result
Expand description

Validate a profile field value against the schema of the proposal naming the field.

MSC4133 reserves no schema of its own, so a field this does not recognize carries any JSON the size cap admits. A stored null clears the field for readers without removing it, and is accepted for every field name.