{
  "$schema": "http://json-schema.org/draft-07/schema#",
  "title": "campaign_with",
  "type": "object",
  "properties": {
    "advertiser": {
      "type": "object",
      "description": "available only if `with=advertiser`",
      "properties": {
        "id": {
          "type": "integer"
        },
        "name": {
          "type": "string"
        }
      }
    },
    "agency": {
      "type": "object",
      "description": "available only if `with=agency`",
      "properties": {
        "id": {
          "type": "integer"
        },
        "name": {
          "type": "string"
        }
      }
    }
  }
}