{
  "$schema": "http://json-schema.org/draft-04/schema#",
  "type": "object",
  "properties": {
    "schemas": {
      "type": "object",
      "properties": {
        "baseUri": {
          "type": "string"
        },
        "baseType": {
          "type": "string"
        },
        "types": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "relations": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "equivalence": {
          "type": "string"
        }
      },
      "additionalProperties": false,
      "required": [
        "baseUri",
        "baseType",
        "types",
        "relations",
        "equivalence"
      ]
    },
    "api": {
      "type": "object",
      "properties": {
        "ds_corrections": {
          "type": "string"
        },
        "exampleUrls": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "defaultPathRelation": {
          "type": "string"
        },
        "hairRelations": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "bindHost": {
          "type": "string"
        },
        "bindPort": {
          "type": "integer"
        },
        "baseUrl": {
          "type": "string"
        },
        "dataDir": {
          "type": "string"
        },
        "admin": {
          "type": "object",
          "properties": {
            "name": {
              "type": "string"
            },
            "password": {
              "type": "string"
            }
          }
        }
      },
      "additionalProperties": false,
      "required": [
        "bindHost",
        "bindPort",
        "baseUrl",
        "dataDir",
        "admin",
        "defaultPathRelation",
        "hairRelations"
      ]
    },
    "stats": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "enabled",
        "cronExpression"
      ],
      "properties": {
        "enabled": {
          "type": "boolean"
        },
        "cronExpression": {
          "type": "string"
        }
      }
    },
    "redis": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "host",
        "port",
        "queue",
        "maxQueueSize"
      ],
      "properties": {
        "host": {
          "type": "string"
        },
        "port": {
          "type": "integer"
        },
        "queue": {
          "type": "string"
        },
        "maxQueueSize": {
          "type": "integer"
        }
      }
    },
    "elasticsearch": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "host",
        "port"
      ],
      "properties": {
        "host": {
          "type": "string"
        },
        "port": {
          "type": "integer"
        }
      }
    },
    "neo4j": {
      "type": "object",
      "properties": {
        "host": {
          "type": "string"
        },
        "port": {
          "type": "integer"
        },
        "user": {
          "type": [
            "string",
            "null"
          ]
        },
        "password": {
          "type": [
            "string",
            "null"
          ]
        }
      },
      "additionalProperties": false,
      "required": [
        "host",
        "port",
        "user",
        "password"
      ]
    },
    "core": {
      "type": "object",
      "properties": {
        "batchSize": {
          "type": "integer"
        },
        "batchTimeout": {
          "type": "integer"
        }
      },
      "additionalProperties": false,
      "required": [
        "batchSize",
        "batchTimeout"
      ]
    },
    "import": {
      "type": "object",
      "properties": {
        "diffTool": {
          "type": "string"
        },
        "dirs": {
          "type": [
            "array",
            "null"
          ],
          "items": {
            "type": "string"
          }
        },
        "s3": {
          "type": "object",
          "properties": {
            "region": {
              "type": [
                "string",
                "null"
              ]
            },
            "accessKeyId": {
              "type": [
                "string",
                "null"
              ]
            },
            "secretAccessKey": {
              "type": [
                "string",
                "null"
              ]
            },
            "buckets": {
              "type": [
                "array",
                "null"
              ],
              "items": {
                "type": "string"
              }
            }
          },
          "additionalProperties": false
        }
      },
      "additionalProperties": false
    },
    "logo": {
      "type": "array",
      "items": {
        "type": "string"
      }
    }
  },
  "additionalProperties": false,
  "required": [
    "schemas",
    "stats",
    "api",
    "redis",
    "elasticsearch",
    "neo4j",
    "import",
    "logo"
  ]
}