{
  "$schema": "http://json-schema.org/draft-04/schema#",
  "description": "schema for the fully native mobile endpoint",
  "type": "object",
  "id": "/gallery",
  "properties": {
    "data": {
      "type": "object",
      "properties": {
        "type": {
          "type": "string",
          "enum": ["gallery"]
        },
        "id": {
          "type": "number"
        },
        "attributes": {
          "type": "object",
          "properties": {
            "title": {
              "type": "string",
              "pattern": "\\w+"
            },
            "leadMedia": {
              "$ref": "/image"
            }
          },
          "required": [
            "title",
            "leadMedia"
          ]
        }
      },
      "required": [
        "type",
        "id",
        "attributes"
      ]
    },
    "included": {
      "type": "array",
      "items": {
        "$ref": "/galleryImage"
      }
    }
  },
  "required": [
    "data",
    "included"
  ]
}
