{
  "$schema": "http://json-schema.org/draft-04/schema#",
  "description": "schema for the fully native mobile endpoint",
  "type": "object",
  "id": "/liveEvent",
  "properties": {
    "data": {
      "type": "object",
      "properties": {
        "type": {
          "type": "string",
          "enum": ["live-event"]
        },
        "id": {
          "type": "number",
          "description": "Example: 9345821"
        },
        "attributes": {
          "type": "object",
          "properties": {
            "createdDate": {
              "type": "string",
              "format": "date-time",
              "description": "Example: 2015-10-26T14:32:09.000+00.00"
            },
            "publishedDate": {
              "type": "string",
              "format": "date-time",
              "description": "Example: 2015-11-29T12:40:00.000+00.00"
            },
            "lastModifiedDate": {
              "type": "string",
              "format": "date-time",
              "description": "Example: 2015-11-29T12:43:18.000+00.00"
            },
            "authors": {
              "type": "array",
              "items": {
                "type": "object",
                "properties": {
                  "name": {
                    "type": "string"
                  },
                  "url": {
                    "type": "string",
                    "format": "uri"
                  },
                  "imageUrl": {
                    "type": "string",
                    "format": "uri"
                  }
                }
              }
            },
            "state": {
              "type": "string",
              "enum": ["published"],
              "description": "Example: published"
            },
            "sponsored": {
              "type": "boolean",
              "enum": [false],
              "description": "Indicates whether article is advertorial"
            },
            "exclude": {
              "type": "boolean",
              "description": "Indicates whether article should be shown in the app"
            },
            "tags": {
              "type": "array",
              "uniqueItems": false,
              "additionalItems": true,
              "items": [
                {
                  "type": "string"
                }
              ],
              "description": "An array of escenic content tags"
            },
            "primaryTag": {
              "oneOf": [
                {
                  "type": "null"
                },
                {
                  "type": "string"
                }
              ]
            },
            "webview": {
              "type": "boolean",
              "description": "Indicates whether a whole article should be shown in a webview"
            },
            "homeSection": {
              "description": "Home section",
              "type": "object",
              "properties": {
                "name": {
                  "type": "string"
                }
              }
            },
            "title": {
              "type": "string",
              "pattern": "\\w+",
              "description": "Example: News title"
            },
            "leadMedia": {
              "oneOf": [
                {
                  "type": "null"
                },
                {
                  "$ref": "/image"
                },
                {
                  "$ref": "/video"
                },
                {
                  "$ref": "/gallery"
                }
              ]
            }
          },
          "required": [
            "createdDate",
            "publishedDate",
            "lastModifiedDate",
            "authors",
            "primaryTag",
            "homeSection",
            "leadMedia",
            "webview",
            "sponsored"
          ]
        },
        "links": {
          "type": "object",
          "properties": {
            "url": {
              "type": "string",
              "format": "uri",
              "description": "Content URL with widgetId query string"
            },
            "offlineUrl": {
              "type": "string",
              "format": "uri",
              "description": "Content URL with widgetId query string and service=tablet"
            },
            "ownerUrl": {
              "type": "string",
              "format": "uri",
              "description": "Website URL"
            }
          },
          "required": [
            "url",
            "offlineUrl"
          ]
        }
      },
      "required": [
        "type",
        "id",
        "attributes",
        "links"
      ]
    },
    "included": {
      "type": "array",
      "minItems": 0,
      "items": {
        "anyOf": [
          {
            "type": "/text"
          },
          {
            "$ref": "/image"
          },
          {
            "$ref": "/video"
          },
          {
            "$ref": "/gallery"
          },
          {
            "$ref": "/html"
          },
          {
            "$ref": "/quiz"
          }
        ]
      }
    }
  },
  "required": [
    "data",
    "included"
  ]
}
