{
  "$schema": "http://json-schema.org/draft-04/schema#",
  "title": "Event source collection",
  "type": "array",
  "items": {
    "title": "Event source",
    "type": "object",
    "properties": {
      "id": {
        "description": "Unique identifier given by the server",
        "type": "integer"
      },
      "generatedIdentifier": {
        "description": "Unique id generated by the server.",
        "type": "string"
      },
      "name": {
        "description": "A name to identify the event source.",
        "type": "string"
      },
      "organizationId": {
        "description": "The organization.",
        "type": "integer"
      },
      "eventSourceTemplateId": {
        "description": "The event source template instantiated.",
        "type": "integer"
      },
      "public": {
        "description": "Make the event source available to everybody.",
        "type": "boolean"
      },
      "deletable": {
        "type": "boolean",
        "description": "Define if the event source can be deleted."
      },
      "configuration": {
        "description": "A valid JSON object.",
        "type": "object"
      }
    },
    "required": [
      "id",
      "eventSourceId",
      "name",
      "organizationId",
      "eventSourceTemplateId",
      "deletable",
      "configuration"
    ]
  }
}