Skip to main content

DIAGNOSTIC_SCHEMA_JSON

Constant DIAGNOSTIC_SCHEMA_JSON 

Source
pub const DIAGNOSTIC_SCHEMA_JSON: &str = r#"{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "vibe-0.1-diagnostic",
  "type": "object",
  "required": ["valid", "kind"],
  "properties": {
    "valid": { "type": "boolean" },
    "kind": { "enum": ["cell", "module"] },
    "error_code": { "type": ["string", "null"] },
    "span": { "type": ["array", "null"], "items": { "type": "integer" }, "minItems": 2, "maxItems": 2 },
    "message": { "type": ["string", "null"] },
    "suggested_fix": { "type": ["string", "null"] },
    "evidential": { "type": ["array", "null"] },
    "shacl_violations": { "type": "array" },
    "errors": { "type": "array" }
  }
}"#;