{
  "$schema": "http://json-schema.org/draft-04/schema#",
  "description": "Schema for the connection configuration file.",
  "additionalProperties": false,
  "type": "object",
  "required": [
    "name",
    "author",
    "version",
    "license",
    "class_name",
    "config",
    "protocols"
  ],
  "properties": {
    "name": {
      "$ref": "definitions.json#/definitions/resource_name"
    },
    "author": {
      "$ref": "definitions.json#/definitions/author"
    },
    "version": {
      "$ref": "definitions.json#/definitions/version"
    },
    "license": {
      "type": "string"
    },
    "fingerprint": {
      "type": "string"
    },
    "class_name": {
      "type": "string"
    },
    "protocols": {
      "type": "array",
      "additionalProperties": false,
      "uniqueItems": true,
      "items": {
        "$ref": "definitions.json#/definitions/public_id"
      }
    },
    "restricted_to_protocols": {
      "type": "array",
      "uniqueItems": true,
      "items": {
        "$ref": "definitions.json#/definitions/public_id"
      }
    },
    "excluded_protocols": {
      "type": "array",
      "uniqueItems": true,
      "items": {
        "$ref": "definitions.json#/definitions/public_id"
      }
    },
    "config": {
      "type": "object"
    },
    "dependencies": {
      "$ref": "definitions.json#/definitions/dependencies"
    },
    "description": {
      "type": "string"
    }
  }
}
