Skip to main content

SOURCE_SCHEMA_JSON

Constant SOURCE_SCHEMA_JSON 

Source
pub const SOURCE_SCHEMA_JSON: &str = r#"{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "vibe-0.1-source",
  "type": "object",
  "additionalProperties": false,
  "required": ["language", "kind", "source"],
  "properties": {
    "language": { "const": "vibe-0.1" },
    "kind": { "enum": ["cell", "module"] },
    "source": { "type": "string", "minLength": 1 },
    "locales": {
      "type": "array",
      "items": { "type": "string" }
    },
    "using": {
      "type": "array",
      "items": { "type": "string" }
    }
  }
}"#;