{
  "$schema": "https://json-schema.org/draft-07/schema#",
  "$id": "./ServerRepositorySchema.json",
  "$ref": "#/definitions/ServerRepository",
  "definitions": {
    "ServerRepository": {
      "type": "object",
      "additionalProperties": true,
      "properties": {
        "RepositoryName": {
          "type": "string"
        },
        "RepositoryDescription": {
          "type": "string"
        },
        "Servers": {
          "type": "array",
          "items": {
            "$ref": "#/definitions/Server"
          }
        }
      },
      "required": ["Servers"],
      "title": "ServerRepository"
    },
    "Server": {
      "type": "object",
      "additionalProperties": true,
      "properties": {
        "ServerName": {
          "type": "string"
        },
        "ServerAddress": {
          "type": "string"
        },
        "ServerPort": {
          "type": "integer",
          "minimum": 1,
          "maximum": 65535
        }
      },
      "required": ["ServerAddress", "ServerPort"],
      "title": "Server"
    }
  }
}
