{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "Secure Sail insight article",
  "type": "object",
  "additionalProperties": false,
  "required": [
    "slug",
    "title",
    "date",
    "lang",
    "status",
    "summary",
    "body"
  ],
  "properties": {
    "slug": {
      "type": "string",
      "pattern": "^[a-z0-9]+(-[a-z0-9]+)*$",
      "maxLength": 80
    },
    "title": {
      "type": "string",
      "minLength": 12,
      "maxLength": 120
    },
    "date": {
      "type": "string",
      "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
    },
    "lang": {
      "type": "string",
      "const": "en"
    },
    "status": {
      "type": "string",
      "enum": [
        "published",
        "draft"
      ]
    },
    "summary": {
      "type": "string",
      "minLength": 40,
      "maxLength": 400
    },
    "audiences": {
      "type": "array",
      "items": {
        "type": "string",
        "enum": [
          "owners",
          "compliance",
          "security-lead"
        ]
      }
    },
    "cover": {
      "type": "string",
      "pattern": "^static/media/"
    },
    "cover_alt": {
      "type": "string",
      "minLength": 8,
      "maxLength": 200
    },
    "body": {
      "type": "string",
      "minLength": 400
    }
  }
}
