{
  "type": "object",
  "additionalProperties": false,
  "required": [
    "headline",
    "summary",
    "top_priorities",
    "improvements",
    "actions",
    "caveats"
  ],
  "properties": {
    "headline": {
      "type": "string",
      "minLength": 1,
      "maxLength": 180
    },
    "summary": {
      "type": "array",
      "minItems": 3,
      "maxItems": 7,
      "items": {
        "type": "string",
        "minLength": 1,
        "maxLength": 280
      }
    },
    "top_priorities": {
      "type": "array",
      "maxItems": 5,
      "items": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "company",
          "priority",
          "reason",
          "recommended_action"
        ],
        "properties": {
          "company": {
            "type": "string",
            "minLength": 1,
            "maxLength": 160
          },
          "priority": {
            "type": "string",
            "minLength": 1,
            "maxLength": 32
          },
          "reason": {
            "type": "string",
            "minLength": 1,
            "maxLength": 280
          },
          "recommended_action": {
            "type": "string",
            "minLength": 1,
            "maxLength": 280
          }
        }
      }
    },
    "improvements": {
      "type": "array",
      "maxItems": 5,
      "items": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "company",
          "signal",
          "meaning"
        ],
        "properties": {
          "company": {
            "type": "string",
            "minLength": 1,
            "maxLength": 160
          },
          "signal": {
            "type": "string",
            "minLength": 1,
            "maxLength": 280
          },
          "meaning": {
            "type": "string",
            "minLength": 1,
            "maxLength": 280
          }
        }
      }
    },
    "actions": {
      "type": "array",
      "minItems": 2,
      "maxItems": 6,
      "items": {
        "type": "string",
        "minLength": 1,
        "maxLength": 280
      }
    },
    "caveats": {
      "type": "array",
      "minItems": 1,
      "maxItems": 5,
      "items": {
        "type": "string",
        "minLength": 1,
        "maxLength": 280
      }
    }
  }
}
