{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "ContextCraft JSON artifact",
  "type": "object",
  "required": ["files", "context"],
  "properties": {
    "files": {
      "type": "array",
      "items": { "type": "string" }
    },
    "context": {
      "type": "array",
      "items": {
        "type": "object",
        "required": ["path", "language", "tier", "content"],
        "properties": {
          "path": { "type": "string" },
          "language": { "type": ["string", "null"] },
          "tier": { "enum": ["FULL", "SKEL", "SIGS"] },
          "content": { "type": "string" }
        }
      }
    }
  }
}
