{
  "$schema": "http://json-schema.org/draft-04/schema",
  "id": "import-subscribers-payload.json",
  "type": "object",
  "properties": {
    "items": {
      "type": "array",
      "minItems": 1,
      "maxItems": 10000,
      "items": {
        "type": "object",
        "properties": {
          "email": {
            "type": "string"
          },
          "fields": {
            "type": "array",
            "items": {
              "$ref": "field-value.json"
            }
          }
        },
        "required": [ "email" ]
      }
    },
    "fields": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "callback": {
      "type": "string",
      "format": "uri",
      "maxLength": 500
    },
    "enableEmailNotification": {
      "type": [ "boolean", "null" ]
    },
    "_links": {
      "$ref": "link-collection.json"
    }
  },
  "required": [ "fields", "items" ]
}
