Skip to main content

validate

Function validate 

Source
pub fn validate(json: &str) -> Result<(), String>
Expand description

Validate JSON IR without deserializing into a full result.

Returns Ok(()) if the JSON conforms to the ModuleDoc[] schema, or Err with a description of what’s wrong.