{
  "$schema": "http://json-schema.org/draft-07/schema#",
  "title": "Use-Case Page CMS Schema",
  "type": "object",
  "required": ["slug", "useCase", "tldr", "problem", "featurePillars"],
  "properties": {
    "slug": { "type": "string", "pattern": "^[a-z0-9-]+$" },
    "useCase": { "type": "string" },
    "tldr": { "type": "string", "minLength": 50, "maxLength": 400 },
    "problem": { "type": "string", "minLength": 1 },
    "whyTypicalSolutionsFail": { "type": "string", "minLength": 1 },
    "featurePillars": {
      "type": "array",
      "minItems": 3,
      "items": {
        "type": "object",
        "required": ["title", "body"],
        "properties": {
          "title": { "type": "string" },
          "body": { "type": "string" },
          "visual": { "type": "string" }
        }
      }
    },
    "walkthrough": {
      "type": "array",
      "minItems": 3,
      "items": {
        "type": "object",
        "required": ["step", "description"],
        "properties": {
          "step": { "type": "integer" },
          "description": { "type": "string" },
          "screenshot": { "type": "string" }
        }
      }
    },
    "outcome": { "type": "string" },
    "customerQuote": {
      "type": "object",
      "required": ["quote", "name"],
      "properties": {
        "quote": { "type": "string" },
        "name": { "type": "string" },
        "role": { "type": "string" },
        "company": { "type": "string" }
      }
    },
    "faq": {
      "type": "array",
      "items": {
        "type": "object",
        "required": ["question", "answer"],
        "properties": {
          "question": { "type": "string" },
          "answer": { "type": "string" }
        }
      }
    },
    "relatedUseCases": { "type": "array", "items": { "type": "string" } }
  }
}
