{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "submission": {
      "type": "object",
      "properties": {
        "id": {
          "type": ["string", "null"]
        },
        "campaign_id": {
          "type": ["string", "null"]
        },
        "status": {
          "type": ["string", "null"]
        },
        "feedback": {
          "type": ["string", "null"]
        },
        "submitted_at": {
          "type": ["string", "null"]
        },
        "reviewed_at": {
          "type": ["string", "null"]
        },
        "campaign_revision": {
          "type": ["number", "null"]
        },
        "message_count": {
          "type": ["number", "null"]
        },
        "items": {
          "anyOf": [
            {
              "type": "array",
              "items": {
                "type": "object",
                "properties": {
                  "draftId": {
                    "type": ["string", "null"]
                  },
                  "messageId": {
                    "type": ["string", "null"]
                  },
                  "revision": {
                    "type": ["number", "null"]
                  },
                  "step": {
                    "type": ["number", "null"]
                  },
                  "snapshot": {
                    "type": "object",
                    "properties": {
                      "draft_id": {
                        "type": ["string", "null"]
                      },
                      "id": {
                        "type": ["string", "null"]
                      },
                      "subject": {
                        "type": ["string", "null"]
                      },
                      "body": {
                        "type": ["string", "null"]
                      },
                      "to": {
                        "type": ["string", "null"]
                      },
                      "cc": {
                        "type": ["string", "null"]
                      },
                      "bcc": {
                        "type": ["string", "null"]
                      },
                      "recipient_email": {
                        "type": ["string", "null"]
                      },
                      "enrollment_id": {
                        "type": ["string", "null"]
                      },
                      "revision": {
                        "type": ["number", "null"]
                      },
                      "step": {
                        "type": ["number", "null"]
                      },
                      "attachment_ids": {
                        "anyOf": [
                          {
                            "type": "array",
                            "items": {
                              "type": "string"
                            }
                          },
                          {
                            "type": "null"
                          }
                        ]
                      }
                    },
                    "additionalProperties": false
                  }
                },
                "additionalProperties": false
              }
            },
            {
              "type": "null"
            }
          ]
        }
      },
      "additionalProperties": false
    }
  },
  "additionalProperties": false
}
