Skip to main content
Verticopolis engineGitHub

check_catalog

Function check_catalog 

Source
pub fn check_catalog(catalog: &Value) -> Result<(), String>
Expand description

Checks a catalog’s shape and its payload rule: every field is an enum the catalog defines or a bounded integer, so no free text, money or name can enter an event.