{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://comic-odin/schemas/comic-project.schema.json",
  "title": "Comic Project",
  "type": "object",
  "required": ["schemaVersion", "project", "workflow"],
  "properties": {
    "schemaVersion": { "type": "integer", "minimum": 1 },
    "project": {
      "type": "object",
      "required": ["projectId", "projectName", "createdAt", "lastModified"],
      "properties": {
        "projectId": { "type": "string" },
        "projectName": { "type": "string" },
        "createdAt": { "type": "string" },
        "lastModified": { "type": "string" }
      }
    },
    "workflow": {
      "type": "object",
      "required": ["currentStep"],
      "properties": {
        "currentStep": { "type": "string" },
        "completedSteps": { "type": "array", "items": { "type": "string" } },
        "error": { "type": ["string", "null"] }
      }
    }
  }
}
