{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "Veterinarians.org image brief",
  "type": "object",
  "additionalProperties": false,
  "required": [
    "version",
    "id",
    "style",
    "placement",
    "subject",
    "context",
    "composition",
    "must_include",
    "avoid",
    "alt_draft",
    "filename",
    "review"
  ],
  "properties": {
    "version": {
      "const": "1.0"
    },
    "id": {
      "type": "string",
      "pattern": "^[a-z0-9]+(-[a-z0-9]+)*$"
    },
    "style": {
      "enum": [
        "editorial_photo",
        "soft_illustration",
        "line_icon"
      ]
    },
    "placement": {
      "enum": [
        "featured",
        "article_illustration",
        "topic_thumbnail",
        "social"
      ]
    },
    "subject": {
      "type": "string",
      "minLength": 1
    },
    "context": {
      "type": "string",
      "minLength": 1
    },
    "composition": {
      "type": "string",
      "minLength": 1
    },
    "must_include": {
      "type": "array",
      "items": {
        "type": "string",
        "minLength": 1
      }
    },
    "avoid": {
      "type": "array",
      "items": {
        "type": "string",
        "minLength": 1
      }
    },
    "alt_draft": {
      "type": "string"
    },
    "filename": {
      "type": "string",
      "pattern": "^[a-z0-9]+(-[a-z0-9]+)*$"
    },
    "review": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "status",
        "medical_review_required"
      ],
      "properties": {
        "status": {
          "enum": [
            "draft",
            "approved"
          ]
        },
        "medical_review_required": {
          "type": "boolean"
        }
      }
    }
  }
}
