{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "Illustrative marketing page",
  "type": "object",
  "additionalProperties": false,
  "required": [
    "title",
    "audience",
    "review_owner",
    "blocks"
  ],
  "properties": {
    "title": {
      "type": "string",
      "minLength": 1
    },
    "audience": {
      "type": "string",
      "minLength": 1
    },
    "review_owner": {
      "type": "string",
      "minLength": 1
    },
    "blocks": {
      "type": "array",
      "minItems": 1,
      "items": {
        "oneOf": [
          {
            "type": "object",
            "additionalProperties": false,
            "required": [
              "type",
              "heading",
              "body"
            ],
            "properties": {
              "type": {
                "const": "text"
              },
              "heading": {
                "type": "string",
                "minLength": 1
              },
              "body": {
                "type": "string",
                "minLength": 1
              }
            }
          },
          {
            "type": "object",
            "additionalProperties": false,
            "required": [
              "type",
              "claim",
              "source_label",
              "alternative_text"
            ],
            "properties": {
              "type": {
                "const": "evidence"
              },
              "claim": {
                "type": "string",
                "minLength": 1
              },
              "source_label": {
                "type": "string",
                "minLength": 1
              },
              "alternative_text": {
                "type": "string",
                "minLength": 1
              }
            }
          },
          {
            "type": "object",
            "additionalProperties": false,
            "required": [
              "type",
              "label",
              "destination_path"
            ],
            "properties": {
              "type": {
                "const": "action"
              },
              "label": {
                "type": "string",
                "minLength": 1
              },
              "destination_path": {
                "type": "string",
                "pattern": "^/[A-Za-z0-9/_-]*$"
              }
            }
          }
        ]
      }
    }
  }
}
