pub fn validate(json: &str) -> Result<(), String>
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.