{
  "$schema": "http://json-schema.org/draft-04/schema",
  "id": "list.json",
  "type": "object",
  "properties": {
    "listId": {
      "readOnly": true,
      "type": "integer"
    },
    "name": {
      "type": "string",
      "maxLength": 100,
      "pattern": "[^ \t\r\n]"
    },
    "currentStatus": {
      "readOnly": true,
      "type": "string",
      "enum": [
        "ready",
        "draft",
        "readyToSent",
        "sent",
        "importingSubscribers",
        "exportingSubscribers",
        "mergingDestination",
        "mergingSource",
        "cancelingExportingSubscribers",
        "inCreationProcess",
        "sending",
        "inDeletingProcess",
        "deleted"
      ]
    },
    "subscribersCount": {
      "readOnly": true,
      "type": "integer"
    },
    "creationDate": {
      "readOnly": true,
      "type": "string"
    },
    "hasScheduledCampaigns": {
      "readOnly": true,
      "type": [ "boolean", "null" ]
    },
    "hasFormsAssociated": {
      "readOnly": true,
      "type": [ "boolean", "null" ]
    },
    "hasSegmentsAssociated": {
      "readOnly": true,
      "type": [ "boolean", "null" ]
    },
    "hasEventsAssociated": {
      "readOnly": true,
      "type": [ "boolean", "null" ]
    },
    "_links": {
      "$ref": "link-collection.json"
    }
  },
  "required": [ "name" ]
}
