{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://shapeand.com/schema/shapeand.schema.json",
  "title": "Shapeand Project",
  "type": "object",
  "required": ["version", "project", "structure", "outputs", "meta"],
  "properties": {
    "version": { "type": "string" },
    "project": {
      "type": "object",
      "required": ["name", "idea", "need", "audience", "form", "status"],
      "properties": {
        "name": { "type": "string" },
        "idea": { "type": "string" },
        "need": { "type": "string" },
        "audience": { "type": "string" },
        "form": { "type": "string", "enum": ["site", "app", "mvp", "hub", "system", "other"] },
        "status": { "type": "string", "enum": ["draft", "shaped", "exported", "building", "published"] }
      }
    },
    "structure": {
      "type": "object",
      "properties": {
        "pages": { "type": "array" },
        "sections": { "type": "array" },
        "flows": { "type": "array" }
      }
    },
    "outputs": {
      "type": "object",
      "properties": {
        "brief": { "type": "string" },
        "markdown": { "type": "string" },
        "prompts": { "type": "array" }
      }
    },
    "meta": {
      "type": "object",
      "properties": {
        "createdAt": { "type": "string" },
        "updatedAt": { "type": "string" },
        "source": { "type": "string" }
      }
    }
  }
}
