UNPKG

webpack-dev-server

Version:

Serves a webpack app. Updates the browser on changes.

8,810 lines • 352 kB
// This file was automatically generated.
// DO NOT MODIFY BY HAND. Run `npm run fix:schema-check` to update.
/* eslint-disable */
// @ts-nocheck
"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.validate = exports.default = void 0;
const validate = exports.validate = validate10;
var _default = exports.default = validate10;
const schema11 = {
  "title": "Dev Server options",
  "type": "object",
  "definitions": {
    "App": {
      "instanceof": "Function",
      "description": "Allows to use custom applications, such as 'connect', 'fastify', etc.",
      "link": "https://webpack.js.org/configuration/dev-server/#devserverapp"
    },
    "AllowedHosts": {
      "anyOf": [{
        "type": "array",
        "minItems": 1,
        "items": {
          "$ref": "#/definitions/AllowedHostsItem"
        }
      }, {
        "enum": ["auto", "all"]
      }, {
        "$ref": "#/definitions/AllowedHostsItem"
      }],
      "description": "Allows to enumerate the hosts from which access to the dev server are allowed (useful when you are proxying dev server, by default is 'auto').",
      "link": "https://webpack.js.org/configuration/dev-server/#devserverallowedhosts"
    },
    "AllowedHostsItem": {
      "type": "string",
      "minLength": 1
    },
    "Bonjour": {
      "anyOf": [{
        "type": "boolean",
        "cli": {
          "negatedDescription": "Disallows to broadcasts dev server via ZeroConf networking on start."
        }
      }, {
        "type": "object",
        "description": "Options for bonjour.",
        "link": "https://github.com/watson/bonjour#initializing"
      }],
      "description": "Allows to broadcasts dev server via ZeroConf networking on start.",
      "link": " https://webpack.js.org/configuration/dev-server/#devserverbonjour"
    },
    "Client": {
      "description": "Allows to specify options for client script in the browser or disable client script.",
      "link": "https://webpack.js.org/configuration/dev-server/#devserverclient",
      "anyOf": [{
        "enum": [false],
        "cli": {
          "negatedDescription": "Disables client script."
        }
      }, {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "logging": {
            "$ref": "#/definitions/ClientLogging"
          },
          "overlay": {
            "$ref": "#/definitions/ClientOverlay"
          },
          "progress": {
            "$ref": "#/definitions/ClientProgress"
          },
          "reconnect": {
            "$ref": "#/definitions/ClientReconnect"
          },
          "webSocketTransport": {
            "$ref": "#/definitions/ClientWebSocketTransport"
          },
          "webSocketURL": {
            "$ref": "#/definitions/ClientWebSocketURL"
          }
        }
      }]
    },
    "ClientLogging": {
      "enum": ["none", "error", "warn", "info", "log", "verbose"],
      "description": "Allows to set log level in the browser.",
      "link": "https://webpack.js.org/configuration/dev-server/#logging"
    },
    "ClientOverlay": {
      "anyOf": [{
        "description": "Enables a full-screen overlay in the browser when there are compiler errors or warnings.",
        "link": "https://webpack.js.org/configuration/dev-server/#overlay",
        "type": "boolean",
        "cli": {
          "negatedDescription": "Disables the full-screen overlay in the browser when there are compiler errors or warnings."
        }
      }, {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "errors": {
            "anyOf": [{
              "description": "Enables a full-screen overlay in the browser when there are compiler errors.",
              "type": "boolean",
              "cli": {
                "negatedDescription": "Disables the full-screen overlay in the browser when there are compiler errors."
              }
            }, {
              "instanceof": "Function",
              "description": "Filter compiler errors. Return true to include and return false to exclude."
            }]
          },
          "warnings": {
            "anyOf": [{
              "description": "Enables a full-screen overlay in the browser when there are compiler warnings.",
              "type": "boolean",
              "cli": {
                "negatedDescription": "Disables the full-screen overlay in the browser when there are compiler warnings."
              }
            }, {
              "instanceof": "Function",
              "description": "Filter compiler warnings. Return true to include and return false to exclude."
            }]
          },
          "runtimeErrors": {
            "anyOf": [{
              "description": "Enables a full-screen overlay in the browser when there are uncaught runtime errors.",
              "type": "boolean",
              "cli": {
                "negatedDescription": "Disables the full-screen overlay in the browser when there are uncaught runtime errors."
              }
            }, {
              "instanceof": "Function",
              "description": "Filter uncaught runtime errors. Return true to include and return false to exclude."
            }]
          },
          "trustedTypesPolicyName": {
            "description": "The name of a Trusted Types policy for the overlay. Defaults to 'webpack-dev-server#overlay'.",
            "type": "string"
          }
        }
      }]
    },
    "ClientProgress": {
      "description": "Displays compilation progress in the browser. Options include 'linear' and 'circular' for visual indicators.",
      "link": "https://webpack.js.org/configuration/dev-server/#progress",
      "type": ["boolean", "string"],
      "enum": [true, false, "linear", "circular"],
      "cli": {
        "negatedDescription": "Does not display compilation progress in the browser."
      }
    },
    "ClientReconnect": {
      "description": "Tells dev-server the number of times it should try to reconnect the client.",
      "link": "https://webpack.js.org/configuration/dev-server/#reconnect",
      "anyOf": [{
        "type": "boolean",
        "cli": {
          "negatedDescription": "Tells dev-server to not to try to reconnect the client."
        }
      }, {
        "type": "number",
        "minimum": 0
      }]
    },
    "ClientWebSocketTransport": {
      "anyOf": [{
        "$ref": "#/definitions/ClientWebSocketTransportEnum"
      }, {
        "$ref": "#/definitions/ClientWebSocketTransportString"
      }],
      "description": "Allows to set custom web socket transport to communicate with dev server.",
      "link": "https://webpack.js.org/configuration/dev-server/#websockettransport"
    },
    "ClientWebSocketTransportEnum": {
      "enum": ["ws", "sse"]
    },
    "ClientWebSocketTransportString": {
      "type": "string",
      "minLength": 1
    },
    "ClientWebSocketURL": {
      "description": "Allows to specify URL to web socket server (useful when you're proxying dev server and client script does not always know where to connect to).",
      "link": "https://webpack.js.org/configuration/dev-server/#websocketurl",
      "anyOf": [{
        "type": "string",
        "minLength": 1
      }, {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "hostname": {
            "description": "Tells clients connected to devServer to use the provided hostname.",
            "type": "string",
            "minLength": 1
          },
          "pathname": {
            "description": "Tells clients connected to devServer to use the provided path to connect.",
            "type": "string"
          },
          "password": {
            "description": "Tells clients connected to devServer to use the provided password to authenticate.",
            "type": "string"
          },
          "port": {
            "description": "Tells clients connected to devServer to use the provided port.",
            "anyOf": [{
              "type": "number"
            }, {
              "type": "string",
              "minLength": 1
            }]
          },
          "protocol": {
            "description": "Tells clients connected to devServer to use the provided protocol.",
            "anyOf": [{
              "enum": ["auto"]
            }, {
              "type": "string",
              "minLength": 1
            }]
          },
          "username": {
            "description": "Tells clients connected to devServer to use the provided username to authenticate.",
            "type": "string"
          }
        }
      }]
    },
    "Compress": {
      "type": "boolean",
      "description": "Enables gzip compression for everything served.",
      "link": "https://webpack.js.org/configuration/dev-server/#devservercompress",
      "cli": {
        "negatedDescription": "Disables gzip compression for everything served."
      }
    },
    "DevMiddleware": {
      "description": "Provide options to 'webpack-dev-middleware' which handles webpack assets.",
      "link": "https://webpack.js.org/configuration/dev-server/#devserverdevmiddleware",
      "type": "object",
      "additionalProperties": true
    },
    "HeaderObject": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "key": {
          "description": "key of header.",
          "type": "string"
        },
        "value": {
          "description": "value of header.",
          "type": "string"
        }
      },
      "cli": {
        "exclude": true
      }
    },
    "Headers": {
      "anyOf": [{
        "type": "array",
        "items": {
          "$ref": "#/definitions/HeaderObject"
        },
        "minItems": 1
      }, {
        "type": "object"
      }, {
        "instanceof": "Function"
      }],
      "description": "Allows to set custom headers on response.",
      "link": "https://webpack.js.org/configuration/dev-server/#devserverheaders"
    },
    "HistoryApiFallback": {
      "anyOf": [{
        "type": "boolean",
        "cli": {
          "negatedDescription": "Disallows to proxy requests through a specified index page."
        }
      }, {
        "type": "object",
        "description": "Options for `historyApiFallback`.",
        "link": "https://github.com/bripkens/connect-history-api-fallback#options"
      }],
      "description": "Allows to proxy requests through a specified index page (by default 'index.html'), useful for Single Page Applications that utilise the HTML5 History API.",
      "link": "https://webpack.js.org/configuration/dev-server/#devserverhistoryapifallback"
    },
    "Host": {
      "description": "Allows to specify a hostname to use.",
      "link": "https://webpack.js.org/configuration/dev-server/#devserverhost",
      "anyOf": [{
        "enum": ["local-ip", "local-ipv4", "local-ipv6"]
      }, {
        "type": "string",
        "minLength": 1
      }]
    },
    "Hot": {
      "anyOf": [{
        "type": "boolean",
        "cli": {
          "negatedDescription": "Disables Hot Module Replacement."
        }
      }, {
        "enum": ["only"]
      }],
      "description": "Enables Hot Module Replacement.",
      "link": "https://webpack.js.org/configuration/dev-server/#devserverhot"
    },
    "IPC": {
      "anyOf": [{
        "type": "string",
        "minLength": 1
      }, {
        "type": "boolean",
        "enum": [true]
      }],
      "description": "Listen to a unix socket.",
      "link": "https://webpack.js.org/configuration/dev-server/#devserveripc"
    },
    "LiveReload": {
      "type": "boolean",
      "description": "Enables reload/refresh the page(s) when file changes are detected (enabled by default).",
      "cli": {
        "negatedDescription": "Disables reload/refresh the page(s) when file changes are detected (enabled by default)."
      },
      "link": "https://webpack.js.org/configuration/dev-server/#devserverlivereload"
    },
    "OnListening": {
      "instanceof": "Function",
      "description": "Provides the ability to execute a custom function when dev server starts listening.",
      "link": "https://webpack.js.org/configuration/dev-server/#devserveronlistening"
    },
    "Open": {
      "anyOf": [{
        "type": "array",
        "items": {
          "anyOf": [{
            "$ref": "#/definitions/OpenString"
          }, {
            "$ref": "#/definitions/OpenObject"
          }]
        }
      }, {
        "$ref": "#/definitions/OpenBoolean"
      }, {
        "$ref": "#/definitions/OpenString"
      }, {
        "$ref": "#/definitions/OpenObject"
      }],
      "description": "Allows to configure dev server to open the browser(s) and page(s) after server had been started (set it to true to open your default browser).",
      "link": "https://webpack.js.org/configuration/dev-server/#devserveropen"
    },
    "OpenBoolean": {
      "type": "boolean",
      "cli": {
        "negatedDescription": "Does not open the default browser."
      }
    },
    "OpenObject": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "target": {
          "anyOf": [{
            "type": "array",
            "items": {
              "type": "string"
            }
          }, {
            "type": "string"
          }],
          "description": "Opens specified page in browser."
        },
        "app": {
          "anyOf": [{
            "type": "object",
            "additionalProperties": false,
            "properties": {
              "name": {
                "anyOf": [{
                  "type": "array",
                  "items": {
                    "type": "string",
                    "minLength": 1
                  },
                  "minItems": 1
                }, {
                  "type": "string",
                  "minLength": 1
                }]
              },
              "arguments": {
                "items": {
                  "type": "string",
                  "minLength": 1
                }
              }
            }
          }, {
            "type": "string",
            "minLength": 1,
            "description": "Open specified browser.",
            "cli": {
              "exclude": true
            }
          }],
          "description": "Open specified browser."
        }
      }
    },
    "OpenString": {
      "type": "string",
      "minLength": 1
    },
    "Port": {
      "anyOf": [{
        "type": "number",
        "minimum": 0,
        "maximum": 65535
      }, {
        "type": "string",
        "minLength": 1
      }, {
        "enum": ["auto"]
      }],
      "description": "Allows to specify a port to use.",
      "link": "https://webpack.js.org/configuration/dev-server/#devserverport"
    },
    "Proxy": {
      "type": "array",
      "items": {
        "anyOf": [{
          "type": "object"
        }, {
          "instanceof": "Function"
        }]
      },
      "description": "Allows to proxy requests, can be useful when you have a separate API backend development server and you want to send API requests on the same domain.",
      "link": "https://webpack.js.org/configuration/dev-server/#devserverproxy"
    },
    "Server": {
      "anyOf": [{
        "$ref": "#/definitions/ServerEnum"
      }, {
        "$ref": "#/definitions/ServerFn"
      }, {
        "$ref": "#/definitions/ServerString"
      }, {
        "$ref": "#/definitions/ServerObject"
      }],
      "link": "https://webpack.js.org/configuration/dev-server/#devserverserver",
      "description": "Allows to set server and options (by default 'http')."
    },
    "ServerType": {
      "enum": ["http", "https", "http2"]
    },
    "ServerFn": {
      "instanceof": "Function"
    },
    "ServerEnum": {
      "enum": ["http", "https", "http2"],
      "cli": {
        "exclude": true
      }
    },
    "ServerString": {
      "type": "string",
      "minLength": 1,
      "cli": {
        "exclude": true
      }
    },
    "ServerObject": {
      "type": "object",
      "properties": {
        "type": {
          "anyOf": [{
            "$ref": "#/definitions/ServerType"
          }, {
            "$ref": "#/definitions/ServerString"
          }, {
            "$ref": "#/definitions/ServerFn"
          }]
        },
        "options": {
          "$ref": "#/definitions/ServerOptions"
        }
      },
      "additionalProperties": false
    },
    "ServerOptions": {
      "type": "object",
      "additionalProperties": true,
      "properties": {
        "passphrase": {
          "type": "string",
          "description": "Passphrase for a pfx file."
        },
        "requestCert": {
          "type": "boolean",
          "description": "Request for an SSL certificate.",
          "cli": {
            "negatedDescription": "Does not request for an SSL certificate."
          }
        },
        "ca": {
          "anyOf": [{
            "type": "array",
            "items": {
              "anyOf": [{
                "type": "string"
              }, {
                "instanceof": "Buffer"
              }]
            }
          }, {
            "type": "string"
          }, {
            "instanceof": "Buffer"
          }],
          "description": "Path to an SSL CA certificate or content of an SSL CA certificate."
        },
        "cert": {
          "anyOf": [{
            "type": "array",
            "items": {
              "anyOf": [{
                "type": "string"
              }, {
                "instanceof": "Buffer"
              }]
            }
          }, {
            "type": "string"
          }, {
            "instanceof": "Buffer"
          }],
          "description": "Path to an SSL certificate or content of an SSL certificate."
        },
        "crl": {
          "anyOf": [{
            "type": "array",
            "items": {
              "anyOf": [{
                "type": "string"
              }, {
                "instanceof": "Buffer"
              }]
            }
          }, {
            "type": "string"
          }, {
            "instanceof": "Buffer"
          }],
          "description": "Path to PEM formatted CRLs (Certificate Revocation Lists) or content of PEM formatted CRLs (Certificate Revocation Lists)."
        },
        "key": {
          "anyOf": [{
            "type": "array",
            "items": {
              "anyOf": [{
                "type": "string"
              }, {
                "instanceof": "Buffer"
              }, {
                "type": "object",
                "additionalProperties": true
              }]
            }
          }, {
            "type": "string"
          }, {
            "instanceof": "Buffer"
          }],
          "description": "Path to an SSL key or content of an SSL key."
        },
        "pfx": {
          "anyOf": [{
            "type": "array",
            "items": {
              "anyOf": [{
                "type": "string"
              }, {
                "instanceof": "Buffer"
              }, {
                "type": "object",
                "additionalProperties": true
              }]
            }
          }, {
            "type": "string"
          }, {
            "instanceof": "Buffer"
          }],
          "description": "Path to an SSL pfx file or content of an SSL pfx file."
        }
      }
    },
    "SetupExitSignals": {
      "type": "boolean",
      "description": "Allows to close dev server and exit the process on SIGINT and SIGTERM signals (enabled by default for CLI).",
      "link": "https://webpack.js.org/configuration/dev-server/#devserversetupexitsignals",
      "cli": {
        "exclude": true
      }
    },
    "SetupMiddlewares": {
      "instanceof": "Function",
      "description": "Provides the ability to execute a custom function and apply custom middleware(s).",
      "link": "https://webpack.js.org/configuration/dev-server/#devserversetupmiddlewares"
    },
    "Static": {
      "anyOf": [{
        "type": "array",
        "items": {
          "anyOf": [{
            "$ref": "#/definitions/StaticString"
          }, {
            "$ref": "#/definitions/StaticObject"
          }]
        }
      }, {
        "type": "boolean",
        "cli": {
          "negatedDescription": "Disallows to configure options for serving static files from directory."
        }
      }, {
        "$ref": "#/definitions/StaticString"
      }, {
        "$ref": "#/definitions/StaticObject"
      }],
      "description": "Allows to configure options for serving static files from directory (by default 'public' directory).",
      "link": "https://webpack.js.org/configuration/dev-server/#devserverstatic"
    },
    "StaticObject": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "directory": {
          "type": "string",
          "minLength": 1,
          "description": "Directory for static contents.",
          "link": "https://webpack.js.org/configuration/dev-server/#directory"
        },
        "staticOptions": {
          "type": "object",
          "link": "https://webpack.js.org/configuration/dev-server/#staticoptions",
          "additionalProperties": true
        },
        "publicPath": {
          "anyOf": [{
            "type": "array",
            "items": {
              "type": "string"
            },
            "minItems": 1
          }, {
            "type": "string"
          }],
          "description": "The static files will be available in the browser under this public path.",
          "link": "https://webpack.js.org/configuration/dev-server/#publicpath"
        },
        "serveIndex": {
          "anyOf": [{
            "type": "boolean",
            "cli": {
              "negatedDescription": "Does not tell dev server to use serveIndex middleware."
            }
          }, {
            "type": "object",
            "additionalProperties": true
          }],
          "description": "Tells dev server to use serveIndex middleware when enabled.",
          "link": "https://webpack.js.org/configuration/dev-server/#serveindex"
        },
        "watch": {
          "anyOf": [{
            "type": "boolean",
            "cli": {
              "negatedDescription": "Does not watch for files in static content directory."
            }
          }, {
            "type": "object",
            "description": "Options for watch.",
            "link": "https://github.com/paulmillr/chokidar#api"
          }],
          "description": "Watches for files in static content directory.",
          "link": "https://webpack.js.org/configuration/dev-server/#watch"
        }
      }
    },
    "StaticString": {
      "type": "string",
      "minLength": 1
    },
    "WatchFiles": {
      "anyOf": [{
        "type": "array",
        "items": {
          "anyOf": [{
            "$ref": "#/definitions/WatchFilesString"
          }, {
            "$ref": "#/definitions/WatchFilesObject"
          }]
        }
      }, {
        "$ref": "#/definitions/WatchFilesString"
      }, {
        "$ref": "#/definitions/WatchFilesObject"
      }],
      "description": "Allows to configure list of globs/directories/files to watch for file changes.",
      "link": "https://webpack.js.org/configuration/dev-server/#devserverwatchfiles"
    },
    "WatchFilesObject": {
      "cli": {
        "exclude": true
      },
      "type": "object",
      "properties": {
        "paths": {
          "anyOf": [{
            "type": "array",
            "items": {
              "type": "string",
              "minLength": 1
            }
          }, {
            "type": "string",
            "minLength": 1
          }],
          "description": "Path(s) of globs/directories/files to watch for file changes."
        },
        "options": {
          "type": "object",
          "description": "Configure advanced options for watching. See the chokidar documentation for the possible options.",
          "link": "https://github.com/paulmillr/chokidar#api",
          "additionalProperties": true
        }
      },
      "additionalProperties": false
    },
    "WatchFilesString": {
      "type": "string",
      "minLength": 1
    },
    "WebSocketServer": {
      "anyOf": [{
        "$ref": "#/definitions/WebSocketServerEnum"
      }, {
        "$ref": "#/definitions/WebSocketServerString"
      }, {
        "$ref": "#/definitions/WebSocketServerFunction"
      }, {
        "$ref": "#/definitions/WebSocketServerObject"
      }],
      "description": "Allows to set web socket server and options (by default 'ws').",
      "link": "https://webpack.js.org/configuration/dev-server/#devserverwebsocketserver"
    },
    "WebSocketServerType": {
      "enum": ["ws"]
    },
    "WebSocketServerEnum": {
      "anyOf": [{
        "enum": [false],
        "cli": {
          "negatedDescription": "Disallows to set web socket server and options."
        }
      }, {
        "enum": ["ws", "sse"],
        "cli": {
          "exclude": true
        }
      }]
    },
    "WebSocketServerFunction": {
      "instanceof": "Function"
    },
    "WebSocketServerObject": {
      "type": "object",
      "properties": {
        "type": {
          "anyOf": [{
            "$ref": "#/definitions/WebSocketServerType"
          }, {
            "$ref": "#/definitions/WebSocketServerString"
          }, {
            "$ref": "#/definitions/WebSocketServerFunction"
          }]
        },
        "options": {
          "type": "object",
          "additionalProperties": true,
          "cli": {
            "exclude": true
          }
        }
      },
      "additionalProperties": false
    },
    "WebSocketServerString": {
      "type": "string",
      "minLength": 1,
      "cli": {
        "exclude": true
      }
    }
  },
  "additionalProperties": false,
  "properties": {
    "allowedHosts": {
      "$ref": "#/definitions/AllowedHosts"
    },
    "bonjour": {
      "$ref": "#/definitions/Bonjour"
    },
    "client": {
      "$ref": "#/definitions/Client"
    },
    "compress": {
      "$ref": "#/definitions/Compress"
    },
    "devMiddleware": {
      "$ref": "#/definitions/DevMiddleware"
    },
    "headers": {
      "$ref": "#/definitions/Headers"
    },
    "historyApiFallback": {
      "$ref": "#/definitions/HistoryApiFallback"
    },
    "host": {
      "$ref": "#/definitions/Host"
    },
    "hot": {
      "$ref": "#/definitions/Hot"
    },
    "ipc": {
      "$ref": "#/definitions/IPC"
    },
    "liveReload": {
      "$ref": "#/definitions/LiveReload"
    },
    "onListening": {
      "$ref": "#/definitions/OnListening"
    },
    "open": {
      "$ref": "#/definitions/Open"
    },
    "port": {
      "$ref": "#/definitions/Port"
    },
    "proxy": {
      "$ref": "#/definitions/Proxy"
    },
    "server": {
      "$ref": "#/definitions/Server"
    },
    "app": {
      "$ref": "#/definitions/App"
    },
    "setupExitSignals": {
      "$ref": "#/definitions/SetupExitSignals"
    },
    "setupMiddlewares": {
      "$ref": "#/definitions/SetupMiddlewares"
    },
    "static": {
      "$ref": "#/definitions/Static"
    },
    "watchFiles": {
      "$ref": "#/definitions/WatchFiles"
    },
    "webSocketServer": {
      "$ref": "#/definitions/WebSocketServer"
    }
  }
};
const schema15 = {
  "anyOf": [{
    "type": "boolean",
    "cli": {
      "negatedDescription": "Disallows to broadcasts dev server via ZeroConf networking on start."
    }
  }, {
    "type": "object",
    "description": "Options for bonjour.",
    "link": "https://github.com/watson/bonjour#initializing"
  }],
  "description": "Allows to broadcasts dev server via ZeroConf networking on start.",
  "link": " https://webpack.js.org/configuration/dev-server/#devserverbonjour"
};
const schema25 = {
  "type": "boolean",
  "description": "Enables gzip compression for everything served.",
  "link": "https://webpack.js.org/configuration/dev-server/#devservercompress",
  "cli": {
    "negatedDescription": "Disables gzip compression for everything served."
  }
};
const schema26 = {
  "description": "Provide options to 'webpack-dev-middleware' which handles webpack assets.",
  "link": "https://webpack.js.org/configuration/dev-server/#devserverdevmiddleware",
  "type": "object",
  "additionalProperties": true
};
const schema29 = {
  "anyOf": [{
    "type": "boolean",
    "cli": {
      "negatedDescription": "Disallows to proxy requests through a specified index page."
    }
  }, {
    "type": "object",
    "description": "Options for `historyApiFallback`.",
    "link": "https://github.com/bripkens/connect-history-api-fallback#options"
  }],
  "description": "Allows to proxy requests through a specified index page (by default 'index.html'), useful for Single Page Applications that utilise the HTML5 History API.",
  "link": "https://webpack.js.org/configuration/dev-server/#devserverhistoryapifallback"
};
const schema30 = {
  "description": "Allows to specify a hostname to use.",
  "link": "https://webpack.js.org/configuration/dev-server/#devserverhost",
  "anyOf": [{
    "enum": ["local-ip", "local-ipv4", "local-ipv6"]
  }, {
    "type": "string",
    "minLength": 1
  }]
};
const schema31 = {
  "anyOf": [{
    "type": "boolean",
    "cli": {
      "negatedDescription": "Disables Hot Module Replacement."
    }
  }, {
    "enum": ["only"]
  }],
  "description": "Enables Hot Module Replacement.",
  "link": "https://webpack.js.org/configuration/dev-server/#devserverhot"
};
const schema32 = {
  "anyOf": [{
    "type": "string",
    "minLength": 1
  }, {
    "type": "boolean",
    "enum": [true]
  }],
  "description": "Listen to a unix socket.",
  "link": "https://webpack.js.org/configuration/dev-server/#devserveripc"
};
const schema33 = {
  "type": "boolean",
  "description": "Enables reload/refresh the page(s) when file changes are detected (enabled by default).",
  "cli": {
    "negatedDescription": "Disables reload/refresh the page(s) when file changes are detected (enabled by default)."
  },
  "link": "https://webpack.js.org/configuration/dev-server/#devserverlivereload"
};
const schema34 = {
  "instanceof": "Function",
  "description": "Provides the ability to execute a custom function when dev server starts listening.",
  "link": "https://webpack.js.org/configuration/dev-server/#devserveronlistening"
};
const schema41 = {
  "anyOf": [{
    "type": "number",
    "minimum": 0,
    "maximum": 65535
  }, {
    "type": "string",
    "minLength": 1
  }, {
    "enum": ["auto"]
  }],
  "description": "Allows to specify a port to use.",
  "link": "https://webpack.js.org/configuration/dev-server/#devserverport"
};
const schema42 = {
  "type": "array",
  "items": {
    "anyOf": [{
      "type": "object"
    }, {
      "instanceof": "Function"
    }]
  },
  "description": "Allows to proxy requests, can be useful when you have a separate API backend development server and you want to send API requests on the same domain.",
  "link": "https://webpack.js.org/configuration/dev-server/#devserverproxy"
};
const schema52 = {
  "instanceof": "Function",
  "description": "Allows to use custom applications, such as 'connect', 'fastify', etc.",
  "link": "https://webpack.js.org/configuration/dev-server/#devserverapp"
};
const schema53 = {
  "type": "boolean",
  "description": "Allows to close dev server and exit the process on SIGINT and SIGTERM signals (enabled by default for CLI).",
  "link": "https://webpack.js.org/configuration/dev-server/#devserversetupexitsignals",
  "cli": {
    "exclude": true
  }
};
const schema54 = {
  "instanceof": "Function",
  "description": "Provides the ability to execute a custom function and apply custom middleware(s).",
  "link": "https://webpack.js.org/configuration/dev-server/#devserversetupmiddlewares"
};
const func2 = Object.prototype.hasOwnProperty;
const schema12 = {
  "anyOf": [{
    "type": "array",
    "minItems": 1,
    "items": {
      "$ref": "#/definitions/AllowedHostsItem"
    }
  }, {
    "enum": ["auto", "all"]
  }, {
    "$ref": "#/definitions/AllowedHostsItem"
  }],
  "description": "Allows to enumerate the hosts from which access to the dev server are allowed (useful when you are proxying dev server, by default is 'auto').",
  "link": "https://webpack.js.org/configuration/dev-server/#devserverallowedhosts"
};
const schema13 = {
  "type": "string",
  "minLength": 1
};
function validate11(data, {
  instancePath = "",
  parentData,
  parentDataProperty,
  rootData = data
} = {}) {
  let vErrors = null;
  let errors = 0;
  const _errs0 = errors;
  let valid0 = false;
  const _errs1 = errors;
  if (errors === _errs1) {
    if (Array.isArray(data)) {
      if (data.length < 1) {
        const err0 = {
          instancePath,
          schemaPath: "#/anyOf/0/minItems",
          keyword: "minItems",
          params: {
            limit: 1
          },
          message: "must NOT have fewer than 1 items"
        };
        if (vErrors === null) {
          vErrors = [err0];
        } else {
          vErrors.push(err0);
        }
        errors++;
      } else {
        var valid1 = true;
        const len0 = data.length;
        for (let i0 = 0; i0 < len0; i0++) {
          let data0 = data[i0];
          const _errs3 = errors;
          const _errs4 = errors;
          if (errors === _errs4) {
            if (typeof data0 === "string") {
              if (data0.length < 1) {
                const err1 = {
                  instancePath: instancePath + "/" + i0,
                  schemaPath: "#/definitions/AllowedHostsItem/minLength",
                  keyword: "minLength",
                  params: {
                    limit: 1
                  },
                  message: "must NOT have fewer than 1 characters"
                };
                if (vErrors === null) {
                  vErrors = [err1];
                } else {
                  vErrors.push(err1);
                }
                errors++;
              }
            } else {
              const err2 = {
                instancePath: instancePath + "/" + i0,
                schemaPath: "#/definitions/AllowedHostsItem/type",
                keyword: "type",
                params: {
                  type: "string"
                },
                message: "must be string"
              };
              if (vErrors === null) {
                vErrors = [err2];
              } else {
                vErrors.push(err2);
              }
              errors++;
            }
          }
          var valid1 = _errs3 === errors;
          if (!valid1) {
            break;
          }
        }
      }
    } else {
      const err3 = {
        instancePath,
        schemaPath: "#/anyOf/0/type",
        keyword: "type",
        params: {
          type: "array"
        },
        message: "must be array"
      };
      if (vErrors === null) {
        vErrors = [err3];
      } else {
        vErrors.push(err3);
      }
      errors++;
    }
  }
  var _valid0 = _errs1 === errors;
  valid0 = valid0 || _valid0;
  if (!valid0) {
    const _errs6 = errors;
    if (!(data === "auto" || data === "all")) {
      const err4 = {
        instancePath,
        schemaPath: "#/anyOf/1/enum",
        keyword: "enum",
        params: {
          allowedValues: schema12.anyOf[1].enum
        },
        message: "must be equal to one of the allowed values"
      };
      if (vErrors === null) {
        vErrors = [err4];
      } else {
        vErrors.push(err4);
      }
      errors++;
    }
    var _valid0 = _errs6 === errors;
    valid0 = valid0 || _valid0;
    if (!valid0) {
      const _errs7 = errors;
      const _errs8 = errors;
      if (errors === _errs8) {
        if (typeof data === "string") {
          if (data.length < 1) {
            const err5 = {
              instancePath,
              schemaPath: "#/definitions/AllowedHostsItem/minLength",
              keyword: "minLength",
              params: {
                limit: 1
              },
              message: "must NOT have fewer than 1 characters"
            };
            if (vErrors === null) {
              vErrors = [err5];
            } else {
              vErrors.push(err5);
            }
            errors++;
          }
        } else {
          const err6 = {
            instancePath,
            schemaPath: "#/definitions/AllowedHostsItem/type",
            keyword: "type",
            params: {
              type: "string"
            },
            message: "must be string"
          };
          if (vErrors === null) {
            vErrors = [err6];
          } else {
            vErrors.push(err6);
          }
          errors++;
        }
      }
      var _valid0 = _errs7 === errors;
      valid0 = valid0 || _valid0;
    }
  }
  if (!valid0) {
    const err7 = {
      instancePath,
      schemaPath: "#/anyOf",
      keyword: "anyOf",
      params: {},
      message: "must match a schema in anyOf"
    };
    if (vErrors === null) {
      vErrors = [err7];
    } else {
      vErrors.push(err7);
    }
    errors++;
    validate11.errors = vErrors;
    return false;
  } else {
    errors = _errs0;
    if (vErrors !== null) {
      if (_errs0) {
        vErrors.length = _errs0;
      } else {
        vErrors = null;
      }
    }
  }
  validate11.errors = vErrors;
  return errors === 0;
}
const schema16 = {
  "description": "Allows to specify options for client script in the browser or disable client script.",
  "link": "https://webpack.js.org/configuration/dev-server/#devserverclient",
  "anyOf": [{
    "enum": [false],
    "cli": {
      "negatedDescription": "Disables client script."
    }
  }, {
    "type": "object",
    "additionalProperties": false,
    "properties": {
      "logging": {
        "$ref": "#/definitions/ClientLogging"
      },
      "overlay": {
        "$ref": "#/definitions/ClientOverlay"
      },
      "progress": {
        "$ref": "#/definitions/ClientProgress"
      },
      "reconnect": {
        "$ref": "#/definitions/ClientReconnect"
      },
      "webSocketTransport": {
        "$ref": "#/definitions/ClientWebSocketTransport"
      },
      "webSocketURL": {
        "$ref": "#/definitions/ClientWebSocketURL"
      }
    }
  }]
};
const schema17 = {
  "enum": ["none", "error", "warn", "info", "log", "verbose"],
  "description": "Allows to set log level in the browser.",
  "link": "https://webpack.js.org/configuration/dev-server/#logging"
};
const schema18 = {
  "anyOf": [{
    "description": "Enables a full-screen overlay in the browser when there are compiler errors or warnings.",
    "link": "https://webpack.js.org/configuration/dev-server/#overlay",
    "type": "boolean",
    "cli": {
      "negatedDescription": "Disables the full-screen overlay in the browser when there are compiler errors or warnings."
    }
  }, {
    "type": "object",
    "additionalProperties": false,
    "properties": {
      "errors": {
        "anyOf": [{
          "description": "Enables a full-screen overlay in the browser when there are compiler errors.",
          "type": "boolean",
          "cli": {
            "negatedDescription": "Disables the full-screen overlay in the browser when there are compiler errors."
          }
        }, {
          "instanceof": "Function",
          "description": "Filter compiler errors. Return true to include and return false to exclude."
        }]
      },
      "warnings": {
        "anyOf": [{
          "description": "Enables a full-screen overlay in the browser when there are compiler warnings.",
          "type": "boolean",
          "cli": {
            "negatedDescription": "Disables the full-screen overlay in the browser when there are compiler warnings."
          }
        }, {
          "instanceof": "Function",
          "description": "Filter compiler warnings. Return true to include and return false to exclude."
        }]
      },
      "runtimeErrors": {
        "anyOf": [{
          "description": "Enables a full-screen overlay in the browser when there are uncaught runtime errors.",
          "type": "boolean",
          "cli": {
            "negatedDescription": "Disables the full-screen overlay in the browser when there are uncaught runtime errors."
          }
        }, {
          "instanceof": "Function",
          "description": "Filter uncaught runtime errors. Return true to include and return false to exclude."
        }]
      },
      "trustedTypesPolicyName": {
        "description": "The name of a Trusted Types policy for the overlay. Defaults to 'webpack-dev-server#overlay'.",
        "type": "string"
      }
    }
  }]
};
const schema19 = {
  "description": "Displays compilation progress in the browser. Options include 'linear' and 'circular' for visual indicators.",
  "link": "https://webpack.js.org/configuration/dev-server/#progress",
  "type": ["boolean", "string"],
  "enum": [true, false, "linear", "circular"],
  "cli": {
    "negatedDescription": "Does not display compilation progress in the browser."
  }
};
const schema20 = {
  "description": "Tells dev-server the number of times it should try to reconnect the client.",
  "link": "https://webpack.js.org/configuration/dev-server/#reconnect",
  "anyOf": [{
    "type": "boolean",
    "cli": {
      "negatedDescription": "Tells dev-server to not to try to reconnect the client."
    }
  }, {
    "type": "number",
    "minimum": 0
  }]
};
const schema24 = {
  "description": "Allows to specify URL to web socket server (useful when you're proxying dev server and client script does not always know where to connect to).",
  "link": "https://webpack.js.org/configuration/dev-server/#websocketurl",
  "anyOf": [{
    "type": "string",
    "minLength": 1
  }, {
    "type": "object",
    "additionalProperties": false,
    "properties": {
      "hostname": {
        "description": "Tells clients connected to devServer to use the provided hostname.",
        "type": "string",
        "minLength": 1
      },
      "pathname": {
        "description": "Tells clients connected to devServer to use the provided path to connect.",
        "type": "string"
      },
      "password": {
        "description": "Tells clients connected to devServer to use the provided password to authenticate.",
        "type": "string"
      },
      "port": {
        "description": "Tells clients connected to devServer to use the provided port.",
        "anyOf": [{
          "type": "number"
        }, {
          "type": "string",
          "minLength": 1
        }]
      },
      "protocol": {
        "description": "Tells clients connected to devServer to use the provided protocol.",
        "anyOf": [{
          "enum": ["auto"]
        }, {
          "type": "string",
          "minLength": 1
        }]
      },
      "username": {
        "description": "Tells clients connected to devServer to use the provided username to authenticate.",
        "type": "string"
      }
    }
  }]
};
const schema21 = {
  "anyOf": [{
    "$ref": "#/definitions/ClientWebSocketTransportEnum"
  }, {
    "$ref": "#/definitions/ClientWebSocketTransportString"
  }],
  "description": "Allows to set custom web socket transport to communicate with dev server.",
  "link": "https://webpack.js.org/configuration/dev-server/#websockettransport"
};
const schema22 = {
  "enum": ["ws", "sse"]
};
const schema23 = {
  "type": "string",
  "minLength": 1
};
function validate14(data, {
  instancePath = "",
  parentData,
  parentDataProperty,
  rootData = data
} = {}) {
  let vErrors = null;
  let errors = 0;
  const _errs0 = errors;
  let valid0 = false;
  const _errs1 = errors;
  if (!(data === "ws" || data === "sse")) {
    const err0 = {
      instancePath,
      schemaPath: "#/definitions/ClientWebSocketTransportEnum/enum",
      keyword: "enum",
      params: {
        allowedValues: schema22.enum
      },
      message: "must be equal to one of the allowed values"
    };
    if (vErrors === null) {
      vErrors = [err0];
    } else {
      vErrors.push(err0);
    }
    errors++;
  }
  var _valid0 = _errs1 === errors;
  valid0 = valid0 || _valid0;
  if (!valid0) {
    const _errs3 = errors;
    const _errs4 = errors;
    if (errors === _errs4) {
      if (typeof data === "string") {
        if (data.length < 1) {
          const err1 = {
            instancePath,
            schemaPath: "#/definitions/ClientWebSocketTransportString/minLength",
            keyword: "minLength",
            params: {
              limit: 1
            },
            message: "must NOT have fewer than 1 characters"
          };
          if (vErrors === null) {
            vErrors = [err1];
          } else {
            vErrors.push(err1);
          }
          errors++;
        }
      } else {
        const err2 = {
          instancePath,
          schemaPath: "#/definitions/ClientWebSocketTransportString/type",
          keyword: "type",
          params: {
            type: "string"
          },
          message: "must be string"
        };
        if (vErrors === null) {
          vErrors = [err2];
        } else {
          vErrors.push(err2);
        }
        errors++;
      }
    }
    var _valid0 = _errs3 === errors;
    valid0 = valid0 || _valid0;
  }
  if (!valid0) {
    const err3 = {
      instancePath,
      schemaPath: "#/anyOf",
      keyword: "anyOf",
      params: {},
      message: "must match a schema in anyOf"
    };
    if (vErrors === null) {
      vErrors = [err3];
    } else {
      vErrors.push(err3);
    }
    errors++;
    validate14.errors = vErrors;
    return false;
  } else {
    errors = _errs0;
    if (vErrors !== null) {
      if (_errs0) {
        vErrors.length = _errs0;
      } else {
        vErrors = null;
      }
    }
  }
  validate14.errors = vErrors;
  return errors === 0;
}
function validate13(data, {
  instancePath = "",
  parentData,
  parentDataProperty,
  rootData = data
} = {}) {
  let vErrors = null;
  let errors = 0;
  const _errs0 = errors;
  let valid0 = false;
  const _errs1 = errors;
  if (!(data === false)) {
    const err0 = {
      instancePath,
      schemaPath: "#/anyOf/0/enum",
      keyword: "enum",
      params: {
        allowedValues: schema16.anyOf[0].enum
      },
      message: "must be equal to one of the allowed values"
    };
    if (vErrors === null) {
      vErrors = [err0];
    } else {
      vErrors.push(err0);
    }
    errors++;
  }
  var _valid0 = _errs1 === errors;
  valid0 = valid0 || _valid0;
  if (!valid0) {
    const _errs3 = errors;
    if (errors === _errs3) {
      if (data && typeof data == "object" && !Array.isArray(data)) {
        const _errs5 = errors;
        for (const key0 in data) {
          if (!(key0 === "logging" || key0 === "overlay" || key0 === "progress" || key0 === "reconnect" || key0 === "webSocketTransport" || key0 === "webSocketURL")) {
            const err1 = {
              instancePath,
              schemaPath: "#/anyOf/1/additionalProperties",
              keyword: "additionalProperties",
              params: {
                additionalProperty: key0
              },
              message: "must NOT have additional properties"
            };
            if (vErrors === null) {
              vErrors = [err1];
            } else {
              vErrors.push(err1);
            }
            errors++;
            break;
          }
        }
        if (_errs5 === errors) {
          if (data.logging !== undefined) {
            let data0 = data.logging;
            const _errs6 = errors;
            if (!(data0 === "none" || data0 === "error" || data0 === "warn" || data0 === "info" || data0 === "log" || data0 === "verbose")) {
              const err2 = {
                instancePath: instancePath + "/logging",
                schemaPath: "#/definitions/ClientLogging/enum",
                keyword: "enum",
                params: {
                  allowedValues: schema17.enum
                },
                message: "must be equal to one of the allowed values"
              };
              if (vErrors === null) {
                vErrors = [err2];
              } else {
                vErrors.push(err2);
              }
              errors++;
            }
            var valid1 = _errs6 === errors;
          } else {
            var valid1 = true;
          }
          if (valid1) {
            if (data.overlay !== undefined) {
              let data1 = data.overlay;
              const _errs9 = errors;
              const _errs11 = errors;
              let valid4 = false;
              const _errs12 = errors;
              if (typeof data1 !== "boolean") {
                const err3 = {
                  instancePath: instancePath + "/overlay",
                  schemaPath: "#/definitions/ClientOverlay/anyOf/0/type",
                  keyword: "type",
                  params: {
                    type: "boolean"
                  },
                  message: "must be boolean"
                };
                if (vErrors === null) {
                  vErrors = [err3];
                } else {
                  vErrors.push(err3);
                }
                errors++;
              }
              var _valid1 = _errs12 === errors;
              valid4 = valid4 || _valid1;
              if (!valid4) {
                const _errs16 = errors;
                if (errors === _errs16) {
                  if (data1 && typeof data1 == "object" && !Array.isArray(data1)) {
                    const _errs18 = errors;
                    for (const key1 in data1) {
                      if (!(key1 === "errors" || key1 === "warnings" || key1 === "runtimeErrors" || key1 === "trustedTypesPolicyName")) {
                        const err4 = {
                          instancePath: instancePath + "/overlay",
                          schemaPath: "#/definitions/ClientOverlay/anyOf/1/additionalProperties",
                          keyword: "additionalProperties",
                          params: {
                            additionalProperty: key1
                          },
                          message: "must NOT have additional properties"
                        };
                        if (vErrors === null) {
                          vErrors = [err4];
                        } else {
                          vErrors.push(err4);
                        }
                        errors++;
                        break;
                      }
                    }
                    if (_errs18 === errors) {
                      if (data1.errors !== undefined) {
                        let data2 = data1.errors;
                        const _errs19 = errors;
                        const _errs20 = errors;
                        let valid6 = false;
                        const _errs21 = errors;
                        if (typeof data2 !== "boolean") {
                          const err5 = {
                            instancePath: instancePath + "/overlay/errors",
                            schemaPath: "#/definitions/ClientOverlay/anyOf/1/properties/errors/anyOf/0/type",
                            keyword: "type",
                            params: {
                              type: "boolean"
                            },
                            message: "must be boolean"
                          };
                          if (vErrors === null) {
                            vErrors = [err5];
                          } else {
                            vErrors.push(err5);
                          }
                          errors++;
                        }
                        var _valid2 = _errs21 === errors;
                        valid6 = valid6 || _valid2;
                        if (!valid6) {
                          const _errs24 = errors;
                          if (!(data2 instanceof Function)) {
                            const err6 = {
                              instancePath: instancePath + "/overlay/errors",
                              schemaPath: "#/definitions/ClientOverlay/anyOf/1/properties/errors/anyOf/1/instanceof",
                              keyword: "instanceof",
                              params: {},
                              message: "must pass \"instanceof\" keyword validation"
                            };
                            if (vErrors === null) {
                              vErrors = [err6];
                            } else {
                              vErrors.push(err6);
                            }
                            errors++;
                          }
                          var _valid2 = _errs24 === errors;
                          valid6 = valid6 || _valid2;
                        }
                        if (!valid6) {
                          const err7 = {
                            instancePath: instancePath + "/overlay/errors",
                            schemaPath: "#/definitions/ClientOverlay/anyOf/1/properties/errors/anyOf",
                            keyword: "anyOf",
                            params: {},
                            message: "must match a schema in anyOf"
                          };
                          if (vErrors === null) {
                            vErrors = [err7];
                          } else {
                            vErrors.push(err7);
                          }
                          errors++;
                        } else {
                          errors = _errs20;
                          if (vErrors !== null) {
                            if (_errs20) {
                              vErrors.length = _errs20;
                            } else {
                              vErrors = null;
                            }
                          }
                        }
                        var valid5 = _errs19 === errors;
                      } else {
                        var valid5 = true;
                      }
                      if (valid5) {
                        if (data1.warnings !== undefined) {
                          let data3 = data1.warnings;
                          const _errs25 = errors;
                          const _errs26 = errors;
                          let valid7 = false;
                          const _errs27 = errors;
                          if (typeof data3 !== "boolean") {
                            const err8 = {
                              instancePath: instancePath + "/overlay/warnings",
                              schemaPath: "#/definitions/ClientOverlay/anyOf/1/properties/warnings/anyOf/0/type",
                              keyword: "type",
                              params: {
                                type: "boolean"
                              },
                              message: "must be boolean"
                            };
                            if (vErrors === null) {
                              vErrors = [err8];
                            } else {
                              vErrors.push(err8);
                            }
                            errors++;
                          }
                          var _valid3 = _errs27 === errors;
                          valid7 = valid7 || _valid3;
                          if (!valid7) {
                            const _errs30 = errors;
                            if (!(data3 instanceof Function)) {
                              const err9 = {
                                instancePath: instancePath + "/overlay/warnings",
                                schemaPath: "#/definitions/ClientOverlay/anyOf/1/properties/warnings/anyOf/1/instanceof",
                                keyword: "instanceof",
                                params: {},
                                message: "must pass \"instanceof\" keyword validation"
                              };
                              if (vErrors === null) {
                                vErrors = [err9];
                              } else {
                                vErrors.push(err9);
                              }
                              errors++;
                            }
                            var _valid3 = _errs30 === errors;
                            valid7 = valid7 || _valid3;
                          }
                          if (!valid7) {
                            const err10 = {
                              instancePath: instancePath + "/overlay/warnings",
                              schemaPath: "#/definitions/ClientOverlay/anyOf/1/properties/warnings/anyOf",
                              keyword: "anyOf",
                              params: {},
                              message: "must match a schema in anyOf"
                            };
                            if (vErrors === null) {
                              vErrors = [err10];
                            } else {
                              vErrors.push(err10);
                            }
                            errors++;
                          } else {
                            errors = _errs26;
                            if (vErrors !== null) {
                              if (_errs26) {
                                vErrors.length = _errs26;
                              } else {
                                vErrors = null;
                              }
                            }
                          }
                          var valid5 = _errs25 === errors;
                        } else {
                          var valid5 = true;
                        }
                        if (valid5) {
                          if (data1.runtimeErrors !== undefined) {
                            let data4 = data1.runtimeErrors;
                            const _errs31 = errors;
                            const _errs32 = errors;
                            let valid8 = false;
                            const _errs33 = errors;
                            if (typeof data4 !== "boolean") {
                              const err11 = {
                                instancePath: instancePath + "/overlay/runtimeErrors",
                                schemaPath: "#/definitions/ClientOverlay/anyOf/1/properties/runtimeErrors/anyOf/0/type",
                                keyword: "type",
                                params: {
                                  type: "boolean"
                                },
                                message: "must be boolean"
                              };
                              if (vErrors === null) {
                                vErrors = [err11];
                              } else {
                                vErrors.push(err11);
                              }
                              errors++;
                            }
                            var _valid4 = _errs33 === errors;
                            valid8 = valid8 || _valid4;
                            if (!valid8) {
                              const _errs36 = errors;
                              if (!(data4 instanceof Function)) {
                                const err12 = {
                                  instancePath: instancePath + "/overlay/runtimeErrors",
                                  schemaPath: "#/definitions/ClientOverlay/anyOf/1/properties/runtimeErrors/anyOf/1/instanceof",
                                  keyword: "instanceof",
                                  params: {},
                                  message: "must pass \"instanceof\" keyword validation"
                                };
                                if (vErrors === null) {
                                  vErrors = [err12];
                                } else {
                                  vErrors.push(err12);
                                }
                                errors++;
                              }
                              var _valid4 = _errs36 === errors;
                              valid8 = valid8 || _valid4;
                            }
                            if (!valid8) {
                              const err13 = {
                                instancePath: instancePath + "/overlay/runtimeErrors",
                                schemaPath: "#/definitions/ClientOverlay/anyOf/1/properties/runtimeErrors/anyOf",
                                keyword: "anyOf",
                                params: {},
                                message: "must match a schema in anyOf"
                              };
                              if (vErrors === null) {
                                vErrors = [err13];
                              } else {
                                vErrors.push(err13);
                              }
                              errors++;
                            } else {
                              errors = _errs32;
                              if (vErrors !== null) {
                                if (_errs32) {
                                  vErrors.length = _errs32;
                                } else {
                                  vErrors = null;
                                }
                              }
                            }
                            var valid5 = _errs31 === errors;
                          } else {
                            var valid5 = true;
                          }
                          if (valid5) {
                            if (data1.trustedTypesPolicyName !== undefined) {
                              const _errs37 = errors;
                              if (typeof data1.trustedTypesPolicyName !== "string") {
                                const err14 = {
                                  instancePath: instancePath + "/overlay/trustedTypesPolicyName",
                                  schemaPath: "#/definitions/ClientOverlay/anyOf/1/properties/trustedTypesPolicyName/type",
                                  keyword: "type",
                                  params: {
                                    type: "string"
                                  },
                                  message: "must be string"
                                };
                                if (vErrors === null) {
                                  vErrors = [err14];
                                } else {
                                  vErrors.push(err14);
                                }
                                errors++;
                              }
                              var valid5 = _errs37 === errors;
                            } else {
                              var valid5 = true;
                            }
                          }
                        }
                      }
                    }
                  } else {
                    const err15 = {
                      instancePath: instancePath + "/overlay",
                      schemaPath: "#/definitions/ClientOverlay/anyOf/1/type",
                      keyword: "type",
                      params: {
                        type: "object"
                      },
                      message: "must be object"
                    };
                    if (vErrors === null) {
                      vErrors = [err15];
                    } else {
                      vErrors.push(err15);
                    }
                    errors++;
                  }
                }
                var _valid1 = _errs16 === errors;
                valid4 = valid4 || _valid1;
              }
              if (!valid4) {
                const err16 = {
                  instancePath: instancePath + "/overlay",
                  schemaPath: "#/definitions/ClientOverlay/anyOf",
                  keyword: "anyOf",
                  params: {},
                  message: "must match a schema in anyOf"
                };
                if (vErrors === null) {
                  vErrors = [err16];
                } else {
                  vErrors.push(err16);
                }
                errors++;
              } else {
                errors = _errs11;
                if (vErrors !== null) {
                  if (_errs11) {
                    vErrors.length = _errs11;
                  } else {
                    vErrors = null;
                  }
                }
              }
              var valid1 = _errs9 === errors;
            } else {
              var valid1 = true;
            }
            if (valid1) {
              if (data.progress !== undefined) {
                let data6 = data.progress;
                const _errs39 = errors;
                if (typeof data6 !== "boolean" && typeof data6 !== "string") {
                  const err17 = {
                    instancePath: instancePath + "/progress",
                    schemaPath: "#/definitions/ClientProgress/type",
                    keyword: "type",
                    params: {
                      type: schema19.type
                    },
                    message: "must be boolean,string"
                  };
                  if (vErrors === null) {
                    vErrors = [err17];
                  } else {
                    vErrors.push(err17);
                  }
                  errors++;
                }
                if (!(data6 === true || data6 === false || data6 === "linear" || data6 === "circular")) {
                  const err18 = {
                    instancePath: instancePath + "/progress",
                    schemaPath: "#/definitions/ClientProgress/enum",
                    keyword: "enum",
                    params: {
                      allowedValues: schema19.enum
                    },
                    message: "must be equal to one of the allowed values"
                  };
                  if (vErrors === null) {
                    vErrors = [err18];
                  } else {
                    vErrors.push(err18);
                  }
                  errors++;
                }
                var valid1 = _errs39 === errors;
              } else {
                var valid1 = true;
              }
              if (valid1) {
                if (data.reconnect !== undefined) {
                  let data7 = data.reconnect;
                  const _errs44 = errors;
                  const _errs46 = errors;
                  let valid11 = false;
                  const _errs47 = errors;
                  if (typeof data7 !== "boolean") {
                    const err19 = {
                      instancePath: instancePath + "/reconnect",
                      schemaPath: "#/definitions/ClientReconnect/anyOf/0/type",
                      keyword: "type",
                      params: {
                        type: "boolean"
                      },
                      message: "must be boolean"
                    };
                    if (vErrors === null) {
                      vErrors = [err19];
                    } else {
                      vErrors.push(err19);
                    }
                    errors++;
                  }
                  var _valid5 = _errs47 === errors;
                  valid11 = valid11 || _valid5;
                  if (!valid11) {
                    const _errs50 = errors;
                    if (errors === _errs50) {
                      if (typeof data7 == "number") {
                        if (data7 < 0 || isNaN(data7)) {
                          const err20 = {
                            instancePath: instancePath + "/reconnect",
                            schemaPath: "#/definitions/ClientReconnect/anyOf/1/minimum",
                            keyword: "minimum",
                            params: {
                              comparison: ">=",
                              limit: 0
                            },
                            message: "must be >= 0"
                          };
                          if (vErrors === null) {
                            vErrors = [err20];
                          } else {
                            vErrors.push(err20);
                          }
                          errors++;
                        }
                      } else {
                        const err21 = {
                          instancePath: instancePath + "/reconnect",
                          schemaPath: "#/definitions/ClientReconnect/anyOf/1/type",
                          keyword: "type",
                          params: {
                            type: "number"
                          },
                          message: "must be number"
                        };
                        if (vErrors === null) {
                          vErrors = [err21];
                        } else {
                          vErrors.push(err21);
                        }
                        errors++;
                      }
                    }
                    var _valid5 = _errs50 === errors;
                    valid11 = valid11 || _valid5;
                  }
                  if (!valid11) {
                    const err22 = {
                      instancePath: instancePath + "/reconnect",
                      schemaPath: "#/definitions/ClientReconnect/anyOf",
                      keyword: "anyOf",
                      params: {},
                      message: "must match a schema in anyOf"
                    };
                    if (vErrors === null) {
                      vErrors = [err22];
                    } else {
                      vErrors.push(err22);
                    }
                    errors++;
                  } else {
                    errors = _errs46;
                    if (vErrors !== null) {
                      if (_errs46) {
                        vErrors.length = _errs46;
                      } else {
                        vErrors = null;
                      }
                    }
                  }
                  var valid1 = _errs44 === errors;
                } else {
                  var valid1 = true;
                }
                if (valid1) {
                  if (data.webSocketTransport !== undefined) {
                    const _errs53 = errors;
                    if (!validate14(data.webSocketTransport, {
                      instancePath: instancePath + "/webSocketTransport",
                      parentData: data,
                      parentDataProperty: "webSocketTransport",
                      rootData
                    })) {
                      vErrors = vErrors === null ? validate14.errors : vErrors.concat(validate14.errors);
                      errors = vErrors.length;
                    }
                    var valid1 = _errs53 === errors;
                  } else {
                    var valid1 = true;
                  }
                  if (valid1) {
                    if (data.webSocketURL !== undefined) {
                      let data9 = data.webSocketURL;
                      const _errs54 = errors;
                      const _errs56 = errors;
                      let valid13 = false;
                      const _errs57 = errors;
                      if (errors === _errs57) {
                        if (typeof data9 === "string") {
                          if (data9.length < 1) {
                            const err23 = {
                              instancePath: instancePath + "/webSocketURL",
                              schemaPath: "#/definitions/ClientWebSocketURL/anyOf/0/minLength",
                              keyword: "minLength",
                              params: {
                                limit: 1
                              },
                              message: "must NOT have fewer than 1 characters"
                            };
                            if (vErrors === null) {
                              vErrors = [err23];
                            } else {
                              vErrors.push(err23);
                            }
                            errors++;
                          }
                        } else {
                          const err24 = {
                            instancePath: instancePath + "/webSocketURL",
                            schemaPath: "#/definitions/ClientWebSocketURL/anyOf/0/type",
                            keyword: "type",
                            params: {
                              type: "string"
                            },
                            message: "must be string"
                          };
                          if (vErrors === null) {
                            vErrors = [err24];
                          } else {
                            vErrors.push(err24);
                          }
                          errors++;
                        }
                      }
                      var _valid6 = _errs57 === errors;
                      valid13 = valid13 || _valid6;
                      if (!valid13) {
                        const _errs59 = errors;
                        if (errors === _errs59) {
                          if (data9 && typeof data9 == "object" && !Array.isArray(data9)) {
                            const _errs61 = errors;
                            for (const key2 in data9) {
                              if (!(key2 === "hostname" || key2 === "pathname" || key2 === "password" || key2 === "port" || key2 === "protocol" || key2 === "username")) {
                                const err25 = {
                                  instancePath: instancePath + "/webSocketURL",
                                  schemaPath: "#/definitions/ClientWebSocketURL/anyOf/1/additionalProperties",
                                  keyword: "additionalProperties",
                                  params: {
                                    additionalProperty: key2
                                  },
                                  message: "must NOT have additional properties"
                                };
                                if (vErrors === null) {
                                  vErrors = [err25];
                                } else {
                                  vErrors.push(err25);
                                }
                                errors++;
                                break;
                              }
                            }
                            if (_errs61 === errors) {
                              if (data9.hostname !== undefined) {
                                let data10 = data9.hostname;
                                const _errs62 = errors;
                                if (errors === _errs62) {
                                  if (typeof data10 === "string") {
                                    if (data10.length < 1) {
                                      const err26 = {
                                        instancePath: instancePath + "/webSocketURL/hostname",
                                        schemaPath: "#/definitions/ClientWebSocketURL/anyOf/1/properties/hostname/minLength",
                                        keyword: "minLength",
                                        params: {
                                          limit: 1
                                        },
                                        message: "must NOT have fewer than 1 characters"
                                      };
                                      if (vErrors === null) {
                                        vErrors = [err26];
                                      } else {
                                        vErrors.push(err26);
                                      }
                                      errors++;
                                    }
                                  } else {
                                    const err27 = {
                                      instancePath: instancePath + "/webSocketURL/hostname",
                                      schemaPath: "#/definitions/ClientWebSocketURL/anyOf/1/properties/hostname/type",
                                      keyword: "type",
                                      params: {
                                        type: "string"
                                      },
                                      message: "must be string"
                                    };
                                    if (vErrors === null) {
                                      vErrors = [err27];
                                    } else {
                                      vErrors.push(err27);
                                    }
                                    errors++;
                                  }
                                }
                                var valid14 = _errs62 === errors;
                              } else {
                                var valid14 = true;
                              }
                              if (valid14) {
                                if (data9.pathname !== undefined) {
                                  const _errs64 = errors;
                                  if (typeof data9.pathname !== "string") {
                                    const err28 = {
                                      instancePath: instancePath + "/webSocketURL/pathname",
                                      schemaPath: "#/definitions/ClientWebSocketURL/anyOf/1/properties/pathname/type",
                                      keyword: "type",
                                      params: {
                                        type: "string"
                                      },
                                      message: "must be string"
                                    };
                                    if (vErrors === null) {
                                      vErrors = [err28];
                                    } else {
                                      vErrors.push(err28);
                                    }
                                    errors++;
                                  }
                                  var valid14 = _errs64 === errors;
                                } else {
                                  var valid14 = true;
                                }
                                if (valid14) {
                                  if (data9.password !== undefined) {
                                    const _errs66 = errors;
                                    if (typeof data9.password !== "string") {
                                      const err29 = {
                                        instancePath: instancePath + "/webSocketURL/password",
                                        schemaPath: "#/definitions/ClientWebSocketURL/anyOf/1/properties/password/type",
                                        keyword: "type",
                                        params: {
                                          type: "string"
                                        },
                                        message: "must be string"
                                      };
                                      if (vErrors === null) {
                                        vErrors = [err29];
                                      } else {
                                        vErrors.push(err29);
                                      }
                                      errors++;
                                    }
                                    var valid14 = _errs66 === errors;
                                  } else {
                                    var valid14 = true;
                                  }
                                  if (valid14) {
                                    if (data9.port !== undefined) {
                                      let data13 = data9.port;
                                      const _errs68 = errors;
                                      const _errs69 = errors;
                                      let valid15 = false;
                                      const _errs70 = errors;
                                      if (!(typeof data13 == "number")) {
                                        const err30 = {
                                          instancePath: instancePath + "/webSocketURL/port",
                                          schemaPath: "#/definitions/ClientWebSocketURL/anyOf/1/properties/port/anyOf/0/type",
                                          keyword: "type",
                                          params: {
                                            type: "number"
                                          },
                                          message: "must be number"
                                        };
                                        if (vErrors === null) {
                                          vErrors = [err30];
                                        } else {
                                          vErrors.push(err30);
                                        }
                                        errors++;
                                      }
                                      var _valid7 = _errs70 === errors;
                                      valid15 = valid15 || _valid7;
                                      if (!valid15) {
                                        const _errs72 = errors;
                                        if (errors === _errs72) {
                                          if (typeof data13 === "string") {
                                            if (data13.length < 1) {
                                              const err31 = {
                                                instancePath: instancePath + "/webSocketURL/port",
                                                schemaPath: "#/definitions/ClientWebSocketURL/anyOf/1/properties/port/anyOf/1/minLength",
                                                keyword: "minLength",
                                                params: {
                                                  limit: 1
                                                },
                                                message: "must NOT have fewer than 1 characters"
                                              };
                                              if (vErrors === null) {
                                                vErrors = [err31];
                                              } else {
                                                vErrors.push(err31);
                                              }
                                              errors++;
                                            }
                                          } else {
                                            const err32 = {
                                              instancePath: instancePath + "/webSocketURL/port",
                                              schemaPath: "#/definitions/ClientWebSocketURL/anyOf/1/properties/port/anyOf/1/type",
                                              keyword: "type",
                                              params: {
                                                type: "string"
                                              },
                                              message: "must be string"
                                            };
                                            if (vErrors === null) {
                                              vErrors = [err32];
                                            } else {
                                              vErrors.push(err32);
                                            }
                                            errors++;
                                          }
                                        }
                                        var _valid7 = _errs72 === errors;
                                        valid15 = valid15 || _valid7;
                                      }
                                      if (!valid15) {
                                        const err33 = {
                                          instancePath: instancePath + "/webSocketURL/port",
                                          schemaPath: "#/definitions/ClientWebSocketURL/anyOf/1/properties/port/anyOf",
                                          keyword: "anyOf",
                                          params: {},
                                          message: "must match a schema in anyOf"
                                        };
                                        if (vErrors === null) {
                                          vErrors = [err33];
                                        } else {
                                          vErrors.push(err33);
                                        }
                                        errors++;
                                      } else {
                                        errors = _errs69;
                                        if (vErrors !== null) {
                                          if (_errs69) {
                                            vErrors.length = _errs69;
                                          } else {
                                            vErrors = null;
                                          }
                                        }
                                      }
                                      var valid14 = _errs68 === errors;
                                    } else {
                                      var valid14 = true;
                                    }
                                    if (valid14) {
                                      if (data9.protocol !== undefined) {
                                        let data14 = data9.protocol;
                                        const _errs74 = errors;
                                        const _errs75 = errors;
                                        let valid16 = false;
                                        const _errs76 = errors;
                                        if (!(data14 === "auto")) {
                                          const err34 = {
                                            instancePath: instancePath + "/webSocketURL/protocol",
                                            schemaPath: "#/definitions/ClientWebSocketURL/anyOf/1/properties/protocol/anyOf/0/enum",
                                            keyword: "enum",
                                            params: {
                                              allowedValues: schema24.anyOf[1].properties.protocol.anyOf[0].enum
                                            },
                                            message: "must be equal to one of the allowed values"
                                          };
                                          if (vErrors === null) {
                                            vErrors = [err34];
                                          } else {
                                            vErrors.push(err34);
                                          }
                                          errors++;
                                        }
                                        var _valid8 = _errs76 === errors;
                                        valid16 = valid16 || _valid8;
                                        if (!valid16) {
                                          const _errs77 = errors;
                                          if (errors === _errs77) {
                                            if (typeof data14 === "string") {
                                              if (data14.length < 1) {
                                                const err35 = {
                                                  instancePath: instancePath + "/webSocketURL/protocol",
                                                  schemaPath: "#/definitions/ClientWebSocketURL/anyOf/1/properties/protocol/anyOf/1/minLength",
                                                  keyword: "minLength",
                                                  params: {
                                                    limit: 1
                                                  },
                                                  message: "must NOT have fewer than 1 characters"
                                                };
                                                if (vErrors === null) {
                                                  vErrors = [err35];
                                                } else {
                                                  vErrors.push(err35);
                                                }
                                                errors++;
                                              }
                                            } else {
                                              const err36 = {
                                                instancePath: instancePath + "/webSocketURL/protocol",
                                                schemaPath: "#/definitions/ClientWebSocketURL/anyOf/1/properties/protocol/anyOf/1/type",
                                                keyword: "type",
                                                params: {
                                                  type: "string"
                                                },
                                                message: "must be string"
                                              };
                                              if (vErrors === null) {
                                                vErrors = [err36];
                                              } else {
                                                vErrors.push(err36);
                                              }
                                              errors++;
                                            }
                                          }
                                          var _valid8 = _errs77 === errors;
                                          valid16 = valid16 || _valid8;
                                        }
                                        if (!valid16) {
                                          const err37 = {
                                            instancePath: instancePath + "/webSocketURL/protocol",
                                            schemaPath: "#/definitions/ClientWebSocketURL/anyOf/1/properties/protocol/anyOf",
                                            keyword: "anyOf",
                                            params: {},
                                            message: "must match a schema in anyOf"
                                          };
                                          if (vErrors === null) {
                                            vErrors = [err37];
                                          } else {
                                            vErrors.push(err37);
                                          }
                                          errors++;
                                        } else {
                                          errors = _errs75;
                                          if (vErrors !== null) {
                                            if (_errs75) {
                                              vErrors.length = _errs75;
                                            } else {
                                              vErrors = null;
                                            }
                                          }
                                        }
                                        var valid14 = _errs74 === errors;
                                      } else {
                                        var valid14 = true;
                                      }
                                      if (valid14) {
                                        if (data9.username !== undefined) {
                                          const _errs79 = errors;
                                          if (typeof data9.username !== "string") {
                                            const err38 = {
                                              instancePath: instancePath + "/webSocketURL/username",
                                              schemaPath: "#/definitions/ClientWebSocketURL/anyOf/1/properties/username/type",
                                              keyword: "type",
                                              params: {
                                                type: "string"
                                              },
                                              message: "must be string"
                                            };
                                            if (vErrors === null) {
                                              vErrors = [err38];
                                            } else {
                                              vErrors.push(err38);
                                            }
                                            errors++;
                                          }
                                          var valid14 = _errs79 === errors;
                                        } else {
                                          var valid14 = true;
                                        }
                                      }
                                    }
                                  }
                                }
                              }
                            }
                          } else {
                            const err39 = {
                              instancePath: instancePath + "/webSocketURL",
                              schemaPath: "#/definitions/ClientWebSocketURL/anyOf/1/type",
                              keyword: "type",
                              params: {
                                type: "object"
                              },
                              message: "must be object"
                            };
                            if (vErrors === null) {
                              vErrors = [err39];
                            } else {
                              vErrors.push(err39);
                            }
                            errors++;
                          }
                        }
                        var _valid6 = _errs59 === errors;
                        valid13 = valid13 || _valid6;
                      }
                      if (!valid13) {
                        const err40 = {
                          instancePath: instancePath + "/webSocketURL",
                          schemaPath: "#/definitions/ClientWebSocketURL/anyOf",
                          keyword: "anyOf",
                          params: {},
                          message: "must match a schema in anyOf"
                        };
                        if (vErrors === null) {
                          vErrors = [err40];
                        } else {
                          vErrors.push(err40);
                        }
                        errors++;
                      } else {
                        errors = _errs56;
                        if (vErrors !== null) {
                          if (_errs56) {
                            vErrors.length = _errs56;
                          } else {
                            vErrors = null;
                          }
                        }
                      }
                      var valid1 = _errs54 === errors;
                    } else {
                      var valid1 = true;
                    }
                  }
                }
              }
            }
          }
        }
      } else {
        const err41 = {
          instancePath,
          schemaPath: "#/anyOf/1/type",
          keyword: "type",
          params: {
            type: "object"
          },
          message: "must be object"
        };
        if (vErrors === null) {
          vErrors = [err41];
        } else {
          vErrors.push(err41);
        }
        errors++;
      }
    }
    var _valid0 = _errs3 === errors;
    valid0 = valid0 || _valid0;
  }
  if (!valid0) {
    const err42 = {
      instancePath,
      schemaPath: "#/anyOf",
      keyword: "anyOf",
      params: {},
      message: "must match a schema in anyOf"
    };
    if (vErrors === null) {
      vErrors = [err42];
    } else {
      vErrors.push(err42);
    }
    errors++;
    validate13.errors = vErrors;
    return false;
  } else {
    errors = _errs0;
    if (vErrors !== null) {
      if (_errs0) {
        vErrors.length = _errs0;
      } else {
        vErrors = null;
      }
    }
  }
  validate13.errors = vErrors;
  return errors === 0;
}
const schema27 = {
  "anyOf": [{
    "type": "array",
    "items": {
      "$ref": "#/definitions/HeaderObject"
    },
    "minItems": 1
  }, {
    "type": "object"
  }, {
    "instanceof": "Function"
  }],
  "description": "Allows to set custom headers on response.",
  "link": "https://webpack.js.org/configuration/dev-server/#devserverheaders"
};
const schema28 = {
  "type": "object",
  "additionalProperties": false,
  "properties": {
    "key": {
      "description": "key of header.",
      "type": "string"
    },
    "value": {
      "description": "value of header.",
      "type": "string"
    }
  },
  "cli": {
    "exclude": true
  }
};
function validate17(data, {
  instancePath = "",
  parentData,
  parentDataProperty,
  rootData = data
} = {}) {
  let vErrors = null;
  let errors = 0;
  const _errs0 = errors;
  let valid0 = false;
  const _errs1 = errors;
  if (errors === _errs1) {
    if (Array.isArray(data)) {
      if (data.length < 1) {
        const err0 = {
          instancePath,
          schemaPath: "#/anyOf/0/minItems",
          keyword: "minItems",
          params: {
            limit: 1
          },
          message: "must NOT have fewer than 1 items"
        };
        if (vErrors === null) {
          vErrors = [err0];
        } else {
          vErrors.push(err0);
        }
        errors++;
      } else {
        var valid1 = true;
        const len0 = data.length;
        for (let i0 = 0; i0 < len0; i0++) {
          let data0 = data[i0];
          const _errs3 = errors;
          const _errs4 = errors;
          if (errors === _errs4) {
            if (data0 && typeof data0 == "object" && !Array.isArray(data0)) {
              const _errs7 = errors;
              for (const key0 in data0) {
                if (!(key0 === "key" || key0 === "value")) {
                  const err1 = {
                    instancePath: instancePath + "/" + i0,
                    schemaPath: "#/definitions/HeaderObject/additionalProperties",
                    keyword: "additionalProperties",
                    params: {
                      additionalProperty: key0
                    },
                    message: "must NOT have additional properties"
                  };
                  if (vErrors === null) {
                    vErrors = [err1];
                  } else {
                    vErrors.push(err1);
                  }
                  errors++;
                  break;
                }
              }
              if (_errs7 === errors) {
                if (data0.key !== undefined) {
                  const _errs8 = errors;
                  if (typeof data0.key !== "string") {
                    const err2 = {
                      instancePath: instancePath + "/" + i0 + "/key",
                      schemaPath: "#/definitions/HeaderObject/properties/key/type",
                      keyword: "type",
                      params: {
                        type: "string"
                      },
                      message: "must be string"
                    };
                    if (vErrors === null) {
                      vErrors = [err2];
                    } else {
                      vErrors.push(err2);
                    }
                    errors++;
                  }
                  var valid3 = _errs8 === errors;
                } else {
                  var valid3 = true;
                }
                if (valid3) {
                  if (data0.value !== undefined) {
                    const _errs10 = errors;
                    if (typeof data0.value !== "string") {
                      const err3 = {
                        instancePath: instancePath + "/" + i0 + "/value",
                        schemaPath: "#/definitions/HeaderObject/properties/value/type",
                        keyword: "type",
                        params: {
                          type: "string"
                        },
                        message: "must be string"
                      };
                      if (vErrors === null) {
                        vErrors = [err3];
                      } else {
                        vErrors.push(err3);
                      }
                      errors++;
                    }
                    var valid3 = _errs10 === errors;
                  } else {
                    var valid3 = true;
                  }
                }
              }
            } else {
              const err4 = {
                instancePath: instancePath + "/" + i0,
                schemaPath: "#/definitions/HeaderObject/type",
                keyword: "type",
                params: {
                  type: "object"
                },
                message: "must be object"
              };
              if (vErrors === null) {
                vErrors = [err4];
              } else {
                vErrors.push(err4);
              }
              errors++;
            }
          }
          var valid1 = _errs3 === errors;
          if (!valid1) {
            break;
          }
        }
      }
    } else {
      const err5 = {
        instancePath,
        schemaPath: "#/anyOf/0/type",
        keyword: "type",
        params: {
          type: "array"
        },
        message: "must be array"
      };
      if (vErrors === null) {
        vErrors = [err5];
      } else {
        vErrors.push(err5);
      }
      errors++;
    }
  }
  var _valid0 = _errs1 === errors;
  valid0 = valid0 || _valid0;
  if (!valid0) {
    const _errs12 = errors;
    if (!(data && typeof data == "object" && !Array.isArray(data))) {
      const err6 = {
        instancePath,
        schemaPath: "#/anyOf/1/type",
        keyword: "type",
        params: {
          type: "object"
        },
        message: "must be object"
      };
      if (vErrors === null) {
        vErrors = [err6];
      } else {
        vErrors.push(err6);
      }
      errors++;
    }
    var _valid0 = _errs12 === errors;
    valid0 = valid0 || _valid0;
    if (!valid0) {
      const _errs14 = errors;
      if (!(data instanceof Function)) {
        const err7 = {
          instancePath,
          schemaPath: "#/anyOf/2/instanceof",
          keyword: "instanceof",
          params: {},
          message: "must pass \"instanceof\" keyword validation"
        };
        if (vErrors === null) {
          vErrors = [err7];
        } else {
          vErrors.push(err7);
        }
        errors++;
      }
      var _valid0 = _errs14 === errors;
      valid0 = valid0 || _valid0;
    }
  }
  if (!valid0) {
    const err8 = {
      instancePath,
      schemaPath: "#/anyOf",
      keyword: "anyOf",
      params: {},
      message: "must match a schema in anyOf"
    };
    if (vErrors === null) {
      vErrors = [err8];
    } else {
      vErrors.push(err8);
    }
    errors++;
    validate17.errors = vErrors;
    return false;
  } else {
    errors = _errs0;
    if (vErrors !== null) {
      if (_errs0) {
        vErrors.length = _errs0;
      } else {
        vErrors = null;
      }
    }
  }
  validate17.errors = vErrors;
  return errors === 0;
}
const schema35 = {
  "anyOf": [{
    "type": "array",
    "items": {
      "anyOf": [{
        "$ref": "#/definitions/OpenString"
      }, {
        "$ref": "#/definitions/OpenObject"
      }]
    }
  }, {
    "$ref": "#/definitions/OpenBoolean"
  }, {
    "$ref": "#/definitions/OpenString"
  }, {
    "$ref": "#/definitions/OpenObject"
  }],
  "description": "Allows to configure dev server to open the browser(s) and page(s) after server had been started (set it to true to open your default browser).",
  "link": "https://webpack.js.org/configuration/dev-server/#devserveropen"
};
const schema36 = {
  "type": "string",
  "minLength": 1
};
const schema37 = {
  "type": "object",
  "additionalProperties": false,
  "properties": {
    "target": {
      "anyOf": [{
        "type": "array",
        "items": {
          "type": "string"
        }
      }, {
        "type": "string"
      }],
      "description": "Opens specified page in browser."
    },
    "app": {
      "anyOf": [{
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "name": {
            "anyOf": [{
              "type": "array",
              "items": {
                "type": "string",
                "minLength": 1
              },
              "minItems": 1
            }, {
              "type": "string",
              "minLength": 1
            }]
          },
          "arguments": {
            "items": {
              "type": "string",
              "minLength": 1
            }
          }
        }
      }, {
        "type": "string",
        "minLength": 1,
        "description": "Open specified browser.",
        "cli": {
          "exclude": true
        }
      }],
      "description": "Open specified browser."
    }
  }
};
const schema38 = {
  "type": "boolean",
  "cli": {
    "negatedDescription": "Does not open the default browser."
  }
};
function validate19(data, {
  instancePath = "",
  parentData,
  parentDataProperty,
  rootData = data
} = {}) {
  let vErrors = null;
  let errors = 0;
  const _errs0 = errors;
  let valid0 = false;
  const _errs1 = errors;
  if (errors === _errs1) {
    if (Array.isArray(data)) {
      var valid1 = true;
      const len0 = data.length;
      for (let i0 = 0; i0 < len0; i0++) {
        let data0 = data[i0];
        const _errs3 = errors;
        const _errs4 = errors;
        let valid2 = false;
        const _errs5 = errors;
        const _errs6 = errors;
        if (errors === _errs6) {
          if (typeof data0 === "string") {
            if (data0.length < 1) {
              const err0 = {
                instancePath: instancePath + "/" + i0,
                schemaPath: "#/definitions/OpenString/minLength",
                keyword: "minLength",
                params: {
                  limit: 1
                },
                message: "must NOT have fewer than 1 characters"
              };
              if (vErrors === null) {
                vErrors = [err0];
              } else {
                vErrors.push(err0);
              }
              errors++;
            }
          } else {
            const err1 = {
              instancePath: instancePath + "/" + i0,
              schemaPath: "#/definitions/OpenString/type",
              keyword: "type",
              params: {
                type: "string"
              },
              message: "must be string"
            };
            if (vErrors === null) {
              vErrors = [err1];
            } else {
              vErrors.push(err1);
            }
            errors++;
          }
        }
        var _valid1 = _errs5 === errors;
        valid2 = valid2 || _valid1;
        if (!valid2) {
          const _errs8 = errors;
          const _errs9 = errors;
          if (errors === _errs9) {
            if (data0 && typeof data0 == "object" && !Array.isArray(data0)) {
              const _errs11 = errors;
              for (const key0 in data0) {
                if (!(key0 === "target" || key0 === "app")) {
                  const err2 = {
                    instancePath: instancePath + "/" + i0,
                    schemaPath: "#/definitions/OpenObject/additionalProperties",
                    keyword: "additionalProperties",
                    params: {
                      additionalProperty: key0
                    },
                    message: "must NOT have additional properties"
                  };
                  if (vErrors === null) {
                    vErrors = [err2];
                  } else {
                    vErrors.push(err2);
                  }
                  errors++;
                  break;
                }
              }
              if (_errs11 === errors) {
                if (data0.target !== undefined) {
                  let data1 = data0.target;
                  const _errs12 = errors;
                  const _errs13 = errors;
                  let valid6 = false;
                  const _errs14 = errors;
                  if (errors === _errs14) {
                    if (Array.isArray(data1)) {
                      var valid7 = true;
                      const len1 = data1.length;
                      for (let i1 = 0; i1 < len1; i1++) {
                        const _errs16 = errors;
                        if (typeof data1[i1] !== "string") {
                          const err3 = {
                            instancePath: instancePath + "/" + i0 + "/target/" + i1,
                            schemaPath: "#/definitions/OpenObject/properties/target/anyOf/0/items/type",
                            keyword: "type",
                            params: {
                              type: "string"
                            },
                            message: "must be string"
                          };
                          if (vErrors === null) {
                            vErrors = [err3];
                          } else {
                            vErrors.push(err3);
                          }
                          errors++;
                        }
                        var valid7 = _errs16 === errors;
                        if (!valid7) {
                          break;
                        }
                      }
                    } else {
                      const err4 = {
                        instancePath: instancePath + "/" + i0 + "/target",
                        schemaPath: "#/definitions/OpenObject/properties/target/anyOf/0/type",
                        keyword: "type",
                        params: {
                          type: "array"
                        },
                        message: "must be array"
                      };
                      if (vErrors === null) {
                        vErrors = [err4];
                      } else {
                        vErrors.push(err4);
                      }
                      errors++;
                    }
                  }
                  var _valid2 = _errs14 === errors;
                  valid6 = valid6 || _valid2;
                  if (!valid6) {
                    const _errs18 = errors;
                    if (typeof data1 !== "string") {
                      const err5 = {
                        instancePath: instancePath + "/" + i0 + "/target",
                        schemaPath: "#/definitions/OpenObject/properties/target/anyOf/1/type",
                        keyword: "type",
                        params: {
                          type: "string"
                        },
                        message: "must be string"
                      };
                      if (vErrors === null) {
                        vErrors = [err5];
                      } else {
                        vErrors.push(err5);
                      }
                      errors++;
                    }
                    var _valid2 = _errs18 === errors;
                    valid6 = valid6 || _valid2;
                  }
                  if (!valid6) {
                    const err6 = {
                      instancePath: instancePath + "/" + i0 + "/target",
                      schemaPath: "#/definitions/OpenObject/properties/target/anyOf",
                      keyword: "anyOf",
                      params: {},
                      message: "must match a schema in anyOf"
                    };
                    if (vErrors === null) {
                      vErrors = [err6];
                    } else {
                      vErrors.push(err6);
                    }
                    errors++;
                  } else {
                    errors = _errs13;
                    if (vErrors !== null) {
                      if (_errs13) {
                        vErrors.length = _errs13;
                      } else {
                        vErrors = null;
                      }
                    }
                  }
                  var valid5 = _errs12 === errors;
                } else {
                  var valid5 = true;
                }
                if (valid5) {
                  if (data0.app !== undefined) {
                    let data3 = data0.app;
                    const _errs20 = errors;
                    const _errs21 = errors;
                    let valid8 = false;
                    const _errs22 = errors;
                    if (errors === _errs22) {
                      if (data3 && typeof data3 == "object" && !Array.isArray(data3)) {
                        const _errs24 = errors;
                        for (const key1 in data3) {
                          if (!(key1 === "name" || key1 === "arguments")) {
                            const err7 = {
                              instancePath: instancePath + "/" + i0 + "/app",
                              schemaPath: "#/definitions/OpenObject/properties/app/anyOf/0/additionalProperties",
                              keyword: "additionalProperties",
                              params: {
                                additionalProperty: key1
                              },
                              message: "must NOT have additional properties"
                            };
                            if (vErrors === null) {
                              vErrors = [err7];
                            } else {
                              vErrors.push(err7);
                            }
                            errors++;
                            break;
                          }
                        }
                        if (_errs24 === errors) {
                          if (data3.name !== undefined) {
                            let data4 = data3.name;
                            const _errs25 = errors;
                            const _errs26 = errors;
                            let valid10 = false;
                            const _errs27 = errors;
                            if (errors === _errs27) {
                              if (Array.isArray(data4)) {
                                if (data4.length < 1) {
                                  const err8 = {
                                    instancePath: instancePath + "/" + i0 + "/app/name",
                                    schemaPath: "#/definitions/OpenObject/properties/app/anyOf/0/properties/name/anyOf/0/minItems",
                                    keyword: "minItems",
                                    params: {
                                      limit: 1
                                    },
                                    message: "must NOT have fewer than 1 items"
                                  };
                                  if (vErrors === null) {
                                    vErrors = [err8];
                                  } else {
                                    vErrors.push(err8);
                                  }
                                  errors++;
                                } else {
                                  var valid11 = true;
                                  const len2 = data4.length;
                                  for (let i2 = 0; i2 < len2; i2++) {
                                    let data5 = data4[i2];
                                    const _errs29 = errors;
                                    if (errors === _errs29) {
                                      if (typeof data5 === "string") {
                                        if (data5.length < 1) {
                                          const err9 = {
                                            instancePath: instancePath + "/" + i0 + "/app/name/" + i2,
                                            schemaPath: "#/definitions/OpenObject/properties/app/anyOf/0/properties/name/anyOf/0/items/minLength",
                                            keyword: "minLength",
                                            params: {
                                              limit: 1
                                            },
                                            message: "must NOT have fewer than 1 characters"
                                          };
                                          if (vErrors === null) {
                                            vErrors = [err9];
                                          } else {
                                            vErrors.push(err9);
                                          }
                                          errors++;
                                        }
                                      } else {
                                        const err10 = {
                                          instancePath: instancePath + "/" + i0 + "/app/name/" + i2,
                                          schemaPath: "#/definitions/OpenObject/properties/app/anyOf/0/properties/name/anyOf/0/items/type",
                                          keyword: "type",
                                          params: {
                                            type: "string"
                                          },
                                          message: "must be string"
                                        };
                                        if (vErrors === null) {
                                          vErrors = [err10];
                                        } else {
                                          vErrors.push(err10);
                                        }
                                        errors++;
                                      }
                                    }
                                    var valid11 = _errs29 === errors;
                                    if (!valid11) {
                                      break;
                                    }
                                  }
                                }
                              } else {
                                const err11 = {
                                  instancePath: instancePath + "/" + i0 + "/app/name",
                                  schemaPath: "#/definitions/OpenObject/properties/app/anyOf/0/properties/name/anyOf/0/type",
                                  keyword: "type",
                                  params: {
                                    type: "array"
                                  },
                                  message: "must be array"
                                };
                                if (vErrors === null) {
                                  vErrors = [err11];
                                } else {
                                  vErrors.push(err11);
                                }
                                errors++;
                              }
                            }
                            var _valid4 = _errs27 === errors;
                            valid10 = valid10 || _valid4;
                            if (!valid10) {
                              const _errs31 = errors;
                              if (errors === _errs31) {
                                if (typeof data4 === "string") {
                                  if (data4.length < 1) {
                                    const err12 = {
                                      instancePath: instancePath + "/" + i0 + "/app/name",
                                      schemaPath: "#/definitions/OpenObject/properties/app/anyOf/0/properties/name/anyOf/1/minLength",
                                      keyword: "minLength",
                                      params: {
                                        limit: 1
                                      },
                                      message: "must NOT have fewer than 1 characters"
                                    };
                                    if (vErrors === null) {
                                      vErrors = [err12];
                                    } else {
                                      vErrors.push(err12);
                                    }
                                    errors++;
                                  }
                                } else {
                                  const err13 = {
                                    instancePath: instancePath + "/" + i0 + "/app/name",
                                    schemaPath: "#/definitions/OpenObject/properties/app/anyOf/0/properties/name/anyOf/1/type",
                                    keyword: "type",
                                    params: {
                                      type: "string"
                                    },
                                    message: "must be string"
                                  };
                                  if (vErrors === null) {
                                    vErrors = [err13];
                                  } else {
                                    vErrors.push(err13);
                                  }
                                  errors++;
                                }
                              }
                              var _valid4 = _errs31 === errors;
                              valid10 = valid10 || _valid4;
                            }
                            if (!valid10) {
                              const err14 = {
                                instancePath: instancePath + "/" + i0 + "/app/name",
                                schemaPath: "#/definitions/OpenObject/properties/app/anyOf/0/properties/name/anyOf",
                                keyword: "anyOf",
                                params: {},
                                message: "must match a schema in anyOf"
                              };
                              if (vErrors === null) {
                                vErrors = [err14];
                              } else {
                                vErrors.push(err14);
                              }
                              errors++;
                            } else {
                              errors = _errs26;
                              if (vErrors !== null) {
                                if (_errs26) {
                                  vErrors.length = _errs26;
                                } else {
                                  vErrors = null;
                                }
                              }
                            }
                            var valid9 = _errs25 === errors;
                          } else {
                            var valid9 = true;
                          }
                          if (valid9) {
                            if (data3.arguments !== undefined) {
                              let data6 = data3.arguments;
                              const _errs33 = errors;
                              if (Array.isArray(data6)) {
                                var valid12 = true;
                                const len3 = data6.length;
                                for (let i3 = 0; i3 < len3; i3++) {
                                  let data7 = data6[i3];
                                  const _errs34 = errors;
                                  if (errors === _errs34) {
                                    if (typeof data7 === "string") {
                                      if (data7.length < 1) {
                                        const err15 = {
                                          instancePath: instancePath + "/" + i0 + "/app/arguments/" + i3,
                                          schemaPath: "#/definitions/OpenObject/properties/app/anyOf/0/properties/arguments/items/minLength",
                                          keyword: "minLength",
                                          params: {
                                            limit: 1
                                          },
                                          message: "must NOT have fewer than 1 characters"
                                        };
                                        if (vErrors === null) {
                                          vErrors = [err15];
                                        } else {
                                          vErrors.push(err15);
                                        }
                                        errors++;
                                      }
                                    } else {
                                      const err16 = {
                                        instancePath: instancePath + "/" + i0 + "/app/arguments/" + i3,
                                        schemaPath: "#/definitions/OpenObject/properties/app/anyOf/0/properties/arguments/items/type",
                                        keyword: "type",
                                        params: {
                                          type: "string"
                                        },
                                        message: "must be string"
                                      };
                                      if (vErrors === null) {
                                        vErrors = [err16];
                                      } else {
                                        vErrors.push(err16);
                                      }
                                      errors++;
                                    }
                                  }
                                  var valid12 = _errs34 === errors;
                                  if (!valid12) {
                                    break;
                                  }
                                }
                              }
                              var valid9 = _errs33 === errors;
                            } else {
                              var valid9 = true;
                            }
                          }
                        }
                      } else {
                        const err17 = {
                          instancePath: instancePath + "/" + i0 + "/app",
                          schemaPath: "#/definitions/OpenObject/properties/app/anyOf/0/type",
                          keyword: "type",
                          params: {
                            type: "object"
                          },
                          message: "must be object"
                        };
                        if (vErrors === null) {
                          vErrors = [err17];
                        } else {
                          vErrors.push(err17);
                        }
                        errors++;
                      }
                    }
                    var _valid3 = _errs22 === errors;
                    valid8 = valid8 || _valid3;
                    if (!valid8) {
                      const _errs36 = errors;
                      if (errors === _errs36) {
                        if (typeof data3 === "string") {
                          if (data3.length < 1) {
                            const err18 = {
                              instancePath: instancePath + "/" + i0 + "/app",
                              schemaPath: "#/definitions/OpenObject/properties/app/anyOf/1/minLength",
                              keyword: "minLength",
                              params: {
                                limit: 1
                              },
                              message: "must NOT have fewer than 1 characters"
                            };
                            if (vErrors === null) {
                              vErrors = [err18];
                            } else {
                              vErrors.push(err18);
                            }
                            errors++;
                          }
                        } else {
                          const err19 = {
                            instancePath: instancePath + "/" + i0 + "/app",
                            schemaPath: "#/definitions/OpenObject/properties/app/anyOf/1/type",
                            keyword: "type",
                            params: {
                              type: "string"
                            },
                            message: "must be string"
                          };
                          if (vErrors === null) {
                            vErrors = [err19];
                          } else {
                            vErrors.push(err19);
                          }
                          errors++;
                        }
                      }
                      var _valid3 = _errs36 === errors;
                      valid8 = valid8 || _valid3;
                    }
                    if (!valid8) {
                      const err20 = {
                        instancePath: instancePath + "/" + i0 + "/app",
                        schemaPath: "#/definitions/OpenObject/properties/app/anyOf",
                        keyword: "anyOf",
                        params: {},
                        message: "must match a schema in anyOf"
                      };
                      if (vErrors === null) {
                        vErrors = [err20];
                      } else {
                        vErrors.push(err20);
                      }
                      errors++;
                    } else {
                      errors = _errs21;
                      if (vErrors !== null) {
                        if (_errs21) {
                          vErrors.length = _errs21;
                        } else {
                          vErrors = null;
                        }
                      }
                    }
                    var valid5 = _errs20 === errors;
                  } else {
                    var valid5 = true;
                  }
                }
              }
            } else {
              const err21 = {
                instancePath: instancePath + "/" + i0,
                schemaPath: "#/definitions/OpenObject/type",
                keyword: "type",
                params: {
                  type: "object"
                },
                message: "must be object"
              };
              if (vErrors === null) {
                vErrors = [err21];
              } else {
                vErrors.push(err21);
              }
              errors++;
            }
          }
          var _valid1 = _errs8 === errors;
          valid2 = valid2 || _valid1;
        }
        if (!valid2) {
          const err22 = {
            instancePath: instancePath + "/" + i0,
            schemaPath: "#/anyOf/0/items/anyOf",
            keyword: "anyOf",
            params: {},
            message: "must match a schema in anyOf"
          };
          if (vErrors === null) {
            vErrors = [err22];
          } else {
            vErrors.push(err22);
          }
          errors++;
        } else {
          errors = _errs4;
          if (vErrors !== null) {
            if (_errs4) {
              vErrors.length = _errs4;
            } else {
              vErrors = null;
            }
          }
        }
        var valid1 = _errs3 === errors;
        if (!valid1) {
          break;
        }
      }
    } else {
      const err23 = {
        instancePath,
        schemaPath: "#/anyOf/0/type",
        keyword: "type",
        params: {
          type: "array"
        },
        message: "must be array"
      };
      if (vErrors === null) {
        vErrors = [err23];
      } else {
        vErrors.push(err23);
      }
      errors++;
    }
  }
  var _valid0 = _errs1 === errors;
  valid0 = valid0 || _valid0;
  if (!valid0) {
    const _errs39 = errors;
    if (typeof data !== "boolean") {
      const err24 = {
        instancePath,
        schemaPath: "#/definitions/OpenBoolean/type",
        keyword: "type",
        params: {
          type: "boolean"
        },
        message: "must be boolean"
      };
      if (vErrors === null) {
        vErrors = [err24];
      } else {
        vErrors.push(err24);
      }
      errors++;
    }
    var _valid0 = _errs39 === errors;
    valid0 = valid0 || _valid0;
    if (!valid0) {
      const _errs43 = errors;
      const _errs44 = errors;
      if (errors === _errs44) {
        if (typeof data === "string") {
          if (data.length < 1) {
            const err25 = {
              instancePath,
              schemaPath: "#/definitions/OpenString/minLength",
              keyword: "minLength",
              params: {
                limit: 1
              },
              message: "must NOT have fewer than 1 characters"
            };
            if (vErrors === null) {
              vErrors = [err25];
            } else {
              vErrors.push(err25);
            }
            errors++;
          }
        } else {
          const err26 = {
            instancePath,
            schemaPath: "#/definitions/OpenString/type",
            keyword: "type",
            params: {
              type: "string"
            },
            message: "must be string"
          };
          if (vErrors === null) {
            vErrors = [err26];
          } else {
            vErrors.push(err26);
          }
          errors++;
        }
      }
      var _valid0 = _errs43 === errors;
      valid0 = valid0 || _valid0;
      if (!valid0) {
        const _errs46 = errors;
        const _errs47 = errors;
        if (errors === _errs47) {
          if (data && typeof data == "object" && !Array.isArray(data)) {
            const _errs49 = errors;
            for (const key2 in data) {
              if (!(key2 === "target" || key2 === "app")) {
                const err27 = {
                  instancePath,
                  schemaPath: "#/definitions/OpenObject/additionalProperties",
                  keyword: "additionalProperties",
                  params: {
                    additionalProperty: key2
                  },
                  message: "must NOT have additional properties"
                };
                if (vErrors === null) {
                  vErrors = [err27];
                } else {
                  vErrors.push(err27);
                }
                errors++;
                break;
              }
            }
            if (_errs49 === errors) {
              if (data.target !== undefined) {
                let data8 = data.target;
                const _errs50 = errors;
                const _errs51 = errors;
                let valid17 = false;
                const _errs52 = errors;
                if (errors === _errs52) {
                  if (Array.isArray(data8)) {
                    var valid18 = true;
                    const len4 = data8.length;
                    for (let i4 = 0; i4 < len4; i4++) {
                      const _errs54 = errors;
                      if (typeof data8[i4] !== "string") {
                        const err28 = {
                          instancePath: instancePath + "/target/" + i4,
                          schemaPath: "#/definitions/OpenObject/properties/target/anyOf/0/items/type",
                          keyword: "type",
                          params: {
                            type: "string"
                          },
                          message: "must be string"
                        };
                        if (vErrors === null) {
                          vErrors = [err28];
                        } else {
                          vErrors.push(err28);
                        }
                        errors++;
                      }
                      var valid18 = _errs54 === errors;
                      if (!valid18) {
                        break;
                      }
                    }
                  } else {
                    const err29 = {
                      instancePath: instancePath + "/target",
                      schemaPath: "#/definitions/OpenObject/properties/target/anyOf/0/type",
                      keyword: "type",
                      params: {
                        type: "array"
                      },
                      message: "must be array"
                    };
                    if (vErrors === null) {
                      vErrors = [err29];
                    } else {
                      vErrors.push(err29);
                    }
                    errors++;
                  }
                }
                var _valid5 = _errs52 === errors;
                valid17 = valid17 || _valid5;
                if (!valid17) {
                  const _errs56 = errors;
                  if (typeof data8 !== "string") {
                    const err30 = {
                      instancePath: instancePath + "/target",
                      schemaPath: "#/definitions/OpenObject/properties/target/anyOf/1/type",
                      keyword: "type",
                      params: {
                        type: "string"
                      },
                      message: "must be string"
                    };
                    if (vErrors === null) {
                      vErrors = [err30];
                    } else {
                      vErrors.push(err30);
                    }
                    errors++;
                  }
                  var _valid5 = _errs56 === errors;
                  valid17 = valid17 || _valid5;
                }
                if (!valid17) {
                  const err31 = {
                    instancePath: instancePath + "/target",
                    schemaPath: "#/definitions/OpenObject/properties/target/anyOf",
                    keyword: "anyOf",
                    params: {},
                    message: "must match a schema in anyOf"
                  };
                  if (vErrors === null) {
                    vErrors = [err31];
                  } else {
                    vErrors.push(err31);
                  }
                  errors++;
                } else {
                  errors = _errs51;
                  if (vErrors !== null) {
                    if (_errs51) {
                      vErrors.length = _errs51;
                    } else {
                      vErrors = null;
                    }
                  }
                }
                var valid16 = _errs50 === errors;
              } else {
                var valid16 = true;
              }
              if (valid16) {
                if (data.app !== undefined) {
                  let data10 = data.app;
                  const _errs58 = errors;
                  const _errs59 = errors;
                  let valid19 = false;
                  const _errs60 = errors;
                  if (errors === _errs60) {
                    if (data10 && typeof data10 == "object" && !Array.isArray(data10)) {
                      const _errs62 = errors;
                      for (const key3 in data10) {
                        if (!(key3 === "name" || key3 === "arguments")) {
                          const err32 = {
                            instancePath: instancePath + "/app",
                            schemaPath: "#/definitions/OpenObject/properties/app/anyOf/0/additionalProperties",
                            keyword: "additionalProperties",
                            params: {
                              additionalProperty: key3
                            },
                            message: "must NOT have additional properties"
                          };
                          if (vErrors === null) {
                            vErrors = [err32];
                          } else {
                            vErrors.push(err32);
                          }
                          errors++;
                          break;
                        }
                      }
                      if (_errs62 === errors) {
                        if (data10.name !== undefined) {
                          let data11 = data10.name;
                          const _errs63 = errors;
                          const _errs64 = errors;
                          let valid21 = false;
                          const _errs65 = errors;
                          if (errors === _errs65) {
                            if (Array.isArray(data11)) {
                              if (data11.length < 1) {
                                const err33 = {
                                  instancePath: instancePath + "/app/name",
                                  schemaPath: "#/definitions/OpenObject/properties/app/anyOf/0/properties/name/anyOf/0/minItems",
                                  keyword: "minItems",
                                  params: {
                                    limit: 1
                                  },
                                  message: "must NOT have fewer than 1 items"
                                };
                                if (vErrors === null) {
                                  vErrors = [err33];
                                } else {
                                  vErrors.push(err33);
                                }
                                errors++;
                              } else {
                                var valid22 = true;
                                const len5 = data11.length;
                                for (let i5 = 0; i5 < len5; i5++) {
                                  let data12 = data11[i5];
                                  const _errs67 = errors;
                                  if (errors === _errs67) {
                                    if (typeof data12 === "string") {
                                      if (data12.length < 1) {
                                        const err34 = {
                                          instancePath: instancePath + "/app/name/" + i5,
                                          schemaPath: "#/definitions/OpenObject/properties/app/anyOf/0/properties/name/anyOf/0/items/minLength",
                                          keyword: "minLength",
                                          params: {
                                            limit: 1
                                          },
                                          message: "must NOT have fewer than 1 characters"
                                        };
                                        if (vErrors === null) {
                                          vErrors = [err34];
                                        } else {
                                          vErrors.push(err34);
                                        }
                                        errors++;
                                      }
                                    } else {
                                      const err35 = {
                                        instancePath: instancePath + "/app/name/" + i5,
                                        schemaPath: "#/definitions/OpenObject/properties/app/anyOf/0/properties/name/anyOf/0/items/type",
                                        keyword: "type",
                                        params: {
                                          type: "string"
                                        },
                                        message: "must be string"
                                      };
                                      if (vErrors === null) {
                                        vErrors = [err35];
                                      } else {
                                        vErrors.push(err35);
                                      }
                                      errors++;
                                    }
                                  }
                                  var valid22 = _errs67 === errors;
                                  if (!valid22) {
                                    break;
                                  }
                                }
                              }
                            } else {
                              const err36 = {
                                instancePath: instancePath + "/app/name",
                                schemaPath: "#/definitions/OpenObject/properties/app/anyOf/0/properties/name/anyOf/0/type",
                                keyword: "type",
                                params: {
                                  type: "array"
                                },
                                message: "must be array"
                              };
                              if (vErrors === null) {
                                vErrors = [err36];
                              } else {
                                vErrors.push(err36);
                              }
                              errors++;
                            }
                          }
                          var _valid7 = _errs65 === errors;
                          valid21 = valid21 || _valid7;
                          if (!valid21) {
                            const _errs69 = errors;
                            if (errors === _errs69) {
                              if (typeof data11 === "string") {
                                if (data11.length < 1) {
                                  const err37 = {
                                    instancePath: instancePath + "/app/name",
                                    schemaPath: "#/definitions/OpenObject/properties/app/anyOf/0/properties/name/anyOf/1/minLength",
                                    keyword: "minLength",
                                    params: {
                                      limit: 1
                                    },
                                    message: "must NOT have fewer than 1 characters"
                                  };
                                  if (vErrors === null) {
                                    vErrors = [err37];
                                  } else {
                                    vErrors.push(err37);
                                  }
                                  errors++;
                                }
                              } else {
                                const err38 = {
                                  instancePath: instancePath + "/app/name",
                                  schemaPath: "#/definitions/OpenObject/properties/app/anyOf/0/properties/name/anyOf/1/type",
                                  keyword: "type",
                                  params: {
                                    type: "string"
                                  },
                                  message: "must be string"
                                };
                                if (vErrors === null) {
                                  vErrors = [err38];
                                } else {
                                  vErrors.push(err38);
                                }
                                errors++;
                              }
                            }
                            var _valid7 = _errs69 === errors;
                            valid21 = valid21 || _valid7;
                          }
                          if (!valid21) {
                            const err39 = {
                              instancePath: instancePath + "/app/name",
                              schemaPath: "#/definitions/OpenObject/properties/app/anyOf/0/properties/name/anyOf",
                              keyword: "anyOf",
                              params: {},
                              message: "must match a schema in anyOf"
                            };
                            if (vErrors === null) {
                              vErrors = [err39];
                            } else {
                              vErrors.push(err39);
                            }
                            errors++;
                          } else {
                            errors = _errs64;
                            if (vErrors !== null) {
                              if (_errs64) {
                                vErrors.length = _errs64;
                              } else {
                                vErrors = null;
                              }
                            }
                          }
                          var valid20 = _errs63 === errors;
                        } else {
                          var valid20 = true;
                        }
                        if (valid20) {
                          if (data10.arguments !== undefined) {
                            let data13 = data10.arguments;
                            const _errs71 = errors;
                            if (Array.isArray(data13)) {
                              var valid23 = true;
                              const len6 = data13.length;
                              for (let i6 = 0; i6 < len6; i6++) {
                                let data14 = data13[i6];
                                const _errs72 = errors;
                                if (errors === _errs72) {
                                  if (typeof data14 === "string") {
                                    if (data14.length < 1) {
                                      const err40 = {
                                        instancePath: instancePath + "/app/arguments/" + i6,
                                        schemaPath: "#/definitions/OpenObject/properties/app/anyOf/0/properties/arguments/items/minLength",
                                        keyword: "minLength",
                                        params: {
                                          limit: 1
                                        },
                                        message: "must NOT have fewer than 1 characters"
                                      };
                                      if (vErrors === null) {
                                        vErrors = [err40];
                                      } else {
                                        vErrors.push(err40);
                                      }
                                      errors++;
                                    }
                                  } else {
                                    const err41 = {
                                      instancePath: instancePath + "/app/arguments/" + i6,
                                      schemaPath: "#/definitions/OpenObject/properties/app/anyOf/0/properties/arguments/items/type",
                                      keyword: "type",
                                      params: {
                                        type: "string"
                                      },
                                      message: "must be string"
                                    };
                                    if (vErrors === null) {
                                      vErrors = [err41];
                                    } else {
                                      vErrors.push(err41);
                                    }
                                    errors++;
                                  }
                                }
                                var valid23 = _errs72 === errors;
                                if (!valid23) {
                                  break;
                                }
                              }
                            }
                            var valid20 = _errs71 === errors;
                          } else {
                            var valid20 = true;
                          }
                        }
                      }
                    } else {
                      const err42 = {
                        instancePath: instancePath + "/app",
                        schemaPath: "#/definitions/OpenObject/properties/app/anyOf/0/type",
                        keyword: "type",
                        params: {
                          type: "object"
                        },
                        message: "must be object"
                      };
                      if (vErrors === null) {
                        vErrors = [err42];
                      } else {
                        vErrors.push(err42);
                      }
                      errors++;
                    }
                  }
                  var _valid6 = _errs60 === errors;
                  valid19 = valid19 || _valid6;
                  if (!valid19) {
                    const _errs74 = errors;
                    if (errors === _errs74) {
                      if (typeof data10 === "string") {
                        if (data10.length < 1) {
                          const err43 = {
                            instancePath: instancePath + "/app",
                            schemaPath: "#/definitions/OpenObject/properties/app/anyOf/1/minLength",
                            keyword: "minLength",
                            params: {
                              limit: 1
                            },
                            message: "must NOT have fewer than 1 characters"
                          };
                          if (vErrors === null) {
                            vErrors = [err43];
                          } else {
                            vErrors.push(err43);
                          }
                          errors++;
                        }
                      } else {
                        const err44 = {
                          instancePath: instancePath + "/app",
                          schemaPath: "#/definitions/OpenObject/properties/app/anyOf/1/type",
                          keyword: "type",
                          params: {
                            type: "string"
                          },
                          message: "must be string"
                        };
                        if (vErrors === null) {
                          vErrors = [err44];
                        } else {
                          vErrors.push(err44);
                        }
                        errors++;
                      }
                    }
                    var _valid6 = _errs74 === errors;
                    valid19 = valid19 || _valid6;
                  }
                  if (!valid19) {
                    const err45 = {
                      instancePath: instancePath + "/app",
                      schemaPath: "#/definitions/OpenObject/properties/app/anyOf",
                      keyword: "anyOf",
                      params: {},
                      message: "must match a schema in anyOf"
                    };
                    if (vErrors === null) {
                      vErrors = [err45];
                    } else {
                      vErrors.push(err45);
                    }
                    errors++;
                  } else {
                    errors = _errs59;
                    if (vErrors !== null) {
                      if (_errs59) {
                        vErrors.length = _errs59;
                      } else {
                        vErrors = null;
                      }
                    }
                  }
                  var valid16 = _errs58 === errors;
                } else {
                  var valid16 = true;
                }
              }
            }
          } else {
            const err46 = {
              instancePath,
              schemaPath: "#/definitions/OpenObject/type",
              keyword: "type",
              params: {
                type: "object"
              },
              message: "must be object"
            };
            if (vErrors === null) {
              vErrors = [err46];
            } else {
              vErrors.push(err46);
            }
            errors++;
          }
        }
        var _valid0 = _errs46 === errors;
        valid0 = valid0 || _valid0;
      }
    }
  }
  if (!valid0) {
    const err47 = {
      instancePath,
      schemaPath: "#/anyOf",
      keyword: "anyOf",
      params: {},
      message: "must match a schema in anyOf"
    };
    if (vErrors === null) {
      vErrors = [err47];
    } else {
      vErrors.push(err47);
    }
    errors++;
    validate19.errors = vErrors;
    return false;
  } else {
    errors = _errs0;
    if (vErrors !== null) {
      if (_errs0) {
        vErrors.length = _errs0;
      } else {
        vErrors = null;
      }
    }
  }
  validate19.errors = vErrors;
  return errors === 0;
}
const schema43 = {
  "anyOf": [{
    "$ref": "#/definitions/ServerEnum"
  }, {
    "$ref": "#/definitions/ServerFn"
  }, {
    "$ref": "#/definitions/ServerString"
  }, {
    "$ref": "#/definitions/ServerObject"
  }],
  "link": "https://webpack.js.org/configuration/dev-server/#devserverserver",
  "description": "Allows to set server and options (by default 'http')."
};
const schema44 = {
  "enum": ["http", "https", "http2"],
  "cli": {
    "exclude": true
  }
};
const schema45 = {
  "instanceof": "Function"
};
const schema46 = {
  "type": "string",
  "minLength": 1,
  "cli": {
    "exclude": true
  }
};
const schema47 = {
  "type": "object",
  "properties": {
    "type": {
      "anyOf": [{
        "$ref": "#/definitions/ServerType"
      }, {
        "$ref": "#/definitions/ServerString"
      }, {
        "$ref": "#/definitions/ServerFn"
      }]
    },
    "options": {
      "$ref": "#/definitions/ServerOptions"
    }
  },
  "additionalProperties": false
};
const schema48 = {
  "enum": ["http", "https", "http2"]
};
const schema51 = {
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "passphrase": {
      "type": "string",
      "description": "Passphrase for a pfx file."
    },
    "requestCert": {
      "type": "boolean",
      "description": "Request for an SSL certificate.",
      "cli": {
        "negatedDescription": "Does not request for an SSL certificate."
      }
    },
    "ca": {
      "anyOf": [{
        "type": "array",
        "items": {
          "anyOf": [{
            "type": "string"
          }, {
            "instanceof": "Buffer"
          }]
        }
      }, {
        "type": "string"
      }, {
        "instanceof": "Buffer"
      }],
      "description": "Path to an SSL CA certificate or content of an SSL CA certificate."
    },
    "cert": {
      "anyOf": [{
        "type": "array",
        "items": {
          "anyOf": [{
            "type": "string"
          }, {
            "instanceof": "Buffer"
          }]
        }
      }, {
        "type": "string"
      }, {
        "instanceof": "Buffer"
      }],
      "description": "Path to an SSL certificate or content of an SSL certificate."
    },
    "crl": {
      "anyOf": [{
        "type": "array",
        "items": {
          "anyOf": [{
            "type": "string"
          }, {
            "instanceof": "Buffer"
          }]
        }
      }, {
        "type": "string"
      }, {
        "instanceof": "Buffer"
      }],
      "description": "Path to PEM formatted CRLs (Certificate Revocation Lists) or content of PEM formatted CRLs (Certificate Revocation Lists)."
    },
    "key": {
      "anyOf": [{
        "type": "array",
        "items": {
          "anyOf": [{
            "type": "string"
          }, {
            "instanceof": "Buffer"
          }, {
            "type": "object",
            "additionalProperties": true
          }]
        }
      }, {
        "type": "string"
      }, {
        "instanceof": "Buffer"
      }],
      "description": "Path to an SSL key or content of an SSL key."
    },
    "pfx": {
      "anyOf": [{
        "type": "array",
        "items": {
          "anyOf": [{
            "type": "string"
          }, {
            "instanceof": "Buffer"
          }, {
            "type": "object",
            "additionalProperties": true
          }]
        }
      }, {
        "type": "string"
      }, {
        "instanceof": "Buffer"
      }],
      "description": "Path to an SSL pfx file or content of an SSL pfx file."
    }
  }
};
function validate22(data, {
  instancePath = "",
  parentData,
  parentDataProperty,
  rootData = data
} = {}) {
  let vErrors = null;
  let errors = 0;
  if (errors === 0) {
    if (data && typeof data == "object" && !Array.isArray(data)) {
      const _errs1 = errors;
      for (const key0 in data) {
        if (!(key0 === "type" || key0 === "options")) {
          validate22.errors = [{
            instancePath,
            schemaPath: "#/additionalProperties",
            keyword: "additionalProperties",
            params: {
              additionalProperty: key0
            },
            message: "must NOT have additional properties"
          }];
          return false;
          break;
        }
      }
      if (_errs1 === errors) {
        if (data.type !== undefined) {
          let data0 = data.type;
          const _errs2 = errors;
          const _errs3 = errors;
          let valid1 = false;
          const _errs4 = errors;
          if (!(data0 === "http" || data0 === "https" || data0 === "http2")) {
            const err0 = {
              instancePath: instancePath + "/type",
              schemaPath: "#/definitions/ServerType/enum",
              keyword: "enum",
              params: {
                allowedValues: schema48.enum
              },
              message: "must be equal to one of the allowed values"
            };
            if (vErrors === null) {
              vErrors = [err0];
            } else {
              vErrors.push(err0);
            }
            errors++;
          }
          var _valid0 = _errs4 === errors;
          valid1 = valid1 || _valid0;
          if (!valid1) {
            const _errs6 = errors;
            const _errs7 = errors;
            if (errors === _errs7) {
              if (typeof data0 === "string") {
                if (data0.length < 1) {
                  const err1 = {
                    instancePath: instancePath + "/type",
                    schemaPath: "#/definitions/ServerString/minLength",
                    keyword: "minLength",
                    params: {
                      limit: 1
                    },
                    message: "must NOT have fewer than 1 characters"
                  };
                  if (vErrors === null) {
                    vErrors = [err1];
                  } else {
                    vErrors.push(err1);
                  }
                  errors++;
                }
              } else {
                const err2 = {
                  instancePath: instancePath + "/type",
                  schemaPath: "#/definitions/ServerString/type",
                  keyword: "type",
                  params: {
                    type: "string"
                  },
                  message: "must be string"
                };
                if (vErrors === null) {
                  vErrors = [err2];
                } else {
                  vErrors.push(err2);
                }
                errors++;
              }
            }
            var _valid0 = _errs6 === errors;
            valid1 = valid1 || _valid0;
            if (!valid1) {
              const _errs10 = errors;
              if (!(data0 instanceof Function)) {
                const err3 = {
                  instancePath: instancePath + "/type",
                  schemaPath: "#/definitions/ServerFn/instanceof",
                  keyword: "instanceof",
                  params: {},
                  message: "must pass \"instanceof\" keyword validation"
                };
                if (vErrors === null) {
                  vErrors = [err3];
                } else {
                  vErrors.push(err3);
                }
                errors++;
              }
              var _valid0 = _errs10 === errors;
              valid1 = valid1 || _valid0;
            }
          }
          if (!valid1) {
            const err4 = {
              instancePath: instancePath + "/type",
              schemaPath: "#/properties/type/anyOf",
              keyword: "anyOf",
              params: {},
              message: "must match a schema in anyOf"
            };
            if (vErrors === null) {
              vErrors = [err4];
            } else {
              vErrors.push(err4);
            }
            errors++;
            validate22.errors = vErrors;
            return false;
          } else {
            errors = _errs3;
            if (vErrors !== null) {
              if (_errs3) {
                vErrors.length = _errs3;
              } else {
                vErrors = null;
              }
            }
          }
          var valid0 = _errs2 === errors;
        } else {
          var valid0 = true;
        }
        if (valid0) {
          if (data.options !== undefined) {
            let data1 = data.options;
            const _errs12 = errors;
            const _errs13 = errors;
            if (errors === _errs13) {
              if (data1 && typeof data1 == "object" && !Array.isArray(data1)) {
                if (data1.passphrase !== undefined) {
                  const _errs16 = errors;
                  if (typeof data1.passphrase !== "string") {
                    validate22.errors = [{
                      instancePath: instancePath + "/options/passphrase",
                      schemaPath: "#/definitions/ServerOptions/properties/passphrase/type",
                      keyword: "type",
                      params: {
                        type: "string"
                      },
                      message: "must be string"
                    }];
                    return false;
                  }
                  var valid6 = _errs16 === errors;
                } else {
                  var valid6 = true;
                }
                if (valid6) {
                  if (data1.requestCert !== undefined) {
                    const _errs18 = errors;
                    if (typeof data1.requestCert !== "boolean") {
                      validate22.errors = [{
                        instancePath: instancePath + "/options/requestCert",
                        schemaPath: "#/definitions/ServerOptions/properties/requestCert/type",
                        keyword: "type",
                        params: {
                          type: "boolean"
                        },
                        message: "must be boolean"
                      }];
                      return false;
                    }
                    var valid6 = _errs18 === errors;
                  } else {
                    var valid6 = true;
                  }
                  if (valid6) {
                    if (data1.ca !== undefined) {
                      let data4 = data1.ca;
                      const _errs21 = errors;
                      const _errs22 = errors;
                      let valid7 = false;
                      const _errs23 = errors;
                      if (errors === _errs23) {
                        if (Array.isArray(data4)) {
                          var valid8 = true;
                          const len0 = data4.length;
                          for (let i0 = 0; i0 < len0; i0++) {
                            let data5 = data4[i0];
                            const _errs25 = errors;
                            const _errs26 = errors;
                            let valid9 = false;
                            const _errs27 = errors;
                            if (typeof data5 !== "string") {
                              const err5 = {
                                instancePath: instancePath + "/options/ca/" + i0,
                                schemaPath: "#/definitions/ServerOptions/properties/ca/anyOf/0/items/anyOf/0/type",
                                keyword: "type",
                                params: {
                                  type: "string"
                                },
                                message: "must be string"
                              };
                              if (vErrors === null) {
                                vErrors = [err5];
                              } else {
                                vErrors.push(err5);
                              }
                              errors++;
                            }
                            var _valid2 = _errs27 === errors;
                            valid9 = valid9 || _valid2;
                            if (!valid9) {
                              const _errs29 = errors;
                              if (!(data5 instanceof Buffer)) {
                                const err6 = {
                                  instancePath: instancePath + "/options/ca/" + i0,
                                  schemaPath: "#/definitions/ServerOptions/properties/ca/anyOf/0/items/anyOf/1/instanceof",
                                  keyword: "instanceof",
                                  params: {},
                                  message: "must pass \"instanceof\" keyword validation"
                                };
                                if (vErrors === null) {
                                  vErrors = [err6];
                                } else {
                                  vErrors.push(err6);
                                }
                                errors++;
                              }
                              var _valid2 = _errs29 === errors;
                              valid9 = valid9 || _valid2;
                            }
                            if (!valid9) {
                              const err7 = {
                                instancePath: instancePath + "/options/ca/" + i0,
                                schemaPath: "#/definitions/ServerOptions/properties/ca/anyOf/0/items/anyOf",
                                keyword: "anyOf",
                                params: {},
                                message: "must match a schema in anyOf"
                              };
                              if (vErrors === null) {
                                vErrors = [err7];
                              } else {
                                vErrors.push(err7);
                              }
                              errors++;
                            } else {
                              errors = _errs26;
                              if (vErrors !== null) {
                                if (_errs26) {
                                  vErrors.length = _errs26;
                                } else {
                                  vErrors = null;
                                }
                              }
                            }
                            var valid8 = _errs25 === errors;
                            if (!valid8) {
                              break;
                            }
                          }
                        } else {
                          const err8 = {
                            instancePath: instancePath + "/options/ca",
                            schemaPath: "#/definitions/ServerOptions/properties/ca/anyOf/0/type",
                            keyword: "type",
                            params: {
                              type: "array"
                            },
                            message: "must be array"
                          };
                          if (vErrors === null) {
                            vErrors = [err8];
                          } else {
                            vErrors.push(err8);
                          }
                          errors++;
                        }
                      }
                      var _valid1 = _errs23 === errors;
                      valid7 = valid7 || _valid1;
                      if (!valid7) {
                        const _errs30 = errors;
                        if (typeof data4 !== "string") {
                          const err9 = {
                            instancePath: instancePath + "/options/ca",
                            schemaPath: "#/definitions/ServerOptions/properties/ca/anyOf/1/type",
                            keyword: "type",
                            params: {
                              type: "string"
                            },
                            message: "must be string"
                          };
                          if (vErrors === null) {
                            vErrors = [err9];
                          } else {
                            vErrors.push(err9);
                          }
                          errors++;
                        }
                        var _valid1 = _errs30 === errors;
                        valid7 = valid7 || _valid1;
                        if (!valid7) {
                          const _errs32 = errors;
                          if (!(data4 instanceof Buffer)) {
                            const err10 = {
                              instancePath: instancePath + "/options/ca",
                              schemaPath: "#/definitions/ServerOptions/properties/ca/anyOf/2/instanceof",
                              keyword: "instanceof",
                              params: {},
                              message: "must pass \"instanceof\" keyword validation"
                            };
                            if (vErrors === null) {
                              vErrors = [err10];
                            } else {
                              vErrors.push(err10);
                            }
                            errors++;
                          }
                          var _valid1 = _errs32 === errors;
                          valid7 = valid7 || _valid1;
                        }
                      }
                      if (!valid7) {
                        const err11 = {
                          instancePath: instancePath + "/options/ca",
                          schemaPath: "#/definitions/ServerOptions/properties/ca/anyOf",
                          keyword: "anyOf",
                          params: {},
                          message: "must match a schema in anyOf"
                        };
                        if (vErrors === null) {
                          vErrors = [err11];
                        } else {
                          vErrors.push(err11);
                        }
                        errors++;
                        validate22.errors = vErrors;
                        return false;
                      } else {
                        errors = _errs22;
                        if (vErrors !== null) {
                          if (_errs22) {
                            vErrors.length = _errs22;
                          } else {
                            vErrors = null;
                          }
                        }
                      }
                      var valid6 = _errs21 === errors;
                    } else {
                      var valid6 = true;
                    }
                    if (valid6) {
                      if (data1.cert !== undefined) {
                        let data6 = data1.cert;
                        const _errs33 = errors;
                        const _errs34 = errors;
                        let valid10 = false;
                        const _errs35 = errors;
                        if (errors === _errs35) {
                          if (Array.isArray(data6)) {
                            var valid11 = true;
                            const len1 = data6.length;
                            for (let i1 = 0; i1 < len1; i1++) {
                              let data7 = data6[i1];
                              const _errs37 = errors;
                              const _errs38 = errors;
                              let valid12 = false;
                              const _errs39 = errors;
                              if (typeof data7 !== "string") {
                                const err12 = {
                                  instancePath: instancePath + "/options/cert/" + i1,
                                  schemaPath: "#/definitions/ServerOptions/properties/cert/anyOf/0/items/anyOf/0/type",
                                  keyword: "type",
                                  params: {
                                    type: "string"
                                  },
                                  message: "must be string"
                                };
                                if (vErrors === null) {
                                  vErrors = [err12];
                                } else {
                                  vErrors.push(err12);
                                }
                                errors++;
                              }
                              var _valid4 = _errs39 === errors;
                              valid12 = valid12 || _valid4;
                              if (!valid12) {
                                const _errs41 = errors;
                                if (!(data7 instanceof Buffer)) {
                                  const err13 = {
                                    instancePath: instancePath + "/options/cert/" + i1,
                                    schemaPath: "#/definitions/ServerOptions/properties/cert/anyOf/0/items/anyOf/1/instanceof",
                                    keyword: "instanceof",
                                    params: {},
                                    message: "must pass \"instanceof\" keyword validation"
                                  };
                                  if (vErrors === null) {
                                    vErrors = [err13];
                                  } else {
                                    vErrors.push(err13);
                                  }
                                  errors++;
                                }
                                var _valid4 = _errs41 === errors;
                                valid12 = valid12 || _valid4;
                              }
                              if (!valid12) {
                                const err14 = {
                                  instancePath: instancePath + "/options/cert/" + i1,
                                  schemaPath: "#/definitions/ServerOptions/properties/cert/anyOf/0/items/anyOf",
                                  keyword: "anyOf",
                                  params: {},
                                  message: "must match a schema in anyOf"
                                };
                                if (vErrors === null) {
                                  vErrors = [err14];
                                } else {
                                  vErrors.push(err14);
                                }
                                errors++;
                              } else {
                                errors = _errs38;
                                if (vErrors !== null) {
                                  if (_errs38) {
                                    vErrors.length = _errs38;
                                  } else {
                                    vErrors = null;
                                  }
                                }
                              }
                              var valid11 = _errs37 === errors;
                              if (!valid11) {
                                break;
                              }
                            }
                          } else {
                            const err15 = {
                              instancePath: instancePath + "/options/cert",
                              schemaPath: "#/definitions/ServerOptions/properties/cert/anyOf/0/type",
                              keyword: "type",
                              params: {
                                type: "array"
                              },
                              message: "must be array"
                            };
                            if (vErrors === null) {
                              vErrors = [err15];
                            } else {
                              vErrors.push(err15);
                            }
                            errors++;
                          }
                        }
                        var _valid3 = _errs35 === errors;
                        valid10 = valid10 || _valid3;
                        if (!valid10) {
                          const _errs42 = errors;
                          if (typeof data6 !== "string") {
                            const err16 = {
                              instancePath: instancePath + "/options/cert",
                              schemaPath: "#/definitions/ServerOptions/properties/cert/anyOf/1/type",
                              keyword: "type",
                              params: {
                                type: "string"
                              },
                              message: "must be string"
                            };
                            if (vErrors === null) {
                              vErrors = [err16];
                            } else {
                              vErrors.push(err16);
                            }
                            errors++;
                          }
                          var _valid3 = _errs42 === errors;
                          valid10 = valid10 || _valid3;
                          if (!valid10) {
                            const _errs44 = errors;
                            if (!(data6 instanceof Buffer)) {
                              const err17 = {
                                instancePath: instancePath + "/options/cert",
                                schemaPath: "#/definitions/ServerOptions/properties/cert/anyOf/2/instanceof",
                                keyword: "instanceof",
                                params: {},
                                message: "must pass \"instanceof\" keyword validation"
                              };
                              if (vErrors === null) {
                                vErrors = [err17];
                              } else {
                                vErrors.push(err17);
                              }
                              errors++;
                            }
                            var _valid3 = _errs44 === errors;
                            valid10 = valid10 || _valid3;
                          }
                        }
                        if (!valid10) {
                          const err18 = {
                            instancePath: instancePath + "/options/cert",
                            schemaPath: "#/definitions/ServerOptions/properties/cert/anyOf",
                            keyword: "anyOf",
                            params: {},
                            message: "must match a schema in anyOf"
                          };
                          if (vErrors === null) {
                            vErrors = [err18];
                          } else {
                            vErrors.push(err18);
                          }
                          errors++;
                          validate22.errors = vErrors;
                          return false;
                        } else {
                          errors = _errs34;
                          if (vErrors !== null) {
                            if (_errs34) {
                              vErrors.length = _errs34;
                            } else {
                              vErrors = null;
                            }
                          }
                        }
                        var valid6 = _errs33 === errors;
                      } else {
                        var valid6 = true;
                      }
                      if (valid6) {
                        if (data1.crl !== undefined) {
                          let data8 = data1.crl;
                          const _errs45 = errors;
                          const _errs46 = errors;
                          let valid13 = false;
                          const _errs47 = errors;
                          if (errors === _errs47) {
                            if (Array.isArray(data8)) {
                              var valid14 = true;
                              const len2 = data8.length;
                              for (let i2 = 0; i2 < len2; i2++) {
                                let data9 = data8[i2];
                                const _errs49 = errors;
                                const _errs50 = errors;
                                let valid15 = false;
                                const _errs51 = errors;
                                if (typeof data9 !== "string") {
                                  const err19 = {
                                    instancePath: instancePath + "/options/crl/" + i2,
                                    schemaPath: "#/definitions/ServerOptions/properties/crl/anyOf/0/items/anyOf/0/type",
                                    keyword: "type",
                                    params: {
                                      type: "string"
                                    },
                                    message: "must be string"
                                  };
                                  if (vErrors === null) {
                                    vErrors = [err19];
                                  } else {
                                    vErrors.push(err19);
                                  }
                                  errors++;
                                }
                                var _valid6 = _errs51 === errors;
                                valid15 = valid15 || _valid6;
                                if (!valid15) {
                                  const _errs53 = errors;
                                  if (!(data9 instanceof Buffer)) {
                                    const err20 = {
                                      instancePath: instancePath + "/options/crl/" + i2,
                                      schemaPath: "#/definitions/ServerOptions/properties/crl/anyOf/0/items/anyOf/1/instanceof",
                                      keyword: "instanceof",
                                      params: {},
                                      message: "must pass \"instanceof\" keyword validation"
                                    };
                                    if (vErrors === null) {
                                      vErrors = [err20];
                                    } else {
                                      vErrors.push(err20);
                                    }
                                    errors++;
                                  }
                                  var _valid6 = _errs53 === errors;
                                  valid15 = valid15 || _valid6;
                                }
                                if (!valid15) {
                                  const err21 = {
                                    instancePath: instancePath + "/options/crl/" + i2,
                                    schemaPath: "#/definitions/ServerOptions/properties/crl/anyOf/0/items/anyOf",
                                    keyword: "anyOf",
                                    params: {},
                                    message: "must match a schema in anyOf"
                                  };
                                  if (vErrors === null) {
                                    vErrors = [err21];
                                  } else {
                                    vErrors.push(err21);
                                  }
                                  errors++;
                                } else {
                                  errors = _errs50;
                                  if (vErrors !== null) {
                                    if (_errs50) {
                                      vErrors.length = _errs50;
                                    } else {
                                      vErrors = null;
                                    }
                                  }
                                }
                                var valid14 = _errs49 === errors;
                                if (!valid14) {
                                  break;
                                }
                              }
                            } else {
                              const err22 = {
                                instancePath: instancePath + "/options/crl",
                                schemaPath: "#/definitions/ServerOptions/properties/crl/anyOf/0/type",
                                keyword: "type",
                                params: {
                                  type: "array"
                                },
                                message: "must be array"
                              };
                              if (vErrors === null) {
                                vErrors = [err22];
                              } else {
                                vErrors.push(err22);
                              }
                              errors++;
                            }
                          }
                          var _valid5 = _errs47 === errors;
                          valid13 = valid13 || _valid5;
                          if (!valid13) {
                            const _errs54 = errors;
                            if (typeof data8 !== "string") {
                              const err23 = {
                                instancePath: instancePath + "/options/crl",
                                schemaPath: "#/definitions/ServerOptions/properties/crl/anyOf/1/type",
                                keyword: "type",
                                params: {
                                  type: "string"
                                },
                                message: "must be string"
                              };
                              if (vErrors === null) {
                                vErrors = [err23];
                              } else {
                                vErrors.push(err23);
                              }
                              errors++;
                            }
                            var _valid5 = _errs54 === errors;
                            valid13 = valid13 || _valid5;
                            if (!valid13) {
                              const _errs56 = errors;
                              if (!(data8 instanceof Buffer)) {
                                const err24 = {
                                  instancePath: instancePath + "/options/crl",
                                  schemaPath: "#/definitions/ServerOptions/properties/crl/anyOf/2/instanceof",
                                  keyword: "instanceof",
                                  params: {},
                                  message: "must pass \"instanceof\" keyword validation"
                                };
                                if (vErrors === null) {
                                  vErrors = [err24];
                                } else {
                                  vErrors.push(err24);
                                }
                                errors++;
                              }
                              var _valid5 = _errs56 === errors;
                              valid13 = valid13 || _valid5;
                            }
                          }
                          if (!valid13) {
                            const err25 = {
                              instancePath: instancePath + "/options/crl",
                              schemaPath: "#/definitions/ServerOptions/properties/crl/anyOf",
                              keyword: "anyOf",
                              params: {},
                              message: "must match a schema in anyOf"
                            };
                            if (vErrors === null) {
                              vErrors = [err25];
                            } else {
                              vErrors.push(err25);
                            }
                            errors++;
                            validate22.errors = vErrors;
                            return false;
                          } else {
                            errors = _errs46;
                            if (vErrors !== null) {
                              if (_errs46) {
                                vErrors.length = _errs46;
                              } else {
                                vErrors = null;
                              }
                            }
                          }
                          var valid6 = _errs45 === errors;
                        } else {
                          var valid6 = true;
                        }
                        if (valid6) {
                          if (data1.key !== undefined) {
                            let data10 = data1.key;
                            const _errs57 = errors;
                            const _errs58 = errors;
                            let valid16 = false;
                            const _errs59 = errors;
                            if (errors === _errs59) {
                              if (Array.isArray(data10)) {
                                var valid17 = true;
                                const len3 = data10.length;
                                for (let i3 = 0; i3 < len3; i3++) {
                                  let data11 = data10[i3];
                                  const _errs61 = errors;
                                  const _errs62 = errors;
                                  let valid18 = false;
                                  const _errs63 = errors;
                                  if (typeof data11 !== "string") {
                                    const err26 = {
                                      instancePath: instancePath + "/options/key/" + i3,
                                      schemaPath: "#/definitions/ServerOptions/properties/key/anyOf/0/items/anyOf/0/type",
                                      keyword: "type",
                                      params: {
                                        type: "string"
                                      },
                                      message: "must be string"
                                    };
                                    if (vErrors === null) {
                                      vErrors = [err26];
                                    } else {
                                      vErrors.push(err26);
                                    }
                                    errors++;
                                  }
                                  var _valid8 = _errs63 === errors;
                                  valid18 = valid18 || _valid8;
                                  if (!valid18) {
                                    const _errs65 = errors;
                                    if (!(data11 instanceof Buffer)) {
                                      const err27 = {
                                        instancePath: instancePath + "/options/key/" + i3,
                                        schemaPath: "#/definitions/ServerOptions/properties/key/anyOf/0/items/anyOf/1/instanceof",
                                        keyword: "instanceof",
                                        params: {},
                                        message: "must pass \"instanceof\" keyword validation"
                                      };
                                      if (vErrors === null) {
                                        vErrors = [err27];
                                      } else {
                                        vErrors.push(err27);
                                      }
                                      errors++;
                                    }
                                    var _valid8 = _errs65 === errors;
                                    valid18 = valid18 || _valid8;
                                    if (!valid18) {
                                      const _errs66 = errors;
                                      if (errors === _errs66) {
                                        if (data11 && typeof data11 == "object" && !Array.isArray(data11)) {} else {
                                          const err28 = {
                                            instancePath: instancePath + "/options/key/" + i3,
                                            schemaPath: "#/definitions/ServerOptions/properties/key/anyOf/0/items/anyOf/2/type",
                                            keyword: "type",
                                            params: {
                                              type: "object"
                                            },
                                            message: "must be object"
                                          };
                                          if (vErrors === null) {
                                            vErrors = [err28];
                                          } else {
                                            vErrors.push(err28);
                                          }
                                          errors++;
                                        }
                                      }
                                      var _valid8 = _errs66 === errors;
                                      valid18 = valid18 || _valid8;
                                    }
                                  }
                                  if (!valid18) {
                                    const err29 = {
                                      instancePath: instancePath + "/options/key/" + i3,
                                      schemaPath: "#/definitions/ServerOptions/properties/key/anyOf/0/items/anyOf",
                                      keyword: "anyOf",
                                      params: {},
                                      message: "must match a schema in anyOf"
                                    };
                                    if (vErrors === null) {
                                      vErrors = [err29];
                                    } else {
                                      vErrors.push(err29);
                                    }
                                    errors++;
                                  } else {
                                    errors = _errs62;
                                    if (vErrors !== null) {
                                      if (_errs62) {
                                        vErrors.length = _errs62;
                                      } else {
                                        vErrors = null;
                                      }
                                    }
                                  }
                                  var valid17 = _errs61 === errors;
                                  if (!valid17) {
                                    break;
                                  }
                                }
                              } else {
                                const err30 = {
                                  instancePath: instancePath + "/options/key",
                                  schemaPath: "#/definitions/ServerOptions/properties/key/anyOf/0/type",
                                  keyword: "type",
                                  params: {
                                    type: "array"
                                  },
                                  message: "must be array"
                                };
                                if (vErrors === null) {
                                  vErrors = [err30];
                                } else {
                                  vErrors.push(err30);
                                }
                                errors++;
                              }
                            }
                            var _valid7 = _errs59 === errors;
                            valid16 = valid16 || _valid7;
                            if (!valid16) {
                              const _errs69 = errors;
                              if (typeof data10 !== "string") {
                                const err31 = {
                                  instancePath: instancePath + "/options/key",
                                  schemaPath: "#/definitions/ServerOptions/properties/key/anyOf/1/type",
                                  keyword: "type",
                                  params: {
                                    type: "string"
                                  },
                                  message: "must be string"
                                };
                                if (vErrors === null) {
                                  vErrors = [err31];
                                } else {
                                  vErrors.push(err31);
                                }
                                errors++;
                              }
                              var _valid7 = _errs69 === errors;
                              valid16 = valid16 || _valid7;
                              if (!valid16) {
                                const _errs71 = errors;
                                if (!(data10 instanceof Buffer)) {
                                  const err32 = {
                                    instancePath: instancePath + "/options/key",
                                    schemaPath: "#/definitions/ServerOptions/properties/key/anyOf/2/instanceof",
                                    keyword: "instanceof",
                                    params: {},
                                    message: "must pass \"instanceof\" keyword validation"
                                  };
                                  if (vErrors === null) {
                                    vErrors = [err32];
                                  } else {
                                    vErrors.push(err32);
                                  }
                                  errors++;
                                }
                                var _valid7 = _errs71 === errors;
                                valid16 = valid16 || _valid7;
                              }
                            }
                            if (!valid16) {
                              const err33 = {
                                instancePath: instancePath + "/options/key",
                                schemaPath: "#/definitions/ServerOptions/properties/key/anyOf",
                                keyword: "anyOf",
                                params: {},
                                message: "must match a schema in anyOf"
                              };
                              if (vErrors === null) {
                                vErrors = [err33];
                              } else {
                                vErrors.push(err33);
                              }
                              errors++;
                              validate22.errors = vErrors;
                              return false;
                            } else {
                              errors = _errs58;
                              if (vErrors !== null) {
                                if (_errs58) {
                                  vErrors.length = _errs58;
                                } else {
                                  vErrors = null;
                                }
                              }
                            }
                            var valid6 = _errs57 === errors;
                          } else {
                            var valid6 = true;
                          }
                          if (valid6) {
                            if (data1.pfx !== undefined) {
                              let data12 = data1.pfx;
                              const _errs72 = errors;
                              const _errs73 = errors;
                              let valid19 = false;
                              const _errs74 = errors;
                              if (errors === _errs74) {
                                if (Array.isArray(data12)) {
                                  var valid20 = true;
                                  const len4 = data12.length;
                                  for (let i4 = 0; i4 < len4; i4++) {
                                    let data13 = data12[i4];
                                    const _errs76 = errors;
                                    const _errs77 = errors;
                                    let valid21 = false;
                                    const _errs78 = errors;
                                    if (typeof data13 !== "string") {
                                      const err34 = {
                                        instancePath: instancePath + "/options/pfx/" + i4,
                                        schemaPath: "#/definitions/ServerOptions/properties/pfx/anyOf/0/items/anyOf/0/type",
                                        keyword: "type",
                                        params: {
                                          type: "string"
                                        },
                                        message: "must be string"
                                      };
                                      if (vErrors === null) {
                                        vErrors = [err34];
                                      } else {
                                        vErrors.push(err34);
                                      }
                                      errors++;
                                    }
                                    var _valid10 = _errs78 === errors;
                                    valid21 = valid21 || _valid10;
                                    if (!valid21) {
                                      const _errs80 = errors;
                                      if (!(data13 instanceof Buffer)) {
                                        const err35 = {
                                          instancePath: instancePath + "/options/pfx/" + i4,
                                          schemaPath: "#/definitions/ServerOptions/properties/pfx/anyOf/0/items/anyOf/1/instanceof",
                                          keyword: "instanceof",
                                          params: {},
                                          message: "must pass \"instanceof\" keyword validation"
                                        };
                                        if (vErrors === null) {
                                          vErrors = [err35];
                                        } else {
                                          vErrors.push(err35);
                                        }
                                        errors++;
                                      }
                                      var _valid10 = _errs80 === errors;
                                      valid21 = valid21 || _valid10;
                                      if (!valid21) {
                                        const _errs81 = errors;
                                        if (errors === _errs81) {
                                          if (data13 && typeof data13 == "object" && !Array.isArray(data13)) {} else {
                                            const err36 = {
                                              instancePath: instancePath + "/options/pfx/" + i4,
                                              schemaPath: "#/definitions/ServerOptions/properties/pfx/anyOf/0/items/anyOf/2/type",
                                              keyword: "type",
                                              params: {
                                                type: "object"
                                              },
                                              message: "must be object"
                                            };
                                            if (vErrors === null) {
                                              vErrors = [err36];
                                            } else {
                                              vErrors.push(err36);
                                            }
                                            errors++;
                                          }
                                        }
                                        var _valid10 = _errs81 === errors;
                                        valid21 = valid21 || _valid10;
                                      }
                                    }
                                    if (!valid21) {
                                      const err37 = {
                                        instancePath: instancePath + "/options/pfx/" + i4,
                                        schemaPath: "#/definitions/ServerOptions/properties/pfx/anyOf/0/items/anyOf",
                                        keyword: "anyOf",
                                        params: {},
                                        message: "must match a schema in anyOf"
                                      };
                                      if (vErrors === null) {
                                        vErrors = [err37];
                                      } else {
                                        vErrors.push(err37);
                                      }
                                      errors++;
                                    } else {
                                      errors = _errs77;
                                      if (vErrors !== null) {
                                        if (_errs77) {
                                          vErrors.length = _errs77;
                                        } else {
                                          vErrors = null;
                                        }
                                      }
                                    }
                                    var valid20 = _errs76 === errors;
                                    if (!valid20) {
                                      break;
                                    }
                                  }
                                } else {
                                  const err38 = {
                                    instancePath: instancePath + "/options/pfx",
                                    schemaPath: "#/definitions/ServerOptions/properties/pfx/anyOf/0/type",
                                    keyword: "type",
                                    params: {
                                      type: "array"
                                    },
                                    message: "must be array"
                                  };
                                  if (vErrors === null) {
                                    vErrors = [err38];
                                  } else {
                                    vErrors.push(err38);
                                  }
                                  errors++;
                                }
                              }
                              var _valid9 = _errs74 === errors;
                              valid19 = valid19 || _valid9;
                              if (!valid19) {
                                const _errs84 = errors;
                                if (typeof data12 !== "string") {
                                  const err39 = {
                                    instancePath: instancePath + "/options/pfx",
                                    schemaPath: "#/definitions/ServerOptions/properties/pfx/anyOf/1/type",
                                    keyword: "type",
                                    params: {
                                      type: "string"
                                    },
                                    message: "must be string"
                                  };
                                  if (vErrors === null) {
                                    vErrors = [err39];
                                  } else {
                                    vErrors.push(err39);
                                  }
                                  errors++;
                                }
                                var _valid9 = _errs84 === errors;
                                valid19 = valid19 || _valid9;
                                if (!valid19) {
                                  const _errs86 = errors;
                                  if (!(data12 instanceof Buffer)) {
                                    const err40 = {
                                      instancePath: instancePath + "/options/pfx",
                                      schemaPath: "#/definitions/ServerOptions/properties/pfx/anyOf/2/instanceof",
                                      keyword: "instanceof",
                                      params: {},
                                      message: "must pass \"instanceof\" keyword validation"
                                    };
                                    if (vErrors === null) {
                                      vErrors = [err40];
                                    } else {
                                      vErrors.push(err40);
                                    }
                                    errors++;
                                  }
                                  var _valid9 = _errs86 === errors;
                                  valid19 = valid19 || _valid9;
                                }
                              }
                              if (!valid19) {
                                const err41 = {
                                  instancePath: instancePath + "/options/pfx",
                                  schemaPath: "#/definitions/ServerOptions/properties/pfx/anyOf",
                                  keyword: "anyOf",
                                  params: {},
                                  message: "must match a schema in anyOf"
                                };
                                if (vErrors === null) {
                                  vErrors = [err41];
                                } else {
                                  vErrors.push(err41);
                                }
                                errors++;
                                validate22.errors = vErrors;
                                return false;
                              } else {
                                errors = _errs73;
                                if (vErrors !== null) {
                                  if (_errs73) {
                                    vErrors.length = _errs73;
                                  } else {
                                    vErrors = null;
                                  }
                                }
                              }
                              var valid6 = _errs72 === errors;
                            } else {
                              var valid6 = true;
                            }
                          }
                        }
                      }
                    }
                  }
                }
              } else {
                validate22.errors = [{
                  instancePath: instancePath + "/options",
                  schemaPath: "#/definitions/ServerOptions/type",
                  keyword: "type",
                  params: {
                    type: "object"
                  },
                  message: "must be object"
                }];
                return false;
              }
            }
            var valid0 = _errs12 === errors;
          } else {
            var valid0 = true;
          }
        }
      }
    } else {
      validate22.errors = [{
        instancePath,
        schemaPath: "#/type",
        keyword: "type",
        params: {
          type: "object"
        },
        message: "must be object"
      }];
      return false;
    }
  }
  validate22.errors = vErrors;
  return errors === 0;
}
function validate21(data, {
  instancePath = "",
  parentData,
  parentDataProperty,
  rootData = data
} = {}) {
  let vErrors = null;
  let errors = 0;
  const _errs0 = errors;
  let valid0 = false;
  const _errs1 = errors;
  if (!(data === "http" || data === "https" || data === "http2")) {
    const err0 = {
      instancePath,
      schemaPath: "#/definitions/ServerEnum/enum",
      keyword: "enum",
      params: {
        allowedValues: schema44.enum
      },
      message: "must be equal to one of the allowed values"
    };
    if (vErrors === null) {
      vErrors = [err0];
    } else {
      vErrors.push(err0);
    }
    errors++;
  }
  var _valid0 = _errs1 === errors;
  valid0 = valid0 || _valid0;
  if (!valid0) {
    const _errs4 = errors;
    if (!(data instanceof Function)) {
      const err1 = {
        instancePath,
        schemaPath: "#/definitions/ServerFn/instanceof",
        keyword: "instanceof",
        params: {},
        message: "must pass \"instanceof\" keyword validation"
      };
      if (vErrors === null) {
        vErrors = [err1];
      } else {
        vErrors.push(err1);
      }
      errors++;
    }
    var _valid0 = _errs4 === errors;
    valid0 = valid0 || _valid0;
    if (!valid0) {
      const _errs6 = errors;
      const _errs7 = errors;
      if (errors === _errs7) {
        if (typeof data === "string") {
          if (data.length < 1) {
            const err2 = {
              instancePath,
              schemaPath: "#/definitions/ServerString/minLength",
              keyword: "minLength",
              params: {
                limit: 1
              },
              message: "must NOT have fewer than 1 characters"
            };
            if (vErrors === null) {
              vErrors = [err2];
            } else {
              vErrors.push(err2);
            }
            errors++;
          }
        } else {
          const err3 = {
            instancePath,
            schemaPath: "#/definitions/ServerString/type",
            keyword: "type",
            params: {
              type: "string"
            },
            message: "must be string"
          };
          if (vErrors === null) {
            vErrors = [err3];
          } else {
            vErrors.push(err3);
          }
          errors++;
        }
      }
      var _valid0 = _errs6 === errors;
      valid0 = valid0 || _valid0;
      if (!valid0) {
        const _errs10 = errors;
        if (!validate22(data, {
          instancePath,
          parentData,
          parentDataProperty,
          rootData
        })) {
          vErrors = vErrors === null ? validate22.errors : vErrors.concat(validate22.errors);
          errors = vErrors.length;
        }
        var _valid0 = _errs10 === errors;
        valid0 = valid0 || _valid0;
      }
    }
  }
  if (!valid0) {
    const err4 = {
      instancePath,
      schemaPath: "#/anyOf",
      keyword: "anyOf",
      params: {},
      message: "must match a schema in anyOf"
    };
    if (vErrors === null) {
      vErrors = [err4];
    } else {
      vErrors.push(err4);
    }
    errors++;
    validate21.errors = vErrors;
    return false;
  } else {
    errors = _errs0;
    if (vErrors !== null) {
      if (_errs0) {
        vErrors.length = _errs0;
      } else {
        vErrors = null;
      }
    }
  }
  validate21.errors = vErrors;
  return errors === 0;
}
const schema55 = {
  "anyOf": [{
    "type": "array",
    "items": {
      "anyOf": [{
        "$ref": "#/definitions/StaticString"
      }, {
        "$ref": "#/definitions/StaticObject"
      }]
    }
  }, {
    "type": "boolean",
    "cli": {
      "negatedDescription": "Disallows to configure options for serving static files from directory."
    }
  }, {
    "$ref": "#/definitions/StaticString"
  }, {
    "$ref": "#/definitions/StaticObject"
  }],
  "description": "Allows to configure options for serving static files from directory (by default 'public' directory).",
  "link": "https://webpack.js.org/configuration/dev-server/#devserverstatic"
};
const schema56 = {
  "type": "string",
  "minLength": 1
};
const schema57 = {
  "type": "object",
  "additionalProperties": false,
  "properties": {
    "directory": {
      "type": "string",
      "minLength": 1,
      "description": "Directory for static contents.",
      "link": "https://webpack.js.org/configuration/dev-server/#directory"
    },
    "staticOptions": {
      "type": "object",
      "link": "https://webpack.js.org/configuration/dev-server/#staticoptions",
      "additionalProperties": true
    },
    "publicPath": {
      "anyOf": [{
        "type": "array",
        "items": {
          "type": "string"
        },
        "minItems": 1
      }, {
        "type": "string"
      }],
      "description": "The static files will be available in the browser under this public path.",
      "link": "https://webpack.js.org/configuration/dev-server/#publicpath"
    },
    "serveIndex": {
      "anyOf": [{
        "type": "boolean",
        "cli": {
          "negatedDescription": "Does not tell dev server to use serveIndex middleware."
        }
      }, {
        "type": "object",
        "additionalProperties": true
      }],
      "description": "Tells dev server to use serveIndex middleware when enabled.",
      "link": "https://webpack.js.org/configuration/dev-server/#serveindex"
    },
    "watch": {
      "anyOf": [{
        "type": "boolean",
        "cli": {
          "negatedDescription": "Does not watch for files in static content directory."
        }
      }, {
        "type": "object",
        "description": "Options for watch.",
        "link": "https://github.com/paulmillr/chokidar#api"
      }],
      "description": "Watches for files in static content directory.",
      "link": "https://webpack.js.org/configuration/dev-server/#watch"
    }
  }
};
function validate25(data, {
  instancePath = "",
  parentData,
  parentDataProperty,
  rootData = data
} = {}) {
  let vErrors = null;
  let errors = 0;
  const _errs0 = errors;
  let valid0 = false;
  const _errs1 = errors;
  if (errors === _errs1) {
    if (Array.isArray(data)) {
      var valid1 = true;
      const len0 = data.length;
      for (let i0 = 0; i0 < len0; i0++) {
        let data0 = data[i0];
        const _errs3 = errors;
        const _errs4 = errors;
        let valid2 = false;
        const _errs5 = errors;
        const _errs6 = errors;
        if (errors === _errs6) {
          if (typeof data0 === "string") {
            if (data0.length < 1) {
              const err0 = {
                instancePath: instancePath + "/" + i0,
                schemaPath: "#/definitions/StaticString/minLength",
                keyword: "minLength",
                params: {
                  limit: 1
                },
                message: "must NOT have fewer than 1 characters"
              };
              if (vErrors === null) {
                vErrors = [err0];
              } else {
                vErrors.push(err0);
              }
              errors++;
            }
          } else {
            const err1 = {
              instancePath: instancePath + "/" + i0,
              schemaPath: "#/definitions/StaticString/type",
              keyword: "type",
              params: {
                type: "string"
              },
              message: "must be string"
            };
            if (vErrors === null) {
              vErrors = [err1];
            } else {
              vErrors.push(err1);
            }
            errors++;
          }
        }
        var _valid1 = _errs5 === errors;
        valid2 = valid2 || _valid1;
        if (!valid2) {
          const _errs8 = errors;
          const _errs9 = errors;
          if (errors === _errs9) {
            if (data0 && typeof data0 == "object" && !Array.isArray(data0)) {
              const _errs11 = errors;
              for (const key0 in data0) {
                if (!(key0 === "directory" || key0 === "staticOptions" || key0 === "publicPath" || key0 === "serveIndex" || key0 === "watch")) {
                  const err2 = {
                    instancePath: instancePath + "/" + i0,
                    schemaPath: "#/definitions/StaticObject/additionalProperties",
                    keyword: "additionalProperties",
                    params: {
                      additionalProperty: key0
                    },
                    message: "must NOT have additional properties"
                  };
                  if (vErrors === null) {
                    vErrors = [err2];
                  } else {
                    vErrors.push(err2);
                  }
                  errors++;
                  break;
                }
              }
              if (_errs11 === errors) {
                if (data0.directory !== undefined) {
                  let data1 = data0.directory;
                  const _errs12 = errors;
                  if (errors === _errs12) {
                    if (typeof data1 === "string") {
                      if (data1.length < 1) {
                        const err3 = {
                          instancePath: instancePath + "/" + i0 + "/directory",
                          schemaPath: "#/definitions/StaticObject/properties/directory/minLength",
                          keyword: "minLength",
                          params: {
                            limit: 1
                          },
                          message: "must NOT have fewer than 1 characters"
                        };
                        if (vErrors === null) {
                          vErrors = [err3];
                        } else {
                          vErrors.push(err3);
                        }
                        errors++;
                      }
                    } else {
                      const err4 = {
                        instancePath: instancePath + "/" + i0 + "/directory",
                        schemaPath: "#/definitions/StaticObject/properties/directory/type",
                        keyword: "type",
                        params: {
                          type: "string"
                        },
                        message: "must be string"
                      };
                      if (vErrors === null) {
                        vErrors = [err4];
                      } else {
                        vErrors.push(err4);
                      }
                      errors++;
                    }
                  }
                  var valid5 = _errs12 === errors;
                } else {
                  var valid5 = true;
                }
                if (valid5) {
                  if (data0.staticOptions !== undefined) {
                    let data2 = data0.staticOptions;
                    const _errs15 = errors;
                    if (errors === _errs15) {
                      if (data2 && typeof data2 == "object" && !Array.isArray(data2)) {} else {
                        const err5 = {
                          instancePath: instancePath + "/" + i0 + "/staticOptions",
                          schemaPath: "#/definitions/StaticObject/properties/staticOptions/type",
                          keyword: "type",
                          params: {
                            type: "object"
                          },
                          message: "must be object"
                        };
                        if (vErrors === null) {
                          vErrors = [err5];
                        } else {
                          vErrors.push(err5);
                        }
                        errors++;
                      }
                    }
                    var valid5 = _errs15 === errors;
                  } else {
                    var valid5 = true;
                  }
                  if (valid5) {
                    if (data0.publicPath !== undefined) {
                      let data3 = data0.publicPath;
                      const _errs19 = errors;
                      const _errs20 = errors;
                      let valid6 = false;
                      const _errs21 = errors;
                      if (errors === _errs21) {
                        if (Array.isArray(data3)) {
                          if (data3.length < 1) {
                            const err6 = {
                              instancePath: instancePath + "/" + i0 + "/publicPath",
                              schemaPath: "#/definitions/StaticObject/properties/publicPath/anyOf/0/minItems",
                              keyword: "minItems",
                              params: {
                                limit: 1
                              },
                              message: "must NOT have fewer than 1 items"
                            };
                            if (vErrors === null) {
                              vErrors = [err6];
                            } else {
                              vErrors.push(err6);
                            }
                            errors++;
                          } else {
                            var valid7 = true;
                            const len1 = data3.length;
                            for (let i1 = 0; i1 < len1; i1++) {
                              const _errs23 = errors;
                              if (typeof data3[i1] !== "string") {
                                const err7 = {
                                  instancePath: instancePath + "/" + i0 + "/publicPath/" + i1,
                                  schemaPath: "#/definitions/StaticObject/properties/publicPath/anyOf/0/items/type",
                                  keyword: "type",
                                  params: {
                                    type: "string"
                                  },
                                  message: "must be string"
                                };
                                if (vErrors === null) {
                                  vErrors = [err7];
                                } else {
                                  vErrors.push(err7);
                                }
                                errors++;
                              }
                              var valid7 = _errs23 === errors;
                              if (!valid7) {
                                break;
                              }
                            }
                          }
                        } else {
                          const err8 = {
                            instancePath: instancePath + "/" + i0 + "/publicPath",
                            schemaPath: "#/definitions/StaticObject/properties/publicPath/anyOf/0/type",
                            keyword: "type",
                            params: {
                              type: "array"
                            },
                            message: "must be array"
                          };
                          if (vErrors === null) {
                            vErrors = [err8];
                          } else {
                            vErrors.push(err8);
                          }
                          errors++;
                        }
                      }
                      var _valid2 = _errs21 === errors;
                      valid6 = valid6 || _valid2;
                      if (!valid6) {
                        const _errs25 = errors;
                        if (typeof data3 !== "string") {
                          const err9 = {
                            instancePath: instancePath + "/" + i0 + "/publicPath",
                            schemaPath: "#/definitions/StaticObject/properties/publicPath/anyOf/1/type",
                            keyword: "type",
                            params: {
                              type: "string"
                            },
                            message: "must be string"
                          };
                          if (vErrors === null) {
                            vErrors = [err9];
                          } else {
                            vErrors.push(err9);
                          }
                          errors++;
                        }
                        var _valid2 = _errs25 === errors;
                        valid6 = valid6 || _valid2;
                      }
                      if (!valid6) {
                        const err10 = {
                          instancePath: instancePath + "/" + i0 + "/publicPath",
                          schemaPath: "#/definitions/StaticObject/properties/publicPath/anyOf",
                          keyword: "anyOf",
                          params: {},
                          message: "must match a schema in anyOf"
                        };
                        if (vErrors === null) {
                          vErrors = [err10];
                        } else {
                          vErrors.push(err10);
                        }
                        errors++;
                      } else {
                        errors = _errs20;
                        if (vErrors !== null) {
                          if (_errs20) {
                            vErrors.length = _errs20;
                          } else {
                            vErrors = null;
                          }
                        }
                      }
                      var valid5 = _errs19 === errors;
                    } else {
                      var valid5 = true;
                    }
                    if (valid5) {
                      if (data0.serveIndex !== undefined) {
                        let data5 = data0.serveIndex;
                        const _errs28 = errors;
                        const _errs29 = errors;
                        let valid8 = false;
                        const _errs30 = errors;
                        if (typeof data5 !== "boolean") {
                          const err11 = {
                            instancePath: instancePath + "/" + i0 + "/serveIndex",
                            schemaPath: "#/definitions/StaticObject/properties/serveIndex/anyOf/0/type",
                            keyword: "type",
                            params: {
                              type: "boolean"
                            },
                            message: "must be boolean"
                          };
                          if (vErrors === null) {
                            vErrors = [err11];
                          } else {
                            vErrors.push(err11);
                          }
                          errors++;
                        }
                        var _valid3 = _errs30 === errors;
                        valid8 = valid8 || _valid3;
                        if (!valid8) {
                          const _errs33 = errors;
                          if (errors === _errs33) {
                            if (data5 && typeof data5 == "object" && !Array.isArray(data5)) {} else {
                              const err12 = {
                                instancePath: instancePath + "/" + i0 + "/serveIndex",
                                schemaPath: "#/definitions/StaticObject/properties/serveIndex/anyOf/1/type",
                                keyword: "type",
                                params: {
                                  type: "object"
                                },
                                message: "must be object"
                              };
                              if (vErrors === null) {
                                vErrors = [err12];
                              } else {
                                vErrors.push(err12);
                              }
                              errors++;
                            }
                          }
                          var _valid3 = _errs33 === errors;
                          valid8 = valid8 || _valid3;
                        }
                        if (!valid8) {
                          const err13 = {
                            instancePath: instancePath + "/" + i0 + "/serveIndex",
                            schemaPath: "#/definitions/StaticObject/properties/serveIndex/anyOf",
                            keyword: "anyOf",
                            params: {},
                            message: "must match a schema in anyOf"
                          };
                          if (vErrors === null) {
                            vErrors = [err13];
                          } else {
                            vErrors.push(err13);
                          }
                          errors++;
                        } else {
                          errors = _errs29;
                          if (vErrors !== null) {
                            if (_errs29) {
                              vErrors.length = _errs29;
                            } else {
                              vErrors = null;
                            }
                          }
                        }
                        var valid5 = _errs28 === errors;
                      } else {
                        var valid5 = true;
                      }
                      if (valid5) {
                        if (data0.watch !== undefined) {
                          let data6 = data0.watch;
                          const _errs37 = errors;
                          const _errs38 = errors;
                          let valid9 = false;
                          const _errs39 = errors;
                          if (typeof data6 !== "boolean") {
                            const err14 = {
                              instancePath: instancePath + "/" + i0 + "/watch",
                              schemaPath: "#/definitions/StaticObject/properties/watch/anyOf/0/type",
                              keyword: "type",
                              params: {
                                type: "boolean"
                              },
                              message: "must be boolean"
                            };
                            if (vErrors === null) {
                              vErrors = [err14];
                            } else {
                              vErrors.push(err14);
                            }
                            errors++;
                          }
                          var _valid4 = _errs39 === errors;
                          valid9 = valid9 || _valid4;
                          if (!valid9) {
                            const _errs42 = errors;
                            if (!(data6 && typeof data6 == "object" && !Array.isArray(data6))) {
                              const err15 = {
                                instancePath: instancePath + "/" + i0 + "/watch",
                                schemaPath: "#/definitions/StaticObject/properties/watch/anyOf/1/type",
                                keyword: "type",
                                params: {
                                  type: "object"
                                },
                                message: "must be object"
                              };
                              if (vErrors === null) {
                                vErrors = [err15];
                              } else {
                                vErrors.push(err15);
                              }
                              errors++;
                            }
                            var _valid4 = _errs42 === errors;
                            valid9 = valid9 || _valid4;
                          }
                          if (!valid9) {
                            const err16 = {
                              instancePath: instancePath + "/" + i0 + "/watch",
                              schemaPath: "#/definitions/StaticObject/properties/watch/anyOf",
                              keyword: "anyOf",
                              params: {},
                              message: "must match a schema in anyOf"
                            };
                            if (vErrors === null) {
                              vErrors = [err16];
                            } else {
                              vErrors.push(err16);
                            }
                            errors++;
                          } else {
                            errors = _errs38;
                            if (vErrors !== null) {
                              if (_errs38) {
                                vErrors.length = _errs38;
                              } else {
                                vErrors = null;
                              }
                            }
                          }
                          var valid5 = _errs37 === errors;
                        } else {
                          var valid5 = true;
                        }
                      }
                    }
                  }
                }
              }
            } else {
              const err17 = {
                instancePath: instancePath + "/" + i0,
                schemaPath: "#/definitions/StaticObject/type",
                keyword: "type",
                params: {
                  type: "object"
                },
                message: "must be object"
              };
              if (vErrors === null) {
                vErrors = [err17];
              } else {
                vErrors.push(err17);
              }
              errors++;
            }
          }
          var _valid1 = _errs8 === errors;
          valid2 = valid2 || _valid1;
        }
        if (!valid2) {
          const err18 = {
            instancePath: instancePath + "/" + i0,
            schemaPath: "#/anyOf/0/items/anyOf",
            keyword: "anyOf",
            params: {},
            message: "must match a schema in anyOf"
          };
          if (vErrors === null) {
            vErrors = [err18];
          } else {
            vErrors.push(err18);
          }
          errors++;
        } else {
          errors = _errs4;
          if (vErrors !== null) {
            if (_errs4) {
              vErrors.length = _errs4;
            } else {
              vErrors = null;
            }
          }
        }
        var valid1 = _errs3 === errors;
        if (!valid1) {
          break;
        }
      }
    } else {
      const err19 = {
        instancePath,
        schemaPath: "#/anyOf/0/type",
        keyword: "type",
        params: {
          type: "array"
        },
        message: "must be array"
      };
      if (vErrors === null) {
        vErrors = [err19];
      } else {
        vErrors.push(err19);
      }
      errors++;
    }
  }
  var _valid0 = _errs1 === errors;
  valid0 = valid0 || _valid0;
  if (!valid0) {
    const _errs46 = errors;
    if (typeof data !== "boolean") {
      const err20 = {
        instancePath,
        schemaPath: "#/anyOf/1/type",
        keyword: "type",
        params: {
          type: "boolean"
        },
        message: "must be boolean"
      };
      if (vErrors === null) {
        vErrors = [err20];
      } else {
        vErrors.push(err20);
      }
      errors++;
    }
    var _valid0 = _errs46 === errors;
    valid0 = valid0 || _valid0;
    if (!valid0) {
      const _errs49 = errors;
      const _errs50 = errors;
      if (errors === _errs50) {
        if (typeof data === "string") {
          if (data.length < 1) {
            const err21 = {
              instancePath,
              schemaPath: "#/definitions/StaticString/minLength",
              keyword: "minLength",
              params: {
                limit: 1
              },
              message: "must NOT have fewer than 1 characters"
            };
            if (vErrors === null) {
              vErrors = [err21];
            } else {
              vErrors.push(err21);
            }
            errors++;
          }
        } else {
          const err22 = {
            instancePath,
            schemaPath: "#/definitions/StaticString/type",
            keyword: "type",
            params: {
              type: "string"
            },
            message: "must be string"
          };
          if (vErrors === null) {
            vErrors = [err22];
          } else {
            vErrors.push(err22);
          }
          errors++;
        }
      }
      var _valid0 = _errs49 === errors;
      valid0 = valid0 || _valid0;
      if (!valid0) {
        const _errs52 = errors;
        const _errs53 = errors;
        if (errors === _errs53) {
          if (data && typeof data == "object" && !Array.isArray(data)) {
            const _errs55 = errors;
            for (const key1 in data) {
              if (!(key1 === "directory" || key1 === "staticOptions" || key1 === "publicPath" || key1 === "serveIndex" || key1 === "watch")) {
                const err23 = {
                  instancePath,
                  schemaPath: "#/definitions/StaticObject/additionalProperties",
                  keyword: "additionalProperties",
                  params: {
                    additionalProperty: key1
                  },
                  message: "must NOT have additional properties"
                };
                if (vErrors === null) {
                  vErrors = [err23];
                } else {
                  vErrors.push(err23);
                }
                errors++;
                break;
              }
            }
            if (_errs55 === errors) {
              if (data.directory !== undefined) {
                let data7 = data.directory;
                const _errs56 = errors;
                if (errors === _errs56) {
                  if (typeof data7 === "string") {
                    if (data7.length < 1) {
                      const err24 = {
                        instancePath: instancePath + "/directory",
                        schemaPath: "#/definitions/StaticObject/properties/directory/minLength",
                        keyword: "minLength",
                        params: {
                          limit: 1
                        },
                        message: "must NOT have fewer than 1 characters"
                      };
                      if (vErrors === null) {
                        vErrors = [err24];
                      } else {
                        vErrors.push(err24);
                      }
                      errors++;
                    }
                  } else {
                    const err25 = {
                      instancePath: instancePath + "/directory",
                      schemaPath: "#/definitions/StaticObject/properties/directory/type",
                      keyword: "type",
                      params: {
                        type: "string"
                      },
                      message: "must be string"
                    };
                    if (vErrors === null) {
                      vErrors = [err25];
                    } else {
                      vErrors.push(err25);
                    }
                    errors++;
                  }
                }
                var valid12 = _errs56 === errors;
              } else {
                var valid12 = true;
              }
              if (valid12) {
                if (data.staticOptions !== undefined) {
                  let data8 = data.staticOptions;
                  const _errs59 = errors;
                  if (errors === _errs59) {
                    if (data8 && typeof data8 == "object" && !Array.isArray(data8)) {} else {
                      const err26 = {
                        instancePath: instancePath + "/staticOptions",
                        schemaPath: "#/definitions/StaticObject/properties/staticOptions/type",
                        keyword: "type",
                        params: {
                          type: "object"
                        },
                        message: "must be object"
                      };
                      if (vErrors === null) {
                        vErrors = [err26];
                      } else {
                        vErrors.push(err26);
                      }
                      errors++;
                    }
                  }
                  var valid12 = _errs59 === errors;
                } else {
                  var valid12 = true;
                }
                if (valid12) {
                  if (data.publicPath !== undefined) {
                    let data9 = data.publicPath;
                    const _errs63 = errors;
                    const _errs64 = errors;
                    let valid13 = false;
                    const _errs65 = errors;
                    if (errors === _errs65) {
                      if (Array.isArray(data9)) {
                        if (data9.length < 1) {
                          const err27 = {
                            instancePath: instancePath + "/publicPath",
                            schemaPath: "#/definitions/StaticObject/properties/publicPath/anyOf/0/minItems",
                            keyword: "minItems",
                            params: {
                              limit: 1
                            },
                            message: "must NOT have fewer than 1 items"
                          };
                          if (vErrors === null) {
                            vErrors = [err27];
                          } else {
                            vErrors.push(err27);
                          }
                          errors++;
                        } else {
                          var valid14 = true;
                          const len2 = data9.length;
                          for (let i2 = 0; i2 < len2; i2++) {
                            const _errs67 = errors;
                            if (typeof data9[i2] !== "string") {
                              const err28 = {
                                instancePath: instancePath + "/publicPath/" + i2,
                                schemaPath: "#/definitions/StaticObject/properties/publicPath/anyOf/0/items/type",
                                keyword: "type",
                                params: {
                                  type: "string"
                                },
                                message: "must be string"
                              };
                              if (vErrors === null) {
                                vErrors = [err28];
                              } else {
                                vErrors.push(err28);
                              }
                              errors++;
                            }
                            var valid14 = _errs67 === errors;
                            if (!valid14) {
                              break;
                            }
                          }
                        }
                      } else {
                        const err29 = {
                          instancePath: instancePath + "/publicPath",
                          schemaPath: "#/definitions/StaticObject/properties/publicPath/anyOf/0/type",
                          keyword: "type",
                          params: {
                            type: "array"
                          },
                          message: "must be array"
                        };
                        if (vErrors === null) {
                          vErrors = [err29];
                        } else {
                          vErrors.push(err29);
                        }
                        errors++;
                      }
                    }
                    var _valid5 = _errs65 === errors;
                    valid13 = valid13 || _valid5;
                    if (!valid13) {
                      const _errs69 = errors;
                      if (typeof data9 !== "string") {
                        const err30 = {
                          instancePath: instancePath + "/publicPath",
                          schemaPath: "#/definitions/StaticObject/properties/publicPath/anyOf/1/type",
                          keyword: "type",
                          params: {
                            type: "string"
                          },
                          message: "must be string"
                        };
                        if (vErrors === null) {
                          vErrors = [err30];
                        } else {
                          vErrors.push(err30);
                        }
                        errors++;
                      }
                      var _valid5 = _errs69 === errors;
                      valid13 = valid13 || _valid5;
                    }
                    if (!valid13) {
                      const err31 = {
                        instancePath: instancePath + "/publicPath",
                        schemaPath: "#/definitions/StaticObject/properties/publicPath/anyOf",
                        keyword: "anyOf",
                        params: {},
                        message: "must match a schema in anyOf"
                      };
                      if (vErrors === null) {
                        vErrors = [err31];
                      } else {
                        vErrors.push(err31);
                      }
                      errors++;
                    } else {
                      errors = _errs64;
                      if (vErrors !== null) {
                        if (_errs64) {
                          vErrors.length = _errs64;
                        } else {
                          vErrors = null;
                        }
                      }
                    }
                    var valid12 = _errs63 === errors;
                  } else {
                    var valid12 = true;
                  }
                  if (valid12) {
                    if (data.serveIndex !== undefined) {
                      let data11 = data.serveIndex;
                      const _errs72 = errors;
                      const _errs73 = errors;
                      let valid15 = false;
                      const _errs74 = errors;
                      if (typeof data11 !== "boolean") {
                        const err32 = {
                          instancePath: instancePath + "/serveIndex",
                          schemaPath: "#/definitions/StaticObject/properties/serveIndex/anyOf/0/type",
                          keyword: "type",
                          params: {
                            type: "boolean"
                          },
                          message: "must be boolean"
                        };
                        if (vErrors === null) {
                          vErrors = [err32];
                        } else {
                          vErrors.push(err32);
                        }
                        errors++;
                      }
                      var _valid6 = _errs74 === errors;
                      valid15 = valid15 || _valid6;
                      if (!valid15) {
                        const _errs77 = errors;
                        if (errors === _errs77) {
                          if (data11 && typeof data11 == "object" && !Array.isArray(data11)) {} else {
                            const err33 = {
                              instancePath: instancePath + "/serveIndex",
                              schemaPath: "#/definitions/StaticObject/properties/serveIndex/anyOf/1/type",
                              keyword: "type",
                              params: {
                                type: "object"
                              },
                              message: "must be object"
                            };
                            if (vErrors === null) {
                              vErrors = [err33];
                            } else {
                              vErrors.push(err33);
                            }
                            errors++;
                          }
                        }
                        var _valid6 = _errs77 === errors;
                        valid15 = valid15 || _valid6;
                      }
                      if (!valid15) {
                        const err34 = {
                          instancePath: instancePath + "/serveIndex",
                          schemaPath: "#/definitions/StaticObject/properties/serveIndex/anyOf",
                          keyword: "anyOf",
                          params: {},
                          message: "must match a schema in anyOf"
                        };
                        if (vErrors === null) {
                          vErrors = [err34];
                        } else {
                          vErrors.push(err34);
                        }
                        errors++;
                      } else {
                        errors = _errs73;
                        if (vErrors !== null) {
                          if (_errs73) {
                            vErrors.length = _errs73;
                          } else {
                            vErrors = null;
                          }
                        }
                      }
                      var valid12 = _errs72 === errors;
                    } else {
                      var valid12 = true;
                    }
                    if (valid12) {
                      if (data.watch !== undefined) {
                        let data12 = data.watch;
                        const _errs81 = errors;
                        const _errs82 = errors;
                        let valid16 = false;
                        const _errs83 = errors;
                        if (typeof data12 !== "boolean") {
                          const err35 = {
                            instancePath: instancePath + "/watch",
                            schemaPath: "#/definitions/StaticObject/properties/watch/anyOf/0/type",
                            keyword: "type",
                            params: {
                              type: "boolean"
                            },
                            message: "must be boolean"
                          };
                          if (vErrors === null) {
                            vErrors = [err35];
                          } else {
                            vErrors.push(err35);
                          }
                          errors++;
                        }
                        var _valid7 = _errs83 === errors;
                        valid16 = valid16 || _valid7;
                        if (!valid16) {
                          const _errs86 = errors;
                          if (!(data12 && typeof data12 == "object" && !Array.isArray(data12))) {
                            const err36 = {
                              instancePath: instancePath + "/watch",
                              schemaPath: "#/definitions/StaticObject/properties/watch/anyOf/1/type",
                              keyword: "type",
                              params: {
                                type: "object"
                              },
                              message: "must be object"
                            };
                            if (vErrors === null) {
                              vErrors = [err36];
                            } else {
                              vErrors.push(err36);
                            }
                            errors++;
                          }
                          var _valid7 = _errs86 === errors;
                          valid16 = valid16 || _valid7;
                        }
                        if (!valid16) {
                          const err37 = {
                            instancePath: instancePath + "/watch",
                            schemaPath: "#/definitions/StaticObject/properties/watch/anyOf",
                            keyword: "anyOf",
                            params: {},
                            message: "must match a schema in anyOf"
                          };
                          if (vErrors === null) {
                            vErrors = [err37];
                          } else {
                            vErrors.push(err37);
                          }
                          errors++;
                        } else {
                          errors = _errs82;
                          if (vErrors !== null) {
                            if (_errs82) {
                              vErrors.length = _errs82;
                            } else {
                              vErrors = null;
                            }
                          }
                        }
                        var valid12 = _errs81 === errors;
                      } else {
                        var valid12 = true;
                      }
                    }
                  }
                }
              }
            }
          } else {
            const err38 = {
              instancePath,
              schemaPath: "#/definitions/StaticObject/type",
              keyword: "type",
              params: {
                type: "object"
              },
              message: "must be object"
            };
            if (vErrors === null) {
              vErrors = [err38];
            } else {
              vErrors.push(err38);
            }
            errors++;
          }
        }
        var _valid0 = _errs52 === errors;
        valid0 = valid0 || _valid0;
      }
    }
  }
  if (!valid0) {
    const err39 = {
      instancePath,
      schemaPath: "#/anyOf",
      keyword: "anyOf",
      params: {},
      message: "must match a schema in anyOf"
    };
    if (vErrors === null) {
      vErrors = [err39];
    } else {
      vErrors.push(err39);
    }
    errors++;
    validate25.errors = vErrors;
    return false;
  } else {
    errors = _errs0;
    if (vErrors !== null) {
      if (_errs0) {
        vErrors.length = _errs0;
      } else {
        vErrors = null;
      }
    }
  }
  validate25.errors = vErrors;
  return errors === 0;
}
const schema60 = {
  "anyOf": [{
    "type": "array",
    "items": {
      "anyOf": [{
        "$ref": "#/definitions/WatchFilesString"
      }, {
        "$ref": "#/definitions/WatchFilesObject"
      }]
    }
  }, {
    "$ref": "#/definitions/WatchFilesString"
  }, {
    "$ref": "#/definitions/WatchFilesObject"
  }],
  "description": "Allows to configure list of globs/directories/files to watch for file changes.",
  "link": "https://webpack.js.org/configuration/dev-server/#devserverwatchfiles"
};
const schema61 = {
  "type": "string",
  "minLength": 1
};
const schema62 = {
  "cli": {
    "exclude": true
  },
  "type": "object",
  "properties": {
    "paths": {
      "anyOf": [{
        "type": "array",
        "items": {
          "type": "string",
          "minLength": 1
        }
      }, {
        "type": "string",
        "minLength": 1
      }],
      "description": "Path(s) of globs/directories/files to watch for file changes."
    },
    "options": {
      "type": "object",
      "description": "Configure advanced options for watching. See the chokidar documentation for the possible options.",
      "link": "https://github.com/paulmillr/chokidar#api",
      "additionalProperties": true
    }
  },
  "additionalProperties": false
};
function validate27(data, {
  instancePath = "",
  parentData,
  parentDataProperty,
  rootData = data
} = {}) {
  let vErrors = null;
  let errors = 0;
  const _errs0 = errors;
  let valid0 = false;
  const _errs1 = errors;
  if (errors === _errs1) {
    if (Array.isArray(data)) {
      var valid1 = true;
      const len0 = data.length;
      for (let i0 = 0; i0 < len0; i0++) {
        let data0 = data[i0];
        const _errs3 = errors;
        const _errs4 = errors;
        let valid2 = false;
        const _errs5 = errors;
        const _errs6 = errors;
        if (errors === _errs6) {
          if (typeof data0 === "string") {
            if (data0.length < 1) {
              const err0 = {
                instancePath: instancePath + "/" + i0,
                schemaPath: "#/definitions/WatchFilesString/minLength",
                keyword: "minLength",
                params: {
                  limit: 1
                },
                message: "must NOT have fewer than 1 characters"
              };
              if (vErrors === null) {
                vErrors = [err0];
              } else {
                vErrors.push(err0);
              }
              errors++;
            }
          } else {
            const err1 = {
              instancePath: instancePath + "/" + i0,
              schemaPath: "#/definitions/WatchFilesString/type",
              keyword: "type",
              params: {
                type: "string"
              },
              message: "must be string"
            };
            if (vErrors === null) {
              vErrors = [err1];
            } else {
              vErrors.push(err1);
            }
            errors++;
          }
        }
        var _valid1 = _errs5 === errors;
        valid2 = valid2 || _valid1;
        if (!valid2) {
          const _errs8 = errors;
          const _errs9 = errors;
          if (errors === _errs9) {
            if (data0 && typeof data0 == "object" && !Array.isArray(data0)) {
              const _errs12 = errors;
              for (const key0 in data0) {
                if (!(key0 === "paths" || key0 === "options")) {
                  const err2 = {
                    instancePath: instancePath + "/" + i0,
                    schemaPath: "#/definitions/WatchFilesObject/additionalProperties",
                    keyword: "additionalProperties",
                    params: {
                      additionalProperty: key0
                    },
                    message: "must NOT have additional properties"
                  };
                  if (vErrors === null) {
                    vErrors = [err2];
                  } else {
                    vErrors.push(err2);
                  }
                  errors++;
                  break;
                }
              }
              if (_errs12 === errors) {
                if (data0.paths !== undefined) {
                  let data1 = data0.paths;
                  const _errs13 = errors;
                  const _errs14 = errors;
                  let valid6 = false;
                  const _errs15 = errors;
                  if (errors === _errs15) {
                    if (Array.isArray(data1)) {
                      var valid7 = true;
                      const len1 = data1.length;
                      for (let i1 = 0; i1 < len1; i1++) {
                        let data2 = data1[i1];
                        const _errs17 = errors;
                        if (errors === _errs17) {
                          if (typeof data2 === "string") {
                            if (data2.length < 1) {
                              const err3 = {
                                instancePath: instancePath + "/" + i0 + "/paths/" + i1,
                                schemaPath: "#/definitions/WatchFilesObject/properties/paths/anyOf/0/items/minLength",
                                keyword: "minLength",
                                params: {
                                  limit: 1
                                },
                                message: "must NOT have fewer than 1 characters"
                              };
                              if (vErrors === null) {
                                vErrors = [err3];
                              } else {
                                vErrors.push(err3);
                              }
                              errors++;
                            }
                          } else {
                            const err4 = {
                              instancePath: instancePath + "/" + i0 + "/paths/" + i1,
                              schemaPath: "#/definitions/WatchFilesObject/properties/paths/anyOf/0/items/type",
                              keyword: "type",
                              params: {
                                type: "string"
                              },
                              message: "must be string"
                            };
                            if (vErrors === null) {
                              vErrors = [err4];
                            } else {
                              vErrors.push(err4);
                            }
                            errors++;
                          }
                        }
                        var valid7 = _errs17 === errors;
                        if (!valid7) {
                          break;
                        }
                      }
                    } else {
                      const err5 = {
                        instancePath: instancePath + "/" + i0 + "/paths",
                        schemaPath: "#/definitions/WatchFilesObject/properties/paths/anyOf/0/type",
                        keyword: "type",
                        params: {
                          type: "array"
                        },
                        message: "must be array"
                      };
                      if (vErrors === null) {
                        vErrors = [err5];
                      } else {
                        vErrors.push(err5);
                      }
                      errors++;
                    }
                  }
                  var _valid2 = _errs15 === errors;
                  valid6 = valid6 || _valid2;
                  if (!valid6) {
                    const _errs19 = errors;
                    if (errors === _errs19) {
                      if (typeof data1 === "string") {
                        if (data1.length < 1) {
                          const err6 = {
                            instancePath: instancePath + "/" + i0 + "/paths",
                            schemaPath: "#/definitions/WatchFilesObject/properties/paths/anyOf/1/minLength",
                            keyword: "minLength",
                            params: {
                              limit: 1
                            },
                            message: "must NOT have fewer than 1 characters"
                          };
                          if (vErrors === null) {
                            vErrors = [err6];
                          } else {
                            vErrors.push(err6);
                          }
                          errors++;
                        }
                      } else {
                        const err7 = {
                          instancePath: instancePath + "/" + i0 + "/paths",
                          schemaPath: "#/definitions/WatchFilesObject/properties/paths/anyOf/1/type",
                          keyword: "type",
                          params: {
                            type: "string"
                          },
                          message: "must be string"
                        };
                        if (vErrors === null) {
                          vErrors = [err7];
                        } else {
                          vErrors.push(err7);
                        }
                        errors++;
                      }
                    }
                    var _valid2 = _errs19 === errors;
                    valid6 = valid6 || _valid2;
                  }
                  if (!valid6) {
                    const err8 = {
                      instancePath: instancePath + "/" + i0 + "/paths",
                      schemaPath: "#/definitions/WatchFilesObject/properties/paths/anyOf",
                      keyword: "anyOf",
                      params: {},
                      message: "must match a schema in anyOf"
                    };
                    if (vErrors === null) {
                      vErrors = [err8];
                    } else {
                      vErrors.push(err8);
                    }
                    errors++;
                  } else {
                    errors = _errs14;
                    if (vErrors !== null) {
                      if (_errs14) {
                        vErrors.length = _errs14;
                      } else {
                        vErrors = null;
                      }
                    }
                  }
                  var valid5 = _errs13 === errors;
                } else {
                  var valid5 = true;
                }
                if (valid5) {
                  if (data0.options !== undefined) {
                    let data3 = data0.options;
                    const _errs21 = errors;
                    if (errors === _errs21) {
                      if (data3 && typeof data3 == "object" && !Array.isArray(data3)) {} else {
                        const err9 = {
                          instancePath: instancePath + "/" + i0 + "/options",
                          schemaPath: "#/definitions/WatchFilesObject/properties/options/type",
                          keyword: "type",
                          params: {
                            type: "object"
                          },
                          message: "must be object"
                        };
                        if (vErrors === null) {
                          vErrors = [err9];
                        } else {
                          vErrors.push(err9);
                        }
                        errors++;
                      }
                    }
                    var valid5 = _errs21 === errors;
                  } else {
                    var valid5 = true;
                  }
                }
              }
            } else {
              const err10 = {
                instancePath: instancePath + "/" + i0,
                schemaPath: "#/definitions/WatchFilesObject/type",
                keyword: "type",
                params: {
                  type: "object"
                },
                message: "must be object"
              };
              if (vErrors === null) {
                vErrors = [err10];
              } else {
                vErrors.push(err10);
              }
              errors++;
            }
          }
          var _valid1 = _errs8 === errors;
          valid2 = valid2 || _valid1;
        }
        if (!valid2) {
          const err11 = {
            instancePath: instancePath + "/" + i0,
            schemaPath: "#/anyOf/0/items/anyOf",
            keyword: "anyOf",
            params: {},
            message: "must match a schema in anyOf"
          };
          if (vErrors === null) {
            vErrors = [err11];
          } else {
            vErrors.push(err11);
          }
          errors++;
        } else {
          errors = _errs4;
          if (vErrors !== null) {
            if (_errs4) {
              vErrors.length = _errs4;
            } else {
              vErrors = null;
            }
          }
        }
        var valid1 = _errs3 === errors;
        if (!valid1) {
          break;
        }
      }
    } else {
      const err12 = {
        instancePath,
        schemaPath: "#/anyOf/0/type",
        keyword: "type",
        params: {
          type: "array"
        },
        message: "must be array"
      };
      if (vErrors === null) {
        vErrors = [err12];
      } else {
        vErrors.push(err12);
      }
      errors++;
    }
  }
  var _valid0 = _errs1 === errors;
  valid0 = valid0 || _valid0;
  if (!valid0) {
    const _errs25 = errors;
    const _errs26 = errors;
    if (errors === _errs26) {
      if (typeof data === "string") {
        if (data.length < 1) {
          const err13 = {
            instancePath,
            schemaPath: "#/definitions/WatchFilesString/minLength",
            keyword: "minLength",
            params: {
              limit: 1
            },
            message: "must NOT have fewer than 1 characters"
          };
          if (vErrors === null) {
            vErrors = [err13];
          } else {
            vErrors.push(err13);
          }
          errors++;
        }
      } else {
        const err14 = {
          instancePath,
          schemaPath: "#/definitions/WatchFilesString/type",
          keyword: "type",
          params: {
            type: "string"
          },
          message: "must be string"
        };
        if (vErrors === null) {
          vErrors = [err14];
        } else {
          vErrors.push(err14);
        }
        errors++;
      }
    }
    var _valid0 = _errs25 === errors;
    valid0 = valid0 || _valid0;
    if (!valid0) {
      const _errs28 = errors;
      const _errs29 = errors;
      if (errors === _errs29) {
        if (data && typeof data == "object" && !Array.isArray(data)) {
          const _errs32 = errors;
          for (const key1 in data) {
            if (!(key1 === "paths" || key1 === "options")) {
              const err15 = {
                instancePath,
                schemaPath: "#/definitions/WatchFilesObject/additionalProperties",
                keyword: "additionalProperties",
                params: {
                  additionalProperty: key1
                },
                message: "must NOT have additional properties"
              };
              if (vErrors === null) {
                vErrors = [err15];
              } else {
                vErrors.push(err15);
              }
              errors++;
              break;
            }
          }
          if (_errs32 === errors) {
            if (data.paths !== undefined) {
              let data4 = data.paths;
              const _errs33 = errors;
              const _errs34 = errors;
              let valid11 = false;
              const _errs35 = errors;
              if (errors === _errs35) {
                if (Array.isArray(data4)) {
                  var valid12 = true;
                  const len2 = data4.length;
                  for (let i2 = 0; i2 < len2; i2++) {
                    let data5 = data4[i2];
                    const _errs37 = errors;
                    if (errors === _errs37) {
                      if (typeof data5 === "string") {
                        if (data5.length < 1) {
                          const err16 = {
                            instancePath: instancePath + "/paths/" + i2,
                            schemaPath: "#/definitions/WatchFilesObject/properties/paths/anyOf/0/items/minLength",
                            keyword: "minLength",
                            params: {
                              limit: 1
                            },
                            message: "must NOT have fewer than 1 characters"
                          };
                          if (vErrors === null) {
                            vErrors = [err16];
                          } else {
                            vErrors.push(err16);
                          }
                          errors++;
                        }
                      } else {
                        const err17 = {
                          instancePath: instancePath + "/paths/" + i2,
                          schemaPath: "#/definitions/WatchFilesObject/properties/paths/anyOf/0/items/type",
                          keyword: "type",
                          params: {
                            type: "string"
                          },
                          message: "must be string"
                        };
                        if (vErrors === null) {
                          vErrors = [err17];
                        } else {
                          vErrors.push(err17);
                        }
                        errors++;
                      }
                    }
                    var valid12 = _errs37 === errors;
                    if (!valid12) {
                      break;
                    }
                  }
                } else {
                  const err18 = {
                    instancePath: instancePath + "/paths",
                    schemaPath: "#/definitions/WatchFilesObject/properties/paths/anyOf/0/type",
                    keyword: "type",
                    params: {
                      type: "array"
                    },
                    message: "must be array"
                  };
                  if (vErrors === null) {
                    vErrors = [err18];
                  } else {
                    vErrors.push(err18);
                  }
                  errors++;
                }
              }
              var _valid3 = _errs35 === errors;
              valid11 = valid11 || _valid3;
              if (!valid11) {
                const _errs39 = errors;
                if (errors === _errs39) {
                  if (typeof data4 === "string") {
                    if (data4.length < 1) {
                      const err19 = {
                        instancePath: instancePath + "/paths",
                        schemaPath: "#/definitions/WatchFilesObject/properties/paths/anyOf/1/minLength",
                        keyword: "minLength",
                        params: {
                          limit: 1
                        },
                        message: "must NOT have fewer than 1 characters"
                      };
                      if (vErrors === null) {
                        vErrors = [err19];
                      } else {
                        vErrors.push(err19);
                      }
                      errors++;
                    }
                  } else {
                    const err20 = {
                      instancePath: instancePath + "/paths",
                      schemaPath: "#/definitions/WatchFilesObject/properties/paths/anyOf/1/type",
                      keyword: "type",
                      params: {
                        type: "string"
                      },
                      message: "must be string"
                    };
                    if (vErrors === null) {
                      vErrors = [err20];
                    } else {
                      vErrors.push(err20);
                    }
                    errors++;
                  }
                }
                var _valid3 = _errs39 === errors;
                valid11 = valid11 || _valid3;
              }
              if (!valid11) {
                const err21 = {
                  instancePath: instancePath + "/paths",
                  schemaPath: "#/definitions/WatchFilesObject/properties/paths/anyOf",
                  keyword: "anyOf",
                  params: {},
                  message: "must match a schema in anyOf"
                };
                if (vErrors === null) {
                  vErrors = [err21];
                } else {
                  vErrors.push(err21);
                }
                errors++;
              } else {
                errors = _errs34;
                if (vErrors !== null) {
                  if (_errs34) {
                    vErrors.length = _errs34;
                  } else {
                    vErrors = null;
                  }
                }
              }
              var valid10 = _errs33 === errors;
            } else {
              var valid10 = true;
            }
            if (valid10) {
              if (data.options !== undefined) {
                let data6 = data.options;
                const _errs41 = errors;
                if (errors === _errs41) {
                  if (data6 && typeof data6 == "object" && !Array.isArray(data6)) {} else {
                    const err22 = {
                      instancePath: instancePath + "/options",
                      schemaPath: "#/definitions/WatchFilesObject/properties/options/type",
                      keyword: "type",
                      params: {
                        type: "object"
                      },
                      message: "must be object"
                    };
                    if (vErrors === null) {
                      vErrors = [err22];
                    } else {
                      vErrors.push(err22);
                    }
                    errors++;
                  }
                }
                var valid10 = _errs41 === errors;
              } else {
                var valid10 = true;
              }
            }
          }
        } else {
          const err23 = {
            instancePath,
            schemaPath: "#/definitions/WatchFilesObject/type",
            keyword: "type",
            params: {
              type: "object"
            },
            message: "must be object"
          };
          if (vErrors === null) {
            vErrors = [err23];
          } else {
            vErrors.push(err23);
          }
          errors++;
        }
      }
      var _valid0 = _errs28 === errors;
      valid0 = valid0 || _valid0;
    }
  }
  if (!valid0) {
    const err24 = {
      instancePath,
      schemaPath: "#/anyOf",
      keyword: "anyOf",
      params: {},
      message: "must match a schema in anyOf"
    };
    if (vErrors === null) {
      vErrors = [err24];
    } else {
      vErrors.push(err24);
    }
    errors++;
    validate27.errors = vErrors;
    return false;
  } else {
    errors = _errs0;
    if (vErrors !== null) {
      if (_errs0) {
        vErrors.length = _errs0;
      } else {
        vErrors = null;
      }
    }
  }
  validate27.errors = vErrors;
  return errors === 0;
}
const schema65 = {
  "anyOf": [{
    "$ref": "#/definitions/WebSocketServerEnum"
  }, {
    "$ref": "#/definitions/WebSocketServerString"
  }, {
    "$ref": "#/definitions/WebSocketServerFunction"
  }, {
    "$ref": "#/definitions/WebSocketServerObject"
  }],
  "description": "Allows to set web socket server and options (by default 'ws').",
  "link": "https://webpack.js.org/configuration/dev-server/#devserverwebsocketserver"
};
const schema66 = {
  "anyOf": [{
    "enum": [false],
    "cli": {
      "negatedDescription": "Disallows to set web socket server and options."
    }
  }, {
    "enum": ["ws", "sse"],
    "cli": {
      "exclude": true
    }
  }]
};
const schema67 = {
  "type": "string",
  "minLength": 1,
  "cli": {
    "exclude": true
  }
};
const schema68 = {
  "instanceof": "Function"
};
const schema69 = {
  "type": "object",
  "properties": {
    "type": {
      "anyOf": [{
        "$ref": "#/definitions/WebSocketServerType"
      }, {
        "$ref": "#/definitions/WebSocketServerString"
      }, {
        "$ref": "#/definitions/WebSocketServerFunction"
      }]
    },
    "options": {
      "type": "object",
      "additionalProperties": true,
      "cli": {
        "exclude": true
      }
    }
  },
  "additionalProperties": false
};
const schema70 = {
  "enum": ["ws"]
};
function validate30(data, {
  instancePath = "",
  parentData,
  parentDataProperty,
  rootData = data
} = {}) {
  let vErrors = null;
  let errors = 0;
  if (errors === 0) {
    if (data && typeof data == "object" && !Array.isArray(data)) {
      const _errs1 = errors;
      for (const key0 in data) {
        if (!(key0 === "type" || key0 === "options")) {
          validate30.errors = [{
            instancePath,
            schemaPath: "#/additionalProperties",
            keyword: "additionalProperties",
            params: {
              additionalProperty: key0
            },
            message: "must NOT have additional properties"
          }];
          return false;
          break;
        }
      }
      if (_errs1 === errors) {
        if (data.type !== undefined) {
          let data0 = data.type;
          const _errs2 = errors;
          const _errs3 = errors;
          let valid1 = false;
          const _errs4 = errors;
          if (!(data0 === "ws")) {
            const err0 = {
              instancePath: instancePath + "/type",
              schemaPath: "#/definitions/WebSocketServerType/enum",
              keyword: "enum",
              params: {
                allowedValues: schema70.enum
              },
              message: "must be equal to one of the allowed values"
            };
            if (vErrors === null) {
              vErrors = [err0];
            } else {
              vErrors.push(err0);
            }
            errors++;
          }
          var _valid0 = _errs4 === errors;
          valid1 = valid1 || _valid0;
          if (!valid1) {
            const _errs6 = errors;
            const _errs7 = errors;
            if (errors === _errs7) {
              if (typeof data0 === "string") {
                if (data0.length < 1) {
                  const err1 = {
                    instancePath: instancePath + "/type",
                    schemaPath: "#/definitions/WebSocketServerString/minLength",
                    keyword: "minLength",
                    params: {
                      limit: 1
                    },
                    message: "must NOT have fewer than 1 characters"
                  };
                  if (vErrors === null) {
                    vErrors = [err1];
                  } else {
                    vErrors.push(err1);
                  }
                  errors++;
                }
              } else {
                const err2 = {
                  instancePath: instancePath + "/type",
                  schemaPath: "#/definitions/WebSocketServerString/type",
                  keyword: "type",
                  params: {
                    type: "string"
                  },
                  message: "must be string"
                };
                if (vErrors === null) {
                  vErrors = [err2];
                } else {
                  vErrors.push(err2);
                }
                errors++;
              }
            }
            var _valid0 = _errs6 === errors;
            valid1 = valid1 || _valid0;
            if (!valid1) {
              const _errs10 = errors;
              if (!(data0 instanceof Function)) {
                const err3 = {
                  instancePath: instancePath + "/type",
                  schemaPath: "#/definitions/WebSocketServerFunction/instanceof",
                  keyword: "instanceof",
                  params: {},
                  message: "must pass \"instanceof\" keyword validation"
                };
                if (vErrors === null) {
                  vErrors = [err3];
                } else {
                  vErrors.push(err3);
                }
                errors++;
              }
              var _valid0 = _errs10 === errors;
              valid1 = valid1 || _valid0;
            }
          }
          if (!valid1) {
            const err4 = {
              instancePath: instancePath + "/type",
              schemaPath: "#/properties/type/anyOf",
              keyword: "anyOf",
              params: {},
              message: "must match a schema in anyOf"
            };
            if (vErrors === null) {
              vErrors = [err4];
            } else {
              vErrors.push(err4);
            }
            errors++;
            validate30.errors = vErrors;
            return false;
          } else {
            errors = _errs3;
            if (vErrors !== null) {
              if (_errs3) {
                vErrors.length = _errs3;
              } else {
                vErrors = null;
              }
            }
          }
          var valid0 = _errs2 === errors;
        } else {
          var valid0 = true;
        }
        if (valid0) {
          if (data.options !== undefined) {
            let data1 = data.options;
            const _errs12 = errors;
            if (errors === _errs12) {
              if (data1 && typeof data1 == "object" && !Array.isArray(data1)) {} else {
                validate30.errors = [{
                  instancePath: instancePath + "/options",
                  schemaPath: "#/properties/options/type",
                  keyword: "type",
                  params: {
                    type: "object"
                  },
                  message: "must be object"
                }];
                return false;
              }
            }
            var valid0 = _errs12 === errors;
          } else {
            var valid0 = true;
          }
        }
      }
    } else {
      validate30.errors = [{
        instancePath,
        schemaPath: "#/type",
        keyword: "type",
        params: {
          type: "object"
        },
        message: "must be object"
      }];
      return false;
    }
  }
  validate30.errors = vErrors;
  return errors === 0;
}
function validate29(data, {
  instancePath = "",
  parentData,
  parentDataProperty,
  rootData = data
} = {}) {
  let vErrors = null;
  let errors = 0;
  const _errs0 = errors;
  let valid0 = false;
  const _errs1 = errors;
  const _errs3 = errors;
  let valid2 = false;
  const _errs4 = errors;
  if (!(data === false)) {
    const err0 = {
      instancePath,
      schemaPath: "#/definitions/WebSocketServerEnum/anyOf/0/enum",
      keyword: "enum",
      params: {
        allowedValues: schema66.anyOf[0].enum
      },
      message: "must be equal to one of the allowed values"
    };
    if (vErrors === null) {
      vErrors = [err0];
    } else {
      vErrors.push(err0);
    }
    errors++;
  }
  var _valid1 = _errs4 === errors;
  valid2 = valid2 || _valid1;
  if (!valid2) {
    const _errs6 = errors;
    if (!(data === "ws" || data === "sse")) {
      const err1 = {
        instancePath,
        schemaPath: "#/definitions/WebSocketServerEnum/anyOf/1/enum",
        keyword: "enum",
        params: {
          allowedValues: schema66.anyOf[1].enum
        },
        message: "must be equal to one of the allowed values"
      };
      if (vErrors === null) {
        vErrors = [err1];
      } else {
        vErrors.push(err1);
      }
      errors++;
    }
    var _valid1 = _errs6 === errors;
    valid2 = valid2 || _valid1;
  }
  if (!valid2) {
    const err2 = {
      instancePath,
      schemaPath: "#/definitions/WebSocketServerEnum/anyOf",
      keyword: "anyOf",
      params: {},
      message: "must match a schema in anyOf"
    };
    if (vErrors === null) {
      vErrors = [err2];
    } else {
      vErrors.push(err2);
    }
    errors++;
  } else {
    errors = _errs3;
    if (vErrors !== null) {
      if (_errs3) {
        vErrors.length = _errs3;
      } else {
        vErrors = null;
      }
    }
  }
  var _valid0 = _errs1 === errors;
  valid0 = valid0 || _valid0;
  if (!valid0) {
    const _errs8 = errors;
    const _errs9 = errors;
    if (errors === _errs9) {
      if (typeof data === "string") {
        if (data.length < 1) {
          const err3 = {
            instancePath,
            schemaPath: "#/definitions/WebSocketServerString/minLength",
            keyword: "minLength",
            params: {
              limit: 1
            },
            message: "must NOT have fewer than 1 characters"
          };
          if (vErrors === null) {
            vErrors = [err3];
          } else {
            vErrors.push(err3);
          }
          errors++;
        }
      } else {
        const err4 = {
          instancePath,
          schemaPath: "#/definitions/WebSocketServerString/type",
          keyword: "type",
          params: {
            type: "string"
          },
          message: "must be string"
        };
        if (vErrors === null) {
          vErrors = [err4];
        } else {
          vErrors.push(err4);
        }
        errors++;
      }
    }
    var _valid0 = _errs8 === errors;
    valid0 = valid0 || _valid0;
    if (!valid0) {
      const _errs12 = errors;
      if (!(data instanceof Function)) {
        const err5 = {
          instancePath,
          schemaPath: "#/definitions/WebSocketServerFunction/instanceof",
          keyword: "instanceof",
          params: {},
          message: "must pass \"instanceof\" keyword validation"
        };
        if (vErrors === null) {
          vErrors = [err5];
        } else {
          vErrors.push(err5);
        }
        errors++;
      }
      var _valid0 = _errs12 === errors;
      valid0 = valid0 || _valid0;
      if (!valid0) {
        const _errs14 = errors;
        if (!validate30(data, {
          instancePath,
          parentData,
          parentDataProperty,
          rootData
        })) {
          vErrors = vErrors === null ? validate30.errors : vErrors.concat(validate30.errors);
          errors = vErrors.length;
        }
        var _valid0 = _errs14 === errors;
        valid0 = valid0 || _valid0;
      }
    }
  }
  if (!valid0) {
    const err6 = {
      instancePath,
      schemaPath: "#/anyOf",
      keyword: "anyOf",
      params: {},
      message: "must match a schema in anyOf"
    };
    if (vErrors === null) {
      vErrors = [err6];
    } else {
      vErrors.push(err6);
    }
    errors++;
    validate29.errors = vErrors;
    return false;
  } else {
    errors = _errs0;
    if (vErrors !== null) {
      if (_errs0) {
        vErrors.length = _errs0;
      } else {
        vErrors = null;
      }
    }
  }
  validate29.errors = vErrors;
  return errors === 0;
}
function validate10(data, {
  instancePath = "",
  parentData,
  parentDataProperty,
  rootData = data
} = {}) {
  let vErrors = null;
  let errors = 0;
  if (errors === 0) {
    if (data && typeof data == "object" && !Array.isArray(data)) {
      const _errs1 = errors;
      for (const key0 in data) {
        if (!func2.call(schema11.properties, key0)) {
          validate10.errors = [{
            instancePath,
            schemaPath: "#/additionalProperties",
            keyword: "additionalProperties",
            params: {
              additionalProperty: key0
            },
            message: "must NOT have additional properties"
          }];
          return false;
          break;
        }
      }
      if (_errs1 === errors) {
        if (data.allowedHosts !== undefined) {
          const _errs2 = errors;
          if (!validate11(data.allowedHosts, {
            instancePath: instancePath + "/allowedHosts",
            parentData: data,
            parentDataProperty: "allowedHosts",
            rootData
          })) {
            vErrors = vErrors === null ? validate11.errors : vErrors.concat(validate11.errors);
            errors = vErrors.length;
          }
          var valid0 = _errs2 === errors;
        } else {
          var valid0 = true;
        }
        if (valid0) {
          if (data.bonjour !== undefined) {
            let data1 = data.bonjour;
            const _errs3 = errors;
            const _errs5 = errors;
            let valid2 = false;
            const _errs6 = errors;
            if (typeof data1 !== "boolean") {
              const err0 = {
                instancePath: instancePath + "/bonjour",
                schemaPath: "#/definitions/Bonjour/anyOf/0/type",
                keyword: "type",
                params: {
                  type: "boolean"
                },
                message: "must be boolean"
              };
              if (vErrors === null) {
                vErrors = [err0];
              } else {
                vErrors.push(err0);
              }
              errors++;
            }
            var _valid0 = _errs6 === errors;
            valid2 = valid2 || _valid0;
            if (!valid2) {
              const _errs9 = errors;
              if (!(data1 && typeof data1 == "object" && !Array.isArray(data1))) {
                const err1 = {
                  instancePath: instancePath + "/bonjour",
                  schemaPath: "#/definitions/Bonjour/anyOf/1/type",
                  keyword: "type",
                  params: {
                    type: "object"
                  },
                  message: "must be object"
                };
                if (vErrors === null) {
                  vErrors = [err1];
                } else {
                  vErrors.push(err1);
                }
                errors++;
              }
              var _valid0 = _errs9 === errors;
              valid2 = valid2 || _valid0;
            }
            if (!valid2) {
              const err2 = {
                instancePath: instancePath + "/bonjour",
                schemaPath: "#/definitions/Bonjour/anyOf",
                keyword: "anyOf",
                params: {},
                message: "must match a schema in anyOf"
              };
              if (vErrors === null) {
                vErrors = [err2];
              } else {
                vErrors.push(err2);
              }
              errors++;
              validate10.errors = vErrors;
              return false;
            } else {
              errors = _errs5;
              if (vErrors !== null) {
                if (_errs5) {
                  vErrors.length = _errs5;
                } else {
                  vErrors = null;
                }
              }
            }
            var valid0 = _errs3 === errors;
          } else {
            var valid0 = true;
          }
          if (valid0) {
            if (data.client !== undefined) {
              const _errs13 = errors;
              if (!validate13(data.client, {
                instancePath: instancePath + "/client",
                parentData: data,
                parentDataProperty: "client",
                rootData
              })) {
                vErrors = vErrors === null ? validate13.errors : vErrors.concat(validate13.errors);
                errors = vErrors.length;
              }
              var valid0 = _errs13 === errors;
            } else {
              var valid0 = true;
            }
            if (valid0) {
              if (data.compress !== undefined) {
                const _errs14 = errors;
                if (typeof data.compress !== "boolean") {
                  validate10.errors = [{
                    instancePath: instancePath + "/compress",
                    schemaPath: "#/definitions/Compress/type",
                    keyword: "type",
                    params: {
                      type: "boolean"
                    },
                    message: "must be boolean"
                  }];
                  return false;
                }
                var valid0 = _errs14 === errors;
              } else {
                var valid0 = true;
              }
              if (valid0) {
                if (data.devMiddleware !== undefined) {
                  let data4 = data.devMiddleware;
                  const _errs19 = errors;
                  const _errs20 = errors;
                  if (errors === _errs20) {
                    if (data4 && typeof data4 == "object" && !Array.isArray(data4)) {} else {
                      validate10.errors = [{
                        instancePath: instancePath + "/devMiddleware",
                        schemaPath: "#/definitions/DevMiddleware/type",
                        keyword: "type",
                        params: {
                          type: "object"
                        },
                        message: "must be object"
                      }];
                      return false;
                    }
                  }
                  var valid0 = _errs19 === errors;
                } else {
                  var valid0 = true;
                }
                if (valid0) {
                  if (data.headers !== undefined) {
                    const _errs24 = errors;
                    if (!validate17(data.headers, {
                      instancePath: instancePath + "/headers",
                      parentData: data,
                      parentDataProperty: "headers",
                      rootData
                    })) {
                      vErrors = vErrors === null ? validate17.errors : vErrors.concat(validate17.errors);
                      errors = vErrors.length;
                    }
                    var valid0 = _errs24 === errors;
                  } else {
                    var valid0 = true;
                  }
                  if (valid0) {
                    if (data.historyApiFallback !== undefined) {
                      let data6 = data.historyApiFallback;
                      const _errs25 = errors;
                      const _errs27 = errors;
                      let valid6 = false;
                      const _errs28 = errors;
                      if (typeof data6 !== "boolean") {
                        const err3 = {
                          instancePath: instancePath + "/historyApiFallback",
                          schemaPath: "#/definitions/HistoryApiFallback/anyOf/0/type",
                          keyword: "type",
                          params: {
                            type: "boolean"
                          },
                          message: "must be boolean"
                        };
                        if (vErrors === null) {
                          vErrors = [err3];
                        } else {
                          vErrors.push(err3);
                        }
                        errors++;
                      }
                      var _valid1 = _errs28 === errors;
                      valid6 = valid6 || _valid1;
                      if (!valid6) {
                        const _errs31 = errors;
                        if (!(data6 && typeof data6 == "object" && !Array.isArray(data6))) {
                          const err4 = {
                            instancePath: instancePath + "/historyApiFallback",
                            schemaPath: "#/definitions/HistoryApiFallback/anyOf/1/type",
                            keyword: "type",
                            params: {
                              type: "object"
                            },
                            message: "must be object"
                          };
                          if (vErrors === null) {
                            vErrors = [err4];
                          } else {
                            vErrors.push(err4);
                          }
                          errors++;
                        }
                        var _valid1 = _errs31 === errors;
                        valid6 = valid6 || _valid1;
                      }
                      if (!valid6) {
                        const err5 = {
                          instancePath: instancePath + "/historyApiFallback",
                          schemaPath: "#/definitions/HistoryApiFallback/anyOf",
                          keyword: "anyOf",
                          params: {},
                          message: "must match a schema in anyOf"
                        };
                        if (vErrors === null) {
                          vErrors = [err5];
                        } else {
                          vErrors.push(err5);
                        }
                        errors++;
                        validate10.errors = vErrors;
                        return false;
                      } else {
                        errors = _errs27;
                        if (vErrors !== null) {
                          if (_errs27) {
                            vErrors.length = _errs27;
                          } else {
                            vErrors = null;
                          }
                        }
                      }
                      var valid0 = _errs25 === errors;
                    } else {
                      var valid0 = true;
                    }
                    if (valid0) {
                      if (data.host !== undefined) {
                        let data7 = data.host;
                        const _errs35 = errors;
                        const _errs37 = errors;
                        let valid8 = false;
                        const _errs38 = errors;
                        if (!(data7 === "local-ip" || data7 === "local-ipv4" || data7 === "local-ipv6")) {
                          const err6 = {
                            instancePath: instancePath + "/host",
                            schemaPath: "#/definitions/Host/anyOf/0/enum",
                            keyword: "enum",
                            params: {
                              allowedValues: schema30.anyOf[0].enum
                            },
                            message: "must be equal to one of the allowed values"
                          };
                          if (vErrors === null) {
                            vErrors = [err6];
                          } else {
                            vErrors.push(err6);
                          }
                          errors++;
                        }
                        var _valid2 = _errs38 === errors;
                        valid8 = valid8 || _valid2;
                        if (!valid8) {
                          const _errs39 = errors;
                          if (errors === _errs39) {
                            if (typeof data7 === "string") {
                              if (data7.length < 1) {
                                const err7 = {
                                  instancePath: instancePath + "/host",
                                  schemaPath: "#/definitions/Host/anyOf/1/minLength",
                                  keyword: "minLength",
                                  params: {
                                    limit: 1
                                  },
                                  message: "must NOT have fewer than 1 characters"
                                };
                                if (vErrors === null) {
                                  vErrors = [err7];
                                } else {
                                  vErrors.push(err7);
                                }
                                errors++;
                              }
                            } else {
                              const err8 = {
                                instancePath: instancePath + "/host",
                                schemaPath: "#/definitions/Host/anyOf/1/type",
                                keyword: "type",
                                params: {
                                  type: "string"
                                },
                                message: "must be string"
                              };
                              if (vErrors === null) {
                                vErrors = [err8];
                              } else {
                                vErrors.push(err8);
                              }
                              errors++;
                            }
                          }
                          var _valid2 = _errs39 === errors;
                          valid8 = valid8 || _valid2;
                        }
                        if (!valid8) {
                          const err9 = {
                            instancePath: instancePath + "/host",
                            schemaPath: "#/definitions/Host/anyOf",
                            keyword: "anyOf",
                            params: {},
                            message: "must match a schema in anyOf"
                          };
                          if (vErrors === null) {
                            vErrors = [err9];
                          } else {
                            vErrors.push(err9);
                          }
                          errors++;
                          validate10.errors = vErrors;
                          return false;
                        } else {
                          errors = _errs37;
                          if (vErrors !== null) {
                            if (_errs37) {
                              vErrors.length = _errs37;
                            } else {
                              vErrors = null;
                            }
                          }
                        }
                        var valid0 = _errs35 === errors;
                      } else {
                        var valid0 = true;
                      }
                      if (valid0) {
                        if (data.hot !== undefined) {
                          let data8 = data.hot;
                          const _errs42 = errors;
                          const _errs44 = errors;
                          let valid10 = false;
                          const _errs45 = errors;
                          if (typeof data8 !== "boolean") {
                            const err10 = {
                              instancePath: instancePath + "/hot",
                              schemaPath: "#/definitions/Hot/anyOf/0/type",
                              keyword: "type",
                              params: {
                                type: "boolean"
                              },
                              message: "must be boolean"
                            };
                            if (vErrors === null) {
                              vErrors = [err10];
                            } else {
                              vErrors.push(err10);
                            }
                            errors++;
                          }
                          var _valid3 = _errs45 === errors;
                          valid10 = valid10 || _valid3;
                          if (!valid10) {
                            const _errs48 = errors;
                            if (!(data8 === "only")) {
                              const err11 = {
                                instancePath: instancePath + "/hot",
                                schemaPath: "#/definitions/Hot/anyOf/1/enum",
                                keyword: "enum",
                                params: {
                                  allowedValues: schema31.anyOf[1].enum
                                },
                                message: "must be equal to one of the allowed values"
                              };
                              if (vErrors === null) {
                                vErrors = [err11];
                              } else {
                                vErrors.push(err11);
                              }
                              errors++;
                            }
                            var _valid3 = _errs48 === errors;
                            valid10 = valid10 || _valid3;
                          }
                          if (!valid10) {
                            const err12 = {
                              instancePath: instancePath + "/hot",
                              schemaPath: "#/definitions/Hot/anyOf",
                              keyword: "anyOf",
                              params: {},
                              message: "must match a schema in anyOf"
                            };
                            if (vErrors === null) {
                              vErrors = [err12];
                            } else {
                              vErrors.push(err12);
                            }
                            errors++;
                            validate10.errors = vErrors;
                            return false;
                          } else {
                            errors = _errs44;
                            if (vErrors !== null) {
                              if (_errs44) {
                                vErrors.length = _errs44;
                              } else {
                                vErrors = null;
                              }
                            }
                          }
                          var valid0 = _errs42 === errors;
                        } else {
                          var valid0 = true;
                        }
                        if (valid0) {
                          if (data.ipc !== undefined) {
                            let data9 = data.ipc;
                            const _errs50 = errors;
                            const _errs52 = errors;
                            let valid12 = false;
                            const _errs53 = errors;
                            if (errors === _errs53) {
                              if (typeof data9 === "string") {
                                if (data9.length < 1) {
                                  const err13 = {
                                    instancePath: instancePath + "/ipc",
                                    schemaPath: "#/definitions/IPC/anyOf/0/minLength",
                                    keyword: "minLength",
                                    params: {
                                      limit: 1
                                    },
                                    message: "must NOT have fewer than 1 characters"
                                  };
                                  if (vErrors === null) {
                                    vErrors = [err13];
                                  } else {
                                    vErrors.push(err13);
                                  }
                                  errors++;
                                }
                              } else {
                                const err14 = {
                                  instancePath: instancePath + "/ipc",
                                  schemaPath: "#/definitions/IPC/anyOf/0/type",
                                  keyword: "type",
                                  params: {
                                    type: "string"
                                  },
                                  message: "must be string"
                                };
                                if (vErrors === null) {
                                  vErrors = [err14];
                                } else {
                                  vErrors.push(err14);
                                }
                                errors++;
                              }
                            }
                            var _valid4 = _errs53 === errors;
                            valid12 = valid12 || _valid4;
                            if (!valid12) {
                              const _errs55 = errors;
                              if (typeof data9 !== "boolean") {
                                const err15 = {
                                  instancePath: instancePath + "/ipc",
                                  schemaPath: "#/definitions/IPC/anyOf/1/type",
                                  keyword: "type",
                                  params: {
                                    type: "boolean"
                                  },
                                  message: "must be boolean"
                                };
                                if (vErrors === null) {
                                  vErrors = [err15];
                                } else {
                                  vErrors.push(err15);
                                }
                                errors++;
                              }
                              if (!(data9 === true)) {
                                const err16 = {
                                  instancePath: instancePath + "/ipc",
                                  schemaPath: "#/definitions/IPC/anyOf/1/enum",
                                  keyword: "enum",
                                  params: {
                                    allowedValues: schema32.anyOf[1].enum
                                  },
                                  message: "must be equal to one of the allowed values"
                                };
                                if (vErrors === null) {
                                  vErrors = [err16];
                                } else {
                                  vErrors.push(err16);
                                }
                                errors++;
                              }
                              var _valid4 = _errs55 === errors;
                              valid12 = valid12 || _valid4;
                            }
                            if (!valid12) {
                              const err17 = {
                                instancePath: instancePath + "/ipc",
                                schemaPath: "#/definitions/IPC/anyOf",
                                keyword: "anyOf",
                                params: {},
                                message: "must match a schema in anyOf"
                              };
                              if (vErrors === null) {
                                vErrors = [err17];
                              } else {
                                vErrors.push(err17);
                              }
                              errors++;
                              validate10.errors = vErrors;
                              return false;
                            } else {
                              errors = _errs52;
                              if (vErrors !== null) {
                                if (_errs52) {
                                  vErrors.length = _errs52;
                                } else {
                                  vErrors = null;
                                }
                              }
                            }
                            var valid0 = _errs50 === errors;
                          } else {
                            var valid0 = true;
                          }
                          if (valid0) {
                            if (data.liveReload !== undefined) {
                              const _errs58 = errors;
                              if (typeof data.liveReload !== "boolean") {
                                validate10.errors = [{
                                  instancePath: instancePath + "/liveReload",
                                  schemaPath: "#/definitions/LiveReload/type",
                                  keyword: "type",
                                  params: {
                                    type: "boolean"
                                  },
                                  message: "must be boolean"
                                }];
                                return false;
                              }
                              var valid0 = _errs58 === errors;
                            } else {
                              var valid0 = true;
                            }
                            if (valid0) {
                              if (data.onListening !== undefined) {
                                const _errs63 = errors;
                                if (!(data.onListening instanceof Function)) {
                                  validate10.errors = [{
                                    instancePath: instancePath + "/onListening",
                                    schemaPath: "#/definitions/OnListening/instanceof",
                                    keyword: "instanceof",
                                    params: {},
                                    message: "must pass \"instanceof\" keyword validation"
                                  }];
                                  return false;
                                }
                                var valid0 = _errs63 === errors;
                              } else {
                                var valid0 = true;
                              }
                              if (valid0) {
                                if (data.open !== undefined) {
                                  const _errs66 = errors;
                                  if (!validate19(data.open, {
                                    instancePath: instancePath + "/open",
                                    parentData: data,
                                    parentDataProperty: "open",
                                    rootData
                                  })) {
                                    vErrors = vErrors === null ? validate19.errors : vErrors.concat(validate19.errors);
                                    errors = vErrors.length;
                                  }
                                  var valid0 = _errs66 === errors;
                                } else {
                                  var valid0 = true;
                                }
                                if (valid0) {
                                  if (data.port !== undefined) {
                                    let data13 = data.port;
                                    const _errs67 = errors;
                                    const _errs69 = errors;
                                    let valid16 = false;
                                    const _errs70 = errors;
                                    if (errors === _errs70) {
                                      if (typeof data13 == "number") {
                                        if (data13 > 65535 || isNaN(data13)) {
                                          const err18 = {
                                            instancePath: instancePath + "/port",
                                            schemaPath: "#/definitions/Port/anyOf/0/maximum",
                                            keyword: "maximum",
                                            params: {
                                              comparison: "<=",
                                              limit: 65535
                                            },
                                            message: "must be <= 65535"
                                          };
                                          if (vErrors === null) {
                                            vErrors = [err18];
                                          } else {
                                            vErrors.push(err18);
                                          }
                                          errors++;
                                        } else {
                                          if (data13 < 0 || isNaN(data13)) {
                                            const err19 = {
                                              instancePath: instancePath + "/port",
                                              schemaPath: "#/definitions/Port/anyOf/0/minimum",
                                              keyword: "minimum",
                                              params: {
                                                comparison: ">=",
                                                limit: 0
                                              },
                                              message: "must be >= 0"
                                            };
                                            if (vErrors === null) {
                                              vErrors = [err19];
                                            } else {
                                              vErrors.push(err19);
                                            }
                                            errors++;
                                          }
                                        }
                                      } else {
                                        const err20 = {
                                          instancePath: instancePath + "/port",
                                          schemaPath: "#/definitions/Port/anyOf/0/type",
                                          keyword: "type",
                                          params: {
                                            type: "number"
                                          },
                                          message: "must be number"
                                        };
                                        if (vErrors === null) {
                                          vErrors = [err20];
                                        } else {
                                          vErrors.push(err20);
                                        }
                                        errors++;
                                      }
                                    }
                                    var _valid5 = _errs70 === errors;
                                    valid16 = valid16 || _valid5;
                                    if (!valid16) {
                                      const _errs72 = errors;
                                      if (errors === _errs72) {
                                        if (typeof data13 === "string") {
                                          if (data13.length < 1) {
                                            const err21 = {
                                              instancePath: instancePath + "/port",
                                              schemaPath: "#/definitions/Port/anyOf/1/minLength",
                                              keyword: "minLength",
                                              params: {
                                                limit: 1
                                              },
                                              message: "must NOT have fewer than 1 characters"
                                            };
                                            if (vErrors === null) {
                                              vErrors = [err21];
                                            } else {
                                              vErrors.push(err21);
                                            }
                                            errors++;
                                          }
                                        } else {
                                          const err22 = {
                                            instancePath: instancePath + "/port",
                                            schemaPath: "#/definitions/Port/anyOf/1/type",
                                            keyword: "type",
                                            params: {
                                              type: "string"
                                            },
                                            message: "must be string"
                                          };
                                          if (vErrors === null) {
                                            vErrors = [err22];
                                          } else {
                                            vErrors.push(err22);
                                          }
                                          errors++;
                                        }
                                      }
                                      var _valid5 = _errs72 === errors;
                                      valid16 = valid16 || _valid5;
                                      if (!valid16) {
                                        const _errs74 = errors;
                                        if (!(data13 === "auto")) {
                                          const err23 = {
                                            instancePath: instancePath + "/port",
                                            schemaPath: "#/definitions/Port/anyOf/2/enum",
                                            keyword: "enum",
                                            params: {
                                              allowedValues: schema41.anyOf[2].enum
                                            },
                                            message: "must be equal to one of the allowed values"
                                          };
                                          if (vErrors === null) {
                                            vErrors = [err23];
                                          } else {
                                            vErrors.push(err23);
                                          }
                                          errors++;
                                        }
                                        var _valid5 = _errs74 === errors;
                                        valid16 = valid16 || _valid5;
                                      }
                                    }
                                    if (!valid16) {
                                      const err24 = {
                                        instancePath: instancePath + "/port",
                                        schemaPath: "#/definitions/Port/anyOf",
                                        keyword: "anyOf",
                                        params: {},
                                        message: "must match a schema in anyOf"
                                      };
                                      if (vErrors === null) {
                                        vErrors = [err24];
                                      } else {
                                        vErrors.push(err24);
                                      }
                                      errors++;
                                      validate10.errors = vErrors;
                                      return false;
                                    } else {
                                      errors = _errs69;
                                      if (vErrors !== null) {
                                        if (_errs69) {
                                          vErrors.length = _errs69;
                                        } else {
                                          vErrors = null;
                                        }
                                      }
                                    }
                                    var valid0 = _errs67 === errors;
                                  } else {
                                    var valid0 = true;
                                  }
                                  if (valid0) {
                                    if (data.proxy !== undefined) {
                                      let data14 = data.proxy;
                                      const _errs76 = errors;
                                      const _errs77 = errors;
                                      if (errors === _errs77) {
                                        if (Array.isArray(data14)) {
                                          var valid18 = true;
                                          const len0 = data14.length;
                                          for (let i0 = 0; i0 < len0; i0++) {
                                            let data15 = data14[i0];
                                            const _errs80 = errors;
                                            const _errs81 = errors;
                                            let valid19 = false;
                                            const _errs82 = errors;
                                            if (!(data15 && typeof data15 == "object" && !Array.isArray(data15))) {
                                              const err25 = {
                                                instancePath: instancePath + "/proxy/" + i0,
                                                schemaPath: "#/definitions/Proxy/items/anyOf/0/type",
                                                keyword: "type",
                                                params: {
                                                  type: "object"
                                                },
                                                message: "must be object"
                                              };
                                              if (vErrors === null) {
                                                vErrors = [err25];
                                              } else {
                                                vErrors.push(err25);
                                              }
                                              errors++;
                                            }
                                            var _valid6 = _errs82 === errors;
                                            valid19 = valid19 || _valid6;
                                            if (!valid19) {
                                              const _errs84 = errors;
                                              if (!(data15 instanceof Function)) {
                                                const err26 = {
                                                  instancePath: instancePath + "/proxy/" + i0,
                                                  schemaPath: "#/definitions/Proxy/items/anyOf/1/instanceof",
                                                  keyword: "instanceof",
                                                  params: {},
                                                  message: "must pass \"instanceof\" keyword validation"
                                                };
                                                if (vErrors === null) {
                                                  vErrors = [err26];
                                                } else {
                                                  vErrors.push(err26);
                                                }
                                                errors++;
                                              }
                                              var _valid6 = _errs84 === errors;
                                              valid19 = valid19 || _valid6;
                                            }
                                            if (!valid19) {
                                              const err27 = {
                                                instancePath: instancePath + "/proxy/" + i0,
                                                schemaPath: "#/definitions/Proxy/items/anyOf",
                                                keyword: "anyOf",
                                                params: {},
                                                message: "must match a schema in anyOf"
                                              };
                                              if (vErrors === null) {
                                                vErrors = [err27];
                                              } else {
                                                vErrors.push(err27);
                                              }
                                              errors++;
                                              validate10.errors = vErrors;
                                              return false;
                                            } else {
                                              errors = _errs81;
                                              if (vErrors !== null) {
                                                if (_errs81) {
                                                  vErrors.length = _errs81;
                                                } else {
                                                  vErrors = null;
                                                }
                                              }
                                            }
                                            var valid18 = _errs80 === errors;
                                            if (!valid18) {
                                              break;
                                            }
                                          }
                                        } else {
                                          validate10.errors = [{
                                            instancePath: instancePath + "/proxy",
                                            schemaPath: "#/definitions/Proxy/type",
                                            keyword: "type",
                                            params: {
                                              type: "array"
                                            },
                                            message: "must be array"
                                          }];
                                          return false;
                                        }
                                      }
                                      var valid0 = _errs76 === errors;
                                    } else {
                                      var valid0 = true;
                                    }
                                    if (valid0) {
                                      if (data.server !== undefined) {
                                        const _errs85 = errors;
                                        if (!validate21(data.server, {
                                          instancePath: instancePath + "/server",
                                          parentData: data,
                                          parentDataProperty: "server",
                                          rootData
                                        })) {
                                          vErrors = vErrors === null ? validate21.errors : vErrors.concat(validate21.errors);
                                          errors = vErrors.length;
                                        }
                                        var valid0 = _errs85 === errors;
                                      } else {
                                        var valid0 = true;
                                      }
                                      if (valid0) {
                                        if (data.app !== undefined) {
                                          const _errs86 = errors;
                                          if (!(data.app instanceof Function)) {
                                            validate10.errors = [{
                                              instancePath: instancePath + "/app",
                                              schemaPath: "#/definitions/App/instanceof",
                                              keyword: "instanceof",
                                              params: {},
                                              message: "must pass \"instanceof\" keyword validation"
                                            }];
                                            return false;
                                          }
                                          var valid0 = _errs86 === errors;
                                        } else {
                                          var valid0 = true;
                                        }
                                        if (valid0) {
                                          if (data.setupExitSignals !== undefined) {
                                            const _errs89 = errors;
                                            if (typeof data.setupExitSignals !== "boolean") {
                                              validate10.errors = [{
                                                instancePath: instancePath + "/setupExitSignals",
                                                schemaPath: "#/definitions/SetupExitSignals/type",
                                                keyword: "type",
                                                params: {
                                                  type: "boolean"
                                                },
                                                message: "must be boolean"
                                              }];
                                              return false;
                                            }
                                            var valid0 = _errs89 === errors;
                                          } else {
                                            var valid0 = true;
                                          }
                                          if (valid0) {
                                            if (data.setupMiddlewares !== undefined) {
                                              const _errs94 = errors;
                                              if (!(data.setupMiddlewares instanceof Function)) {
                                                validate10.errors = [{
                                                  instancePath: instancePath + "/setupMiddlewares",
                                                  schemaPath: "#/definitions/SetupMiddlewares/instanceof",
                                                  keyword: "instanceof",
                                                  params: {},
                                                  message: "must pass \"instanceof\" keyword validation"
                                                }];
                                                return false;
                                              }
                                              var valid0 = _errs94 === errors;
                                            } else {
                                              var valid0 = true;
                                            }
                                            if (valid0) {
                                              if (data.static !== undefined) {
                                                const _errs97 = errors;
                                                if (!validate25(data.static, {
                                                  instancePath: instancePath + "/static",
                                                  parentData: data,
                                                  parentDataProperty: "static",
                                                  rootData
                                                })) {
                                                  vErrors = vErrors === null ? validate25.errors : vErrors.concat(validate25.errors);
                                                  errors = vErrors.length;
                                                }
                                                var valid0 = _errs97 === errors;
                                              } else {
                                                var valid0 = true;
                                              }
                                              if (valid0) {
                                                if (data.watchFiles !== undefined) {
                                                  const _errs98 = errors;
                                                  if (!validate27(data.watchFiles, {
                                                    instancePath: instancePath + "/watchFiles",
                                                    parentData: data,
                                                    parentDataProperty: "watchFiles",
                                                    rootData
                                                  })) {
                                                    vErrors = vErrors === null ? validate27.errors : vErrors.concat(validate27.errors);
                                                    errors = vErrors.length;
                                                  }
                                                  var valid0 = _errs98 === errors;
                                                } else {
                                                  var valid0 = true;
                                                }
                                                if (valid0) {
                                                  if (data.webSocketServer !== undefined) {
                                                    const _errs99 = errors;
                                                    if (!validate29(data.webSocketServer, {
                                                      instancePath: instancePath + "/webSocketServer",
                                                      parentData: data,
                                                      parentDataProperty: "webSocketServer",
                                                      rootData
                                                    })) {
                                                      vErrors = vErrors === null ? validate29.errors : vErrors.concat(validate29.errors);
                                                      errors = vErrors.length;
                                                    }
                                                    var valid0 = _errs99 === errors;
                                                  } else {
                                                    var valid0 = true;
                                                  }
                                                }
                                              }
                                            }
                                          }
                                        }
                                      }
                                    }
                                  }
                                }
                              }
                            }
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    } else {
      validate10.errors = [{
        instancePath,
        schemaPath: "#/type",
        keyword: "type",
        params: {
          type: "object"
        },
        message: "must be object"
      }];
      return false;
    }
  }
  validate10.errors = vErrors;
  return errors === 0;
}