@rspack/core 0.1.12 → 0.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/compilation.d.ts +4 -2
- package/dist/compilation.d.ts.map +1 -1
- package/dist/compilation.js +3 -1
- package/dist/compilation.js.map +1 -1
- package/dist/compiler.d.ts +5 -1
- package/dist/compiler.d.ts.map +1 -1
- package/dist/compiler.js +71 -16
- package/dist/compiler.js.map +1 -1
- package/dist/config/adapter-rule-use.d.ts +1 -1
- package/dist/config/adapter-rule-use.d.ts.map +1 -1
- package/dist/config/adapter-rule-use.js +7 -16
- package/dist/config/adapter-rule-use.js.map +1 -1
- package/dist/config/adapter.d.ts.map +1 -1
- package/dist/config/adapter.js +44 -41
- package/dist/config/adapter.js.map +1 -1
- package/dist/config/defaults.js +18 -6
- package/dist/config/defaults.js.map +1 -1
- package/dist/config/index.d.ts +1 -0
- package/dist/config/index.d.ts.map +1 -1
- package/dist/config/index.js +31 -0
- package/dist/config/index.js.map +1 -1
- package/dist/config/normalization.d.ts.map +1 -1
- package/dist/config/normalization.js +28 -2
- package/dist/config/normalization.js.map +1 -1
- package/dist/config/schema.check.d.ts.map +1 -1
- package/dist/config/schema.check.js +1293 -792
- package/dist/config/schema.check.js.map +1 -1
- package/dist/config/schema.d.ts +1083 -959
- package/dist/config/schema.js +99 -6
- package/dist/config/schema.js.map +1 -1
- package/dist/config/types.d.ts +22 -79
- package/dist/config/types.d.ts.map +1 -1
- package/dist/config/zod/_rewrite.d.ts +15 -0
- package/dist/config/zod/_rewrite.d.ts.map +1 -0
- package/dist/config/zod/_rewrite.js +3 -0
- package/dist/config/zod/_rewrite.js.map +1 -0
- package/dist/config/zod/builtins.d.ts +3 -0
- package/dist/config/zod/builtins.d.ts.map +1 -0
- package/dist/config/zod/builtins.js +10 -0
- package/dist/config/zod/builtins.js.map +1 -0
- package/dist/config/zod/devtool.d.ts +3 -0
- package/dist/config/zod/devtool.d.ts.map +1 -0
- package/dist/config/zod/devtool.js +35 -0
- package/dist/config/zod/devtool.js.map +1 -0
- package/dist/config/zod/entry.d.ts +15 -0
- package/dist/config/zod/entry.d.ts.map +1 -0
- package/dist/config/zod/entry.js +25 -0
- package/dist/config/zod/entry.js.map +1 -0
- package/dist/config/zod/experiments.d.ts +24 -0
- package/dist/config/zod/experiments.d.ts.map +1 -0
- package/dist/config/zod/experiments.js +16 -0
- package/dist/config/zod/experiments.js.map +1 -0
- package/dist/config/zod/externals-presets.d.ts +24 -0
- package/dist/config/zod/externals-presets.d.ts.map +1 -0
- package/dist/config/zod/externals-presets.js +18 -0
- package/dist/config/zod/externals-presets.js.map +1 -0
- package/dist/config/zod/externals-type.d.ts +3 -0
- package/dist/config/zod/externals-type.d.ts.map +1 -0
- package/dist/config/zod/externals-type.js +31 -0
- package/dist/config/zod/externals-type.js.map +1 -0
- package/dist/config/zod/externals.d.ts +3 -0
- package/dist/config/zod/externals.d.ts.map +1 -0
- package/dist/config/zod/externals.js +14 -0
- package/dist/config/zod/externals.js.map +1 -0
- package/dist/config/zod/index.d.ts +970 -0
- package/dist/config/zod/index.d.ts.map +1 -0
- package/dist/config/zod/index.js +55 -0
- package/dist/config/zod/index.js.map +1 -0
- package/dist/config/zod/infrastructure-logging.d.ts +24 -0
- package/dist/config/zod/infrastructure-logging.d.ts.map +1 -0
- package/dist/config/zod/infrastructure-logging.js +20 -0
- package/dist/config/zod/infrastructure-logging.js.map +1 -0
- package/dist/config/zod/module.d.ts +1 -0
- package/dist/config/zod/module.d.ts.map +1 -0
- package/dist/config/zod/module.js +2 -0
- package/dist/config/zod/module.js.map +1 -0
- package/dist/config/zod/node.d.ts +15 -0
- package/dist/config/zod/node.d.ts.map +1 -0
- package/dist/config/zod/node.js +24 -0
- package/dist/config/zod/node.js.map +1 -0
- package/dist/config/zod/optimization/index.d.ts +241 -0
- package/dist/config/zod/optimization/index.d.ts.map +1 -0
- package/dist/config/zod/optimization/index.js +32 -0
- package/dist/config/zod/optimization/index.js.map +1 -0
- package/dist/config/zod/optimization/split-chunks.d.ts +169 -0
- package/dist/config/zod/optimization/split-chunks.d.ts.map +1 -0
- package/dist/config/zod/optimization/split-chunks.js +47 -0
- package/dist/config/zod/optimization/split-chunks.js.map +1 -0
- package/dist/config/zod/output.d.ts +139 -0
- package/dist/config/zod/output.d.ts.map +1 -0
- package/dist/config/zod/output.js +92 -0
- package/dist/config/zod/output.js.map +1 -0
- package/dist/config/zod/snapshot.d.ts +42 -0
- package/dist/config/zod/snapshot.d.ts.map +1 -0
- package/dist/config/zod/snapshot.js +22 -0
- package/dist/config/zod/snapshot.js.map +1 -0
- package/dist/config/zod/stats.d.ts +69 -0
- package/dist/config/zod/stats.d.ts.map +1 -0
- package/dist/config/zod/stats.js +36 -0
- package/dist/config/zod/stats.js.map +1 -0
- package/dist/config/zod/target.d.ts +3 -0
- package/dist/config/zod/target.d.ts.map +1 -0
- package/dist/config/zod/target.js +37 -0
- package/dist/config/zod/target.js.map +1 -0
- package/dist/config/zod/watch-options.d.ts +21 -0
- package/dist/config/zod/watch-options.d.ts.map +1 -0
- package/dist/config/zod/watch-options.js +22 -0
- package/dist/config/zod/watch-options.js.map +1 -0
- package/dist/fileSystem.d.ts +1 -0
- package/dist/fileSystem.d.ts.map +1 -1
- package/dist/fileSystem.js +1 -0
- package/dist/fileSystem.js.map +1 -1
- package/dist/index.d.ts +2 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/loader-runner/index.d.ts.map +1 -1
- package/dist/loader-runner/index.js +16 -16
- package/dist/loader-runner/index.js.map +1 -1
- package/dist/rspack.d.ts.map +1 -1
- package/dist/rspack.js +3 -27
- package/dist/rspack.js.map +1 -1
- package/dist/stats.d.ts +1 -1
- package/dist/stats.d.ts.map +1 -1
- package/dist/util/index.d.ts.map +1 -1
- package/dist/util/index.js +1 -0
- package/dist/util/index.js.map +1 -1
- package/package.json +11 -12
- package/dist/error/InvalidateConfiguration.d.ts +0 -4
- package/dist/error/InvalidateConfiguration.d.ts.map +0 -1
- package/dist/error/InvalidateConfiguration.js +0 -10
- package/dist/error/InvalidateConfiguration.js.map +0 -1
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"use strict";
|
|
3
3
|
module.exports = validate10;
|
|
4
4
|
module.exports.default = validate10;
|
|
5
|
-
const schema11 = { "definitions": { "AssetModuleFilename": { "description": "The filename of asset modules as relative path inside the 'output.path' directory.", "anyOf": [{ "type": "string" }] }, "AssetParserDataUrlOptions": { "description": "Options object for DataUrl condition.", "type": "object", "additionalProperties": false, "properties": { "maxSize": { "description": "Maximum size of asset that should be inline as modules. Default: 8kb.", "type": "number" } } }, "AssetParserOptions": { "description": "Parser options for asset modules.", "type": "object", "additionalProperties": false, "properties": { "dataUrlCondition": { "description": "The condition for inlining the asset as DataUrl.", "anyOf": [{ "$ref": "#/definitions/AssetParserDataUrlOptions" }] } } }, "AuxiliaryComment": { "description": "Add a comment in the UMD wrapper.", "anyOf": [{ "description": "Append the same comment above each import style.", "type": "string" }, { "$ref": "#/definitions/LibraryCustomUmdCommentObject" }] }, "CacheOptions": { "description": "Cache generated modules and chunks to improve performance for multiple incremental builds.", "type": "boolean" }, "ChunkFilename": { "description": "Specifies the filename template of output files of non-initial chunks on disk. You must **not** specify an absolute path here, but the path may contain folders separated by '/'! The specified path is joined with the value of the 'output.path' option to determine the location on disk.", "oneOf": [{ "$ref": "#/definitions/FilenameTemplate" }] }, "ChunkFormat": { "description": "The format of chunks (formats included by default are 'array-push' (web/WebWorker), 'commonjs' (node.js), 'module' (ESM), but others might be added by plugins).", "anyOf": [{ "enum": ["array-push", "commonjs", "module", false] }, { "type": "string" }] }, "ChunkLoading": { "description": "The method of loading chunks (methods included by default are 'jsonp' (web), 'import' (ESM), 'importScripts' (WebWorker), 'require' (sync node.js), 'async-node' (async node.js), but others might be added by plugins).", "anyOf": [{ "enum": [false] }, { "$ref": "#/definitions/ChunkLoadingType" }] }, "ChunkLoadingType": { "description": "The method of loading chunks (methods included by default are 'jsonp' (web), 'import' (ESM), 'importScripts' (WebWorker), 'require' (sync node.js), 'async-node' (async node.js), but others might be added by plugins).", "anyOf": [{ "enum": ["jsonp", "import-scripts", "require", "async-node", "import"] }, { "type": "string" }] }, "CrossOriginLoading": { "description": "This option enables cross-origin loading of chunks.", "enum": [false, "anonymous", "use-credentials"] }, "Context": { "description": "The base directory (absolute path!) for resolving the `entry` option. If `output.pathinfo` is set, the included pathinfo is shortened to this directory.", "type": "string" }, "CssChunkFilename": { "description": "Specifies the filename template of non-initial output css files on disk. You must **not** specify an absolute path here, but the path may contain folders separated by '/'! The specified path is joined with the value of the 'output.path' option to determine the location on disk.", "oneOf": [{ "$ref": "#/definitions/FilenameTemplate" }] }, "CssFilename": { "description": "Specifies the filename template of output css files on disk. You must **not** specify an absolute path here, but the path may contain folders separated by '/'! The specified path is joined with the value of the 'output.path' option to determine the location on disk.", "oneOf": [{ "$ref": "#/definitions/FilenameTemplate" }] }, "HotUpdateChunkFilename": { "description": "The filename of the Hot Update Chunks. They are inside the output.path directory.", "type": "string", "absolutePath": false }, "HotUpdateMainFilename": { "description": "The filename of the Hot Update Main File. It is inside the 'output.path' directory.", "type": "string", "absolutePath": false }, "WebassemblyModuleFilename": { "description": "The filename of WebAssembly modules as relative path inside the 'output.path' directory.", "type": "string" }, "EnabledWasmLoadingTypes": { "description": "List of wasm loading types enabled for use by entry points.", "type": "array", "items": { "$ref": "#/definitions/WasmLoadingType" } }, "EnabledChunkLoadingTypes": { "description": "List of chunk loading types enabled for use by entry points.", "type": "array", "items": { "$ref": "#/definitions/ChunkLoadingType" } }, "WasmLoading": { "description": "The method of loading WebAssembly Modules (methods included by default are 'fetch' (web/WebWorker), 'async-node' (node.js), but others might be added by plugins).", "anyOf": [{ "enum": [false] }, { "$ref": "#/definitions/WasmLoadingType" }] }, "WasmLoadingType": { "description": "The method of loading WebAssembly Modules (methods included by default are 'fetch' (web/WebWorker), 'async-node' (node.js), but others might be added by plugins).", "anyOf": [{ "enum": ["fetch-streaming", "fetch", "async-node"] }, { "type": "string" }] }, "Dependencies": { "description": "References to other configurations to depend on.", "type": "array", "items": { "description": "References to another configuration to depend on.", "type": "string" } }, "DevServer": { "description": "Options for the rspack-dev-server.", "type": "object" }, "DevTool": { "description": "A developer tool to enhance debugging (false | eval | [inline-|hidden-|eval-][nosources-][cheap-[module-]]source-map).", "anyOf": [{ "enum": [false] }, { "type": "string", "pattern": "^(inline-|hidden-|eval-)?(nosources-)?(cheap-(module-)?)?source-map$" }] }, "EnabledLibraryTypes": { "description": "List of library types enabled for use by entry points.", "type": "array", "items": { "$ref": "#/definitions/LibraryType" } }, "Entry": { "description": "The entry point(s) of the compilation.", "anyOf": [{ "$ref": "#/definitions/EntryStatic" }] }, "EntryDescription": { "description": "An object with entry point description.", "type": "object", "additionalProperties": false, "properties": { "import": { "$ref": "#/definitions/EntryItem" }, "runtime": { "$ref": "#/definitions/EntryRuntime" }, "wasmLoading": { "$ref": "#/definitions/WasmLoading" } }, "required": ["import"] }, "EntryFilename": { "description": "Specifies the filename of the output file on disk. You must **not** specify an absolute path here, but the path may contain folders separated by '/'! The specified path is joined with the value of the 'output.path' option to determine the location on disk.", "oneOf": [{ "$ref": "#/definitions/FilenameTemplate" }] }, "EntryItem": { "description": "Module(s) that are loaded upon startup.", "anyOf": [{ "description": "All modules are loaded upon startup. The last one is exported.", "type": "array", "items": { "description": "A module that is loaded upon startup. Only the last one is exported.", "type": "string", "minLength": 1 }, "minItems": 1, "uniqueItems": true }, { "description": "The string is resolved to a module which is loaded upon startup.", "type": "string", "minLength": 1 }] }, "EntryObject": { "description": "Multiple entry bundles are created. The key is the entry name. The value can be a string, an array or an entry description object.", "type": "object", "additionalProperties": { "description": "An entry point with name.", "anyOf": [{ "$ref": "#/definitions/EntryItem" }, { "$ref": "#/definitions/EntryDescription" }] } }, "EntryRuntime": { "description": "The name of the runtime chunk. If set a runtime chunk with this name is created or an existing entrypoint is used as runtime.", "anyOf": [{ "enum": [false] }, { "type": "string", "minLength": 1 }] }, "EntryStatic": { "description": "A static entry description.", "anyOf": [{ "$ref": "#/definitions/EntryObject" }, { "$ref": "#/definitions/EntryUnnamed" }] }, "EntryUnnamed": { "description": "An entry point without name.", "oneOf": [{ "$ref": "#/definitions/EntryItem" }] }, "Experiments": { "description": "Enables/Disables experiments (experimental features with relax SemVer compatibility).", "type": "object", "additionalProperties": false, "properties": { "asyncWebAssembly": { "description": "Support WebAssembly as asynchronous EcmaScript Module.", "type": "boolean" }, "incrementalRebuild": { "description": "Rebuild incrementally", "type": "boolean" }, "lazyCompilation": { "description": "Compile entrypoints and import()s only when they are accessed.", "anyOf": [{ "type": "boolean" }] }, "outputModule": { "description": "Allow output javascript files as module source type.", "type": "boolean" }, "newSplitChunks": { "description": "Enable new SplitChunksPlugin", "type": "boolean" }, "css": { "description": "Enable native css support.", "type": "boolean" } } }, "ExternalItem": { "description": "Specify dependency that shouldn't be resolved by rspack, but should become dependencies of the resulting bundle. The kind of the dependency depends on `output.libraryTarget`.", "anyOf": [{ "description": "Every matched dependency becomes external.", "instanceof": "RegExp" }, { "description": "An exact matched dependency becomes external. The same string is used as external dependency.", "type": "string" }, { "description": "If an dependency matches exactly a property of the object, the property value is used as dependency.", "type": "object", "additionalProperties": { "$ref": "#/definitions/ExternalItemValue" } }, { "description": "The function is called on each dependency (`function(context, request, callback(err, result))`).", "instanceof": "Function" }] }, "ExternalItemValue": { "description": "The dependency used for the external.", "anyOf": [{ "type": "array", "items": { "description": "A part of the target of the external.", "type": "string", "minLength": 1 } }, { "description": "The target of the external.", "type": "string" }, { "description": "`true`: The dependency name is used as target of the external.", "type": "boolean" }] }, "Externals": { "description": "Specify dependencies that shouldn't be resolved by rspack, but should become dependencies of the resulting bundle. The kind of the dependency depends on `output.libraryTarget`.", "anyOf": [{ "type": "array", "items": { "$ref": "#/definitions/ExternalItem" } }, { "$ref": "#/definitions/ExternalItem" }] }, "ExternalsPresets": { "description": "Enable presets of externals for specific targets.", "type": "object", "additionalProperties": false, "properties": { "node": { "description": "Treat node.js built-in modules like fs, path or vm as external and load them via require() when used.", "type": "boolean" } } }, "ExternalsType": { "description": "Specifies the default type of externals ('amd*', 'umd*', 'system' and 'jsonp' depend on output.libraryTarget set to the same value).", "enum": ["var", "module", "assign", "this", "window", "self", "global", "commonjs", "commonjs2", "commonjs-module", "commonjs-static", "amd", "amd-require", "umd", "umd2", "jsonp", "system", "promise", "import", "script", "node-commonjs"] }, "Filename": { "description": "Specifies the filename of output files on disk. You must **not** specify an absolute path here, but the path may contain folders separated by '/'! The specified path is joined with the value of the 'output.path' option to determine the location on disk.", "oneOf": [{ "$ref": "#/definitions/FilenameTemplate" }] }, "SourceMapFilename": { "description": "Specifies the filename of output files on disk. You must **not** specify an absolute path here, but the path may contain folders separated by '/'! The specified path is joined with the value of the 'output.path' option to determine the location on disk.", "oneOf": [{ "$ref": "#/definitions/FilenameTemplate" }] }, "FilenameTemplate": { "description": "Specifies the filename template of output files on disk. You must **not** specify an absolute path here, but the path may contain folders separated by '/'! The specified path is joined with the value of the 'output.path' option to determine the location on disk.", "anyOf": [{ "type": "string", "minLength": 1 }, { "instanceof": "Function" }] }, "FilterItemTypes": { "description": "Filtering value, regexp or function.", "anyOf": [{ "instanceof": "RegExp" }, { "type": "string" }, { "instanceof": "Function" }] }, "FilterTypes": { "description": "Filtering values.", "anyOf": [{ "type": "array", "items": { "description": "Rule to filter.", "oneOf": [{ "$ref": "#/definitions/FilterItemTypes" }] } }, { "$ref": "#/definitions/FilterItemTypes" }] }, "GlobalObject": { "description": "An expression which is used to address the global object/scope in runtime code.", "type": "string", "minLength": 1 }, "ImportFunctionName": { "description": "The name of the native import() function (can be exchanged for a polyfill).", "type": "string" }, "InfrastructureLogging": { "description": "Options for infrastructure level logging.", "type": "object", "additionalProperties": false, "properties": { "appendOnly": { "description": "Only appends lines to the output. Avoids updating existing output e. g. for status messages. This option is only used when no custom console is provided.", "type": "boolean" }, "colors": { "description": "Enables/Disables colorful output. This option is only used when no custom console is provided.", "type": "boolean" }, "console": { "description": "Custom console used for logging." }, "debug": { "description": "Enable debug logging for specific loggers.", "anyOf": [{ "description": "Enable/Disable debug logging for all loggers.", "type": "boolean" }, { "$ref": "#/definitions/FilterTypes" }] }, "level": { "description": "Log level.", "enum": ["none", "error", "warn", "info", "log", "verbose"] }, "stream": { "description": "Stream used for logging output. Defaults to process.stderr. This option is only used when no custom console is provided." } } }, "Library": { "description": "Make the output files a library, exporting the exports of the entry point.", "anyOf": [{ "$ref": "#/definitions/LibraryName" }, { "$ref": "#/definitions/LibraryOptions" }] }, "LibraryCustomUmdCommentObject": { "description": "Set explicit comments for `commonjs`, `commonjs2`, `amd`, and `root`.", "type": "object", "additionalProperties": false, "properties": { "amd": { "description": "Set comment for `amd` section in UMD.", "type": "string" }, "commonjs": { "description": "Set comment for `commonjs` (exports) section in UMD.", "type": "string" }, "commonjs2": { "description": "Set comment for `commonjs2` (module.exports) section in UMD.", "type": "string" }, "root": { "description": "Set comment for `root` (global variable) section in UMD.", "type": "string" } } }, "LibraryCustomUmdObject": { "description": "Description object for all UMD variants of the library name.", "type": "object", "additionalProperties": false, "properties": { "amd": { "description": "Name of the exposed AMD library in the UMD.", "type": "string", "minLength": 1 }, "commonjs": { "description": "Name of the exposed commonjs export in the UMD.", "type": "string", "minLength": 1 }, "root": { "description": "Name of the property exposed globally by a UMD library.", "anyOf": [{ "type": "array", "items": { "description": "Part of the name of the property exposed globally by a UMD library.", "type": "string", "minLength": 1 } }, { "type": "string", "minLength": 1 }] } } }, "LibraryExport": { "description": "Specify which export should be exposed as library.", "anyOf": [{ "type": "array", "items": { "description": "Part of the export that should be exposed as library.", "type": "string", "minLength": 1 } }, { "type": "string", "minLength": 1 }] }, "LibraryName": { "description": "The name of the library (some types allow unnamed libraries too).", "anyOf": [{ "type": "array", "items": { "description": "A part of the library name.", "type": "string", "minLength": 1 }, "minItems": 1 }, { "type": "string", "minLength": 1 }, { "$ref": "#/definitions/LibraryCustomUmdObject" }] }, "LibraryOptions": { "description": "Options for library.", "type": "object", "additionalProperties": false, "properties": { "auxiliaryComment": { "$ref": "#/definitions/AuxiliaryComment" }, "export": { "$ref": "#/definitions/LibraryExport" }, "name": { "$ref": "#/definitions/LibraryName" }, "type": { "$ref": "#/definitions/LibraryType" }, "umdNamedDefine": { "$ref": "#/definitions/UmdNamedDefine" } }, "required": ["type"] }, "LibraryType": { "description": "Type of library (types included by default are 'var', 'module', 'assign', 'assign-properties', 'this', 'window', 'self', 'global', 'commonjs', 'commonjs2', 'commonjs-module', 'commonjs-static', 'amd', 'amd-require', 'umd', 'umd2', 'jsonp', 'system', but others might be added by plugins).", "anyOf": [{ "enum": ["var", "module", "assign", "assign-properties", "this", "window", "self", "global", "commonjs", "commonjs2", "commonjs-module", "commonjs-static", "amd", "amd-require", "umd", "umd2", "jsonp", "system"] }, { "type": "string" }] }, "Mode": { "description": "Enable production optimizations or development hints.", "enum": ["development", "production", "none"] }, "ignoreWarnings": { "description": "ignore warnings based on pattern", "type": "array", "items": { "anyOf": [{ "instanceof": "RegExp" }, { "instanceof": "Function" }] } }, "ModuleOptions": { "description": "Options affecting the normal modules (`NormalModuleFactory`).", "type": "object", "additionalProperties": false, "properties": { "defaultRules": { "description": "An array of rules applied by default for modules.", "oneOf": [{ "$ref": "#/definitions/RuleSetRules" }] }, "parser": { "$ref": "#/definitions/ParserOptionsByModuleType" }, "rules": { "description": "An array of rules applied for modules.", "oneOf": [{ "$ref": "#/definitions/RuleSetRules" }] } } }, "Name": { "description": "Name of the configuration. Used when loading multiple configurations.", "type": "string" }, "Node": { "description": "Include polyfills or mocks for various node stuff.", "anyOf": [{ "enum": [false] }, { "$ref": "#/definitions/NodeOptions" }] }, "NodeOptions": { "description": "Options object for node compatibility features.", "type": "object", "additionalProperties": false, "properties": { "__dirname": { "description": "Include a polyfill for the '__dirname' variable.", "enum": [false, true, "warn-mock", "mock", "eval-only"] }, "__filename": { "description": "Include a polyfill for the '__filename' variable.", "enum": [false, true, "warn-mock", "mock", "eval-only"] }, "global": { "description": "Include a polyfill for the 'global' variable.", "enum": [false, true, "warn"] } } }, "Optimization": { "description": "Enables/Disables integrated optimizations.", "type": "object", "additionalProperties": false, "properties": { "chunkIds": { "description": "Define the algorithm to choose chunk ids (named: readable ids for better debugging, deterministic: numeric hash ids for better long term caching, size: numeric ids focused on minimal initial download size, total-size: numeric ids focused on minimal total download size, false: no algorithm used, as custom one can be provided via plugin).", "enum": ["named", "deterministic"] }, "minimize": { "description": "Enable minimizing the output. Uses optimization.minimizer.", "type": "boolean" }, "minimizer": { "description": "Minimizer(s) to use for minimizing the output.", "type": "array", "items": { "description": "Plugin of type object or instanceof Function.", "anyOf": [{ "enum": ["..."] }, { "$ref": "#/definitions/RspackPluginInstance" }, { "$ref": "#/definitions/RspackPluginFunction" }] } }, "moduleIds": { "description": "Define the algorithm to choose module ids (natural: numeric ids in order of usage, named: readable ids for better debugging, hashed: (deprecated) short hashes as ids for better long term caching, deterministic: numeric hash ids for better long term caching, size: numeric ids focused on minimal initial download size, false: no algorithm used, as custom one can be provided via plugin).", "enum": ["named", "deterministic"] }, "removeAvailableModules": { "description": "Removes modules from chunks when these modules are already included in all parents.", "type": "boolean" }, "removeEmptyChunks": { "description": "Remove chunks which are empty.", "type": "boolean" }, "runtimeChunk": { "$ref": "#/definitions/OptimizationRuntimeChunk" }, "sideEffects": { "description": "Skip over modules which contain no side effects when exports are not used (false: disabled, 'flag': only use manually placed side effects flag, true: also analyse source code for side effects).", "anyOf": [{ "enum": ["flag"] }, { "type": "boolean" }] }, "splitChunks": { "description": "Optimize duplication and caching by splitting chunks by shared modules and cache group.", "anyOf": [{ "enum": [false] }, { "$ref": "#/definitions/OptimizationSplitChunksOptions" }] }, "realContentHash": { "description": "Use real [contenthash] based on final content of the assets.", "type": "boolean" } } }, "OptimizationRuntimeChunk": { "description": "Create an additional chunk which contains only the rspack runtime and chunk hash maps.", "anyOf": [{ "enum": ["single", "multiple"] }, { "type": "boolean" }, { "type": "object", "additionalProperties": false, "properties": { "name": { "description": "The name or name factory for the runtime chunks.", "anyOf": [{ "type": "string" }, { "instanceof": "Function" }] } } }] }, "OptimizationSplitChunksCacheGroup": { "description": "Options object for describing behavior of a cache group selecting modules that should be cached together.", "type": "object", "additionalProperties": false, "properties": { "chunks": { "description": "Select chunks for determining cache group content (defaults to \"initial\", \"initial\" and \"all\" requires adding these chunks to the HTML).", "anyOf": [{ "enum": ["initial", "async", "all"] }, { "instanceof": "Function" }] }, "minChunks": { "description": "Minimum number of times a module has to be duplicated until it's considered for splitting.", "type": "number", "minimum": 1 }, "name": { "description": "Give chunks for this cache group a name (chunks with equal name are merged).", "anyOf": [{ "enum": [false] }, { "type": "string" }, { "instanceof": "Function" }] }, "priority": { "description": "Priority of this cache group.", "type": "number" }, "reuseExistingChunk": { "description": "Try to reuse existing chunk (with name) when it has matching modules.", "type": "boolean" }, "enforce": { "description": "ignore splitChunks.minSize, splitChunks.minChunks, splitChunks.maxAsyncRequests and splitChunks.maxInitialRequests options and always create chunks for this cache group.", "type": "boolean" }, "hidePathInfo": { "type": "boolean" }, "maxSize": { "type": "number" }, "test": { "description": "Assign modules to a cache group by module name.", "anyOf": [{ "instanceof": "RegExp" }] }, "minSize": { "description": "Minimal size for the created chunks.", "oneOf": [{ "$ref": "#/definitions/OptimizationSplitChunksSizes" }] } } }, "OptimizationSplitChunksOptions": { "description": "Options object for splitting chunks into smaller chunks.", "type": "object", "additionalProperties": false, "properties": { "fallbackCacheGroup": { "type": "object", "properties": { "maxSize": { "type": "number" }, "maxInitialSize": { "type": "number" }, "maxAsyncSize": { "type": "number" }, "minSize": { "type": "number" } } }, "hidePathInfo": { "type": "boolean" }, "name": { "description": "The name or name for chunks.", "anyOf": [{ "type": "string" }] }, "cacheGroups": { "description": "Assign modules to a cache group (modules from different cache groups are tried to keep in separate chunks, default categories: 'default', 'defaultVendors').", "type": "object", "additionalProperties": { "description": "Configuration for a cache group.", "anyOf": [{ "$ref": "#/definitions/OptimizationSplitChunksCacheGroup" }] } }, "chunks": { "description": "Select chunks for determining shared modules (defaults to \"async\", \"initial\" and \"all\" requires adding these chunks to the HTML).", "anyOf": [{ "enum": ["initial", "async", "all"] }] }, "enforceSizeThreshold": { "description": "Size threshold at which splitting is enforced and other restrictions (minRemainingSize, maxAsyncRequests, maxInitialRequests) are ignored.", "oneOf": [{ "$ref": "#/definitions/OptimizationSplitChunksSizes" }] }, "maxAsyncRequests": { "description": "Maximum number of requests which are accepted for on-demand loading.", "type": "number", "minimum": 1 }, "maxInitialRequests": { "description": "Maximum number of initial chunks which are accepted for an entry point.", "type": "number", "minimum": 1 }, "minChunks": { "description": "Minimum number of times a module has to be duplicated until it's considered for splitting.", "type": "number", "minimum": 1 }, "minRemainingSize": { "description": "Minimal size for the chunks the stay after moving the modules to a new chunk.", "oneOf": [{ "$ref": "#/definitions/OptimizationSplitChunksSizes" }] }, "minSize": { "description": "Minimal size for the created chunks.", "oneOf": [{ "$ref": "#/definitions/OptimizationSplitChunksSizes" }] }, "maxSize": { "type": "number" }, "maxInitialSize": { "type": "number" }, "maxAsyncSize": { "type": "number" }, "reuseExistingChunk": { "description": "If the current chunk contains modules already split out from the main bundle, it will be reused instead of a new one being generated. This can affect the resulting file name of the chunk.", "type": "boolean" } } }, "OptimizationSplitChunksSizes": { "description": "Size description for limits.", "anyOf": [{ "description": "Size of the javascript part of the chunk.", "type": "number", "minimum": 0 }] }, "Iife": { "description": "Wrap javascript code into IIFE's to avoid leaking into global scope.", "type": "boolean" }, "Clean": { "description": "Clears the output build directory", "type": "boolean" }, "Output": { "description": "Options affecting the output of the compilation. `output` options tell rspack how to write the compiled files to disk.", "type": "object", "additionalProperties": false, "properties": { "iife": { "$ref": "#/definitions/Iife" }, "clean": { "$ref": "#/definitions/Clean" }, "assetModuleFilename": { "$ref": "#/definitions/AssetModuleFilename" }, "auxiliaryComment": { "oneOf": [{ "$ref": "#/definitions/AuxiliaryComment" }] }, "chunkFormat": { "$ref": "#/definitions/ChunkFormat" }, "chunkLoading": { "$ref": "#/definitions/ChunkLoading" }, "enabledChunkLoadingTypes": { "$ref": "#/definitions/EnabledChunkLoadingTypes" }, "chunkFilename": { "$ref": "#/definitions/ChunkFilename" }, "crossOriginLoading": { "$ref": "#/definitions/CrossOriginLoading" }, "cssChunkFilename": { "$ref": "#/definitions/CssChunkFilename" }, "cssFilename": { "$ref": "#/definitions/CssFilename" }, "hotUpdateChunkFilename": { "$ref": "#/definitions/HotUpdateChunkFilename" }, "hotUpdateMainFilename": { "$ref": "#/definitions/HotUpdateMainFilename" }, "enabledWasmLoadingTypes": { "$ref": "#/definitions/EnabledWasmLoadingTypes" }, "wasmLoading": { "$ref": "#/definitions/WasmLoading" }, "webassemblyModuleFilename": { "$ref": "#/definitions/WebassemblyModuleFilename" }, "enabledLibraryTypes": { "$ref": "#/definitions/EnabledLibraryTypes" }, "filename": { "$ref": "#/definitions/Filename" }, "globalObject": { "$ref": "#/definitions/GlobalObject" }, "importFunctionName": { "$ref": "#/definitions/ImportFunctionName" }, "library": { "$ref": "#/definitions/Library" }, "libraryExport": { "oneOf": [{ "$ref": "#/definitions/LibraryExport" }] }, "libraryTarget": { "oneOf": [{ "$ref": "#/definitions/LibraryType" }] }, "module": { "$ref": "#/definitions/OutputModule" }, "path": { "$ref": "#/definitions/Path" }, "publicPath": { "$ref": "#/definitions/PublicPath" }, "strictModuleErrorHandling": { "$ref": "#/definitions/StrictModuleErrorHandling" }, "umdNamedDefine": { "oneOf": [{ "$ref": "#/definitions/UmdNamedDefine" }] }, "uniqueName": { "$ref": "#/definitions/UniqueName" }, "chunkLoadingGlobal": { "$ref": "#/definitions/ChunkLoadingGlobal" }, "trustedTypes": { "description": "Use a Trusted Types policy to create urls for chunks. 'output.uniqueName' is used a default policy name. Passing a string sets a custom policy name.", "anyOf": [{ "enum": [true] }, { "description": "The name of the Trusted Types policy created by webpack to serve bundle chunks.", "type": "string", "minLength": 1 }, { "$ref": "#/definitions/TrustedTypes" }] }, "sourceMapFilename": { "$ref": "#/definitions/SourceMapFilename" } } }, "OutputModule": { "description": "Output javascript files as module source type.", "type": "boolean" }, "ParserOptionsByModuleType": { "description": "Specify options for each parser.", "type": "object", "additionalProperties": { "description": "Options for parsing.", "type": "object", "additionalProperties": true }, "properties": { "asset": { "$ref": "#/definitions/AssetParserOptions" } } }, "Path": { "description": "The output directory as **absolute path** (required).", "type": "string" }, "Plugins": { "description": "Add additional plugins to the compiler.", "type": "array", "items": { "description": "Plugin of type object or instanceof Function.", "anyOf": [{ "$ref": "#/definitions/RspackPluginInstance" }, { "$ref": "#/definitions/RspackPluginFunction" }] } }, "PublicPath": { "description": "The 'publicPath' specifies the public URL address of the output files when referenced in a browser.", "anyOf": [{ "enum": ["auto"] }, { "$ref": "#/definitions/RawPublicPath" }] }, "RawPublicPath": { "description": "The 'publicPath' specifies the public URL address of the output files when referenced in a browser.", "anyOf": [{ "type": "string" }] }, "Resolve": { "description": "Options for the resolver.", "oneOf": [{ "$ref": "#/definitions/ResolveOptions" }] }, "ResolveAlias": { "description": "Redirect module requests.", "anyOf": [{ "type": "object", "additionalProperties": { "description": "New request.", "anyOf": [{ "description": "Multiple alternative requests.", "type": "array", "items": { "description": "One choice of request.", "type": "string", "minLength": 1 } }, { "description": "Ignore request (replace with empty module).", "enum": [false] }, { "description": "New request.", "type": "string", "minLength": 1 }] } }] }, "ResolveOptions": { "description": "Options object for resolving requests.", "type": "object", "additionalProperties": false, "properties": { "alias": { "$ref": "#/definitions/ResolveAlias" }, "browserField": { "description": "Fields in the description file (usually package.json) which are used to redirect requests inside the module.", "type": "boolean" }, "conditionNames": { "description": "Condition names for exports field entry point.", "type": "array", "items": { "description": "Condition names for exports field entry point.", "type": "string" } }, "extensions": { "description": "Extensions added to the request when trying to find the file.", "type": "array", "items": { "description": "Extension added to the request when trying to find the file.", "type": "string" } }, "fallback": { "description": "Redirect module requests when normal resolving fails.", "oneOf": [{ "$ref": "#/definitions/ResolveAlias" }] }, "fullySpecified": { "description": "Treats the request specified by the user as fully specified, meaning no extensions are added and the mainFiles in directories are not resolved (This doesn't affect requests from mainFields, aliasFields or aliases).", "type": "boolean" }, "mainFields": { "description": "Field names from the description file (package.json) which are used to find the default entry point.", "type": "array", "items": { "description": "Field name from the description file (package.json) which are used to find the default entry point.", "anyOf": [{ "type": "array", "items": { "description": "Part of the field path from the description file (package.json) which are used to find the default entry point.", "type": "string", "minLength": 1 } }, { "type": "string", "minLength": 1 }] } }, "mainFiles": { "description": "Filenames used to find the default entry point if there is no description file or main field.", "type": "array", "items": { "description": "Filename used to find the default entry point if there is no description file or main field.", "type": "string", "minLength": 1 } }, "modules": { "description": "Folder names or directory paths where to find modules.", "type": "array", "items": { "description": "Folder name or directory path where to find modules.", "type": "string", "minLength": 1 } }, "preferRelative": { "description": "Prefer to resolve module requests as relative request and fallback to resolving as module.", "type": "boolean" }, "byDependency": { "description": "Extra resolve options per dependency category. Typical categories are \"commonjs\", \"amd\", \"esm\".", "type": "object", "additionalProperties": { "description": "Options object for resolving requests.", "oneOf": [{ "$ref": "#/definitions/ResolveOptions" }] } }, "tsConfigPath": { "description": "Path to tsconfig.json", "type": "string" }, "exportsFields": { "description": "Fields in the description file (usually package.json) which are used to redirect requests inside the module.", "type": "array", "items": { "description": "Field name from the description file (package.json) which are used to find the default entry point.", "type": "string" } } } }, "RuleSetCondition": { "description": "A condition matcher.", "anyOf": [{ "instanceof": "RegExp" }, { "type": "string" }, { "instanceof": "Function" }, { "$ref": "#/definitions/RuleSetLogicalConditions" }, { "$ref": "#/definitions/RuleSetConditions" }] }, "RuleSetConditionOrConditions": { "description": "One or multiple rule conditions.", "anyOf": [{ "$ref": "#/definitions/RuleSetCondition" }, { "$ref": "#/definitions/RuleSetConditions" }] }, "RuleSetConditions": { "description": "A list of rule conditions.", "type": "array", "items": { "description": "A rule condition.", "oneOf": [{ "$ref": "#/definitions/RuleSetCondition" }] } }, "RuleSetLoader": { "description": "A loader request.", "type": "string", "minLength": 1 }, "RuleSetLoaderOptions": { "description": "Options passed to a loader.", "anyOf": [{ "type": "string" }, { "type": "object" }] }, "RuleSetLogicalConditions": { "description": "Logic operators used in a condition matcher.", "type": "object", "additionalProperties": false, "properties": { "and": { "description": "Logical AND.", "oneOf": [{ "$ref": "#/definitions/RuleSetConditions" }] }, "not": { "description": "Logical NOT.", "oneOf": [{ "$ref": "#/definitions/RuleSetCondition" }] }, "or": { "description": "Logical OR.", "oneOf": [{ "$ref": "#/definitions/RuleSetConditions" }] } } }, "RuleSetRule": { "description": "A rule description with conditions and effects for modules.", "type": "object", "additionalProperties": false, "properties": { "enforce": { "description": "Enforce this rule as pre or post step.", "enum": ["pre", "post"] }, "exclude": { "description": "Shortcut for resource.exclude.", "oneOf": [{ "$ref": "#/definitions/RuleSetConditionOrConditions" }] }, "generator": { "description": "The options for the module generator.", "type": "object" }, "include": { "description": "Shortcut for resource.include.", "oneOf": [{ "$ref": "#/definitions/RuleSetConditionOrConditions" }] }, "issuer": { "description": "Match the issuer of the module (The module pointing to this module).", "oneOf": [{ "$ref": "#/definitions/RuleSetConditionOrConditions" }] }, "dependency": { "description": "Match dependency type.", "oneOf": [{ "$ref": "#/definitions/RuleSetConditionOrConditions" }] }, "descriptionData": { "description": "Match values of properties in the description file (usually package.json).", "type": "object", "additionalProperties": { "$ref": "#/definitions/RuleSetConditionOrConditions" } }, "oneOf": { "description": "Only execute the first matching rule in this array.", "type": "array", "items": { "description": "A rule.", "oneOf": [{ "$ref": "#/definitions/RuleSetRule" }] } }, "parser": { "description": "Options for parsing.", "type": "object", "additionalProperties": true }, "resolve": { "description": "Options for the resolver.", "type": "object", "oneOf": [{ "$ref": "#/definitions/ResolveOptions" }] }, "resource": { "description": "Match the resource path of the module.", "oneOf": [{ "$ref": "#/definitions/RuleSetConditionOrConditions" }] }, "resourceFragment": { "description": "Match the resource fragment of the module.", "oneOf": [{ "$ref": "#/definitions/RuleSetConditionOrConditions" }] }, "resourceQuery": { "description": "Match the resource query of the module.", "oneOf": [{ "$ref": "#/definitions/RuleSetConditionOrConditions" }] }, "mimetype": { "description": "Match module mimetype when load from Data URI.", "oneOf": [{ "$ref": "#/definitions/RuleSetConditionOrConditions" }] }, "scheme": { "description": "Match module scheme.", "oneOf": [{ "$ref": "#/definitions/RuleSetConditionOrConditions" }] }, "rules": { "description": "Match and execute these rules when this rule is matched.", "type": "array", "items": { "description": "A rule.", "oneOf": [{ "$ref": "#/definitions/RuleSetRule" }] } }, "sideEffects": { "description": "Flags a module as with or without side effects.", "type": "boolean" }, "test": { "description": "Shortcut for resource.test.", "oneOf": [{ "$ref": "#/definitions/RuleSetConditionOrConditions" }] }, "type": { "description": "Module type to use for the module.", "type": "string" }, "use": { "description": "Modifiers applied to the module when rule is matched.", "oneOf": [{ "$ref": "#/definitions/RuleSetUse" }] } } }, "RuleSetRules": { "description": "A list of rules.", "type": "array", "items": { "description": "A rule.", "anyOf": [{ "enum": ["..."] }, { "$ref": "#/definitions/RuleSetRule" }] } }, "RuleSetUse": { "description": "A list of descriptions of loaders applied.", "anyOf": [{ "type": "array", "items": { "description": "An use item.", "oneOf": [{ "$ref": "#/definitions/RuleSetUseItem" }] } }, { "$ref": "#/definitions/RuleSetUseItem" }] }, "RuleSetUseItem": { "description": "A description of an applied loader.", "anyOf": [{ "type": "object", "additionalProperties": false, "properties": { "loader": { "description": "Loader name.", "oneOf": [{ "$ref": "#/definitions/RuleSetLoader" }] }, "options": { "description": "Loader options.", "oneOf": [{ "$ref": "#/definitions/RuleSetLoaderOptions" }] } } }, { "$ref": "#/definitions/RuleSetLoader" }] }, "SnapshotOptions": { "description": "Options affecting how file system snapshots are created and validated.", "type": "object", "additionalProperties": false, "properties": { "module": { "description": "Options for snapshotting dependencies of modules to determine if they need to be built again.", "type": "object", "additionalProperties": false, "properties": { "hash": { "description": "Use hashes of the content of the files/directories to determine invalidation.", "type": "boolean" }, "timestamp": { "description": "Use timestamps of the files/directories to determine invalidation.", "type": "boolean" } } }, "resolve": { "description": "Options for snapshotting dependencies of request resolving to determine if requests need to be re-resolved.", "type": "object", "additionalProperties": false, "properties": { "hash": { "description": "Use hashes of the content of the files/directories to determine invalidation.", "type": "boolean" }, "timestamp": { "description": "Use timestamps of the files/directories to determine invalidation.", "type": "boolean" } } } } }, "StatsOptions": { "description": "Stats options object.", "type": "object", "additionalProperties": true, "properties": { "all": { "description": "Fallback value for stats options when an option is not defined (has precedence over local rspack defaults).", "type": "boolean" }, "assets": { "description": "Add assets information.", "type": "boolean" }, "chunkGroups": { "description": "Display all chunk groups with the corresponding bundles.", "type": "boolean" }, "chunks": { "description": "Add chunk information.", "type": "boolean" }, "colors": { "description": "Enables/Disables colorful output.", "type": "boolean" }, "entrypoints": { "description": "Display the entry points with the corresponding bundles.", "anyOf": [{ "enum": ["auto"] }, { "type": "boolean" }] }, "errors": { "description": "Add errors.", "type": "boolean" }, "errorsCount": { "description": "Add errors count.", "type": "boolean" }, "hash": { "description": "Add the hash of the compilation.", "type": "boolean" }, "modules": { "description": "Add built modules information.", "type": "boolean" }, "preset": { "description": "Preset for the default values.", "anyOf": [{ "type": "boolean" }, { "type": "string" }] }, "publicPath": { "description": "Add public path information.", "type": "boolean" }, "reasons": { "description": "Add information about the reasons why modules are included.", "type": "boolean" }, "warnings": { "description": "Add warnings.", "type": "boolean" }, "warningsCount": { "description": "Add warnings count.", "type": "boolean" }, "outputPath": { "description": "Add output path information.", "type": "boolean" }, "chunkModules": { "description": "Add built modules information to chunk information.", "type": "boolean" }, "chunkRelations": { "description": "Add information about parent, children and sibling chunks to chunk information.", "type": "boolean" }, "timings": { "description": "Add timing information.", "type": "boolean" }, "builtAt": { "description": "Add built at time information.", "type": "boolean" }, "nestedModules": { "description": "Add information about modules nested in other modules (like with module concatenation).", "type": "boolean" } } }, "StatsValue": { "description": "Stats options object or preset name.", "anyOf": [{ "enum": ["none", "errors-only", "errors-warnings", "normal", "verbose"] }, { "type": "boolean" }, { "$ref": "#/definitions/StatsOptions" }] }, "StrictModuleErrorHandling": { "description": "Handles error in module loading correctly at a performance cost. This will handle module error compatible with the EcmaScript Modules spec.", "type": "boolean" }, "Target": { "description": "Environment to build for. An array of environments to build for all of them when possible.", "anyOf": [{ "type": "array", "items": { "description": "Environment to build for.", "type": "string", "minLength": 1 }, "minItems": 1 }, { "enum": [false] }, { "type": "string", "minLength": 1 }] }, "TrustedTypes": { "description": "Use a Trusted Types policy to create urls for chunks.", "type": "object", "additionalProperties": false, "properties": { "policyName": { "description": "The name of the Trusted Types policy created by webpack to serve bundle chunks.", "type": "string", "minLength": 1 } } }, "UmdNamedDefine": { "description": "If `output.libraryTarget` is set to umd and `output.library` is set, setting this to true will name the AMD module.", "type": "boolean" }, "UniqueName": { "description": "A unique name of the rspack build to avoid multiple rspack runtimes to conflict when using globals.", "type": "string", "minLength": 1 }, "ChunkLoadingGlobal": { "description": "The global variable used by rspack for loading of chunks.", "type": "string", "minLength": 1 }, "Watch": { "description": "Enter watch mode, which rebuilds on file change.", "type": "boolean" }, "WatchOptions": { "description": "Options for the watcher.", "type": "object", "additionalProperties": false, "properties": { "aggregateTimeout": { "description": "Delay the rebuilt after the first change. Value is a time in ms.", "type": "number" }, "followSymlinks": { "description": "Resolve symlinks and watch symlink and real file. This is usually not needed as rspack already resolves symlinks ('resolve.symlinks').", "type": "boolean" }, "ignored": { "description": "Ignore some files from watching (glob pattern or regexp).", "anyOf": [{ "type": "array", "items": { "description": "A glob pattern for files that should be ignored from watching.", "type": "string", "minLength": 1 } }, { "instanceof": "RegExp" }, { "description": "A single glob pattern for files that should be ignored from watching.", "type": "string", "minLength": 1 }] }, "poll": { "description": "Enable polling mode for watching.", "anyOf": [{ "description": "`number`: use polling with specified interval.", "type": "number" }, { "description": "`true`: use polling.", "type": "boolean" }] }, "stdin": { "description": "Stop watching when stdin stream has ended.", "type": "boolean" } } }, "RspackPluginFunction": { "description": "Function acting as plugin.", "instanceof": "Function" }, "RspackPluginInstance": { "description": "Plugin instance.", "type": "object", "additionalProperties": true, "properties": { "apply": { "description": "The run point of the plugin, required method.", "instanceof": "Function" } }, "required": ["apply"] } }, "title": "RspackOptions", "description": "Options object as provided by the user.", "type": "object", "additionalProperties": false, "properties": { "cache": { "$ref": "#/definitions/CacheOptions" }, "context": { "$ref": "#/definitions/Context" }, "dependencies": { "$ref": "#/definitions/Dependencies" }, "devServer": { "$ref": "#/definitions/DevServer" }, "devtool": { "$ref": "#/definitions/DevTool" }, "entry": { "$ref": "#/definitions/Entry" }, "experiments": { "$ref": "#/definitions/Experiments" }, "externals": { "$ref": "#/definitions/Externals" }, "externalsType": { "$ref": "#/definitions/ExternalsType" }, "externalsPresets": { "$ref": "#/definitions/ExternalsPresets" }, "infrastructureLogging": { "$ref": "#/definitions/InfrastructureLogging" }, "mode": { "$ref": "#/definitions/Mode" }, "module": { "$ref": "#/definitions/ModuleOptions" }, "name": { "$ref": "#/definitions/Name" }, "node": { "$ref": "#/definitions/Node" }, "optimization": { "$ref": "#/definitions/Optimization" }, "output": { "$ref": "#/definitions/Output" }, "plugins": { "$ref": "#/definitions/Plugins" }, "resolve": { "$ref": "#/definitions/Resolve" }, "snapshot": { "$ref": "#/definitions/SnapshotOptions" }, "stats": { "$ref": "#/definitions/StatsValue" }, "target": { "$ref": "#/definitions/Target" }, "watch": { "$ref": "#/definitions/Watch" }, "watchOptions": { "$ref": "#/definitions/WatchOptions" }, "builtins": { "description": "Builtins features in rspack", "type": "object", "additionalProperties": true }, "ignoreWarnings": { "$ref": "#/definitions/ignoreWarnings" } } };
|
|
5
|
+
const schema11 = { "definitions": { "AssetModuleFilename": { "description": "The filename of asset modules as relative path inside the 'output.path' directory.", "anyOf": [{ "type": "string" }] }, "AssetParserDataUrlOptions": { "description": "Options object for DataUrl condition.", "type": "object", "additionalProperties": false, "properties": { "maxSize": { "description": "Maximum size of asset that should be inline as modules. Default: 8kb.", "type": "number" } } }, "AssetParserOptions": { "description": "Parser options for asset modules.", "type": "object", "additionalProperties": false, "properties": { "dataUrlCondition": { "description": "The condition for inlining the asset as DataUrl.", "anyOf": [{ "$ref": "#/definitions/AssetParserDataUrlOptions" }] } } }, "AuxiliaryComment": { "description": "Add a comment in the UMD wrapper.", "anyOf": [{ "description": "Append the same comment above each import style.", "type": "string" }, { "$ref": "#/definitions/LibraryCustomUmdCommentObject" }] }, "CacheOptions": { "description": "Cache generated modules and chunks to improve performance for multiple incremental builds.", "type": "boolean" }, "ChunkFilename": { "description": "Specifies the filename template of output files of non-initial chunks on disk. You must **not** specify an absolute path here, but the path may contain folders separated by '/'! The specified path is joined with the value of the 'output.path' option to determine the location on disk.", "oneOf": [{ "$ref": "#/definitions/FilenameTemplate" }] }, "ChunkFormat": { "description": "The format of chunks (formats included by default are 'array-push' (web/WebWorker), 'commonjs' (node.js), 'module' (ESM), but others might be added by plugins).", "anyOf": [{ "enum": ["array-push", "commonjs", "module", false] }, { "type": "string" }] }, "ChunkLoading": { "description": "The method of loading chunks (methods included by default are 'jsonp' (web), 'import' (ESM), 'importScripts' (WebWorker), 'require' (sync node.js), 'async-node' (async node.js), but others might be added by plugins).", "anyOf": [{ "enum": [false] }, { "$ref": "#/definitions/ChunkLoadingType" }] }, "ChunkLoadingType": { "description": "The method of loading chunks (methods included by default are 'jsonp' (web), 'import' (ESM), 'importScripts' (WebWorker), 'require' (sync node.js), 'async-node' (async node.js), but others might be added by plugins).", "anyOf": [{ "enum": ["jsonp", "import-scripts", "require", "async-node", "import"] }, { "type": "string" }] }, "CrossOriginLoading": { "description": "This option enables cross-origin loading of chunks.", "enum": [false, "anonymous", "use-credentials"] }, "Context": { "description": "The base directory (absolute path!) for resolving the `entry` option. If `output.pathinfo` is set, the included pathinfo is shortened to this directory.", "type": "string" }, "CssChunkFilename": { "description": "Specifies the filename template of non-initial output css files on disk. You must **not** specify an absolute path here, but the path may contain folders separated by '/'! The specified path is joined with the value of the 'output.path' option to determine the location on disk.", "oneOf": [{ "$ref": "#/definitions/FilenameTemplate" }] }, "CssFilename": { "description": "Specifies the filename template of output css files on disk. You must **not** specify an absolute path here, but the path may contain folders separated by '/'! The specified path is joined with the value of the 'output.path' option to determine the location on disk.", "oneOf": [{ "$ref": "#/definitions/FilenameTemplate" }] }, "HotUpdateChunkFilename": { "description": "The filename of the Hot Update Chunks. They are inside the output.path directory.", "type": "string", "absolutePath": false }, "HotUpdateMainFilename": { "description": "The filename of the Hot Update Main File. It is inside the 'output.path' directory.", "type": "string", "absolutePath": false }, "HashDigest": { "description": "Digest type used for the hash.", "type": "string" }, "HashDigestLength": { "description": "Number of chars which are used for the hash.", "type": "number", "minimum": 1 }, "HashFunction": { "description": "Algorithm used for generation the hash (see node.js crypto package).", "anyOf": [{ "type": "string", "minLength": 1 }, { "instanceof": "Function" }] }, "HashSalt": { "description": "Any string which is added to the hash to salt it.", "type": "string", "minLength": 1 }, "WebassemblyModuleFilename": { "description": "The filename of WebAssembly modules as relative path inside the 'output.path' directory.", "type": "string" }, "EnabledWasmLoadingTypes": { "description": "List of wasm loading types enabled for use by entry points.", "type": "array", "items": { "$ref": "#/definitions/WasmLoadingType" } }, "EnabledChunkLoadingTypes": { "description": "List of chunk loading types enabled for use by entry points.", "type": "array", "items": { "$ref": "#/definitions/ChunkLoadingType" } }, "WasmLoading": { "description": "The method of loading WebAssembly Modules (methods included by default are 'fetch' (web/WebWorker), 'async-node' (node.js), but others might be added by plugins).", "anyOf": [{ "enum": [false] }, { "$ref": "#/definitions/WasmLoadingType" }] }, "WasmLoadingType": { "description": "The method of loading WebAssembly Modules (methods included by default are 'fetch' (web/WebWorker), 'async-node' (node.js), but others might be added by plugins).", "anyOf": [{ "enum": ["fetch-streaming", "fetch", "async-node"] }, { "type": "string" }] }, "Dependencies": { "description": "References to other configurations to depend on.", "type": "array", "items": { "description": "References to another configuration to depend on.", "type": "string" } }, "DevServer": { "description": "Options for the rspack-dev-server.", "type": "object" }, "DevTool": { "description": "A developer tool to enhance debugging (false | eval | [inline-|hidden-|eval-][nosources-][cheap-[module-]]source-map).", "anyOf": [{ "enum": [false] }, { "type": "string", "pattern": "^(inline-|hidden-|eval-)?(nosources-)?(cheap-(module-)?)?source-map$" }] }, "EnabledLibraryTypes": { "description": "List of library types enabled for use by entry points.", "type": "array", "items": { "$ref": "#/definitions/LibraryType" } }, "Entry": { "description": "The entry point(s) of the compilation.", "anyOf": [{ "$ref": "#/definitions/EntryStatic" }] }, "EntryDescription": { "description": "An object with entry point description.", "type": "object", "additionalProperties": false, "properties": { "import": { "$ref": "#/definitions/EntryItem" }, "runtime": { "$ref": "#/definitions/EntryRuntime" }, "wasmLoading": { "$ref": "#/definitions/WasmLoading" } }, "required": ["import"] }, "EntryFilename": { "description": "Specifies the filename of the output file on disk. You must **not** specify an absolute path here, but the path may contain folders separated by '/'! The specified path is joined with the value of the 'output.path' option to determine the location on disk.", "oneOf": [{ "$ref": "#/definitions/FilenameTemplate" }] }, "EntryItem": { "description": "Module(s) that are loaded upon startup.", "anyOf": [{ "description": "All modules are loaded upon startup. The last one is exported.", "type": "array", "items": { "description": "A module that is loaded upon startup. Only the last one is exported.", "type": "string", "minLength": 1 }, "minItems": 1, "uniqueItems": true }, { "description": "The string is resolved to a module which is loaded upon startup.", "type": "string", "minLength": 1 }] }, "EntryObject": { "description": "Multiple entry bundles are created. The key is the entry name. The value can be a string, an array or an entry description object.", "type": "object", "additionalProperties": { "description": "An entry point with name.", "anyOf": [{ "$ref": "#/definitions/EntryItem" }, { "$ref": "#/definitions/EntryDescription" }] } }, "EntryRuntime": { "description": "The name of the runtime chunk. If set a runtime chunk with this name is created or an existing entrypoint is used as runtime.", "anyOf": [{ "enum": [false] }, { "type": "string", "minLength": 1 }] }, "EntryStatic": { "description": "A static entry description.", "anyOf": [{ "$ref": "#/definitions/EntryObject" }, { "$ref": "#/definitions/EntryUnnamed" }] }, "EntryUnnamed": { "description": "An entry point without name.", "oneOf": [{ "$ref": "#/definitions/EntryItem" }] }, "Experiments": { "description": "Enables/Disables experiments (experimental features with relax SemVer compatibility).", "type": "object", "additionalProperties": false, "properties": { "asyncWebAssembly": { "description": "Support WebAssembly as asynchronous EcmaScript Module.", "type": "boolean" }, "incrementalRebuild": { "description": "Rebuild incrementally", "type": "boolean" }, "lazyCompilation": { "description": "Compile entrypoints and import()s only when they are accessed.", "anyOf": [{ "type": "boolean" }] }, "outputModule": { "description": "Allow output javascript files as module source type.", "type": "boolean" }, "newSplitChunks": { "description": "Enable new SplitChunksPlugin", "type": "boolean" }, "css": { "description": "Enable native css support.", "type": "boolean" } } }, "ExternalItem": { "description": "Specify dependency that shouldn't be resolved by rspack, but should become dependencies of the resulting bundle. The kind of the dependency depends on `output.libraryTarget`.", "anyOf": [{ "description": "Every matched dependency becomes external.", "instanceof": "RegExp" }, { "description": "An exact matched dependency becomes external. The same string is used as external dependency.", "type": "string" }, { "description": "If an dependency matches exactly a property of the object, the property value is used as dependency.", "type": "object", "additionalProperties": { "$ref": "#/definitions/ExternalItemValue" } }, { "description": "The function is called on each dependency (`function(context, request, callback(err, result))`).", "instanceof": "Function" }] }, "ExternalItemValue": { "description": "The dependency used for the external.", "anyOf": [{ "type": "array", "items": { "description": "A part of the target of the external.", "type": "string", "minLength": 1 } }, { "description": "The target of the external.", "type": "string" }, { "description": "`true`: The dependency name is used as target of the external.", "type": "boolean" }] }, "Externals": { "description": "Specify dependencies that shouldn't be resolved by rspack, but should become dependencies of the resulting bundle. The kind of the dependency depends on `output.libraryTarget`.", "anyOf": [{ "type": "array", "items": { "$ref": "#/definitions/ExternalItem" } }, { "$ref": "#/definitions/ExternalItem" }] }, "ExternalsPresets": { "description": "Enable presets of externals for specific targets.", "type": "object", "additionalProperties": false, "properties": { "node": { "description": "Treat node.js built-in modules like fs, path or vm as external and load them via require() when used.", "type": "boolean" }, "web": { "description": "Treat references to 'http(s)://...' and 'std:...' as external and load them via import when used (Note that this changes execution order as externals are executed before any other code in the chunk).", "type": "boolean" }, "electron": { "description": "Treat common electron built-in modules in main and preload context like 'electron', 'ipc' or 'shell' as external and load them via require() when used.", "type": "boolean" }, "electronMain": { "description": "Treat electron built-in modules in the main context like 'app', 'ipc-main' or 'shell' as external and load them via require() when used.", "type": "boolean" }, "electronPreload": { "description": "Treat electron built-in modules in the preload context like 'web-frame', 'ipc-renderer' or 'shell' as external and load them via require() when used.", "type": "boolean" }, "electronRenderer": { "description": "Treat electron built-in modules in the renderer context like 'web-frame', 'ipc-renderer' or 'shell' as external and load them via require() when used.", "type": "boolean" } } }, "ExternalsType": { "description": "Specifies the default type of externals ('amd*', 'umd*', 'system' and 'jsonp' depend on output.libraryTarget set to the same value).", "enum": ["var", "module", "assign", "this", "window", "self", "global", "commonjs", "commonjs2", "commonjs-module", "commonjs-static", "amd", "amd-require", "umd", "umd2", "jsonp", "system", "promise", "import", "script", "node-commonjs"] }, "Filename": { "description": "Specifies the filename of output files on disk. You must **not** specify an absolute path here, but the path may contain folders separated by '/'! The specified path is joined with the value of the 'output.path' option to determine the location on disk.", "oneOf": [{ "$ref": "#/definitions/FilenameTemplate" }] }, "SourceMapFilename": { "description": "Specifies the filename of output files on disk. You must **not** specify an absolute path here, but the path may contain folders separated by '/'! The specified path is joined with the value of the 'output.path' option to determine the location on disk.", "oneOf": [{ "$ref": "#/definitions/FilenameTemplate" }] }, "FilenameTemplate": { "description": "Specifies the filename template of output files on disk. You must **not** specify an absolute path here, but the path may contain folders separated by '/'! The specified path is joined with the value of the 'output.path' option to determine the location on disk.", "anyOf": [{ "type": "string", "minLength": 1 }, { "instanceof": "Function" }] }, "FilterItemTypes": { "description": "Filtering value, regexp or function.", "anyOf": [{ "instanceof": "RegExp" }, { "type": "string" }, { "instanceof": "Function" }] }, "FilterTypes": { "description": "Filtering values.", "anyOf": [{ "type": "array", "items": { "description": "Rule to filter.", "oneOf": [{ "$ref": "#/definitions/FilterItemTypes" }] } }, { "$ref": "#/definitions/FilterItemTypes" }] }, "GlobalObject": { "description": "An expression which is used to address the global object/scope in runtime code.", "type": "string", "minLength": 1 }, "ImportFunctionName": { "description": "The name of the native import() function (can be exchanged for a polyfill).", "type": "string" }, "InfrastructureLogging": { "description": "Options for infrastructure level logging.", "type": "object", "additionalProperties": false, "properties": { "appendOnly": { "description": "Only appends lines to the output. Avoids updating existing output e. g. for status messages. This option is only used when no custom console is provided.", "type": "boolean" }, "colors": { "description": "Enables/Disables colorful output. This option is only used when no custom console is provided.", "type": "boolean" }, "console": { "description": "Custom console used for logging." }, "debug": { "description": "Enable debug logging for specific loggers.", "anyOf": [{ "description": "Enable/Disable debug logging for all loggers.", "type": "boolean" }, { "$ref": "#/definitions/FilterTypes" }] }, "level": { "description": "Log level.", "enum": ["none", "error", "warn", "info", "log", "verbose"] }, "stream": { "description": "Stream used for logging output. Defaults to process.stderr. This option is only used when no custom console is provided." } } }, "Library": { "description": "Make the output files a library, exporting the exports of the entry point.", "anyOf": [{ "$ref": "#/definitions/LibraryName" }, { "$ref": "#/definitions/LibraryOptions" }] }, "LibraryCustomUmdCommentObject": { "description": "Set explicit comments for `commonjs`, `commonjs2`, `amd`, and `root`.", "type": "object", "additionalProperties": false, "properties": { "amd": { "description": "Set comment for `amd` section in UMD.", "type": "string" }, "commonjs": { "description": "Set comment for `commonjs` (exports) section in UMD.", "type": "string" }, "commonjs2": { "description": "Set comment for `commonjs2` (module.exports) section in UMD.", "type": "string" }, "root": { "description": "Set comment for `root` (global variable) section in UMD.", "type": "string" } } }, "LibraryCustomUmdObject": { "description": "Description object for all UMD variants of the library name.", "type": "object", "additionalProperties": false, "properties": { "amd": { "description": "Name of the exposed AMD library in the UMD.", "type": "string", "minLength": 1 }, "commonjs": { "description": "Name of the exposed commonjs export in the UMD.", "type": "string", "minLength": 1 }, "root": { "description": "Name of the property exposed globally by a UMD library.", "anyOf": [{ "type": "array", "items": { "description": "Part of the name of the property exposed globally by a UMD library.", "type": "string", "minLength": 1 } }, { "type": "string", "minLength": 1 }] } } }, "LibraryExport": { "description": "Specify which export should be exposed as library.", "anyOf": [{ "type": "array", "items": { "description": "Part of the export that should be exposed as library.", "type": "string", "minLength": 1 } }, { "type": "string", "minLength": 1 }] }, "LibraryName": { "description": "The name of the library (some types allow unnamed libraries too).", "anyOf": [{ "type": "array", "items": { "description": "A part of the library name.", "type": "string", "minLength": 1 }, "minItems": 1 }, { "type": "string", "minLength": 1 }, { "$ref": "#/definitions/LibraryCustomUmdObject" }] }, "LibraryOptions": { "description": "Options for library.", "type": "object", "additionalProperties": false, "properties": { "auxiliaryComment": { "$ref": "#/definitions/AuxiliaryComment" }, "export": { "$ref": "#/definitions/LibraryExport" }, "name": { "$ref": "#/definitions/LibraryName" }, "type": { "$ref": "#/definitions/LibraryType" }, "umdNamedDefine": { "$ref": "#/definitions/UmdNamedDefine" } }, "required": ["type"] }, "LibraryType": { "description": "Type of library (types included by default are 'var', 'module', 'assign', 'assign-properties', 'this', 'window', 'self', 'global', 'commonjs', 'commonjs2', 'commonjs-module', 'commonjs-static', 'amd', 'amd-require', 'umd', 'umd2', 'jsonp', 'system', but others might be added by plugins).", "anyOf": [{ "enum": ["var", "module", "assign", "assign-properties", "this", "window", "self", "global", "commonjs", "commonjs2", "commonjs-module", "commonjs-static", "amd", "amd-require", "umd", "umd2", "jsonp", "system"] }, { "type": "string" }] }, "Mode": { "description": "Enable production optimizations or development hints.", "enum": ["development", "production", "none"] }, "IgnoreWarnings": { "description": "ignore warnings based on pattern", "type": "array", "items": { "anyOf": [{ "instanceof": "RegExp" }, { "instanceof": "Function" }] } }, "ModuleOptions": { "description": "Options affecting the normal modules (`NormalModuleFactory`).", "type": "object", "additionalProperties": false, "properties": { "defaultRules": { "description": "An array of rules applied by default for modules.", "oneOf": [{ "$ref": "#/definitions/RuleSetRules" }] }, "parser": { "$ref": "#/definitions/ParserOptionsByModuleType" }, "rules": { "description": "An array of rules applied for modules.", "oneOf": [{ "$ref": "#/definitions/RuleSetRules" }] } } }, "Name": { "description": "Name of the configuration. Used when loading multiple configurations.", "type": "string" }, "Node": { "description": "Include polyfills or mocks for various node stuff.", "anyOf": [{ "enum": [false] }, { "$ref": "#/definitions/NodeOptions" }] }, "NodeOptions": { "description": "Options object for node compatibility features.", "type": "object", "additionalProperties": false, "properties": { "__dirname": { "description": "Include a polyfill for the '__dirname' variable.", "enum": [false, true, "warn-mock", "mock", "eval-only"] }, "__filename": { "description": "Include a polyfill for the '__filename' variable.", "enum": [false, true, "warn-mock", "mock", "eval-only"] }, "global": { "description": "Include a polyfill for the 'global' variable.", "enum": [false, true, "warn"] } } }, "Optimization": { "description": "Enables/Disables integrated optimizations.", "type": "object", "additionalProperties": false, "properties": { "chunkIds": { "description": "Define the algorithm to choose chunk ids (named: readable ids for better debugging, deterministic: numeric hash ids for better long term caching, size: numeric ids focused on minimal initial download size, total-size: numeric ids focused on minimal total download size, false: no algorithm used, as custom one can be provided via plugin).", "enum": ["named", "deterministic"] }, "minimize": { "description": "Enable minimizing the output. Uses optimization.minimizer.", "type": "boolean" }, "minimizer": { "description": "Minimizer(s) to use for minimizing the output.", "type": "array", "items": { "description": "Plugin of type object or instanceof Function.", "anyOf": [{ "enum": ["..."] }, { "$ref": "#/definitions/RspackPluginInstance" }, { "$ref": "#/definitions/RspackPluginFunction" }] } }, "moduleIds": { "description": "Define the algorithm to choose module ids (natural: numeric ids in order of usage, named: readable ids for better debugging, hashed: (deprecated) short hashes as ids for better long term caching, deterministic: numeric hash ids for better long term caching, size: numeric ids focused on minimal initial download size, false: no algorithm used, as custom one can be provided via plugin).", "enum": ["named", "deterministic"] }, "removeAvailableModules": { "description": "Removes modules from chunks when these modules are already included in all parents.", "type": "boolean" }, "removeEmptyChunks": { "description": "Remove chunks which are empty.", "type": "boolean" }, "runtimeChunk": { "$ref": "#/definitions/OptimizationRuntimeChunk" }, "sideEffects": { "description": "Skip over modules which contain no side effects when exports are not used (false: disabled, 'flag': only use manually placed side effects flag, true: also analyse source code for side effects).", "anyOf": [{ "enum": ["flag"] }, { "type": "boolean" }] }, "splitChunks": { "description": "Optimize duplication and caching by splitting chunks by shared modules and cache group.", "anyOf": [{ "enum": [false] }, { "$ref": "#/definitions/OptimizationSplitChunksOptions" }] }, "realContentHash": { "description": "Use real [contenthash] based on final content of the assets.", "type": "boolean" } } }, "OptimizationRuntimeChunk": { "description": "Create an additional chunk which contains only the rspack runtime and chunk hash maps.", "anyOf": [{ "enum": ["single", "multiple"] }, { "type": "boolean" }, { "type": "object", "additionalProperties": false, "properties": { "name": { "description": "The name or name factory for the runtime chunks.", "anyOf": [{ "type": "string" }, { "instanceof": "Function" }] } } }] }, "OptimizationSplitChunksCacheGroup": { "description": "Options object for describing behavior of a cache group selecting modules that should be cached together.", "type": "object", "additionalProperties": false, "properties": { "chunks": { "description": "Select chunks for determining cache group content (defaults to \"initial\", \"initial\" and \"all\" requires adding these chunks to the HTML).", "anyOf": [{ "enum": ["initial", "async", "all"] }, { "instanceof": "Function" }] }, "minChunks": { "description": "Minimum number of times a module has to be duplicated until it's considered for splitting.", "type": "number", "minimum": 1 }, "name": { "description": "Give chunks for this cache group a name (chunks with equal name are merged).", "anyOf": [{ "enum": [false] }, { "type": "string" }, { "instanceof": "Function" }] }, "priority": { "description": "Priority of this cache group.", "type": "number" }, "reuseExistingChunk": { "description": "Try to reuse existing chunk (with name) when it has matching modules.", "type": "boolean" }, "enforce": { "description": "ignore splitChunks.minSize, splitChunks.minChunks, splitChunks.maxAsyncRequests and splitChunks.maxInitialRequests options and always create chunks for this cache group.", "type": "boolean" }, "hidePathInfo": { "type": "boolean" }, "maxSize": { "type": "number" }, "test": { "description": "Assign modules to a cache group by module name.", "anyOf": [{ "instanceof": "RegExp" }] }, "minSize": { "description": "Minimal size for the created chunks.", "oneOf": [{ "$ref": "#/definitions/OptimizationSplitChunksSizes" }] } } }, "OptimizationSplitChunksOptions": { "description": "Options object for splitting chunks into smaller chunks.", "type": "object", "additionalProperties": false, "properties": { "fallbackCacheGroup": { "type": "object", "properties": { "maxSize": { "type": "number" }, "maxInitialSize": { "type": "number" }, "maxAsyncSize": { "type": "number" }, "minSize": { "type": "number" } } }, "hidePathInfo": { "type": "boolean" }, "name": { "description": "The name or name for chunks.", "anyOf": [{ "type": "string" }] }, "cacheGroups": { "description": "Assign modules to a cache group (modules from different cache groups are tried to keep in separate chunks, default categories: 'default', 'defaultVendors').", "type": "object", "additionalProperties": { "description": "Configuration for a cache group.", "anyOf": [{ "$ref": "#/definitions/OptimizationSplitChunksCacheGroup" }] } }, "chunks": { "description": "Select chunks for determining shared modules (defaults to \"async\", \"initial\" and \"all\" requires adding these chunks to the HTML).", "anyOf": [{ "enum": ["initial", "async", "all"] }] }, "enforceSizeThreshold": { "description": "Size threshold at which splitting is enforced and other restrictions (minRemainingSize, maxAsyncRequests, maxInitialRequests) are ignored.", "oneOf": [{ "$ref": "#/definitions/OptimizationSplitChunksSizes" }] }, "maxAsyncRequests": { "description": "Maximum number of requests which are accepted for on-demand loading.", "type": "number", "minimum": 1 }, "maxInitialRequests": { "description": "Maximum number of initial chunks which are accepted for an entry point.", "type": "number", "minimum": 1 }, "minChunks": { "description": "Minimum number of times a module has to be duplicated until it's considered for splitting.", "type": "number", "minimum": 1 }, "minRemainingSize": { "description": "Minimal size for the chunks the stay after moving the modules to a new chunk.", "oneOf": [{ "$ref": "#/definitions/OptimizationSplitChunksSizes" }] }, "minSize": { "description": "Minimal size for the created chunks.", "oneOf": [{ "$ref": "#/definitions/OptimizationSplitChunksSizes" }] }, "maxSize": { "type": "number" }, "maxInitialSize": { "type": "number" }, "maxAsyncSize": { "type": "number" }, "reuseExistingChunk": { "description": "If the current chunk contains modules already split out from the main bundle, it will be reused instead of a new one being generated. This can affect the resulting file name of the chunk.", "type": "boolean" } } }, "OptimizationSplitChunksSizes": { "description": "Size description for limits.", "anyOf": [{ "description": "Size of the javascript part of the chunk.", "type": "number", "minimum": 0 }] }, "Iife": { "description": "Wrap javascript code into IIFE's to avoid leaking into global scope.", "type": "boolean" }, "Clean": { "description": "Clears the output build directory", "type": "boolean" }, "Output": { "description": "Options affecting the output of the compilation. `output` options tell rspack how to write the compiled files to disk.", "type": "object", "additionalProperties": false, "properties": { "iife": { "$ref": "#/definitions/Iife" }, "clean": { "$ref": "#/definitions/Clean" }, "assetModuleFilename": { "$ref": "#/definitions/AssetModuleFilename" }, "auxiliaryComment": { "oneOf": [{ "$ref": "#/definitions/AuxiliaryComment" }] }, "chunkFormat": { "$ref": "#/definitions/ChunkFormat" }, "chunkLoading": { "$ref": "#/definitions/ChunkLoading" }, "enabledChunkLoadingTypes": { "$ref": "#/definitions/EnabledChunkLoadingTypes" }, "chunkFilename": { "$ref": "#/definitions/ChunkFilename" }, "crossOriginLoading": { "$ref": "#/definitions/CrossOriginLoading" }, "cssChunkFilename": { "$ref": "#/definitions/CssChunkFilename" }, "cssFilename": { "$ref": "#/definitions/CssFilename" }, "hotUpdateChunkFilename": { "$ref": "#/definitions/HotUpdateChunkFilename" }, "hotUpdateMainFilename": { "$ref": "#/definitions/HotUpdateMainFilename" }, "enabledWasmLoadingTypes": { "$ref": "#/definitions/EnabledWasmLoadingTypes" }, "wasmLoading": { "$ref": "#/definitions/WasmLoading" }, "webassemblyModuleFilename": { "$ref": "#/definitions/WebassemblyModuleFilename" }, "enabledLibraryTypes": { "$ref": "#/definitions/EnabledLibraryTypes" }, "filename": { "$ref": "#/definitions/Filename" }, "globalObject": { "$ref": "#/definitions/GlobalObject" }, "importFunctionName": { "$ref": "#/definitions/ImportFunctionName" }, "library": { "$ref": "#/definitions/Library" }, "libraryExport": { "oneOf": [{ "$ref": "#/definitions/LibraryExport" }] }, "libraryTarget": { "oneOf": [{ "$ref": "#/definitions/LibraryType" }] }, "module": { "$ref": "#/definitions/OutputModule" }, "path": { "$ref": "#/definitions/Path" }, "publicPath": { "$ref": "#/definitions/PublicPath" }, "strictModuleErrorHandling": { "$ref": "#/definitions/StrictModuleErrorHandling" }, "umdNamedDefine": { "oneOf": [{ "$ref": "#/definitions/UmdNamedDefine" }] }, "uniqueName": { "$ref": "#/definitions/UniqueName" }, "chunkLoadingGlobal": { "$ref": "#/definitions/ChunkLoadingGlobal" }, "trustedTypes": { "description": "Use a Trusted Types policy to create urls for chunks. 'output.uniqueName' is used a default policy name. Passing a string sets a custom policy name.", "anyOf": [{ "enum": [true] }, { "description": "The name of the Trusted Types policy created by webpack to serve bundle chunks.", "type": "string", "minLength": 1 }, { "$ref": "#/definitions/TrustedTypes" }] }, "sourceMapFilename": { "$ref": "#/definitions/SourceMapFilename" }, "hashDigest": { "$ref": "#/definitions/HashDigest" }, "hashDigestLength": { "$ref": "#/definitions/HashDigestLength" }, "hashFunction": { "$ref": "#/definitions/HashFunction" }, "hashSalt": { "$ref": "#/definitions/HashSalt" } } }, "OutputModule": { "description": "Output javascript files as module source type.", "type": "boolean" }, "ParserOptionsByModuleType": { "description": "Specify options for each parser.", "type": "object", "additionalProperties": { "description": "Options for parsing.", "type": "object", "additionalProperties": true }, "properties": { "asset": { "$ref": "#/definitions/AssetParserOptions" } } }, "Path": { "description": "The output directory as **absolute path** (required).", "type": "string" }, "Plugins": { "description": "Add additional plugins to the compiler.", "type": "array", "items": { "description": "Plugin of type object or instanceof Function.", "anyOf": [{ "$ref": "#/definitions/RspackPluginInstance" }, { "$ref": "#/definitions/RspackPluginFunction" }] } }, "PublicPath": { "description": "The 'publicPath' specifies the public URL address of the output files when referenced in a browser.", "anyOf": [{ "enum": ["auto"] }, { "$ref": "#/definitions/RawPublicPath" }] }, "RawPublicPath": { "description": "The 'publicPath' specifies the public URL address of the output files when referenced in a browser.", "anyOf": [{ "type": "string" }] }, "Resolve": { "description": "Options for the resolver.", "oneOf": [{ "$ref": "#/definitions/ResolveOptions" }] }, "ResolveAlias": { "description": "Redirect module requests.", "anyOf": [{ "type": "object", "additionalProperties": { "description": "New request.", "anyOf": [{ "description": "Multiple alternative requests.", "type": "array", "items": { "description": "One choice of request.", "type": "string", "minLength": 1 } }, { "description": "Ignore request (replace with empty module).", "enum": [false] }, { "description": "New request.", "type": "string", "minLength": 1 }] } }] }, "ResolveOptions": { "description": "Options object for resolving requests.", "type": "object", "additionalProperties": false, "properties": { "alias": { "$ref": "#/definitions/ResolveAlias" }, "browserField": { "description": "Fields in the description file (usually package.json) which are used to redirect requests inside the module.", "type": "boolean" }, "conditionNames": { "description": "Condition names for exports field entry point.", "type": "array", "items": { "description": "Condition names for exports field entry point.", "type": "string" } }, "extensionAlias": { "description": "An object which maps extension to extension aliases.", "type": "object", "additionalProperties": { "description": "Extension alias.", "anyOf": [{ "description": "Multiple extensions.", "type": "array", "items": { "description": "Aliased extension.", "type": "string", "minLength": 1 } }, { "description": "Aliased extension.", "type": "string", "minLength": 1 }] } }, "extensions": { "description": "Extensions added to the request when trying to find the file.", "type": "array", "items": { "description": "Extension added to the request when trying to find the file.", "type": "string" } }, "fallback": { "description": "Redirect module requests when normal resolving fails.", "oneOf": [{ "$ref": "#/definitions/ResolveAlias" }] }, "fullySpecified": { "description": "Treats the request specified by the user as fully specified, meaning no extensions are added and the mainFiles in directories are not resolved (This doesn't affect requests from mainFields, aliasFields or aliases).", "type": "boolean" }, "mainFields": { "description": "Field names from the description file (package.json) which are used to find the default entry point.", "type": "array", "items": { "description": "Field name from the description file (package.json) which are used to find the default entry point.", "anyOf": [{ "type": "array", "items": { "description": "Part of the field path from the description file (package.json) which are used to find the default entry point.", "type": "string", "minLength": 1 } }, { "type": "string", "minLength": 1 }] } }, "mainFiles": { "description": "Filenames used to find the default entry point if there is no description file or main field.", "type": "array", "items": { "description": "Filename used to find the default entry point if there is no description file or main field.", "type": "string", "minLength": 1 } }, "modules": { "description": "Folder names or directory paths where to find modules.", "type": "array", "items": { "description": "Folder name or directory path where to find modules.", "type": "string", "minLength": 1 } }, "preferRelative": { "description": "Prefer to resolve module requests as relative request and fallback to resolving as module.", "type": "boolean" }, "byDependency": { "description": "Extra resolve options per dependency category. Typical categories are \"commonjs\", \"amd\", \"esm\".", "type": "object", "additionalProperties": { "description": "Options object for resolving requests.", "oneOf": [{ "$ref": "#/definitions/ResolveOptions" }] } }, "tsConfigPath": { "description": "Path to tsconfig.json", "type": "string" }, "exportsFields": { "description": "Fields in the description file (usually package.json) which are used to redirect requests inside the module.", "type": "array", "items": { "description": "Field name from the description file (package.json) which are used to find the default entry point.", "type": "string" } } } }, "RuleSetCondition": { "description": "A condition matcher.", "anyOf": [{ "instanceof": "RegExp" }, { "type": "string" }, { "instanceof": "Function" }, { "$ref": "#/definitions/RuleSetLogicalConditions" }, { "$ref": "#/definitions/RuleSetConditions" }] }, "RuleSetConditionOrConditions": { "description": "One or multiple rule conditions.", "anyOf": [{ "$ref": "#/definitions/RuleSetCondition" }, { "$ref": "#/definitions/RuleSetConditions" }] }, "RuleSetConditions": { "description": "A list of rule conditions.", "type": "array", "items": { "description": "A rule condition.", "oneOf": [{ "$ref": "#/definitions/RuleSetCondition" }] } }, "RuleSetLoader": { "description": "A loader request.", "type": "string", "minLength": 1 }, "RuleSetLoaderOptions": { "description": "Options passed to a loader.", "anyOf": [{ "type": "string" }, { "type": "object" }] }, "RuleSetLogicalConditions": { "description": "Logic operators used in a condition matcher.", "type": "object", "additionalProperties": false, "properties": { "and": { "description": "Logical AND.", "oneOf": [{ "$ref": "#/definitions/RuleSetConditions" }] }, "not": { "description": "Logical NOT.", "oneOf": [{ "$ref": "#/definitions/RuleSetCondition" }] }, "or": { "description": "Logical OR.", "oneOf": [{ "$ref": "#/definitions/RuleSetConditions" }] } } }, "RuleSetRule": { "description": "A rule description with conditions and effects for modules.", "type": "object", "additionalProperties": false, "properties": { "enforce": { "description": "Enforce this rule as pre or post step.", "enum": ["pre", "post"] }, "exclude": { "description": "Shortcut for resource.exclude.", "oneOf": [{ "$ref": "#/definitions/RuleSetConditionOrConditions" }] }, "generator": { "description": "The options for the module generator.", "type": "object" }, "include": { "description": "Shortcut for resource.include.", "oneOf": [{ "$ref": "#/definitions/RuleSetConditionOrConditions" }] }, "issuer": { "description": "Match the issuer of the module (The module pointing to this module).", "oneOf": [{ "$ref": "#/definitions/RuleSetConditionOrConditions" }] }, "dependency": { "description": "Match dependency type.", "oneOf": [{ "$ref": "#/definitions/RuleSetConditionOrConditions" }] }, "descriptionData": { "description": "Match values of properties in the description file (usually package.json).", "type": "object", "additionalProperties": { "$ref": "#/definitions/RuleSetConditionOrConditions" } }, "oneOf": { "description": "Only execute the first matching rule in this array.", "type": "array", "items": { "description": "A rule.", "oneOf": [{ "$ref": "#/definitions/RuleSetRule" }] } }, "parser": { "description": "Options for parsing.", "type": "object", "additionalProperties": true }, "resolve": { "description": "Options for the resolver.", "type": "object", "oneOf": [{ "$ref": "#/definitions/ResolveOptions" }] }, "resource": { "description": "Match the resource path of the module.", "oneOf": [{ "$ref": "#/definitions/RuleSetConditionOrConditions" }] }, "resourceFragment": { "description": "Match the resource fragment of the module.", "oneOf": [{ "$ref": "#/definitions/RuleSetConditionOrConditions" }] }, "resourceQuery": { "description": "Match the resource query of the module.", "oneOf": [{ "$ref": "#/definitions/RuleSetConditionOrConditions" }] }, "mimetype": { "description": "Match module mimetype when load from Data URI.", "oneOf": [{ "$ref": "#/definitions/RuleSetConditionOrConditions" }] }, "loader": { "description": "Shortcut for use.loader.", "oneOf": [{ "$ref": "#/definitions/RuleSetLoader" }] }, "options": { "description": "Shortcut for use.options.", "oneOf": [{ "$ref": "#/definitions/RuleSetLoaderOptions" }] }, "scheme": { "description": "Match module scheme.", "oneOf": [{ "$ref": "#/definitions/RuleSetConditionOrConditions" }] }, "rules": { "description": "Match and execute these rules when this rule is matched.", "type": "array", "items": { "description": "A rule.", "oneOf": [{ "$ref": "#/definitions/RuleSetRule" }] } }, "sideEffects": { "description": "Flags a module as with or without side effects.", "type": "boolean" }, "test": { "description": "Shortcut for resource.test.", "oneOf": [{ "$ref": "#/definitions/RuleSetConditionOrConditions" }] }, "type": { "description": "Module type to use for the module.", "type": "string" }, "use": { "description": "Modifiers applied to the module when rule is matched.", "oneOf": [{ "$ref": "#/definitions/RuleSetUse" }] } } }, "RuleSetRules": { "description": "A list of rules.", "type": "array", "items": { "description": "A rule.", "anyOf": [{ "enum": ["..."] }, { "$ref": "#/definitions/RuleSetRule" }] } }, "RuleSetUse": { "description": "A list of descriptions of loaders applied.", "anyOf": [{ "type": "array", "items": { "description": "An use item.", "oneOf": [{ "$ref": "#/definitions/RuleSetUseItem" }] } }, { "$ref": "#/definitions/RuleSetUseItem" }] }, "RuleSetUseItem": { "description": "A description of an applied loader.", "anyOf": [{ "type": "object", "additionalProperties": false, "properties": { "loader": { "description": "Loader name.", "oneOf": [{ "$ref": "#/definitions/RuleSetLoader" }] }, "options": { "description": "Loader options.", "oneOf": [{ "$ref": "#/definitions/RuleSetLoaderOptions" }] } } }, { "$ref": "#/definitions/RuleSetLoader" }] }, "SnapshotOptions": { "description": "Options affecting how file system snapshots are created and validated.", "type": "object", "additionalProperties": false, "properties": { "module": { "description": "Options for snapshotting dependencies of modules to determine if they need to be built again.", "type": "object", "additionalProperties": false, "properties": { "hash": { "description": "Use hashes of the content of the files/directories to determine invalidation.", "type": "boolean" }, "timestamp": { "description": "Use timestamps of the files/directories to determine invalidation.", "type": "boolean" } } }, "resolve": { "description": "Options for snapshotting dependencies of request resolving to determine if requests need to be re-resolved.", "type": "object", "additionalProperties": false, "properties": { "hash": { "description": "Use hashes of the content of the files/directories to determine invalidation.", "type": "boolean" }, "timestamp": { "description": "Use timestamps of the files/directories to determine invalidation.", "type": "boolean" } } } } }, "StatsOptions": { "description": "Stats options object.", "type": "object", "additionalProperties": true, "properties": { "all": { "description": "Fallback value for stats options when an option is not defined (has precedence over local rspack defaults).", "type": "boolean" }, "assets": { "description": "Add assets information.", "type": "boolean" }, "chunkGroups": { "description": "Display all chunk groups with the corresponding bundles.", "type": "boolean" }, "chunks": { "description": "Add chunk information.", "type": "boolean" }, "colors": { "description": "Enables/Disables colorful output.", "type": "boolean" }, "entrypoints": { "description": "Display the entry points with the corresponding bundles.", "anyOf": [{ "enum": ["auto"] }, { "type": "boolean" }] }, "errors": { "description": "Add errors.", "type": "boolean" }, "errorsCount": { "description": "Add errors count.", "type": "boolean" }, "hash": { "description": "Add the hash of the compilation.", "type": "boolean" }, "modules": { "description": "Add built modules information.", "type": "boolean" }, "preset": { "description": "Preset for the default values.", "anyOf": [{ "type": "boolean" }, { "type": "string" }] }, "publicPath": { "description": "Add public path information.", "type": "boolean" }, "reasons": { "description": "Add information about the reasons why modules are included.", "type": "boolean" }, "warnings": { "description": "Add warnings.", "type": "boolean" }, "warningsCount": { "description": "Add warnings count.", "type": "boolean" }, "outputPath": { "description": "Add output path information.", "type": "boolean" }, "chunkModules": { "description": "Add built modules information to chunk information.", "type": "boolean" }, "chunkRelations": { "description": "Add information about parent, children and sibling chunks to chunk information.", "type": "boolean" }, "timings": { "description": "Add timing information.", "type": "boolean" }, "builtAt": { "description": "Add built at time information.", "type": "boolean" }, "nestedModules": { "description": "Add information about modules nested in other modules (like with module concatenation).", "type": "boolean" } } }, "StatsValue": { "description": "Stats options object or preset name.", "anyOf": [{ "enum": ["none", "errors-only", "errors-warnings", "normal", "verbose"] }, { "type": "boolean" }, { "$ref": "#/definitions/StatsOptions" }] }, "StrictModuleErrorHandling": { "description": "Handles error in module loading correctly at a performance cost. This will handle module error compatible with the EcmaScript Modules spec.", "type": "boolean" }, "Target": { "description": "Environment to build for. An array of environments to build for all of them when possible.", "anyOf": [{ "type": "array", "items": { "description": "Environment to build for.", "type": "string", "minLength": 1 }, "minItems": 1 }, { "enum": [false] }, { "type": "string", "minLength": 1 }] }, "TrustedTypes": { "description": "Use a Trusted Types policy to create urls for chunks.", "type": "object", "additionalProperties": false, "properties": { "policyName": { "description": "The name of the Trusted Types policy created by webpack to serve bundle chunks.", "type": "string", "minLength": 1 } } }, "UmdNamedDefine": { "description": "If `output.libraryTarget` is set to umd and `output.library` is set, setting this to true will name the AMD module.", "type": "boolean" }, "UniqueName": { "description": "A unique name of the rspack build to avoid multiple rspack runtimes to conflict when using globals.", "type": "string", "minLength": 1 }, "ChunkLoadingGlobal": { "description": "The global variable used by rspack for loading of chunks.", "type": "string", "minLength": 1 }, "Watch": { "description": "Enter watch mode, which rebuilds on file change.", "type": "boolean" }, "WatchOptions": { "description": "Options for the watcher.", "type": "object", "additionalProperties": false, "properties": { "aggregateTimeout": { "description": "Delay the rebuilt after the first change. Value is a time in ms.", "type": "number" }, "followSymlinks": { "description": "Resolve symlinks and watch symlink and real file. This is usually not needed as rspack already resolves symlinks ('resolve.symlinks').", "type": "boolean" }, "ignored": { "description": "Ignore some files from watching (glob pattern or regexp).", "anyOf": [{ "type": "array", "items": { "description": "A glob pattern for files that should be ignored from watching.", "type": "string", "minLength": 1 } }, { "instanceof": "RegExp" }, { "description": "A single glob pattern for files that should be ignored from watching.", "type": "string", "minLength": 1 }] }, "poll": { "description": "Enable polling mode for watching.", "anyOf": [{ "description": "`number`: use polling with specified interval.", "type": "number" }, { "description": "`true`: use polling.", "type": "boolean" }] }, "stdin": { "description": "Stop watching when stdin stream has ended.", "type": "boolean" } } }, "RspackPluginFunction": { "description": "Function acting as plugin.", "instanceof": "Function" }, "RspackPluginInstance": { "description": "Plugin instance.", "type": "object", "additionalProperties": true, "properties": { "apply": { "description": "The run point of the plugin, required method.", "instanceof": "Function" } }, "required": ["apply"] } }, "title": "RspackOptions", "description": "Options object as provided by the user.", "type": "object", "additionalProperties": false, "properties": { "cache": { "$ref": "#/definitions/CacheOptions" }, "context": { "$ref": "#/definitions/Context" }, "dependencies": { "$ref": "#/definitions/Dependencies" }, "devServer": { "$ref": "#/definitions/DevServer" }, "devtool": { "$ref": "#/definitions/DevTool" }, "entry": { "$ref": "#/definitions/Entry" }, "experiments": { "$ref": "#/definitions/Experiments" }, "externals": { "$ref": "#/definitions/Externals" }, "externalsType": { "$ref": "#/definitions/ExternalsType" }, "externalsPresets": { "$ref": "#/definitions/ExternalsPresets" }, "infrastructureLogging": { "$ref": "#/definitions/InfrastructureLogging" }, "mode": { "$ref": "#/definitions/Mode" }, "module": { "$ref": "#/definitions/ModuleOptions" }, "name": { "$ref": "#/definitions/Name" }, "node": { "$ref": "#/definitions/Node" }, "optimization": { "$ref": "#/definitions/Optimization" }, "output": { "$ref": "#/definitions/Output" }, "plugins": { "$ref": "#/definitions/Plugins" }, "resolve": { "$ref": "#/definitions/Resolve" }, "snapshot": { "$ref": "#/definitions/SnapshotOptions" }, "stats": { "$ref": "#/definitions/StatsValue" }, "target": { "$ref": "#/definitions/Target" }, "watch": { "$ref": "#/definitions/Watch" }, "watchOptions": { "$ref": "#/definitions/WatchOptions" }, "builtins": { "description": "Builtins features in rspack", "type": "object", "additionalProperties": true }, "ignoreWarnings": { "$ref": "#/definitions/IgnoreWarnings" } } };
|
|
6
6
|
const schema12 = { "description": "Cache generated modules and chunks to improve performance for multiple incremental builds.", "type": "boolean" };
|
|
7
7
|
const schema13 = { "description": "The base directory (absolute path!) for resolving the `entry` option. If `output.pathinfo` is set, the included pathinfo is shortened to this directory.", "type": "string" };
|
|
8
8
|
const schema14 = { "description": "References to other configurations to depend on.", "type": "array", "items": { "description": "References to another configuration to depend on.", "type": "string" } };
|
|
@@ -10,14 +10,14 @@ const schema15 = { "description": "Options for the rspack-dev-server.", "type":
|
|
|
10
10
|
const schema16 = { "description": "A developer tool to enhance debugging (false | eval | [inline-|hidden-|eval-][nosources-][cheap-[module-]]source-map).", "anyOf": [{ "enum": [false] }, { "type": "string", "pattern": "^(inline-|hidden-|eval-)?(nosources-)?(cheap-(module-)?)?source-map$" }] };
|
|
11
11
|
const schema28 = { "description": "Enables/Disables experiments (experimental features with relax SemVer compatibility).", "type": "object", "additionalProperties": false, "properties": { "asyncWebAssembly": { "description": "Support WebAssembly as asynchronous EcmaScript Module.", "type": "boolean" }, "incrementalRebuild": { "description": "Rebuild incrementally", "type": "boolean" }, "lazyCompilation": { "description": "Compile entrypoints and import()s only when they are accessed.", "anyOf": [{ "type": "boolean" }] }, "outputModule": { "description": "Allow output javascript files as module source type.", "type": "boolean" }, "newSplitChunks": { "description": "Enable new SplitChunksPlugin", "type": "boolean" }, "css": { "description": "Enable native css support.", "type": "boolean" } } };
|
|
12
12
|
const schema32 = { "description": "Specifies the default type of externals ('amd*', 'umd*', 'system' and 'jsonp' depend on output.libraryTarget set to the same value).", "enum": ["var", "module", "assign", "this", "window", "self", "global", "commonjs", "commonjs2", "commonjs-module", "commonjs-static", "amd", "amd-require", "umd", "umd2", "jsonp", "system", "promise", "import", "script", "node-commonjs"] };
|
|
13
|
-
const schema33 = { "description": "Enable presets of externals for specific targets.", "type": "object", "additionalProperties": false, "properties": { "node": { "description": "Treat node.js built-in modules like fs, path or vm as external and load them via require() when used.", "type": "boolean" } } };
|
|
13
|
+
const schema33 = { "description": "Enable presets of externals for specific targets.", "type": "object", "additionalProperties": false, "properties": { "node": { "description": "Treat node.js built-in modules like fs, path or vm as external and load them via require() when used.", "type": "boolean" }, "web": { "description": "Treat references to 'http(s)://...' and 'std:...' as external and load them via import when used (Note that this changes execution order as externals are executed before any other code in the chunk).", "type": "boolean" }, "electron": { "description": "Treat common electron built-in modules in main and preload context like 'electron', 'ipc' or 'shell' as external and load them via require() when used.", "type": "boolean" }, "electronMain": { "description": "Treat electron built-in modules in the main context like 'app', 'ipc-main' or 'shell' as external and load them via require() when used.", "type": "boolean" }, "electronPreload": { "description": "Treat electron built-in modules in the preload context like 'web-frame', 'ipc-renderer' or 'shell' as external and load them via require() when used.", "type": "boolean" }, "electronRenderer": { "description": "Treat electron built-in modules in the renderer context like 'web-frame', 'ipc-renderer' or 'shell' as external and load them via require() when used.", "type": "boolean" } } };
|
|
14
14
|
const schema38 = { "description": "Enable production optimizations or development hints.", "enum": ["development", "production", "none"] };
|
|
15
|
-
const
|
|
16
|
-
const
|
|
17
|
-
const
|
|
18
|
-
const
|
|
19
|
-
const
|
|
20
|
-
const
|
|
15
|
+
const schema59 = { "description": "Name of the configuration. Used when loading multiple configurations.", "type": "string" };
|
|
16
|
+
const schema129 = { "description": "Options affecting how file system snapshots are created and validated.", "type": "object", "additionalProperties": false, "properties": { "module": { "description": "Options for snapshotting dependencies of modules to determine if they need to be built again.", "type": "object", "additionalProperties": false, "properties": { "hash": { "description": "Use hashes of the content of the files/directories to determine invalidation.", "type": "boolean" }, "timestamp": { "description": "Use timestamps of the files/directories to determine invalidation.", "type": "boolean" } } }, "resolve": { "description": "Options for snapshotting dependencies of request resolving to determine if requests need to be re-resolved.", "type": "object", "additionalProperties": false, "properties": { "hash": { "description": "Use hashes of the content of the files/directories to determine invalidation.", "type": "boolean" }, "timestamp": { "description": "Use timestamps of the files/directories to determine invalidation.", "type": "boolean" } } } } };
|
|
17
|
+
const schema132 = { "description": "Environment to build for. An array of environments to build for all of them when possible.", "anyOf": [{ "type": "array", "items": { "description": "Environment to build for.", "type": "string", "minLength": 1 }, "minItems": 1 }, { "enum": [false] }, { "type": "string", "minLength": 1 }] };
|
|
18
|
+
const schema133 = { "description": "Enter watch mode, which rebuilds on file change.", "type": "boolean" };
|
|
19
|
+
const schema134 = { "description": "Options for the watcher.", "type": "object", "additionalProperties": false, "properties": { "aggregateTimeout": { "description": "Delay the rebuilt after the first change. Value is a time in ms.", "type": "number" }, "followSymlinks": { "description": "Resolve symlinks and watch symlink and real file. This is usually not needed as rspack already resolves symlinks ('resolve.symlinks').", "type": "boolean" }, "ignored": { "description": "Ignore some files from watching (glob pattern or regexp).", "anyOf": [{ "type": "array", "items": { "description": "A glob pattern for files that should be ignored from watching.", "type": "string", "minLength": 1 } }, { "instanceof": "RegExp" }, { "description": "A single glob pattern for files that should be ignored from watching.", "type": "string", "minLength": 1 }] }, "poll": { "description": "Enable polling mode for watching.", "anyOf": [{ "description": "`number`: use polling with specified interval.", "type": "number" }, { "description": "`true`: use polling.", "type": "boolean" }] }, "stdin": { "description": "Stop watching when stdin stream has ended.", "type": "boolean" } } };
|
|
20
|
+
const schema135 = { "description": "ignore warnings based on pattern", "type": "array", "items": { "anyOf": [{ "instanceof": "RegExp" }, { "instanceof": "Function" }] } };
|
|
21
21
|
const func2 = Object.prototype.hasOwnProperty;
|
|
22
22
|
const pattern0 = new RegExp("^(inline-|hidden-|eval-)?(nosources-)?(cheap-(module-)?)?source-map$", "u");
|
|
23
23
|
const schema17 = { "description": "The entry point(s) of the compilation.", "anyOf": [{ "$ref": "#/definitions/EntryStatic" }] };
|
|
@@ -1377,7 +1377,9 @@ function validate28(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
1377
1377
|
} validate28.errors = vErrors; return errors === 0; }
|
|
1378
1378
|
const schema39 = { "description": "Options affecting the normal modules (`NormalModuleFactory`).", "type": "object", "additionalProperties": false, "properties": { "defaultRules": { "description": "An array of rules applied by default for modules.", "oneOf": [{ "$ref": "#/definitions/RuleSetRules" }] }, "parser": { "$ref": "#/definitions/ParserOptionsByModuleType" }, "rules": { "description": "An array of rules applied for modules.", "oneOf": [{ "$ref": "#/definitions/RuleSetRules" }] } } };
|
|
1379
1379
|
const schema40 = { "description": "A list of rules.", "type": "array", "items": { "description": "A rule.", "anyOf": [{ "enum": ["..."] }, { "$ref": "#/definitions/RuleSetRule" }] } };
|
|
1380
|
-
const schema41 = { "description": "A rule description with conditions and effects for modules.", "type": "object", "additionalProperties": false, "properties": { "enforce": { "description": "Enforce this rule as pre or post step.", "enum": ["pre", "post"] }, "exclude": { "description": "Shortcut for resource.exclude.", "oneOf": [{ "$ref": "#/definitions/RuleSetConditionOrConditions" }] }, "generator": { "description": "The options for the module generator.", "type": "object" }, "include": { "description": "Shortcut for resource.include.", "oneOf": [{ "$ref": "#/definitions/RuleSetConditionOrConditions" }] }, "issuer": { "description": "Match the issuer of the module (The module pointing to this module).", "oneOf": [{ "$ref": "#/definitions/RuleSetConditionOrConditions" }] }, "dependency": { "description": "Match dependency type.", "oneOf": [{ "$ref": "#/definitions/RuleSetConditionOrConditions" }] }, "descriptionData": { "description": "Match values of properties in the description file (usually package.json).", "type": "object", "additionalProperties": { "$ref": "#/definitions/RuleSetConditionOrConditions" } }, "oneOf": { "description": "Only execute the first matching rule in this array.", "type": "array", "items": { "description": "A rule.", "oneOf": [{ "$ref": "#/definitions/RuleSetRule" }] } }, "parser": { "description": "Options for parsing.", "type": "object", "additionalProperties": true }, "resolve": { "description": "Options for the resolver.", "type": "object", "oneOf": [{ "$ref": "#/definitions/ResolveOptions" }] }, "resource": { "description": "Match the resource path of the module.", "oneOf": [{ "$ref": "#/definitions/RuleSetConditionOrConditions" }] }, "resourceFragment": { "description": "Match the resource fragment of the module.", "oneOf": [{ "$ref": "#/definitions/RuleSetConditionOrConditions" }] }, "resourceQuery": { "description": "Match the resource query of the module.", "oneOf": [{ "$ref": "#/definitions/RuleSetConditionOrConditions" }] }, "mimetype": { "description": "Match module mimetype when load from Data URI.", "oneOf": [{ "$ref": "#/definitions/RuleSetConditionOrConditions" }] }, "scheme": { "description": "Match module scheme.", "oneOf": [{ "$ref": "#/definitions/RuleSetConditionOrConditions" }] }, "rules": { "description": "Match and execute these rules when this rule is matched.", "type": "array", "items": { "description": "A rule.", "oneOf": [{ "$ref": "#/definitions/RuleSetRule" }] } }, "sideEffects": { "description": "Flags a module as with or without side effects.", "type": "boolean" }, "test": { "description": "Shortcut for resource.test.", "oneOf": [{ "$ref": "#/definitions/RuleSetConditionOrConditions" }] }, "type": { "description": "Module type to use for the module.", "type": "string" }, "use": { "description": "Modifiers applied to the module when rule is matched.", "oneOf": [{ "$ref": "#/definitions/RuleSetUse" }] } } };
|
|
1380
|
+
const schema41 = { "description": "A rule description with conditions and effects for modules.", "type": "object", "additionalProperties": false, "properties": { "enforce": { "description": "Enforce this rule as pre or post step.", "enum": ["pre", "post"] }, "exclude": { "description": "Shortcut for resource.exclude.", "oneOf": [{ "$ref": "#/definitions/RuleSetConditionOrConditions" }] }, "generator": { "description": "The options for the module generator.", "type": "object" }, "include": { "description": "Shortcut for resource.include.", "oneOf": [{ "$ref": "#/definitions/RuleSetConditionOrConditions" }] }, "issuer": { "description": "Match the issuer of the module (The module pointing to this module).", "oneOf": [{ "$ref": "#/definitions/RuleSetConditionOrConditions" }] }, "dependency": { "description": "Match dependency type.", "oneOf": [{ "$ref": "#/definitions/RuleSetConditionOrConditions" }] }, "descriptionData": { "description": "Match values of properties in the description file (usually package.json).", "type": "object", "additionalProperties": { "$ref": "#/definitions/RuleSetConditionOrConditions" } }, "oneOf": { "description": "Only execute the first matching rule in this array.", "type": "array", "items": { "description": "A rule.", "oneOf": [{ "$ref": "#/definitions/RuleSetRule" }] } }, "parser": { "description": "Options for parsing.", "type": "object", "additionalProperties": true }, "resolve": { "description": "Options for the resolver.", "type": "object", "oneOf": [{ "$ref": "#/definitions/ResolveOptions" }] }, "resource": { "description": "Match the resource path of the module.", "oneOf": [{ "$ref": "#/definitions/RuleSetConditionOrConditions" }] }, "resourceFragment": { "description": "Match the resource fragment of the module.", "oneOf": [{ "$ref": "#/definitions/RuleSetConditionOrConditions" }] }, "resourceQuery": { "description": "Match the resource query of the module.", "oneOf": [{ "$ref": "#/definitions/RuleSetConditionOrConditions" }] }, "mimetype": { "description": "Match module mimetype when load from Data URI.", "oneOf": [{ "$ref": "#/definitions/RuleSetConditionOrConditions" }] }, "loader": { "description": "Shortcut for use.loader.", "oneOf": [{ "$ref": "#/definitions/RuleSetLoader" }] }, "options": { "description": "Shortcut for use.options.", "oneOf": [{ "$ref": "#/definitions/RuleSetLoaderOptions" }] }, "scheme": { "description": "Match module scheme.", "oneOf": [{ "$ref": "#/definitions/RuleSetConditionOrConditions" }] }, "rules": { "description": "Match and execute these rules when this rule is matched.", "type": "array", "items": { "description": "A rule.", "oneOf": [{ "$ref": "#/definitions/RuleSetRule" }] } }, "sideEffects": { "description": "Flags a module as with or without side effects.", "type": "boolean" }, "test": { "description": "Shortcut for resource.test.", "oneOf": [{ "$ref": "#/definitions/RuleSetConditionOrConditions" }] }, "type": { "description": "Module type to use for the module.", "type": "string" }, "use": { "description": "Modifiers applied to the module when rule is matched.", "oneOf": [{ "$ref": "#/definitions/RuleSetUse" }] } } };
|
|
1381
|
+
const schema49 = { "description": "A loader request.", "type": "string", "minLength": 1 };
|
|
1382
|
+
const schema50 = { "description": "Options passed to a loader.", "anyOf": [{ "type": "string" }, { "type": "object" }] };
|
|
1381
1383
|
const schema42 = { "description": "One or multiple rule conditions.", "anyOf": [{ "$ref": "#/definitions/RuleSetCondition" }, { "$ref": "#/definitions/RuleSetConditions" }] };
|
|
1382
1384
|
const schema43 = { "description": "A condition matcher.", "anyOf": [{ "instanceof": "RegExp" }, { "type": "string" }, { "instanceof": "Function" }, { "$ref": "#/definitions/RuleSetLogicalConditions" }, { "$ref": "#/definitions/RuleSetConditions" }] };
|
|
1383
1385
|
const schema44 = { "description": "Logic operators used in a condition matcher.", "type": "object", "additionalProperties": false, "properties": { "and": { "description": "Logical AND.", "oneOf": [{ "$ref": "#/definitions/RuleSetConditions" }] }, "not": { "description": "Logical NOT.", "oneOf": [{ "$ref": "#/definitions/RuleSetCondition" }] }, "or": { "description": "Logical OR.", "oneOf": [{ "$ref": "#/definitions/RuleSetConditions" }] } } };
|
|
@@ -1700,7 +1702,7 @@ else {
|
|
|
1700
1702
|
}
|
|
1701
1703
|
}
|
|
1702
1704
|
} validate35.errors = vErrors; return errors === 0; }
|
|
1703
|
-
const schema46 = { "description": "Options object for resolving requests.", "type": "object", "additionalProperties": false, "properties": { "alias": { "$ref": "#/definitions/ResolveAlias" }, "browserField": { "description": "Fields in the description file (usually package.json) which are used to redirect requests inside the module.", "type": "boolean" }, "conditionNames": { "description": "Condition names for exports field entry point.", "type": "array", "items": { "description": "Condition names for exports field entry point.", "type": "string" } }, "extensions": { "description": "Extensions added to the request when trying to find the file.", "type": "array", "items": { "description": "Extension added to the request when trying to find the file.", "type": "string" } }, "fallback": { "description": "Redirect module requests when normal resolving fails.", "oneOf": [{ "$ref": "#/definitions/ResolveAlias" }] }, "fullySpecified": { "description": "Treats the request specified by the user as fully specified, meaning no extensions are added and the mainFiles in directories are not resolved (This doesn't affect requests from mainFields, aliasFields or aliases).", "type": "boolean" }, "mainFields": { "description": "Field names from the description file (package.json) which are used to find the default entry point.", "type": "array", "items": { "description": "Field name from the description file (package.json) which are used to find the default entry point.", "anyOf": [{ "type": "array", "items": { "description": "Part of the field path from the description file (package.json) which are used to find the default entry point.", "type": "string", "minLength": 1 } }, { "type": "string", "minLength": 1 }] } }, "mainFiles": { "description": "Filenames used to find the default entry point if there is no description file or main field.", "type": "array", "items": { "description": "Filename used to find the default entry point if there is no description file or main field.", "type": "string", "minLength": 1 } }, "modules": { "description": "Folder names or directory paths where to find modules.", "type": "array", "items": { "description": "Folder name or directory path where to find modules.", "type": "string", "minLength": 1 } }, "preferRelative": { "description": "Prefer to resolve module requests as relative request and fallback to resolving as module.", "type": "boolean" }, "byDependency": { "description": "Extra resolve options per dependency category. Typical categories are \"commonjs\", \"amd\", \"esm\".", "type": "object", "additionalProperties": { "description": "Options object for resolving requests.", "oneOf": [{ "$ref": "#/definitions/ResolveOptions" }] } }, "tsConfigPath": { "description": "Path to tsconfig.json", "type": "string" }, "exportsFields": { "description": "Fields in the description file (usually package.json) which are used to redirect requests inside the module.", "type": "array", "items": { "description": "Field name from the description file (package.json) which are used to find the default entry point.", "type": "string" } } } };
|
|
1705
|
+
const schema46 = { "description": "Options object for resolving requests.", "type": "object", "additionalProperties": false, "properties": { "alias": { "$ref": "#/definitions/ResolveAlias" }, "browserField": { "description": "Fields in the description file (usually package.json) which are used to redirect requests inside the module.", "type": "boolean" }, "conditionNames": { "description": "Condition names for exports field entry point.", "type": "array", "items": { "description": "Condition names for exports field entry point.", "type": "string" } }, "extensionAlias": { "description": "An object which maps extension to extension aliases.", "type": "object", "additionalProperties": { "description": "Extension alias.", "anyOf": [{ "description": "Multiple extensions.", "type": "array", "items": { "description": "Aliased extension.", "type": "string", "minLength": 1 } }, { "description": "Aliased extension.", "type": "string", "minLength": 1 }] } }, "extensions": { "description": "Extensions added to the request when trying to find the file.", "type": "array", "items": { "description": "Extension added to the request when trying to find the file.", "type": "string" } }, "fallback": { "description": "Redirect module requests when normal resolving fails.", "oneOf": [{ "$ref": "#/definitions/ResolveAlias" }] }, "fullySpecified": { "description": "Treats the request specified by the user as fully specified, meaning no extensions are added and the mainFiles in directories are not resolved (This doesn't affect requests from mainFields, aliasFields or aliases).", "type": "boolean" }, "mainFields": { "description": "Field names from the description file (package.json) which are used to find the default entry point.", "type": "array", "items": { "description": "Field name from the description file (package.json) which are used to find the default entry point.", "anyOf": [{ "type": "array", "items": { "description": "Part of the field path from the description file (package.json) which are used to find the default entry point.", "type": "string", "minLength": 1 } }, { "type": "string", "minLength": 1 }] } }, "mainFiles": { "description": "Filenames used to find the default entry point if there is no description file or main field.", "type": "array", "items": { "description": "Filename used to find the default entry point if there is no description file or main field.", "type": "string", "minLength": 1 } }, "modules": { "description": "Folder names or directory paths where to find modules.", "type": "array", "items": { "description": "Folder name or directory path where to find modules.", "type": "string", "minLength": 1 } }, "preferRelative": { "description": "Prefer to resolve module requests as relative request and fallback to resolving as module.", "type": "boolean" }, "byDependency": { "description": "Extra resolve options per dependency category. Typical categories are \"commonjs\", \"amd\", \"esm\".", "type": "object", "additionalProperties": { "description": "Options object for resolving requests.", "oneOf": [{ "$ref": "#/definitions/ResolveOptions" }] } }, "tsConfigPath": { "description": "Path to tsconfig.json", "type": "string" }, "exportsFields": { "description": "Fields in the description file (usually package.json) which are used to redirect requests inside the module.", "type": "array", "items": { "description": "Field name from the description file (package.json) which are used to find the default entry point.", "type": "string" } } } };
|
|
1704
1706
|
const schema47 = { "description": "Redirect module requests.", "anyOf": [{ "type": "object", "additionalProperties": { "description": "New request.", "anyOf": [{ "description": "Multiple alternative requests.", "type": "array", "items": { "description": "One choice of request.", "type": "string", "minLength": 1 } }, { "description": "Ignore request (replace with empty module).", "enum": [false] }, { "description": "New request.", "type": "string", "minLength": 1 }] } }] };
|
|
1705
1707
|
const wrapper3 = { validate: validate50 };
|
|
1706
1708
|
function validate50(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) { let vErrors = null; let errors = 0; if (errors === 0) {
|
|
@@ -1933,27 +1935,127 @@ function validate50(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
1933
1935
|
var valid0 = true;
|
|
1934
1936
|
}
|
|
1935
1937
|
if (valid0) {
|
|
1936
|
-
if (data.
|
|
1937
|
-
let data6 = data.
|
|
1938
|
+
if (data.extensionAlias !== undefined) {
|
|
1939
|
+
let data6 = data.extensionAlias;
|
|
1938
1940
|
const _errs23 = errors;
|
|
1939
1941
|
if (errors === _errs23) {
|
|
1940
|
-
if (Array.isArray(data6)) {
|
|
1941
|
-
|
|
1942
|
-
|
|
1943
|
-
|
|
1944
|
-
const
|
|
1945
|
-
|
|
1946
|
-
|
|
1942
|
+
if (data6 && typeof data6 == "object" && !Array.isArray(data6)) {
|
|
1943
|
+
for (const key2 in data6) {
|
|
1944
|
+
let data7 = data6[key2];
|
|
1945
|
+
const _errs26 = errors;
|
|
1946
|
+
const _errs27 = errors;
|
|
1947
|
+
let valid8 = false;
|
|
1948
|
+
const _errs28 = errors;
|
|
1949
|
+
if (errors === _errs28) {
|
|
1950
|
+
if (Array.isArray(data7)) {
|
|
1951
|
+
var valid9 = true;
|
|
1952
|
+
const len2 = data7.length;
|
|
1953
|
+
for (let i2 = 0; i2 < len2; i2++) {
|
|
1954
|
+
let data8 = data7[i2];
|
|
1955
|
+
const _errs30 = errors;
|
|
1956
|
+
if (errors === _errs30) {
|
|
1957
|
+
if (typeof data8 === "string") {
|
|
1958
|
+
if (data8.length < 1) {
|
|
1959
|
+
const err9 = { instancePath: instancePath + "/extensionAlias/" + key2.replace(/~/g, "~0").replace(/\//g, "~1") + "/" + i2, schemaPath: "#/properties/extensionAlias/additionalProperties/anyOf/0/items/minLength", keyword: "minLength", params: {}, message: "must pass \"minLength\" keyword validation" };
|
|
1960
|
+
if (vErrors === null) {
|
|
1961
|
+
vErrors = [err9];
|
|
1962
|
+
}
|
|
1963
|
+
else {
|
|
1964
|
+
vErrors.push(err9);
|
|
1965
|
+
}
|
|
1966
|
+
errors++;
|
|
1967
|
+
}
|
|
1968
|
+
}
|
|
1969
|
+
else {
|
|
1970
|
+
const err10 = { instancePath: instancePath + "/extensionAlias/" + key2.replace(/~/g, "~0").replace(/\//g, "~1") + "/" + i2, schemaPath: "#/properties/extensionAlias/additionalProperties/anyOf/0/items/type", keyword: "type", params: { type: "string" }, message: "must be string" };
|
|
1971
|
+
if (vErrors === null) {
|
|
1972
|
+
vErrors = [err10];
|
|
1973
|
+
}
|
|
1974
|
+
else {
|
|
1975
|
+
vErrors.push(err10);
|
|
1976
|
+
}
|
|
1977
|
+
errors++;
|
|
1978
|
+
}
|
|
1979
|
+
}
|
|
1980
|
+
var valid9 = _errs30 === errors;
|
|
1981
|
+
if (!valid9) {
|
|
1982
|
+
break;
|
|
1983
|
+
}
|
|
1984
|
+
}
|
|
1985
|
+
}
|
|
1986
|
+
else {
|
|
1987
|
+
const err11 = { instancePath: instancePath + "/extensionAlias/" + key2.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "#/properties/extensionAlias/additionalProperties/anyOf/0/type", keyword: "type", params: { type: "array" }, message: "must be array" };
|
|
1988
|
+
if (vErrors === null) {
|
|
1989
|
+
vErrors = [err11];
|
|
1990
|
+
}
|
|
1991
|
+
else {
|
|
1992
|
+
vErrors.push(err11);
|
|
1993
|
+
}
|
|
1994
|
+
errors++;
|
|
1995
|
+
}
|
|
1996
|
+
}
|
|
1997
|
+
var _valid2 = _errs28 === errors;
|
|
1998
|
+
valid8 = valid8 || _valid2;
|
|
1999
|
+
if (!valid8) {
|
|
2000
|
+
const _errs32 = errors;
|
|
2001
|
+
if (errors === _errs32) {
|
|
2002
|
+
if (typeof data7 === "string") {
|
|
2003
|
+
if (data7.length < 1) {
|
|
2004
|
+
const err12 = { instancePath: instancePath + "/extensionAlias/" + key2.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "#/properties/extensionAlias/additionalProperties/anyOf/1/minLength", keyword: "minLength", params: {}, message: "must pass \"minLength\" keyword validation" };
|
|
2005
|
+
if (vErrors === null) {
|
|
2006
|
+
vErrors = [err12];
|
|
2007
|
+
}
|
|
2008
|
+
else {
|
|
2009
|
+
vErrors.push(err12);
|
|
2010
|
+
}
|
|
2011
|
+
errors++;
|
|
2012
|
+
}
|
|
2013
|
+
}
|
|
2014
|
+
else {
|
|
2015
|
+
const err13 = { instancePath: instancePath + "/extensionAlias/" + key2.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "#/properties/extensionAlias/additionalProperties/anyOf/1/type", keyword: "type", params: { type: "string" }, message: "must be string" };
|
|
2016
|
+
if (vErrors === null) {
|
|
2017
|
+
vErrors = [err13];
|
|
2018
|
+
}
|
|
2019
|
+
else {
|
|
2020
|
+
vErrors.push(err13);
|
|
2021
|
+
}
|
|
2022
|
+
errors++;
|
|
2023
|
+
}
|
|
2024
|
+
}
|
|
2025
|
+
var _valid2 = _errs32 === errors;
|
|
2026
|
+
valid8 = valid8 || _valid2;
|
|
2027
|
+
}
|
|
2028
|
+
if (!valid8) {
|
|
2029
|
+
const err14 = { instancePath: instancePath + "/extensionAlias/" + key2.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "#/properties/extensionAlias/additionalProperties/anyOf", keyword: "anyOf", params: {}, message: "must match a schema in anyOf" };
|
|
2030
|
+
if (vErrors === null) {
|
|
2031
|
+
vErrors = [err14];
|
|
2032
|
+
}
|
|
2033
|
+
else {
|
|
2034
|
+
vErrors.push(err14);
|
|
2035
|
+
}
|
|
2036
|
+
errors++;
|
|
2037
|
+
validate50.errors = vErrors;
|
|
1947
2038
|
return false;
|
|
1948
2039
|
}
|
|
1949
|
-
|
|
2040
|
+
else {
|
|
2041
|
+
errors = _errs27;
|
|
2042
|
+
if (vErrors !== null) {
|
|
2043
|
+
if (_errs27) {
|
|
2044
|
+
vErrors.length = _errs27;
|
|
2045
|
+
}
|
|
2046
|
+
else {
|
|
2047
|
+
vErrors = null;
|
|
2048
|
+
}
|
|
2049
|
+
}
|
|
2050
|
+
}
|
|
2051
|
+
var valid7 = _errs26 === errors;
|
|
1950
2052
|
if (!valid7) {
|
|
1951
2053
|
break;
|
|
1952
2054
|
}
|
|
1953
2055
|
}
|
|
1954
2056
|
}
|
|
1955
2057
|
else {
|
|
1956
|
-
validate50.errors = [{ instancePath: instancePath + "/
|
|
2058
|
+
validate50.errors = [{ instancePath: instancePath + "/extensionAlias", schemaPath: "#/properties/extensionAlias/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
|
|
1957
2059
|
return false;
|
|
1958
2060
|
}
|
|
1959
2061
|
}
|
|
@@ -1963,547 +2065,578 @@ function validate50(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
1963
2065
|
var valid0 = true;
|
|
1964
2066
|
}
|
|
1965
2067
|
if (valid0) {
|
|
1966
|
-
if (data.
|
|
1967
|
-
let
|
|
1968
|
-
const
|
|
1969
|
-
|
|
1970
|
-
|
|
1971
|
-
|
|
1972
|
-
|
|
1973
|
-
|
|
1974
|
-
let valid10 = false;
|
|
1975
|
-
const _errs32 = errors;
|
|
1976
|
-
if (errors === _errs32) {
|
|
1977
|
-
if (data8 && typeof data8 == "object" && !Array.isArray(data8)) {
|
|
1978
|
-
for (const key2 in data8) {
|
|
1979
|
-
let data9 = data8[key2];
|
|
1980
|
-
const _errs35 = errors;
|
|
2068
|
+
if (data.extensions !== undefined) {
|
|
2069
|
+
let data9 = data.extensions;
|
|
2070
|
+
const _errs34 = errors;
|
|
2071
|
+
if (errors === _errs34) {
|
|
2072
|
+
if (Array.isArray(data9)) {
|
|
2073
|
+
var valid10 = true;
|
|
2074
|
+
const len3 = data9.length;
|
|
2075
|
+
for (let i3 = 0; i3 < len3; i3++) {
|
|
1981
2076
|
const _errs36 = errors;
|
|
1982
|
-
|
|
1983
|
-
|
|
1984
|
-
|
|
1985
|
-
|
|
1986
|
-
|
|
1987
|
-
|
|
1988
|
-
|
|
1989
|
-
|
|
1990
|
-
|
|
1991
|
-
|
|
1992
|
-
|
|
1993
|
-
|
|
1994
|
-
|
|
2077
|
+
if (typeof data9[i3] !== "string") {
|
|
2078
|
+
validate50.errors = [{ instancePath: instancePath + "/extensions/" + i3, schemaPath: "#/properties/extensions/items/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
|
|
2079
|
+
return false;
|
|
2080
|
+
}
|
|
2081
|
+
var valid10 = _errs36 === errors;
|
|
2082
|
+
if (!valid10) {
|
|
2083
|
+
break;
|
|
2084
|
+
}
|
|
2085
|
+
}
|
|
2086
|
+
}
|
|
2087
|
+
else {
|
|
2088
|
+
validate50.errors = [{ instancePath: instancePath + "/extensions", schemaPath: "#/properties/extensions/type", keyword: "type", params: { type: "array" }, message: "must be array" }];
|
|
2089
|
+
return false;
|
|
2090
|
+
}
|
|
2091
|
+
}
|
|
2092
|
+
var valid0 = _errs34 === errors;
|
|
2093
|
+
}
|
|
2094
|
+
else {
|
|
2095
|
+
var valid0 = true;
|
|
2096
|
+
}
|
|
2097
|
+
if (valid0) {
|
|
2098
|
+
if (data.fallback !== undefined) {
|
|
2099
|
+
let data11 = data.fallback;
|
|
2100
|
+
const _errs38 = errors;
|
|
2101
|
+
const _errs39 = errors;
|
|
2102
|
+
let valid11 = false;
|
|
2103
|
+
let passing0 = null;
|
|
2104
|
+
const _errs40 = errors;
|
|
2105
|
+
const _errs42 = errors;
|
|
2106
|
+
let valid13 = false;
|
|
2107
|
+
const _errs43 = errors;
|
|
2108
|
+
if (errors === _errs43) {
|
|
2109
|
+
if (data11 && typeof data11 == "object" && !Array.isArray(data11)) {
|
|
2110
|
+
for (const key3 in data11) {
|
|
2111
|
+
let data12 = data11[key3];
|
|
2112
|
+
const _errs46 = errors;
|
|
2113
|
+
const _errs47 = errors;
|
|
2114
|
+
let valid15 = false;
|
|
2115
|
+
const _errs48 = errors;
|
|
2116
|
+
if (errors === _errs48) {
|
|
2117
|
+
if (Array.isArray(data12)) {
|
|
2118
|
+
var valid16 = true;
|
|
2119
|
+
const len4 = data12.length;
|
|
2120
|
+
for (let i4 = 0; i4 < len4; i4++) {
|
|
2121
|
+
let data13 = data12[i4];
|
|
2122
|
+
const _errs50 = errors;
|
|
2123
|
+
if (errors === _errs50) {
|
|
2124
|
+
if (typeof data13 === "string") {
|
|
2125
|
+
if (data13.length < 1) {
|
|
2126
|
+
const err15 = { instancePath: instancePath + "/fallback/" + key3.replace(/~/g, "~0").replace(/\//g, "~1") + "/" + i4, schemaPath: "#/definitions/ResolveAlias/anyOf/0/additionalProperties/anyOf/0/items/minLength", keyword: "minLength", params: {}, message: "must pass \"minLength\" keyword validation" };
|
|
2127
|
+
if (vErrors === null) {
|
|
2128
|
+
vErrors = [err15];
|
|
2129
|
+
}
|
|
2130
|
+
else {
|
|
2131
|
+
vErrors.push(err15);
|
|
2132
|
+
}
|
|
2133
|
+
errors++;
|
|
2134
|
+
}
|
|
2135
|
+
}
|
|
2136
|
+
else {
|
|
2137
|
+
const err16 = { instancePath: instancePath + "/fallback/" + key3.replace(/~/g, "~0").replace(/\//g, "~1") + "/" + i4, schemaPath: "#/definitions/ResolveAlias/anyOf/0/additionalProperties/anyOf/0/items/type", keyword: "type", params: { type: "string" }, message: "must be string" };
|
|
1995
2138
|
if (vErrors === null) {
|
|
1996
|
-
vErrors = [
|
|
2139
|
+
vErrors = [err16];
|
|
1997
2140
|
}
|
|
1998
2141
|
else {
|
|
1999
|
-
vErrors.push(
|
|
2142
|
+
vErrors.push(err16);
|
|
2143
|
+
}
|
|
2144
|
+
errors++;
|
|
2145
|
+
}
|
|
2146
|
+
}
|
|
2147
|
+
var valid16 = _errs50 === errors;
|
|
2148
|
+
if (!valid16) {
|
|
2149
|
+
break;
|
|
2150
|
+
}
|
|
2151
|
+
}
|
|
2152
|
+
}
|
|
2153
|
+
else {
|
|
2154
|
+
const err17 = { instancePath: instancePath + "/fallback/" + key3.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "#/definitions/ResolveAlias/anyOf/0/additionalProperties/anyOf/0/type", keyword: "type", params: { type: "array" }, message: "must be array" };
|
|
2155
|
+
if (vErrors === null) {
|
|
2156
|
+
vErrors = [err17];
|
|
2157
|
+
}
|
|
2158
|
+
else {
|
|
2159
|
+
vErrors.push(err17);
|
|
2160
|
+
}
|
|
2161
|
+
errors++;
|
|
2162
|
+
}
|
|
2163
|
+
}
|
|
2164
|
+
var _valid5 = _errs48 === errors;
|
|
2165
|
+
valid15 = valid15 || _valid5;
|
|
2166
|
+
if (!valid15) {
|
|
2167
|
+
const _errs52 = errors;
|
|
2168
|
+
if (data12 !== false) {
|
|
2169
|
+
const err18 = { instancePath: instancePath + "/fallback/" + key3.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "#/definitions/ResolveAlias/anyOf/0/additionalProperties/anyOf/1/enum", keyword: "enum", params: {}, message: "must pass \"enum\" keyword validation" };
|
|
2170
|
+
if (vErrors === null) {
|
|
2171
|
+
vErrors = [err18];
|
|
2172
|
+
}
|
|
2173
|
+
else {
|
|
2174
|
+
vErrors.push(err18);
|
|
2175
|
+
}
|
|
2176
|
+
errors++;
|
|
2177
|
+
}
|
|
2178
|
+
var _valid5 = _errs52 === errors;
|
|
2179
|
+
valid15 = valid15 || _valid5;
|
|
2180
|
+
if (!valid15) {
|
|
2181
|
+
const _errs53 = errors;
|
|
2182
|
+
if (errors === _errs53) {
|
|
2183
|
+
if (typeof data12 === "string") {
|
|
2184
|
+
if (data12.length < 1) {
|
|
2185
|
+
const err19 = { instancePath: instancePath + "/fallback/" + key3.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "#/definitions/ResolveAlias/anyOf/0/additionalProperties/anyOf/2/minLength", keyword: "minLength", params: {}, message: "must pass \"minLength\" keyword validation" };
|
|
2186
|
+
if (vErrors === null) {
|
|
2187
|
+
vErrors = [err19];
|
|
2188
|
+
}
|
|
2189
|
+
else {
|
|
2190
|
+
vErrors.push(err19);
|
|
2000
2191
|
}
|
|
2001
2192
|
errors++;
|
|
2002
2193
|
}
|
|
2003
2194
|
}
|
|
2004
2195
|
else {
|
|
2005
|
-
const
|
|
2196
|
+
const err20 = { instancePath: instancePath + "/fallback/" + key3.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "#/definitions/ResolveAlias/anyOf/0/additionalProperties/anyOf/2/type", keyword: "type", params: { type: "string" }, message: "must be string" };
|
|
2006
2197
|
if (vErrors === null) {
|
|
2007
|
-
vErrors = [
|
|
2198
|
+
vErrors = [err20];
|
|
2008
2199
|
}
|
|
2009
2200
|
else {
|
|
2010
|
-
vErrors.push(
|
|
2201
|
+
vErrors.push(err20);
|
|
2011
2202
|
}
|
|
2012
2203
|
errors++;
|
|
2013
2204
|
}
|
|
2014
2205
|
}
|
|
2015
|
-
var
|
|
2016
|
-
|
|
2017
|
-
break;
|
|
2018
|
-
}
|
|
2019
|
-
}
|
|
2020
|
-
}
|
|
2021
|
-
else {
|
|
2022
|
-
const err11 = { instancePath: instancePath + "/fallback/" + key2.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "#/definitions/ResolveAlias/anyOf/0/additionalProperties/anyOf/0/type", keyword: "type", params: { type: "array" }, message: "must be array" };
|
|
2023
|
-
if (vErrors === null) {
|
|
2024
|
-
vErrors = [err11];
|
|
2025
|
-
}
|
|
2026
|
-
else {
|
|
2027
|
-
vErrors.push(err11);
|
|
2206
|
+
var _valid5 = _errs53 === errors;
|
|
2207
|
+
valid15 = valid15 || _valid5;
|
|
2028
2208
|
}
|
|
2029
|
-
errors++;
|
|
2030
2209
|
}
|
|
2031
|
-
|
|
2032
|
-
|
|
2033
|
-
valid12 = valid12 || _valid4;
|
|
2034
|
-
if (!valid12) {
|
|
2035
|
-
const _errs41 = errors;
|
|
2036
|
-
if (data9 !== false) {
|
|
2037
|
-
const err12 = { instancePath: instancePath + "/fallback/" + key2.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "#/definitions/ResolveAlias/anyOf/0/additionalProperties/anyOf/1/enum", keyword: "enum", params: {}, message: "must pass \"enum\" keyword validation" };
|
|
2210
|
+
if (!valid15) {
|
|
2211
|
+
const err21 = { instancePath: instancePath + "/fallback/" + key3.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "#/definitions/ResolveAlias/anyOf/0/additionalProperties/anyOf", keyword: "anyOf", params: {}, message: "must match a schema in anyOf" };
|
|
2038
2212
|
if (vErrors === null) {
|
|
2039
|
-
vErrors = [
|
|
2213
|
+
vErrors = [err21];
|
|
2040
2214
|
}
|
|
2041
2215
|
else {
|
|
2042
|
-
vErrors.push(
|
|
2216
|
+
vErrors.push(err21);
|
|
2043
2217
|
}
|
|
2044
2218
|
errors++;
|
|
2045
2219
|
}
|
|
2046
|
-
|
|
2047
|
-
|
|
2048
|
-
|
|
2049
|
-
|
|
2050
|
-
|
|
2051
|
-
if (typeof data9 === "string") {
|
|
2052
|
-
if (data9.length < 1) {
|
|
2053
|
-
const err13 = { instancePath: instancePath + "/fallback/" + key2.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "#/definitions/ResolveAlias/anyOf/0/additionalProperties/anyOf/2/minLength", keyword: "minLength", params: {}, message: "must pass \"minLength\" keyword validation" };
|
|
2054
|
-
if (vErrors === null) {
|
|
2055
|
-
vErrors = [err13];
|
|
2056
|
-
}
|
|
2057
|
-
else {
|
|
2058
|
-
vErrors.push(err13);
|
|
2059
|
-
}
|
|
2060
|
-
errors++;
|
|
2061
|
-
}
|
|
2220
|
+
else {
|
|
2221
|
+
errors = _errs47;
|
|
2222
|
+
if (vErrors !== null) {
|
|
2223
|
+
if (_errs47) {
|
|
2224
|
+
vErrors.length = _errs47;
|
|
2062
2225
|
}
|
|
2063
2226
|
else {
|
|
2064
|
-
|
|
2065
|
-
if (vErrors === null) {
|
|
2066
|
-
vErrors = [err14];
|
|
2067
|
-
}
|
|
2068
|
-
else {
|
|
2069
|
-
vErrors.push(err14);
|
|
2070
|
-
}
|
|
2071
|
-
errors++;
|
|
2227
|
+
vErrors = null;
|
|
2072
2228
|
}
|
|
2073
2229
|
}
|
|
2074
|
-
var _valid4 = _errs42 === errors;
|
|
2075
|
-
valid12 = valid12 || _valid4;
|
|
2076
|
-
}
|
|
2077
|
-
}
|
|
2078
|
-
if (!valid12) {
|
|
2079
|
-
const err15 = { instancePath: instancePath + "/fallback/" + key2.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "#/definitions/ResolveAlias/anyOf/0/additionalProperties/anyOf", keyword: "anyOf", params: {}, message: "must match a schema in anyOf" };
|
|
2080
|
-
if (vErrors === null) {
|
|
2081
|
-
vErrors = [err15];
|
|
2082
2230
|
}
|
|
2083
|
-
|
|
2084
|
-
|
|
2231
|
+
var valid14 = _errs46 === errors;
|
|
2232
|
+
if (!valid14) {
|
|
2233
|
+
break;
|
|
2085
2234
|
}
|
|
2086
|
-
errors++;
|
|
2087
2235
|
}
|
|
2088
|
-
|
|
2089
|
-
|
|
2090
|
-
|
|
2091
|
-
|
|
2092
|
-
|
|
2093
|
-
}
|
|
2094
|
-
else {
|
|
2095
|
-
vErrors = null;
|
|
2096
|
-
}
|
|
2097
|
-
}
|
|
2236
|
+
}
|
|
2237
|
+
else {
|
|
2238
|
+
const err22 = { instancePath: instancePath + "/fallback", schemaPath: "#/definitions/ResolveAlias/anyOf/0/type", keyword: "type", params: { type: "object" }, message: "must be object" };
|
|
2239
|
+
if (vErrors === null) {
|
|
2240
|
+
vErrors = [err22];
|
|
2098
2241
|
}
|
|
2099
|
-
|
|
2100
|
-
|
|
2101
|
-
break;
|
|
2242
|
+
else {
|
|
2243
|
+
vErrors.push(err22);
|
|
2102
2244
|
}
|
|
2245
|
+
errors++;
|
|
2103
2246
|
}
|
|
2104
2247
|
}
|
|
2105
|
-
|
|
2106
|
-
|
|
2248
|
+
var _valid4 = _errs43 === errors;
|
|
2249
|
+
valid13 = valid13 || _valid4;
|
|
2250
|
+
if (!valid13) {
|
|
2251
|
+
const err23 = { instancePath: instancePath + "/fallback", schemaPath: "#/definitions/ResolveAlias/anyOf", keyword: "anyOf", params: {}, message: "must match a schema in anyOf" };
|
|
2107
2252
|
if (vErrors === null) {
|
|
2108
|
-
vErrors = [
|
|
2253
|
+
vErrors = [err23];
|
|
2109
2254
|
}
|
|
2110
2255
|
else {
|
|
2111
|
-
vErrors.push(
|
|
2256
|
+
vErrors.push(err23);
|
|
2112
2257
|
}
|
|
2113
2258
|
errors++;
|
|
2114
2259
|
}
|
|
2115
|
-
}
|
|
2116
|
-
var _valid3 = _errs32 === errors;
|
|
2117
|
-
valid10 = valid10 || _valid3;
|
|
2118
|
-
if (!valid10) {
|
|
2119
|
-
const err17 = { instancePath: instancePath + "/fallback", schemaPath: "#/definitions/ResolveAlias/anyOf", keyword: "anyOf", params: {}, message: "must match a schema in anyOf" };
|
|
2120
|
-
if (vErrors === null) {
|
|
2121
|
-
vErrors = [err17];
|
|
2122
|
-
}
|
|
2123
2260
|
else {
|
|
2124
|
-
|
|
2125
|
-
|
|
2126
|
-
|
|
2127
|
-
|
|
2128
|
-
|
|
2129
|
-
|
|
2130
|
-
|
|
2131
|
-
|
|
2132
|
-
vErrors.length = _errs31;
|
|
2133
|
-
}
|
|
2134
|
-
else {
|
|
2135
|
-
vErrors = null;
|
|
2261
|
+
errors = _errs42;
|
|
2262
|
+
if (vErrors !== null) {
|
|
2263
|
+
if (_errs42) {
|
|
2264
|
+
vErrors.length = _errs42;
|
|
2265
|
+
}
|
|
2266
|
+
else {
|
|
2267
|
+
vErrors = null;
|
|
2268
|
+
}
|
|
2136
2269
|
}
|
|
2137
2270
|
}
|
|
2138
|
-
|
|
2139
|
-
|
|
2140
|
-
|
|
2141
|
-
|
|
2142
|
-
passing0 = 0;
|
|
2143
|
-
}
|
|
2144
|
-
if (!valid8) {
|
|
2145
|
-
const err18 = { instancePath: instancePath + "/fallback", schemaPath: "#/properties/fallback/oneOf", keyword: "oneOf", params: { passingSchemas: passing0 }, message: "must match exactly one schema in oneOf" };
|
|
2146
|
-
if (vErrors === null) {
|
|
2147
|
-
vErrors = [err18];
|
|
2148
|
-
}
|
|
2149
|
-
else {
|
|
2150
|
-
vErrors.push(err18);
|
|
2271
|
+
var _valid3 = _errs40 === errors;
|
|
2272
|
+
if (_valid3) {
|
|
2273
|
+
valid11 = true;
|
|
2274
|
+
passing0 = 0;
|
|
2151
2275
|
}
|
|
2152
|
-
|
|
2153
|
-
|
|
2154
|
-
|
|
2155
|
-
|
|
2156
|
-
else {
|
|
2157
|
-
errors = _errs28;
|
|
2158
|
-
if (vErrors !== null) {
|
|
2159
|
-
if (_errs28) {
|
|
2160
|
-
vErrors.length = _errs28;
|
|
2276
|
+
if (!valid11) {
|
|
2277
|
+
const err24 = { instancePath: instancePath + "/fallback", schemaPath: "#/properties/fallback/oneOf", keyword: "oneOf", params: { passingSchemas: passing0 }, message: "must match exactly one schema in oneOf" };
|
|
2278
|
+
if (vErrors === null) {
|
|
2279
|
+
vErrors = [err24];
|
|
2161
2280
|
}
|
|
2162
2281
|
else {
|
|
2163
|
-
vErrors
|
|
2282
|
+
vErrors.push(err24);
|
|
2164
2283
|
}
|
|
2165
|
-
|
|
2166
|
-
|
|
2167
|
-
var valid0 = _errs27 === errors;
|
|
2168
|
-
}
|
|
2169
|
-
else {
|
|
2170
|
-
var valid0 = true;
|
|
2171
|
-
}
|
|
2172
|
-
if (valid0) {
|
|
2173
|
-
if (data.fullySpecified !== undefined) {
|
|
2174
|
-
const _errs44 = errors;
|
|
2175
|
-
if (typeof data.fullySpecified !== "boolean") {
|
|
2176
|
-
validate50.errors = [{ instancePath: instancePath + "/fullySpecified", schemaPath: "#/properties/fullySpecified/type", keyword: "type", params: { type: "boolean" }, message: "must be boolean" }];
|
|
2284
|
+
errors++;
|
|
2285
|
+
validate50.errors = vErrors;
|
|
2177
2286
|
return false;
|
|
2178
2287
|
}
|
|
2179
|
-
|
|
2288
|
+
else {
|
|
2289
|
+
errors = _errs39;
|
|
2290
|
+
if (vErrors !== null) {
|
|
2291
|
+
if (_errs39) {
|
|
2292
|
+
vErrors.length = _errs39;
|
|
2293
|
+
}
|
|
2294
|
+
else {
|
|
2295
|
+
vErrors = null;
|
|
2296
|
+
}
|
|
2297
|
+
}
|
|
2298
|
+
}
|
|
2299
|
+
var valid0 = _errs38 === errors;
|
|
2180
2300
|
}
|
|
2181
2301
|
else {
|
|
2182
2302
|
var valid0 = true;
|
|
2183
2303
|
}
|
|
2184
2304
|
if (valid0) {
|
|
2185
|
-
if (data.
|
|
2186
|
-
|
|
2187
|
-
|
|
2188
|
-
|
|
2189
|
-
|
|
2190
|
-
|
|
2191
|
-
|
|
2192
|
-
|
|
2193
|
-
|
|
2194
|
-
|
|
2195
|
-
|
|
2196
|
-
|
|
2197
|
-
|
|
2198
|
-
|
|
2199
|
-
|
|
2200
|
-
|
|
2201
|
-
|
|
2202
|
-
|
|
2203
|
-
|
|
2204
|
-
|
|
2205
|
-
|
|
2206
|
-
|
|
2207
|
-
|
|
2208
|
-
|
|
2305
|
+
if (data.fullySpecified !== undefined) {
|
|
2306
|
+
const _errs55 = errors;
|
|
2307
|
+
if (typeof data.fullySpecified !== "boolean") {
|
|
2308
|
+
validate50.errors = [{ instancePath: instancePath + "/fullySpecified", schemaPath: "#/properties/fullySpecified/type", keyword: "type", params: { type: "boolean" }, message: "must be boolean" }];
|
|
2309
|
+
return false;
|
|
2310
|
+
}
|
|
2311
|
+
var valid0 = _errs55 === errors;
|
|
2312
|
+
}
|
|
2313
|
+
else {
|
|
2314
|
+
var valid0 = true;
|
|
2315
|
+
}
|
|
2316
|
+
if (valid0) {
|
|
2317
|
+
if (data.mainFields !== undefined) {
|
|
2318
|
+
let data15 = data.mainFields;
|
|
2319
|
+
const _errs57 = errors;
|
|
2320
|
+
if (errors === _errs57) {
|
|
2321
|
+
if (Array.isArray(data15)) {
|
|
2322
|
+
var valid17 = true;
|
|
2323
|
+
const len5 = data15.length;
|
|
2324
|
+
for (let i5 = 0; i5 < len5; i5++) {
|
|
2325
|
+
let data16 = data15[i5];
|
|
2326
|
+
const _errs59 = errors;
|
|
2327
|
+
const _errs60 = errors;
|
|
2328
|
+
let valid18 = false;
|
|
2329
|
+
const _errs61 = errors;
|
|
2330
|
+
if (errors === _errs61) {
|
|
2331
|
+
if (Array.isArray(data16)) {
|
|
2332
|
+
var valid19 = true;
|
|
2333
|
+
const len6 = data16.length;
|
|
2334
|
+
for (let i6 = 0; i6 < len6; i6++) {
|
|
2335
|
+
let data17 = data16[i6];
|
|
2336
|
+
const _errs63 = errors;
|
|
2337
|
+
if (errors === _errs63) {
|
|
2338
|
+
if (typeof data17 === "string") {
|
|
2339
|
+
if (data17.length < 1) {
|
|
2340
|
+
const err25 = { instancePath: instancePath + "/mainFields/" + i5 + "/" + i6, schemaPath: "#/properties/mainFields/items/anyOf/0/items/minLength", keyword: "minLength", params: {}, message: "must pass \"minLength\" keyword validation" };
|
|
2341
|
+
if (vErrors === null) {
|
|
2342
|
+
vErrors = [err25];
|
|
2343
|
+
}
|
|
2344
|
+
else {
|
|
2345
|
+
vErrors.push(err25);
|
|
2346
|
+
}
|
|
2347
|
+
errors++;
|
|
2348
|
+
}
|
|
2349
|
+
}
|
|
2350
|
+
else {
|
|
2351
|
+
const err26 = { instancePath: instancePath + "/mainFields/" + i5 + "/" + i6, schemaPath: "#/properties/mainFields/items/anyOf/0/items/type", keyword: "type", params: { type: "string" }, message: "must be string" };
|
|
2209
2352
|
if (vErrors === null) {
|
|
2210
|
-
vErrors = [
|
|
2353
|
+
vErrors = [err26];
|
|
2211
2354
|
}
|
|
2212
2355
|
else {
|
|
2213
|
-
vErrors.push(
|
|
2356
|
+
vErrors.push(err26);
|
|
2214
2357
|
}
|
|
2215
2358
|
errors++;
|
|
2216
2359
|
}
|
|
2217
2360
|
}
|
|
2218
|
-
|
|
2219
|
-
|
|
2361
|
+
var valid19 = _errs63 === errors;
|
|
2362
|
+
if (!valid19) {
|
|
2363
|
+
break;
|
|
2364
|
+
}
|
|
2365
|
+
}
|
|
2366
|
+
}
|
|
2367
|
+
else {
|
|
2368
|
+
const err27 = { instancePath: instancePath + "/mainFields/" + i5, schemaPath: "#/properties/mainFields/items/anyOf/0/type", keyword: "type", params: { type: "array" }, message: "must be array" };
|
|
2369
|
+
if (vErrors === null) {
|
|
2370
|
+
vErrors = [err27];
|
|
2371
|
+
}
|
|
2372
|
+
else {
|
|
2373
|
+
vErrors.push(err27);
|
|
2374
|
+
}
|
|
2375
|
+
errors++;
|
|
2376
|
+
}
|
|
2377
|
+
}
|
|
2378
|
+
var _valid6 = _errs61 === errors;
|
|
2379
|
+
valid18 = valid18 || _valid6;
|
|
2380
|
+
if (!valid18) {
|
|
2381
|
+
const _errs65 = errors;
|
|
2382
|
+
if (errors === _errs65) {
|
|
2383
|
+
if (typeof data16 === "string") {
|
|
2384
|
+
if (data16.length < 1) {
|
|
2385
|
+
const err28 = { instancePath: instancePath + "/mainFields/" + i5, schemaPath: "#/properties/mainFields/items/anyOf/1/minLength", keyword: "minLength", params: {}, message: "must pass \"minLength\" keyword validation" };
|
|
2220
2386
|
if (vErrors === null) {
|
|
2221
|
-
vErrors = [
|
|
2387
|
+
vErrors = [err28];
|
|
2222
2388
|
}
|
|
2223
2389
|
else {
|
|
2224
|
-
vErrors.push(
|
|
2390
|
+
vErrors.push(err28);
|
|
2225
2391
|
}
|
|
2226
2392
|
errors++;
|
|
2227
2393
|
}
|
|
2228
2394
|
}
|
|
2229
|
-
|
|
2230
|
-
|
|
2231
|
-
break;
|
|
2232
|
-
}
|
|
2233
|
-
}
|
|
2234
|
-
}
|
|
2235
|
-
else {
|
|
2236
|
-
const err21 = { instancePath: instancePath + "/mainFields/" + i4, schemaPath: "#/properties/mainFields/items/anyOf/0/type", keyword: "type", params: { type: "array" }, message: "must be array" };
|
|
2237
|
-
if (vErrors === null) {
|
|
2238
|
-
vErrors = [err21];
|
|
2239
|
-
}
|
|
2240
|
-
else {
|
|
2241
|
-
vErrors.push(err21);
|
|
2242
|
-
}
|
|
2243
|
-
errors++;
|
|
2244
|
-
}
|
|
2245
|
-
}
|
|
2246
|
-
var _valid5 = _errs50 === errors;
|
|
2247
|
-
valid15 = valid15 || _valid5;
|
|
2248
|
-
if (!valid15) {
|
|
2249
|
-
const _errs54 = errors;
|
|
2250
|
-
if (errors === _errs54) {
|
|
2251
|
-
if (typeof data13 === "string") {
|
|
2252
|
-
if (data13.length < 1) {
|
|
2253
|
-
const err22 = { instancePath: instancePath + "/mainFields/" + i4, schemaPath: "#/properties/mainFields/items/anyOf/1/minLength", keyword: "minLength", params: {}, message: "must pass \"minLength\" keyword validation" };
|
|
2395
|
+
else {
|
|
2396
|
+
const err29 = { instancePath: instancePath + "/mainFields/" + i5, schemaPath: "#/properties/mainFields/items/anyOf/1/type", keyword: "type", params: { type: "string" }, message: "must be string" };
|
|
2254
2397
|
if (vErrors === null) {
|
|
2255
|
-
vErrors = [
|
|
2398
|
+
vErrors = [err29];
|
|
2256
2399
|
}
|
|
2257
2400
|
else {
|
|
2258
|
-
vErrors.push(
|
|
2401
|
+
vErrors.push(err29);
|
|
2259
2402
|
}
|
|
2260
2403
|
errors++;
|
|
2261
2404
|
}
|
|
2262
2405
|
}
|
|
2263
|
-
|
|
2264
|
-
|
|
2265
|
-
if (vErrors === null) {
|
|
2266
|
-
vErrors = [err23];
|
|
2267
|
-
}
|
|
2268
|
-
else {
|
|
2269
|
-
vErrors.push(err23);
|
|
2270
|
-
}
|
|
2271
|
-
errors++;
|
|
2272
|
-
}
|
|
2273
|
-
}
|
|
2274
|
-
var _valid5 = _errs54 === errors;
|
|
2275
|
-
valid15 = valid15 || _valid5;
|
|
2276
|
-
}
|
|
2277
|
-
if (!valid15) {
|
|
2278
|
-
const err24 = { instancePath: instancePath + "/mainFields/" + i4, schemaPath: "#/properties/mainFields/items/anyOf", keyword: "anyOf", params: {}, message: "must match a schema in anyOf" };
|
|
2279
|
-
if (vErrors === null) {
|
|
2280
|
-
vErrors = [err24];
|
|
2406
|
+
var _valid6 = _errs65 === errors;
|
|
2407
|
+
valid18 = valid18 || _valid6;
|
|
2281
2408
|
}
|
|
2282
|
-
|
|
2283
|
-
|
|
2284
|
-
|
|
2285
|
-
|
|
2286
|
-
validate50.errors = vErrors;
|
|
2287
|
-
return false;
|
|
2288
|
-
}
|
|
2289
|
-
else {
|
|
2290
|
-
errors = _errs49;
|
|
2291
|
-
if (vErrors !== null) {
|
|
2292
|
-
if (_errs49) {
|
|
2293
|
-
vErrors.length = _errs49;
|
|
2409
|
+
if (!valid18) {
|
|
2410
|
+
const err30 = { instancePath: instancePath + "/mainFields/" + i5, schemaPath: "#/properties/mainFields/items/anyOf", keyword: "anyOf", params: {}, message: "must match a schema in anyOf" };
|
|
2411
|
+
if (vErrors === null) {
|
|
2412
|
+
vErrors = [err30];
|
|
2294
2413
|
}
|
|
2295
2414
|
else {
|
|
2296
|
-
vErrors
|
|
2415
|
+
vErrors.push(err30);
|
|
2297
2416
|
}
|
|
2417
|
+
errors++;
|
|
2418
|
+
validate50.errors = vErrors;
|
|
2419
|
+
return false;
|
|
2298
2420
|
}
|
|
2299
|
-
|
|
2300
|
-
|
|
2301
|
-
|
|
2302
|
-
|
|
2303
|
-
|
|
2304
|
-
|
|
2305
|
-
|
|
2306
|
-
|
|
2307
|
-
validate50.errors = [{ instancePath: instancePath + "/mainFields", schemaPath: "#/properties/mainFields/type", keyword: "type", params: { type: "array" }, message: "must be array" }];
|
|
2308
|
-
return false;
|
|
2309
|
-
}
|
|
2310
|
-
}
|
|
2311
|
-
var valid0 = _errs46 === errors;
|
|
2312
|
-
}
|
|
2313
|
-
else {
|
|
2314
|
-
var valid0 = true;
|
|
2315
|
-
}
|
|
2316
|
-
if (valid0) {
|
|
2317
|
-
if (data.mainFiles !== undefined) {
|
|
2318
|
-
let data15 = data.mainFiles;
|
|
2319
|
-
const _errs56 = errors;
|
|
2320
|
-
if (errors === _errs56) {
|
|
2321
|
-
if (Array.isArray(data15)) {
|
|
2322
|
-
var valid17 = true;
|
|
2323
|
-
const len6 = data15.length;
|
|
2324
|
-
for (let i6 = 0; i6 < len6; i6++) {
|
|
2325
|
-
let data16 = data15[i6];
|
|
2326
|
-
const _errs58 = errors;
|
|
2327
|
-
if (errors === _errs58) {
|
|
2328
|
-
if (typeof data16 === "string") {
|
|
2329
|
-
if (data16.length < 1) {
|
|
2330
|
-
validate50.errors = [{ instancePath: instancePath + "/mainFiles/" + i6, schemaPath: "#/properties/mainFiles/items/minLength", keyword: "minLength", params: {}, message: "must pass \"minLength\" keyword validation" }];
|
|
2331
|
-
return false;
|
|
2421
|
+
else {
|
|
2422
|
+
errors = _errs60;
|
|
2423
|
+
if (vErrors !== null) {
|
|
2424
|
+
if (_errs60) {
|
|
2425
|
+
vErrors.length = _errs60;
|
|
2426
|
+
}
|
|
2427
|
+
else {
|
|
2428
|
+
vErrors = null;
|
|
2332
2429
|
}
|
|
2333
|
-
}
|
|
2334
|
-
else {
|
|
2335
|
-
validate50.errors = [{ instancePath: instancePath + "/mainFiles/" + i6, schemaPath: "#/properties/mainFiles/items/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
|
|
2336
|
-
return false;
|
|
2337
2430
|
}
|
|
2338
2431
|
}
|
|
2339
|
-
var valid17 =
|
|
2432
|
+
var valid17 = _errs59 === errors;
|
|
2340
2433
|
if (!valid17) {
|
|
2341
2434
|
break;
|
|
2342
2435
|
}
|
|
2343
2436
|
}
|
|
2344
2437
|
}
|
|
2345
2438
|
else {
|
|
2346
|
-
validate50.errors = [{ instancePath: instancePath + "/
|
|
2439
|
+
validate50.errors = [{ instancePath: instancePath + "/mainFields", schemaPath: "#/properties/mainFields/type", keyword: "type", params: { type: "array" }, message: "must be array" }];
|
|
2347
2440
|
return false;
|
|
2348
2441
|
}
|
|
2349
2442
|
}
|
|
2350
|
-
var valid0 =
|
|
2443
|
+
var valid0 = _errs57 === errors;
|
|
2351
2444
|
}
|
|
2352
2445
|
else {
|
|
2353
2446
|
var valid0 = true;
|
|
2354
2447
|
}
|
|
2355
2448
|
if (valid0) {
|
|
2356
|
-
if (data.
|
|
2357
|
-
let
|
|
2358
|
-
const
|
|
2359
|
-
if (errors ===
|
|
2360
|
-
if (Array.isArray(
|
|
2361
|
-
var
|
|
2362
|
-
const len7 =
|
|
2449
|
+
if (data.mainFiles !== undefined) {
|
|
2450
|
+
let data18 = data.mainFiles;
|
|
2451
|
+
const _errs67 = errors;
|
|
2452
|
+
if (errors === _errs67) {
|
|
2453
|
+
if (Array.isArray(data18)) {
|
|
2454
|
+
var valid20 = true;
|
|
2455
|
+
const len7 = data18.length;
|
|
2363
2456
|
for (let i7 = 0; i7 < len7; i7++) {
|
|
2364
|
-
let
|
|
2365
|
-
const
|
|
2366
|
-
if (errors ===
|
|
2367
|
-
if (typeof
|
|
2368
|
-
if (
|
|
2369
|
-
validate50.errors = [{ instancePath: instancePath + "/
|
|
2457
|
+
let data19 = data18[i7];
|
|
2458
|
+
const _errs69 = errors;
|
|
2459
|
+
if (errors === _errs69) {
|
|
2460
|
+
if (typeof data19 === "string") {
|
|
2461
|
+
if (data19.length < 1) {
|
|
2462
|
+
validate50.errors = [{ instancePath: instancePath + "/mainFiles/" + i7, schemaPath: "#/properties/mainFiles/items/minLength", keyword: "minLength", params: {}, message: "must pass \"minLength\" keyword validation" }];
|
|
2370
2463
|
return false;
|
|
2371
2464
|
}
|
|
2372
2465
|
}
|
|
2373
2466
|
else {
|
|
2374
|
-
validate50.errors = [{ instancePath: instancePath + "/
|
|
2467
|
+
validate50.errors = [{ instancePath: instancePath + "/mainFiles/" + i7, schemaPath: "#/properties/mainFiles/items/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
|
|
2375
2468
|
return false;
|
|
2376
2469
|
}
|
|
2377
2470
|
}
|
|
2378
|
-
var
|
|
2379
|
-
if (!
|
|
2471
|
+
var valid20 = _errs69 === errors;
|
|
2472
|
+
if (!valid20) {
|
|
2380
2473
|
break;
|
|
2381
2474
|
}
|
|
2382
2475
|
}
|
|
2383
2476
|
}
|
|
2384
2477
|
else {
|
|
2385
|
-
validate50.errors = [{ instancePath: instancePath + "/
|
|
2478
|
+
validate50.errors = [{ instancePath: instancePath + "/mainFiles", schemaPath: "#/properties/mainFiles/type", keyword: "type", params: { type: "array" }, message: "must be array" }];
|
|
2386
2479
|
return false;
|
|
2387
2480
|
}
|
|
2388
2481
|
}
|
|
2389
|
-
var valid0 =
|
|
2482
|
+
var valid0 = _errs67 === errors;
|
|
2390
2483
|
}
|
|
2391
2484
|
else {
|
|
2392
2485
|
var valid0 = true;
|
|
2393
2486
|
}
|
|
2394
2487
|
if (valid0) {
|
|
2395
|
-
if (data.
|
|
2396
|
-
|
|
2397
|
-
|
|
2398
|
-
|
|
2399
|
-
|
|
2488
|
+
if (data.modules !== undefined) {
|
|
2489
|
+
let data20 = data.modules;
|
|
2490
|
+
const _errs71 = errors;
|
|
2491
|
+
if (errors === _errs71) {
|
|
2492
|
+
if (Array.isArray(data20)) {
|
|
2493
|
+
var valid21 = true;
|
|
2494
|
+
const len8 = data20.length;
|
|
2495
|
+
for (let i8 = 0; i8 < len8; i8++) {
|
|
2496
|
+
let data21 = data20[i8];
|
|
2497
|
+
const _errs73 = errors;
|
|
2498
|
+
if (errors === _errs73) {
|
|
2499
|
+
if (typeof data21 === "string") {
|
|
2500
|
+
if (data21.length < 1) {
|
|
2501
|
+
validate50.errors = [{ instancePath: instancePath + "/modules/" + i8, schemaPath: "#/properties/modules/items/minLength", keyword: "minLength", params: {}, message: "must pass \"minLength\" keyword validation" }];
|
|
2502
|
+
return false;
|
|
2503
|
+
}
|
|
2504
|
+
}
|
|
2505
|
+
else {
|
|
2506
|
+
validate50.errors = [{ instancePath: instancePath + "/modules/" + i8, schemaPath: "#/properties/modules/items/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
|
|
2507
|
+
return false;
|
|
2508
|
+
}
|
|
2509
|
+
}
|
|
2510
|
+
var valid21 = _errs73 === errors;
|
|
2511
|
+
if (!valid21) {
|
|
2512
|
+
break;
|
|
2513
|
+
}
|
|
2514
|
+
}
|
|
2515
|
+
}
|
|
2516
|
+
else {
|
|
2517
|
+
validate50.errors = [{ instancePath: instancePath + "/modules", schemaPath: "#/properties/modules/type", keyword: "type", params: { type: "array" }, message: "must be array" }];
|
|
2518
|
+
return false;
|
|
2519
|
+
}
|
|
2400
2520
|
}
|
|
2401
|
-
var valid0 =
|
|
2521
|
+
var valid0 = _errs71 === errors;
|
|
2402
2522
|
}
|
|
2403
2523
|
else {
|
|
2404
2524
|
var valid0 = true;
|
|
2405
2525
|
}
|
|
2406
2526
|
if (valid0) {
|
|
2407
|
-
if (data.
|
|
2408
|
-
|
|
2409
|
-
|
|
2410
|
-
|
|
2411
|
-
|
|
2412
|
-
|
|
2413
|
-
|
|
2414
|
-
|
|
2415
|
-
|
|
2416
|
-
|
|
2417
|
-
|
|
2418
|
-
|
|
2419
|
-
|
|
2420
|
-
|
|
2421
|
-
|
|
2422
|
-
|
|
2423
|
-
|
|
2424
|
-
|
|
2425
|
-
|
|
2426
|
-
|
|
2427
|
-
|
|
2428
|
-
|
|
2429
|
-
|
|
2430
|
-
|
|
2527
|
+
if (data.preferRelative !== undefined) {
|
|
2528
|
+
const _errs75 = errors;
|
|
2529
|
+
if (typeof data.preferRelative !== "boolean") {
|
|
2530
|
+
validate50.errors = [{ instancePath: instancePath + "/preferRelative", schemaPath: "#/properties/preferRelative/type", keyword: "type", params: { type: "boolean" }, message: "must be boolean" }];
|
|
2531
|
+
return false;
|
|
2532
|
+
}
|
|
2533
|
+
var valid0 = _errs75 === errors;
|
|
2534
|
+
}
|
|
2535
|
+
else {
|
|
2536
|
+
var valid0 = true;
|
|
2537
|
+
}
|
|
2538
|
+
if (valid0) {
|
|
2539
|
+
if (data.byDependency !== undefined) {
|
|
2540
|
+
let data23 = data.byDependency;
|
|
2541
|
+
const _errs77 = errors;
|
|
2542
|
+
if (errors === _errs77) {
|
|
2543
|
+
if (data23 && typeof data23 == "object" && !Array.isArray(data23)) {
|
|
2544
|
+
for (const key4 in data23) {
|
|
2545
|
+
const _errs80 = errors;
|
|
2546
|
+
const _errs81 = errors;
|
|
2547
|
+
let valid23 = false;
|
|
2548
|
+
let passing1 = null;
|
|
2549
|
+
const _errs82 = errors;
|
|
2550
|
+
if (!(wrapper3.validate(data23[key4], { instancePath: instancePath + "/byDependency/" + key4.replace(/~/g, "~0").replace(/\//g, "~1"), parentData: data23, parentDataProperty: key4, rootData }))) {
|
|
2551
|
+
vErrors = vErrors === null ? wrapper3.validate.errors : vErrors.concat(wrapper3.validate.errors);
|
|
2552
|
+
errors = vErrors.length;
|
|
2431
2553
|
}
|
|
2432
|
-
|
|
2433
|
-
|
|
2554
|
+
var _valid7 = _errs82 === errors;
|
|
2555
|
+
if (_valid7) {
|
|
2556
|
+
valid23 = true;
|
|
2557
|
+
passing1 = 0;
|
|
2434
2558
|
}
|
|
2435
|
-
|
|
2436
|
-
|
|
2437
|
-
|
|
2438
|
-
|
|
2439
|
-
else {
|
|
2440
|
-
errors = _errs70;
|
|
2441
|
-
if (vErrors !== null) {
|
|
2442
|
-
if (_errs70) {
|
|
2443
|
-
vErrors.length = _errs70;
|
|
2559
|
+
if (!valid23) {
|
|
2560
|
+
const err31 = { instancePath: instancePath + "/byDependency/" + key4.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "#/properties/byDependency/additionalProperties/oneOf", keyword: "oneOf", params: { passingSchemas: passing1 }, message: "must match exactly one schema in oneOf" };
|
|
2561
|
+
if (vErrors === null) {
|
|
2562
|
+
vErrors = [err31];
|
|
2444
2563
|
}
|
|
2445
2564
|
else {
|
|
2446
|
-
vErrors
|
|
2565
|
+
vErrors.push(err31);
|
|
2447
2566
|
}
|
|
2567
|
+
errors++;
|
|
2568
|
+
validate50.errors = vErrors;
|
|
2569
|
+
return false;
|
|
2570
|
+
}
|
|
2571
|
+
else {
|
|
2572
|
+
errors = _errs81;
|
|
2573
|
+
if (vErrors !== null) {
|
|
2574
|
+
if (_errs81) {
|
|
2575
|
+
vErrors.length = _errs81;
|
|
2576
|
+
}
|
|
2577
|
+
else {
|
|
2578
|
+
vErrors = null;
|
|
2579
|
+
}
|
|
2580
|
+
}
|
|
2581
|
+
}
|
|
2582
|
+
var valid22 = _errs80 === errors;
|
|
2583
|
+
if (!valid22) {
|
|
2584
|
+
break;
|
|
2448
2585
|
}
|
|
2449
|
-
}
|
|
2450
|
-
var valid19 = _errs69 === errors;
|
|
2451
|
-
if (!valid19) {
|
|
2452
|
-
break;
|
|
2453
2586
|
}
|
|
2454
2587
|
}
|
|
2588
|
+
else {
|
|
2589
|
+
validate50.errors = [{ instancePath: instancePath + "/byDependency", schemaPath: "#/properties/byDependency/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
|
|
2590
|
+
return false;
|
|
2591
|
+
}
|
|
2455
2592
|
}
|
|
2456
|
-
|
|
2457
|
-
validate50.errors = [{ instancePath: instancePath + "/byDependency", schemaPath: "#/properties/byDependency/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
|
|
2458
|
-
return false;
|
|
2459
|
-
}
|
|
2460
|
-
}
|
|
2461
|
-
var valid0 = _errs66 === errors;
|
|
2462
|
-
}
|
|
2463
|
-
else {
|
|
2464
|
-
var valid0 = true;
|
|
2465
|
-
}
|
|
2466
|
-
if (valid0) {
|
|
2467
|
-
if (data.tsConfigPath !== undefined) {
|
|
2468
|
-
const _errs72 = errors;
|
|
2469
|
-
if (typeof data.tsConfigPath !== "string") {
|
|
2470
|
-
validate50.errors = [{ instancePath: instancePath + "/tsConfigPath", schemaPath: "#/properties/tsConfigPath/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
|
|
2471
|
-
return false;
|
|
2472
|
-
}
|
|
2473
|
-
var valid0 = _errs72 === errors;
|
|
2593
|
+
var valid0 = _errs77 === errors;
|
|
2474
2594
|
}
|
|
2475
2595
|
else {
|
|
2476
2596
|
var valid0 = true;
|
|
2477
2597
|
}
|
|
2478
2598
|
if (valid0) {
|
|
2479
|
-
if (data.
|
|
2480
|
-
|
|
2481
|
-
|
|
2482
|
-
|
|
2483
|
-
|
|
2484
|
-
|
|
2485
|
-
|
|
2486
|
-
|
|
2487
|
-
|
|
2488
|
-
|
|
2489
|
-
|
|
2490
|
-
|
|
2491
|
-
|
|
2492
|
-
|
|
2493
|
-
|
|
2494
|
-
|
|
2599
|
+
if (data.tsConfigPath !== undefined) {
|
|
2600
|
+
const _errs83 = errors;
|
|
2601
|
+
if (typeof data.tsConfigPath !== "string") {
|
|
2602
|
+
validate50.errors = [{ instancePath: instancePath + "/tsConfigPath", schemaPath: "#/properties/tsConfigPath/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
|
|
2603
|
+
return false;
|
|
2604
|
+
}
|
|
2605
|
+
var valid0 = _errs83 === errors;
|
|
2606
|
+
}
|
|
2607
|
+
else {
|
|
2608
|
+
var valid0 = true;
|
|
2609
|
+
}
|
|
2610
|
+
if (valid0) {
|
|
2611
|
+
if (data.exportsFields !== undefined) {
|
|
2612
|
+
let data26 = data.exportsFields;
|
|
2613
|
+
const _errs85 = errors;
|
|
2614
|
+
if (errors === _errs85) {
|
|
2615
|
+
if (Array.isArray(data26)) {
|
|
2616
|
+
var valid24 = true;
|
|
2617
|
+
const len9 = data26.length;
|
|
2618
|
+
for (let i9 = 0; i9 < len9; i9++) {
|
|
2619
|
+
const _errs87 = errors;
|
|
2620
|
+
if (typeof data26[i9] !== "string") {
|
|
2621
|
+
validate50.errors = [{ instancePath: instancePath + "/exportsFields/" + i9, schemaPath: "#/properties/exportsFields/items/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
|
|
2622
|
+
return false;
|
|
2623
|
+
}
|
|
2624
|
+
var valid24 = _errs87 === errors;
|
|
2625
|
+
if (!valid24) {
|
|
2626
|
+
break;
|
|
2627
|
+
}
|
|
2495
2628
|
}
|
|
2496
2629
|
}
|
|
2630
|
+
else {
|
|
2631
|
+
validate50.errors = [{ instancePath: instancePath + "/exportsFields", schemaPath: "#/properties/exportsFields/type", keyword: "type", params: { type: "array" }, message: "must be array" }];
|
|
2632
|
+
return false;
|
|
2633
|
+
}
|
|
2497
2634
|
}
|
|
2498
|
-
|
|
2499
|
-
|
|
2500
|
-
|
|
2501
|
-
|
|
2635
|
+
var valid0 = _errs85 === errors;
|
|
2636
|
+
}
|
|
2637
|
+
else {
|
|
2638
|
+
var valid0 = true;
|
|
2502
2639
|
}
|
|
2503
|
-
var valid0 = _errs74 === errors;
|
|
2504
|
-
}
|
|
2505
|
-
else {
|
|
2506
|
-
var valid0 = true;
|
|
2507
2640
|
}
|
|
2508
2641
|
}
|
|
2509
2642
|
}
|
|
@@ -2524,10 +2657,8 @@ function validate50(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
2524
2657
|
return false;
|
|
2525
2658
|
}
|
|
2526
2659
|
} validate50.errors = vErrors; return errors === 0; }
|
|
2527
|
-
const
|
|
2528
|
-
const
|
|
2529
|
-
const schema51 = { "description": "A loader request.", "type": "string", "minLength": 1 };
|
|
2530
|
-
const schema52 = { "description": "Options passed to a loader.", "anyOf": [{ "type": "string" }, { "type": "object" }] };
|
|
2660
|
+
const schema51 = { "description": "A list of descriptions of loaders applied.", "anyOf": [{ "type": "array", "items": { "description": "An use item.", "oneOf": [{ "$ref": "#/definitions/RuleSetUseItem" }] } }, { "$ref": "#/definitions/RuleSetUseItem" }] };
|
|
2661
|
+
const schema52 = { "description": "A description of an applied loader.", "anyOf": [{ "type": "object", "additionalProperties": false, "properties": { "loader": { "description": "Loader name.", "oneOf": [{ "$ref": "#/definitions/RuleSetLoader" }] }, "options": { "description": "Loader options.", "oneOf": [{ "$ref": "#/definitions/RuleSetLoaderOptions" }] } } }, { "$ref": "#/definitions/RuleSetLoader" }] };
|
|
2531
2662
|
function validate59(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) { let vErrors = null; let errors = 0; const _errs0 = errors; let valid0 = false; const _errs1 = errors; if (errors === _errs1) {
|
|
2532
2663
|
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
2533
2664
|
const _errs3 = errors;
|
|
@@ -3395,15 +3526,37 @@ function validate34(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
3395
3526
|
var valid0 = true;
|
|
3396
3527
|
}
|
|
3397
3528
|
if (valid0) {
|
|
3398
|
-
if (data.
|
|
3529
|
+
if (data.loader !== undefined) {
|
|
3530
|
+
let data16 = data.loader;
|
|
3399
3531
|
const _errs45 = errors;
|
|
3400
3532
|
const _errs46 = errors;
|
|
3401
3533
|
let valid13 = false;
|
|
3402
3534
|
let passing10 = null;
|
|
3403
3535
|
const _errs47 = errors;
|
|
3404
|
-
|
|
3405
|
-
|
|
3406
|
-
|
|
3536
|
+
const _errs48 = errors;
|
|
3537
|
+
if (errors === _errs48) {
|
|
3538
|
+
if (typeof data16 === "string") {
|
|
3539
|
+
if (data16.length < 1) {
|
|
3540
|
+
const err10 = { instancePath: instancePath + "/loader", schemaPath: "#/definitions/RuleSetLoader/minLength", keyword: "minLength", params: {}, message: "must pass \"minLength\" keyword validation" };
|
|
3541
|
+
if (vErrors === null) {
|
|
3542
|
+
vErrors = [err10];
|
|
3543
|
+
}
|
|
3544
|
+
else {
|
|
3545
|
+
vErrors.push(err10);
|
|
3546
|
+
}
|
|
3547
|
+
errors++;
|
|
3548
|
+
}
|
|
3549
|
+
}
|
|
3550
|
+
else {
|
|
3551
|
+
const err11 = { instancePath: instancePath + "/loader", schemaPath: "#/definitions/RuleSetLoader/type", keyword: "type", params: { type: "string" }, message: "must be string" };
|
|
3552
|
+
if (vErrors === null) {
|
|
3553
|
+
vErrors = [err11];
|
|
3554
|
+
}
|
|
3555
|
+
else {
|
|
3556
|
+
vErrors.push(err11);
|
|
3557
|
+
}
|
|
3558
|
+
errors++;
|
|
3559
|
+
}
|
|
3407
3560
|
}
|
|
3408
3561
|
var _valid10 = _errs47 === errors;
|
|
3409
3562
|
if (_valid10) {
|
|
@@ -3411,12 +3564,12 @@ function validate34(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
3411
3564
|
passing10 = 0;
|
|
3412
3565
|
}
|
|
3413
3566
|
if (!valid13) {
|
|
3414
|
-
const
|
|
3567
|
+
const err12 = { instancePath: instancePath + "/loader", schemaPath: "#/properties/loader/oneOf", keyword: "oneOf", params: { passingSchemas: passing10 }, message: "must match exactly one schema in oneOf" };
|
|
3415
3568
|
if (vErrors === null) {
|
|
3416
|
-
vErrors = [
|
|
3569
|
+
vErrors = [err12];
|
|
3417
3570
|
}
|
|
3418
3571
|
else {
|
|
3419
|
-
vErrors.push(
|
|
3572
|
+
vErrors.push(err12);
|
|
3420
3573
|
}
|
|
3421
3574
|
errors++;
|
|
3422
3575
|
validate34.errors = vErrors;
|
|
@@ -3439,179 +3592,317 @@ function validate34(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
3439
3592
|
var valid0 = true;
|
|
3440
3593
|
}
|
|
3441
3594
|
if (valid0) {
|
|
3442
|
-
if (data.
|
|
3443
|
-
let data17 = data.
|
|
3444
|
-
const
|
|
3445
|
-
|
|
3446
|
-
|
|
3447
|
-
|
|
3448
|
-
|
|
3449
|
-
|
|
3450
|
-
|
|
3451
|
-
|
|
3452
|
-
|
|
3453
|
-
|
|
3454
|
-
|
|
3455
|
-
|
|
3456
|
-
|
|
3457
|
-
|
|
3458
|
-
|
|
3459
|
-
|
|
3460
|
-
|
|
3461
|
-
|
|
3462
|
-
|
|
3463
|
-
|
|
3464
|
-
|
|
3465
|
-
|
|
3466
|
-
|
|
3467
|
-
|
|
3468
|
-
|
|
3469
|
-
|
|
3470
|
-
|
|
3471
|
-
|
|
3472
|
-
|
|
3473
|
-
validate34.errors = vErrors;
|
|
3474
|
-
return false;
|
|
3475
|
-
}
|
|
3476
|
-
else {
|
|
3477
|
-
errors = _errs51;
|
|
3478
|
-
if (vErrors !== null) {
|
|
3479
|
-
if (_errs51) {
|
|
3480
|
-
vErrors.length = _errs51;
|
|
3481
|
-
}
|
|
3482
|
-
else {
|
|
3483
|
-
vErrors = null;
|
|
3484
|
-
}
|
|
3485
|
-
}
|
|
3486
|
-
}
|
|
3487
|
-
var valid14 = _errs50 === errors;
|
|
3488
|
-
if (!valid14) {
|
|
3489
|
-
break;
|
|
3490
|
-
}
|
|
3595
|
+
if (data.options !== undefined) {
|
|
3596
|
+
let data17 = data.options;
|
|
3597
|
+
const _errs50 = errors;
|
|
3598
|
+
const _errs51 = errors;
|
|
3599
|
+
let valid15 = false;
|
|
3600
|
+
let passing11 = null;
|
|
3601
|
+
const _errs52 = errors;
|
|
3602
|
+
const _errs54 = errors;
|
|
3603
|
+
let valid17 = false;
|
|
3604
|
+
const _errs55 = errors;
|
|
3605
|
+
if (typeof data17 !== "string") {
|
|
3606
|
+
const err13 = { instancePath: instancePath + "/options", schemaPath: "#/definitions/RuleSetLoaderOptions/anyOf/0/type", keyword: "type", params: { type: "string" }, message: "must be string" };
|
|
3607
|
+
if (vErrors === null) {
|
|
3608
|
+
vErrors = [err13];
|
|
3609
|
+
}
|
|
3610
|
+
else {
|
|
3611
|
+
vErrors.push(err13);
|
|
3612
|
+
}
|
|
3613
|
+
errors++;
|
|
3614
|
+
}
|
|
3615
|
+
var _valid12 = _errs55 === errors;
|
|
3616
|
+
valid17 = valid17 || _valid12;
|
|
3617
|
+
if (!valid17) {
|
|
3618
|
+
const _errs57 = errors;
|
|
3619
|
+
if (!(data17 && typeof data17 == "object" && !Array.isArray(data17))) {
|
|
3620
|
+
const err14 = { instancePath: instancePath + "/options", schemaPath: "#/definitions/RuleSetLoaderOptions/anyOf/1/type", keyword: "type", params: { type: "object" }, message: "must be object" };
|
|
3621
|
+
if (vErrors === null) {
|
|
3622
|
+
vErrors = [err14];
|
|
3623
|
+
}
|
|
3624
|
+
else {
|
|
3625
|
+
vErrors.push(err14);
|
|
3491
3626
|
}
|
|
3627
|
+
errors++;
|
|
3628
|
+
}
|
|
3629
|
+
var _valid12 = _errs57 === errors;
|
|
3630
|
+
valid17 = valid17 || _valid12;
|
|
3631
|
+
}
|
|
3632
|
+
if (!valid17) {
|
|
3633
|
+
const err15 = { instancePath: instancePath + "/options", schemaPath: "#/definitions/RuleSetLoaderOptions/anyOf", keyword: "anyOf", params: {}, message: "must match a schema in anyOf" };
|
|
3634
|
+
if (vErrors === null) {
|
|
3635
|
+
vErrors = [err15];
|
|
3492
3636
|
}
|
|
3493
3637
|
else {
|
|
3494
|
-
|
|
3495
|
-
|
|
3638
|
+
vErrors.push(err15);
|
|
3639
|
+
}
|
|
3640
|
+
errors++;
|
|
3641
|
+
}
|
|
3642
|
+
else {
|
|
3643
|
+
errors = _errs54;
|
|
3644
|
+
if (vErrors !== null) {
|
|
3645
|
+
if (_errs54) {
|
|
3646
|
+
vErrors.length = _errs54;
|
|
3647
|
+
}
|
|
3648
|
+
else {
|
|
3649
|
+
vErrors = null;
|
|
3650
|
+
}
|
|
3496
3651
|
}
|
|
3497
3652
|
}
|
|
3498
|
-
var
|
|
3653
|
+
var _valid11 = _errs52 === errors;
|
|
3654
|
+
if (_valid11) {
|
|
3655
|
+
valid15 = true;
|
|
3656
|
+
passing11 = 0;
|
|
3657
|
+
}
|
|
3658
|
+
if (!valid15) {
|
|
3659
|
+
const err16 = { instancePath: instancePath + "/options", schemaPath: "#/properties/options/oneOf", keyword: "oneOf", params: { passingSchemas: passing11 }, message: "must match exactly one schema in oneOf" };
|
|
3660
|
+
if (vErrors === null) {
|
|
3661
|
+
vErrors = [err16];
|
|
3662
|
+
}
|
|
3663
|
+
else {
|
|
3664
|
+
vErrors.push(err16);
|
|
3665
|
+
}
|
|
3666
|
+
errors++;
|
|
3667
|
+
validate34.errors = vErrors;
|
|
3668
|
+
return false;
|
|
3669
|
+
}
|
|
3670
|
+
else {
|
|
3671
|
+
errors = _errs51;
|
|
3672
|
+
if (vErrors !== null) {
|
|
3673
|
+
if (_errs51) {
|
|
3674
|
+
vErrors.length = _errs51;
|
|
3675
|
+
}
|
|
3676
|
+
else {
|
|
3677
|
+
vErrors = null;
|
|
3678
|
+
}
|
|
3679
|
+
}
|
|
3680
|
+
}
|
|
3681
|
+
var valid0 = _errs50 === errors;
|
|
3499
3682
|
}
|
|
3500
3683
|
else {
|
|
3501
3684
|
var valid0 = true;
|
|
3502
3685
|
}
|
|
3503
3686
|
if (valid0) {
|
|
3504
|
-
if (data.
|
|
3505
|
-
const
|
|
3506
|
-
|
|
3507
|
-
|
|
3687
|
+
if (data.scheme !== undefined) {
|
|
3688
|
+
const _errs59 = errors;
|
|
3689
|
+
const _errs60 = errors;
|
|
3690
|
+
let valid18 = false;
|
|
3691
|
+
let passing12 = null;
|
|
3692
|
+
const _errs61 = errors;
|
|
3693
|
+
if (!(validate35(data.scheme, { instancePath: instancePath + "/scheme", parentData: data, parentDataProperty: "scheme", rootData }))) {
|
|
3694
|
+
vErrors = vErrors === null ? validate35.errors : vErrors.concat(validate35.errors);
|
|
3695
|
+
errors = vErrors.length;
|
|
3696
|
+
}
|
|
3697
|
+
var _valid13 = _errs61 === errors;
|
|
3698
|
+
if (_valid13) {
|
|
3699
|
+
valid18 = true;
|
|
3700
|
+
passing12 = 0;
|
|
3701
|
+
}
|
|
3702
|
+
if (!valid18) {
|
|
3703
|
+
const err17 = { instancePath: instancePath + "/scheme", schemaPath: "#/properties/scheme/oneOf", keyword: "oneOf", params: { passingSchemas: passing12 }, message: "must match exactly one schema in oneOf" };
|
|
3704
|
+
if (vErrors === null) {
|
|
3705
|
+
vErrors = [err17];
|
|
3706
|
+
}
|
|
3707
|
+
else {
|
|
3708
|
+
vErrors.push(err17);
|
|
3709
|
+
}
|
|
3710
|
+
errors++;
|
|
3711
|
+
validate34.errors = vErrors;
|
|
3508
3712
|
return false;
|
|
3509
3713
|
}
|
|
3510
|
-
|
|
3714
|
+
else {
|
|
3715
|
+
errors = _errs60;
|
|
3716
|
+
if (vErrors !== null) {
|
|
3717
|
+
if (_errs60) {
|
|
3718
|
+
vErrors.length = _errs60;
|
|
3719
|
+
}
|
|
3720
|
+
else {
|
|
3721
|
+
vErrors = null;
|
|
3722
|
+
}
|
|
3723
|
+
}
|
|
3724
|
+
}
|
|
3725
|
+
var valid0 = _errs59 === errors;
|
|
3511
3726
|
}
|
|
3512
3727
|
else {
|
|
3513
3728
|
var valid0 = true;
|
|
3514
3729
|
}
|
|
3515
3730
|
if (valid0) {
|
|
3516
|
-
if (data.
|
|
3517
|
-
|
|
3518
|
-
const
|
|
3519
|
-
|
|
3520
|
-
|
|
3521
|
-
|
|
3522
|
-
|
|
3523
|
-
|
|
3524
|
-
|
|
3525
|
-
|
|
3526
|
-
|
|
3527
|
-
|
|
3528
|
-
|
|
3529
|
-
|
|
3530
|
-
|
|
3531
|
-
|
|
3532
|
-
|
|
3533
|
-
|
|
3534
|
-
|
|
3731
|
+
if (data.rules !== undefined) {
|
|
3732
|
+
let data19 = data.rules;
|
|
3733
|
+
const _errs62 = errors;
|
|
3734
|
+
if (errors === _errs62) {
|
|
3735
|
+
if (Array.isArray(data19)) {
|
|
3736
|
+
var valid19 = true;
|
|
3737
|
+
const len1 = data19.length;
|
|
3738
|
+
for (let i1 = 0; i1 < len1; i1++) {
|
|
3739
|
+
const _errs64 = errors;
|
|
3740
|
+
const _errs65 = errors;
|
|
3741
|
+
let valid20 = false;
|
|
3742
|
+
let passing13 = null;
|
|
3743
|
+
const _errs66 = errors;
|
|
3744
|
+
if (!(wrapper2.validate(data19[i1], { instancePath: instancePath + "/rules/" + i1, parentData: data19, parentDataProperty: i1, rootData }))) {
|
|
3745
|
+
vErrors = vErrors === null ? wrapper2.validate.errors : vErrors.concat(wrapper2.validate.errors);
|
|
3746
|
+
errors = vErrors.length;
|
|
3747
|
+
}
|
|
3748
|
+
var _valid14 = _errs66 === errors;
|
|
3749
|
+
if (_valid14) {
|
|
3750
|
+
valid20 = true;
|
|
3751
|
+
passing13 = 0;
|
|
3752
|
+
}
|
|
3753
|
+
if (!valid20) {
|
|
3754
|
+
const err18 = { instancePath: instancePath + "/rules/" + i1, schemaPath: "#/properties/rules/items/oneOf", keyword: "oneOf", params: { passingSchemas: passing13 }, message: "must match exactly one schema in oneOf" };
|
|
3755
|
+
if (vErrors === null) {
|
|
3756
|
+
vErrors = [err18];
|
|
3757
|
+
}
|
|
3758
|
+
else {
|
|
3759
|
+
vErrors.push(err18);
|
|
3760
|
+
}
|
|
3761
|
+
errors++;
|
|
3762
|
+
validate34.errors = vErrors;
|
|
3763
|
+
return false;
|
|
3764
|
+
}
|
|
3765
|
+
else {
|
|
3766
|
+
errors = _errs65;
|
|
3767
|
+
if (vErrors !== null) {
|
|
3768
|
+
if (_errs65) {
|
|
3769
|
+
vErrors.length = _errs65;
|
|
3770
|
+
}
|
|
3771
|
+
else {
|
|
3772
|
+
vErrors = null;
|
|
3773
|
+
}
|
|
3774
|
+
}
|
|
3775
|
+
}
|
|
3776
|
+
var valid19 = _errs64 === errors;
|
|
3777
|
+
if (!valid19) {
|
|
3778
|
+
break;
|
|
3779
|
+
}
|
|
3780
|
+
}
|
|
3535
3781
|
}
|
|
3536
3782
|
else {
|
|
3537
|
-
|
|
3538
|
-
|
|
3539
|
-
errors++;
|
|
3540
|
-
validate34.errors = vErrors;
|
|
3541
|
-
return false;
|
|
3542
|
-
}
|
|
3543
|
-
else {
|
|
3544
|
-
errors = _errs56;
|
|
3545
|
-
if (vErrors !== null) {
|
|
3546
|
-
if (_errs56) {
|
|
3547
|
-
vErrors.length = _errs56;
|
|
3548
|
-
}
|
|
3549
|
-
else {
|
|
3550
|
-
vErrors = null;
|
|
3551
|
-
}
|
|
3783
|
+
validate34.errors = [{ instancePath: instancePath + "/rules", schemaPath: "#/properties/rules/type", keyword: "type", params: { type: "array" }, message: "must be array" }];
|
|
3784
|
+
return false;
|
|
3552
3785
|
}
|
|
3553
3786
|
}
|
|
3554
|
-
var valid0 =
|
|
3787
|
+
var valid0 = _errs62 === errors;
|
|
3555
3788
|
}
|
|
3556
3789
|
else {
|
|
3557
3790
|
var valid0 = true;
|
|
3558
3791
|
}
|
|
3559
3792
|
if (valid0) {
|
|
3560
|
-
if (data.
|
|
3561
|
-
const
|
|
3562
|
-
if (typeof data.
|
|
3563
|
-
validate34.errors = [{ instancePath: instancePath + "/
|
|
3793
|
+
if (data.sideEffects !== undefined) {
|
|
3794
|
+
const _errs67 = errors;
|
|
3795
|
+
if (typeof data.sideEffects !== "boolean") {
|
|
3796
|
+
validate34.errors = [{ instancePath: instancePath + "/sideEffects", schemaPath: "#/properties/sideEffects/type", keyword: "type", params: { type: "boolean" }, message: "must be boolean" }];
|
|
3564
3797
|
return false;
|
|
3565
3798
|
}
|
|
3566
|
-
var valid0 =
|
|
3799
|
+
var valid0 = _errs67 === errors;
|
|
3567
3800
|
}
|
|
3568
3801
|
else {
|
|
3569
3802
|
var valid0 = true;
|
|
3570
3803
|
}
|
|
3571
3804
|
if (valid0) {
|
|
3572
|
-
if (data.
|
|
3573
|
-
const
|
|
3574
|
-
const
|
|
3575
|
-
let
|
|
3576
|
-
let
|
|
3577
|
-
const
|
|
3578
|
-
if (!(
|
|
3579
|
-
vErrors = vErrors === null ?
|
|
3805
|
+
if (data.test !== undefined) {
|
|
3806
|
+
const _errs69 = errors;
|
|
3807
|
+
const _errs70 = errors;
|
|
3808
|
+
let valid21 = false;
|
|
3809
|
+
let passing14 = null;
|
|
3810
|
+
const _errs71 = errors;
|
|
3811
|
+
if (!(validate35(data.test, { instancePath: instancePath + "/test", parentData: data, parentDataProperty: "test", rootData }))) {
|
|
3812
|
+
vErrors = vErrors === null ? validate35.errors : vErrors.concat(validate35.errors);
|
|
3580
3813
|
errors = vErrors.length;
|
|
3581
3814
|
}
|
|
3582
|
-
var
|
|
3583
|
-
if (
|
|
3584
|
-
|
|
3585
|
-
|
|
3815
|
+
var _valid15 = _errs71 === errors;
|
|
3816
|
+
if (_valid15) {
|
|
3817
|
+
valid21 = true;
|
|
3818
|
+
passing14 = 0;
|
|
3586
3819
|
}
|
|
3587
|
-
if (!
|
|
3588
|
-
const
|
|
3820
|
+
if (!valid21) {
|
|
3821
|
+
const err19 = { instancePath: instancePath + "/test", schemaPath: "#/properties/test/oneOf", keyword: "oneOf", params: { passingSchemas: passing14 }, message: "must match exactly one schema in oneOf" };
|
|
3589
3822
|
if (vErrors === null) {
|
|
3590
|
-
vErrors = [
|
|
3823
|
+
vErrors = [err19];
|
|
3591
3824
|
}
|
|
3592
3825
|
else {
|
|
3593
|
-
vErrors.push(
|
|
3826
|
+
vErrors.push(err19);
|
|
3594
3827
|
}
|
|
3595
3828
|
errors++;
|
|
3596
3829
|
validate34.errors = vErrors;
|
|
3597
3830
|
return false;
|
|
3598
3831
|
}
|
|
3599
3832
|
else {
|
|
3600
|
-
errors =
|
|
3833
|
+
errors = _errs70;
|
|
3601
3834
|
if (vErrors !== null) {
|
|
3602
|
-
if (
|
|
3603
|
-
vErrors.length =
|
|
3835
|
+
if (_errs70) {
|
|
3836
|
+
vErrors.length = _errs70;
|
|
3604
3837
|
}
|
|
3605
3838
|
else {
|
|
3606
3839
|
vErrors = null;
|
|
3607
3840
|
}
|
|
3608
3841
|
}
|
|
3609
3842
|
}
|
|
3610
|
-
var valid0 =
|
|
3843
|
+
var valid0 = _errs69 === errors;
|
|
3611
3844
|
}
|
|
3612
3845
|
else {
|
|
3613
3846
|
var valid0 = true;
|
|
3614
3847
|
}
|
|
3848
|
+
if (valid0) {
|
|
3849
|
+
if (data.type !== undefined) {
|
|
3850
|
+
const _errs72 = errors;
|
|
3851
|
+
if (typeof data.type !== "string") {
|
|
3852
|
+
validate34.errors = [{ instancePath: instancePath + "/type", schemaPath: "#/properties/type/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
|
|
3853
|
+
return false;
|
|
3854
|
+
}
|
|
3855
|
+
var valid0 = _errs72 === errors;
|
|
3856
|
+
}
|
|
3857
|
+
else {
|
|
3858
|
+
var valid0 = true;
|
|
3859
|
+
}
|
|
3860
|
+
if (valid0) {
|
|
3861
|
+
if (data.use !== undefined) {
|
|
3862
|
+
const _errs74 = errors;
|
|
3863
|
+
const _errs75 = errors;
|
|
3864
|
+
let valid22 = false;
|
|
3865
|
+
let passing15 = null;
|
|
3866
|
+
const _errs76 = errors;
|
|
3867
|
+
if (!(validate58(data.use, { instancePath: instancePath + "/use", parentData: data, parentDataProperty: "use", rootData }))) {
|
|
3868
|
+
vErrors = vErrors === null ? validate58.errors : vErrors.concat(validate58.errors);
|
|
3869
|
+
errors = vErrors.length;
|
|
3870
|
+
}
|
|
3871
|
+
var _valid16 = _errs76 === errors;
|
|
3872
|
+
if (_valid16) {
|
|
3873
|
+
valid22 = true;
|
|
3874
|
+
passing15 = 0;
|
|
3875
|
+
}
|
|
3876
|
+
if (!valid22) {
|
|
3877
|
+
const err20 = { instancePath: instancePath + "/use", schemaPath: "#/properties/use/oneOf", keyword: "oneOf", params: { passingSchemas: passing15 }, message: "must match exactly one schema in oneOf" };
|
|
3878
|
+
if (vErrors === null) {
|
|
3879
|
+
vErrors = [err20];
|
|
3880
|
+
}
|
|
3881
|
+
else {
|
|
3882
|
+
vErrors.push(err20);
|
|
3883
|
+
}
|
|
3884
|
+
errors++;
|
|
3885
|
+
validate34.errors = vErrors;
|
|
3886
|
+
return false;
|
|
3887
|
+
}
|
|
3888
|
+
else {
|
|
3889
|
+
errors = _errs75;
|
|
3890
|
+
if (vErrors !== null) {
|
|
3891
|
+
if (_errs75) {
|
|
3892
|
+
vErrors.length = _errs75;
|
|
3893
|
+
}
|
|
3894
|
+
else {
|
|
3895
|
+
vErrors = null;
|
|
3896
|
+
}
|
|
3897
|
+
}
|
|
3898
|
+
}
|
|
3899
|
+
var valid0 = _errs74 === errors;
|
|
3900
|
+
}
|
|
3901
|
+
else {
|
|
3902
|
+
var valid0 = true;
|
|
3903
|
+
}
|
|
3904
|
+
}
|
|
3905
|
+
}
|
|
3615
3906
|
}
|
|
3616
3907
|
}
|
|
3617
3908
|
}
|
|
@@ -3703,9 +3994,9 @@ function validate33(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
3703
3994
|
return false;
|
|
3704
3995
|
}
|
|
3705
3996
|
} validate33.errors = vErrors; return errors === 0; }
|
|
3706
|
-
const
|
|
3707
|
-
const
|
|
3708
|
-
const
|
|
3997
|
+
const schema56 = { "description": "Specify options for each parser.", "type": "object", "additionalProperties": { "description": "Options for parsing.", "type": "object", "additionalProperties": true }, "properties": { "asset": { "$ref": "#/definitions/AssetParserOptions" } } };
|
|
3998
|
+
const schema57 = { "description": "Parser options for asset modules.", "type": "object", "additionalProperties": false, "properties": { "dataUrlCondition": { "description": "The condition for inlining the asset as DataUrl.", "anyOf": [{ "$ref": "#/definitions/AssetParserDataUrlOptions" }] } } };
|
|
3999
|
+
const schema58 = { "description": "Options object for DataUrl condition.", "type": "object", "additionalProperties": false, "properties": { "maxSize": { "description": "Maximum size of asset that should be inline as modules. Default: 8kb.", "type": "number" } } };
|
|
3709
4000
|
function validate66(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) { let vErrors = null; let errors = 0; if (errors === 0) {
|
|
3710
4001
|
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
3711
4002
|
const _errs1 = errors;
|
|
@@ -3951,8 +4242,8 @@ function validate32(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
3951
4242
|
return false;
|
|
3952
4243
|
}
|
|
3953
4244
|
} validate32.errors = vErrors; return errors === 0; }
|
|
3954
|
-
const
|
|
3955
|
-
const
|
|
4245
|
+
const schema60 = { "description": "Include polyfills or mocks for various node stuff.", "anyOf": [{ "enum": [false] }, { "$ref": "#/definitions/NodeOptions" }] };
|
|
4246
|
+
const schema61 = { "description": "Options object for node compatibility features.", "type": "object", "additionalProperties": false, "properties": { "__dirname": { "description": "Include a polyfill for the '__dirname' variable.", "enum": [false, true, "warn-mock", "mock", "eval-only"] }, "__filename": { "description": "Include a polyfill for the '__filename' variable.", "enum": [false, true, "warn-mock", "mock", "eval-only"] }, "global": { "description": "Include a polyfill for the 'global' variable.", "enum": [false, true, "warn"] } } };
|
|
3956
4247
|
function validate71(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) { let vErrors = null; let errors = 0; const _errs0 = errors; let valid0 = false; const _errs1 = errors; if (data !== false) {
|
|
3957
4248
|
const err0 = { instancePath, schemaPath: "#/anyOf/0/enum", keyword: "enum", params: {}, message: "must pass \"enum\" keyword validation" };
|
|
3958
4249
|
if (vErrors === null) {
|
|
@@ -4078,18 +4369,18 @@ else {
|
|
|
4078
4369
|
}
|
|
4079
4370
|
}
|
|
4080
4371
|
} validate71.errors = vErrors; return errors === 0; }
|
|
4081
|
-
const
|
|
4082
|
-
const
|
|
4083
|
-
const
|
|
4084
|
-
const
|
|
4085
|
-
const
|
|
4086
|
-
const
|
|
4087
|
-
const
|
|
4372
|
+
const schema62 = { "description": "Enables/Disables integrated optimizations.", "type": "object", "additionalProperties": false, "properties": { "chunkIds": { "description": "Define the algorithm to choose chunk ids (named: readable ids for better debugging, deterministic: numeric hash ids for better long term caching, size: numeric ids focused on minimal initial download size, total-size: numeric ids focused on minimal total download size, false: no algorithm used, as custom one can be provided via plugin).", "enum": ["named", "deterministic"] }, "minimize": { "description": "Enable minimizing the output. Uses optimization.minimizer.", "type": "boolean" }, "minimizer": { "description": "Minimizer(s) to use for minimizing the output.", "type": "array", "items": { "description": "Plugin of type object or instanceof Function.", "anyOf": [{ "enum": ["..."] }, { "$ref": "#/definitions/RspackPluginInstance" }, { "$ref": "#/definitions/RspackPluginFunction" }] } }, "moduleIds": { "description": "Define the algorithm to choose module ids (natural: numeric ids in order of usage, named: readable ids for better debugging, hashed: (deprecated) short hashes as ids for better long term caching, deterministic: numeric hash ids for better long term caching, size: numeric ids focused on minimal initial download size, false: no algorithm used, as custom one can be provided via plugin).", "enum": ["named", "deterministic"] }, "removeAvailableModules": { "description": "Removes modules from chunks when these modules are already included in all parents.", "type": "boolean" }, "removeEmptyChunks": { "description": "Remove chunks which are empty.", "type": "boolean" }, "runtimeChunk": { "$ref": "#/definitions/OptimizationRuntimeChunk" }, "sideEffects": { "description": "Skip over modules which contain no side effects when exports are not used (false: disabled, 'flag': only use manually placed side effects flag, true: also analyse source code for side effects).", "anyOf": [{ "enum": ["flag"] }, { "type": "boolean" }] }, "splitChunks": { "description": "Optimize duplication and caching by splitting chunks by shared modules and cache group.", "anyOf": [{ "enum": [false] }, { "$ref": "#/definitions/OptimizationSplitChunksOptions" }] }, "realContentHash": { "description": "Use real [contenthash] based on final content of the assets.", "type": "boolean" } } };
|
|
4373
|
+
const schema63 = { "description": "Plugin instance.", "type": "object", "additionalProperties": true, "properties": { "apply": { "description": "The run point of the plugin, required method.", "instanceof": "Function" } }, "required": ["apply"] };
|
|
4374
|
+
const schema64 = { "description": "Function acting as plugin.", "instanceof": "Function" };
|
|
4375
|
+
const schema65 = { "description": "Create an additional chunk which contains only the rspack runtime and chunk hash maps.", "anyOf": [{ "enum": ["single", "multiple"] }, { "type": "boolean" }, { "type": "object", "additionalProperties": false, "properties": { "name": { "description": "The name or name factory for the runtime chunks.", "anyOf": [{ "type": "string" }, { "instanceof": "Function" }] } } }] };
|
|
4376
|
+
const schema66 = { "description": "Options object for splitting chunks into smaller chunks.", "type": "object", "additionalProperties": false, "properties": { "fallbackCacheGroup": { "type": "object", "properties": { "maxSize": { "type": "number" }, "maxInitialSize": { "type": "number" }, "maxAsyncSize": { "type": "number" }, "minSize": { "type": "number" } } }, "hidePathInfo": { "type": "boolean" }, "name": { "description": "The name or name for chunks.", "anyOf": [{ "type": "string" }] }, "cacheGroups": { "description": "Assign modules to a cache group (modules from different cache groups are tried to keep in separate chunks, default categories: 'default', 'defaultVendors').", "type": "object", "additionalProperties": { "description": "Configuration for a cache group.", "anyOf": [{ "$ref": "#/definitions/OptimizationSplitChunksCacheGroup" }] } }, "chunks": { "description": "Select chunks for determining shared modules (defaults to \"async\", \"initial\" and \"all\" requires adding these chunks to the HTML).", "anyOf": [{ "enum": ["initial", "async", "all"] }] }, "enforceSizeThreshold": { "description": "Size threshold at which splitting is enforced and other restrictions (minRemainingSize, maxAsyncRequests, maxInitialRequests) are ignored.", "oneOf": [{ "$ref": "#/definitions/OptimizationSplitChunksSizes" }] }, "maxAsyncRequests": { "description": "Maximum number of requests which are accepted for on-demand loading.", "type": "number", "minimum": 1 }, "maxInitialRequests": { "description": "Maximum number of initial chunks which are accepted for an entry point.", "type": "number", "minimum": 1 }, "minChunks": { "description": "Minimum number of times a module has to be duplicated until it's considered for splitting.", "type": "number", "minimum": 1 }, "minRemainingSize": { "description": "Minimal size for the chunks the stay after moving the modules to a new chunk.", "oneOf": [{ "$ref": "#/definitions/OptimizationSplitChunksSizes" }] }, "minSize": { "description": "Minimal size for the created chunks.", "oneOf": [{ "$ref": "#/definitions/OptimizationSplitChunksSizes" }] }, "maxSize": { "type": "number" }, "maxInitialSize": { "type": "number" }, "maxAsyncSize": { "type": "number" }, "reuseExistingChunk": { "description": "If the current chunk contains modules already split out from the main bundle, it will be reused instead of a new one being generated. This can affect the resulting file name of the chunk.", "type": "boolean" } } };
|
|
4377
|
+
const schema68 = { "description": "Size description for limits.", "anyOf": [{ "description": "Size of the javascript part of the chunk.", "type": "number", "minimum": 0 }] };
|
|
4378
|
+
const schema67 = { "description": "Options object for describing behavior of a cache group selecting modules that should be cached together.", "type": "object", "additionalProperties": false, "properties": { "chunks": { "description": "Select chunks for determining cache group content (defaults to \"initial\", \"initial\" and \"all\" requires adding these chunks to the HTML).", "anyOf": [{ "enum": ["initial", "async", "all"] }, { "instanceof": "Function" }] }, "minChunks": { "description": "Minimum number of times a module has to be duplicated until it's considered for splitting.", "type": "number", "minimum": 1 }, "name": { "description": "Give chunks for this cache group a name (chunks with equal name are merged).", "anyOf": [{ "enum": [false] }, { "type": "string" }, { "instanceof": "Function" }] }, "priority": { "description": "Priority of this cache group.", "type": "number" }, "reuseExistingChunk": { "description": "Try to reuse existing chunk (with name) when it has matching modules.", "type": "boolean" }, "enforce": { "description": "ignore splitChunks.minSize, splitChunks.minChunks, splitChunks.maxAsyncRequests and splitChunks.maxInitialRequests options and always create chunks for this cache group.", "type": "boolean" }, "hidePathInfo": { "type": "boolean" }, "maxSize": { "type": "number" }, "test": { "description": "Assign modules to a cache group by module name.", "anyOf": [{ "instanceof": "RegExp" }] }, "minSize": { "description": "Minimal size for the created chunks.", "oneOf": [{ "$ref": "#/definitions/OptimizationSplitChunksSizes" }] } } };
|
|
4088
4379
|
function validate75(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) { let vErrors = null; let errors = 0; if (errors === 0) {
|
|
4089
4380
|
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
4090
4381
|
const _errs1 = errors;
|
|
4091
4382
|
for (const key0 in data) {
|
|
4092
|
-
if (!(func2.call(
|
|
4383
|
+
if (!(func2.call(schema67.properties, key0))) {
|
|
4093
4384
|
validate75.errors = [{ instancePath, schemaPath: "#/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key0 }, message: "must NOT have additional properties" }];
|
|
4094
4385
|
return false;
|
|
4095
4386
|
break;
|
|
@@ -4472,7 +4763,7 @@ function validate74(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
4472
4763
|
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
4473
4764
|
const _errs1 = errors;
|
|
4474
4765
|
for (const key0 in data) {
|
|
4475
|
-
if (!(func2.call(
|
|
4766
|
+
if (!(func2.call(schema66.properties, key0))) {
|
|
4476
4767
|
validate74.errors = [{ instancePath, schemaPath: "#/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key0 }, message: "must NOT have additional properties" }];
|
|
4477
4768
|
return false;
|
|
4478
4769
|
break;
|
|
@@ -5115,7 +5406,7 @@ function validate73(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
5115
5406
|
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
5116
5407
|
const _errs1 = errors;
|
|
5117
5408
|
for (const key0 in data) {
|
|
5118
|
-
if (!(func2.call(
|
|
5409
|
+
if (!(func2.call(schema62.properties, key0))) {
|
|
5119
5410
|
validate73.errors = [{ instancePath, schemaPath: "#/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key0 }, message: "must NOT have additional properties" }];
|
|
5120
5411
|
return false;
|
|
5121
5412
|
break;
|
|
@@ -5605,28 +5896,32 @@ function validate73(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
5605
5896
|
return false;
|
|
5606
5897
|
}
|
|
5607
5898
|
} validate73.errors = vErrors; return errors === 0; }
|
|
5608
|
-
const
|
|
5609
|
-
const
|
|
5610
|
-
const
|
|
5611
|
-
const
|
|
5612
|
-
const
|
|
5613
|
-
const
|
|
5614
|
-
const
|
|
5615
|
-
const
|
|
5616
|
-
const
|
|
5617
|
-
const
|
|
5618
|
-
const
|
|
5619
|
-
const
|
|
5620
|
-
const
|
|
5621
|
-
const
|
|
5622
|
-
const
|
|
5623
|
-
const
|
|
5624
|
-
const
|
|
5625
|
-
const
|
|
5626
|
-
const
|
|
5627
|
-
const
|
|
5628
|
-
const
|
|
5629
|
-
const
|
|
5899
|
+
const schema72 = { "description": "Options affecting the output of the compilation. `output` options tell rspack how to write the compiled files to disk.", "type": "object", "additionalProperties": false, "properties": { "iife": { "$ref": "#/definitions/Iife" }, "clean": { "$ref": "#/definitions/Clean" }, "assetModuleFilename": { "$ref": "#/definitions/AssetModuleFilename" }, "auxiliaryComment": { "oneOf": [{ "$ref": "#/definitions/AuxiliaryComment" }] }, "chunkFormat": { "$ref": "#/definitions/ChunkFormat" }, "chunkLoading": { "$ref": "#/definitions/ChunkLoading" }, "enabledChunkLoadingTypes": { "$ref": "#/definitions/EnabledChunkLoadingTypes" }, "chunkFilename": { "$ref": "#/definitions/ChunkFilename" }, "crossOriginLoading": { "$ref": "#/definitions/CrossOriginLoading" }, "cssChunkFilename": { "$ref": "#/definitions/CssChunkFilename" }, "cssFilename": { "$ref": "#/definitions/CssFilename" }, "hotUpdateChunkFilename": { "$ref": "#/definitions/HotUpdateChunkFilename" }, "hotUpdateMainFilename": { "$ref": "#/definitions/HotUpdateMainFilename" }, "enabledWasmLoadingTypes": { "$ref": "#/definitions/EnabledWasmLoadingTypes" }, "wasmLoading": { "$ref": "#/definitions/WasmLoading" }, "webassemblyModuleFilename": { "$ref": "#/definitions/WebassemblyModuleFilename" }, "enabledLibraryTypes": { "$ref": "#/definitions/EnabledLibraryTypes" }, "filename": { "$ref": "#/definitions/Filename" }, "globalObject": { "$ref": "#/definitions/GlobalObject" }, "importFunctionName": { "$ref": "#/definitions/ImportFunctionName" }, "library": { "$ref": "#/definitions/Library" }, "libraryExport": { "oneOf": [{ "$ref": "#/definitions/LibraryExport" }] }, "libraryTarget": { "oneOf": [{ "$ref": "#/definitions/LibraryType" }] }, "module": { "$ref": "#/definitions/OutputModule" }, "path": { "$ref": "#/definitions/Path" }, "publicPath": { "$ref": "#/definitions/PublicPath" }, "strictModuleErrorHandling": { "$ref": "#/definitions/StrictModuleErrorHandling" }, "umdNamedDefine": { "oneOf": [{ "$ref": "#/definitions/UmdNamedDefine" }] }, "uniqueName": { "$ref": "#/definitions/UniqueName" }, "chunkLoadingGlobal": { "$ref": "#/definitions/ChunkLoadingGlobal" }, "trustedTypes": { "description": "Use a Trusted Types policy to create urls for chunks. 'output.uniqueName' is used a default policy name. Passing a string sets a custom policy name.", "anyOf": [{ "enum": [true] }, { "description": "The name of the Trusted Types policy created by webpack to serve bundle chunks.", "type": "string", "minLength": 1 }, { "$ref": "#/definitions/TrustedTypes" }] }, "sourceMapFilename": { "$ref": "#/definitions/SourceMapFilename" }, "hashDigest": { "$ref": "#/definitions/HashDigest" }, "hashDigestLength": { "$ref": "#/definitions/HashDigestLength" }, "hashFunction": { "$ref": "#/definitions/HashFunction" }, "hashSalt": { "$ref": "#/definitions/HashSalt" } } };
|
|
5900
|
+
const schema73 = { "description": "Wrap javascript code into IIFE's to avoid leaking into global scope.", "type": "boolean" };
|
|
5901
|
+
const schema74 = { "description": "Clears the output build directory", "type": "boolean" };
|
|
5902
|
+
const schema75 = { "description": "The filename of asset modules as relative path inside the 'output.path' directory.", "anyOf": [{ "type": "string" }] };
|
|
5903
|
+
const schema78 = { "description": "The format of chunks (formats included by default are 'array-push' (web/WebWorker), 'commonjs' (node.js), 'module' (ESM), but others might be added by plugins).", "anyOf": [{ "enum": ["array-push", "commonjs", "module", false] }, { "type": "string" }] };
|
|
5904
|
+
const schema85 = { "description": "This option enables cross-origin loading of chunks.", "enum": [false, "anonymous", "use-credentials"] };
|
|
5905
|
+
const schema90 = { "description": "The filename of the Hot Update Chunks. They are inside the output.path directory.", "type": "string", "absolutePath": false };
|
|
5906
|
+
const schema91 = { "description": "The filename of the Hot Update Main File. It is inside the 'output.path' directory.", "type": "string", "absolutePath": false };
|
|
5907
|
+
const schema94 = { "description": "The filename of WebAssembly modules as relative path inside the 'output.path' directory.", "type": "string" };
|
|
5908
|
+
const schema99 = { "description": "An expression which is used to address the global object/scope in runtime code.", "type": "string", "minLength": 1 };
|
|
5909
|
+
const schema100 = { "description": "The name of the native import() function (can be exchanged for a polyfill).", "type": "string" };
|
|
5910
|
+
const schema105 = { "description": "Specify which export should be exposed as library.", "anyOf": [{ "type": "array", "items": { "description": "Part of the export that should be exposed as library.", "type": "string", "minLength": 1 } }, { "type": "string", "minLength": 1 }] };
|
|
5911
|
+
const schema96 = { "description": "Type of library (types included by default are 'var', 'module', 'assign', 'assign-properties', 'this', 'window', 'self', 'global', 'commonjs', 'commonjs2', 'commonjs-module', 'commonjs-static', 'amd', 'amd-require', 'umd', 'umd2', 'jsonp', 'system', but others might be added by plugins).", "anyOf": [{ "enum": ["var", "module", "assign", "assign-properties", "this", "window", "self", "global", "commonjs", "commonjs2", "commonjs-module", "commonjs-static", "amd", "amd-require", "umd", "umd2", "jsonp", "system"] }, { "type": "string" }] };
|
|
5912
|
+
const schema110 = { "description": "Output javascript files as module source type.", "type": "boolean" };
|
|
5913
|
+
const schema111 = { "description": "The output directory as **absolute path** (required).", "type": "string" };
|
|
5914
|
+
const schema114 = { "description": "Handles error in module loading correctly at a performance cost. This will handle module error compatible with the EcmaScript Modules spec.", "type": "boolean" };
|
|
5915
|
+
const schema107 = { "description": "If `output.libraryTarget` is set to umd and `output.library` is set, setting this to true will name the AMD module.", "type": "boolean" };
|
|
5916
|
+
const schema116 = { "description": "A unique name of the rspack build to avoid multiple rspack runtimes to conflict when using globals.", "type": "string", "minLength": 1 };
|
|
5917
|
+
const schema117 = { "description": "The global variable used by rspack for loading of chunks.", "type": "string", "minLength": 1 };
|
|
5918
|
+
const schema118 = { "description": "Use a Trusted Types policy to create urls for chunks.", "type": "object", "additionalProperties": false, "properties": { "policyName": { "description": "The name of the Trusted Types policy created by webpack to serve bundle chunks.", "type": "string", "minLength": 1 } } };
|
|
5919
|
+
const schema121 = { "description": "Digest type used for the hash.", "type": "string" };
|
|
5920
|
+
const schema122 = { "description": "Number of chars which are used for the hash.", "type": "number", "minimum": 1 };
|
|
5921
|
+
const schema123 = { "description": "Algorithm used for generation the hash (see node.js crypto package).", "anyOf": [{ "type": "string", "minLength": 1 }, { "instanceof": "Function" }] };
|
|
5922
|
+
const schema124 = { "description": "Any string which is added to the hash to salt it.", "type": "string", "minLength": 1 };
|
|
5923
|
+
const schema76 = { "description": "Add a comment in the UMD wrapper.", "anyOf": [{ "description": "Append the same comment above each import style.", "type": "string" }, { "$ref": "#/definitions/LibraryCustomUmdCommentObject" }] };
|
|
5924
|
+
const schema77 = { "description": "Set explicit comments for `commonjs`, `commonjs2`, `amd`, and `root`.", "type": "object", "additionalProperties": false, "properties": { "amd": { "description": "Set comment for `amd` section in UMD.", "type": "string" }, "commonjs": { "description": "Set comment for `commonjs` (exports) section in UMD.", "type": "string" }, "commonjs2": { "description": "Set comment for `commonjs2` (module.exports) section in UMD.", "type": "string" }, "root": { "description": "Set comment for `root` (global variable) section in UMD.", "type": "string" } } };
|
|
5630
5925
|
function validate80(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) { let vErrors = null; let errors = 0; const _errs0 = errors; let valid0 = false; const _errs1 = errors; if (typeof data !== "string") {
|
|
5631
5926
|
const err0 = { instancePath, schemaPath: "#/anyOf/0/type", keyword: "type", params: { type: "string" }, message: "must be string" };
|
|
5632
5927
|
if (vErrors === null) {
|
|
@@ -5768,8 +6063,8 @@ else {
|
|
|
5768
6063
|
}
|
|
5769
6064
|
}
|
|
5770
6065
|
} validate80.errors = vErrors; return errors === 0; }
|
|
5771
|
-
const
|
|
5772
|
-
const
|
|
6066
|
+
const schema79 = { "description": "The method of loading chunks (methods included by default are 'jsonp' (web), 'import' (ESM), 'importScripts' (WebWorker), 'require' (sync node.js), 'async-node' (async node.js), but others might be added by plugins).", "anyOf": [{ "enum": [false] }, { "$ref": "#/definitions/ChunkLoadingType" }] };
|
|
6067
|
+
const schema80 = { "description": "The method of loading chunks (methods included by default are 'jsonp' (web), 'import' (ESM), 'importScripts' (WebWorker), 'require' (sync node.js), 'async-node' (async node.js), but others might be added by plugins).", "anyOf": [{ "enum": ["jsonp", "import-scripts", "require", "async-node", "import"] }, { "type": "string" }] };
|
|
5773
6068
|
function validate82(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) { let vErrors = null; let errors = 0; const _errs0 = errors; let valid0 = false; const _errs1 = errors; if (data !== false) {
|
|
5774
6069
|
const err0 = { instancePath, schemaPath: "#/anyOf/0/enum", keyword: "enum", params: {}, message: "must pass \"enum\" keyword validation" };
|
|
5775
6070
|
if (vErrors === null) {
|
|
@@ -5857,7 +6152,7 @@ else {
|
|
|
5857
6152
|
}
|
|
5858
6153
|
}
|
|
5859
6154
|
} validate82.errors = vErrors; return errors === 0; }
|
|
5860
|
-
const
|
|
6155
|
+
const schema81 = { "description": "List of chunk loading types enabled for use by entry points.", "type": "array", "items": { "$ref": "#/definitions/ChunkLoadingType" } };
|
|
5861
6156
|
function validate84(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) { let vErrors = null; let errors = 0; if (errors === 0) {
|
|
5862
6157
|
if (Array.isArray(data)) {
|
|
5863
6158
|
var valid0 = true;
|
|
@@ -5929,8 +6224,8 @@ function validate84(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
5929
6224
|
return false;
|
|
5930
6225
|
}
|
|
5931
6226
|
} validate84.errors = vErrors; return errors === 0; }
|
|
5932
|
-
const
|
|
5933
|
-
const
|
|
6227
|
+
const schema83 = { "description": "Specifies the filename template of output files of non-initial chunks on disk. You must **not** specify an absolute path here, but the path may contain folders separated by '/'! The specified path is joined with the value of the 'output.path' option to determine the location on disk.", "oneOf": [{ "$ref": "#/definitions/FilenameTemplate" }] };
|
|
6228
|
+
const schema84 = { "description": "Specifies the filename template of output files on disk. You must **not** specify an absolute path here, but the path may contain folders separated by '/'! The specified path is joined with the value of the 'output.path' option to determine the location on disk.", "anyOf": [{ "type": "string", "minLength": 1 }, { "instanceof": "Function" }] };
|
|
5934
6229
|
function validate86(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) { let vErrors = null; let errors = 0; const _errs0 = errors; let valid0 = false; let passing0 = null; const _errs1 = errors; const _errs3 = errors; let valid2 = false; const _errs4 = errors; if (errors === _errs4) {
|
|
5935
6230
|
if (typeof data === "string") {
|
|
5936
6231
|
if (data.length < 1) {
|
|
@@ -6014,7 +6309,7 @@ else {
|
|
|
6014
6309
|
}
|
|
6015
6310
|
}
|
|
6016
6311
|
} validate86.errors = vErrors; return errors === 0; }
|
|
6017
|
-
const
|
|
6312
|
+
const schema86 = { "description": "Specifies the filename template of non-initial output css files on disk. You must **not** specify an absolute path here, but the path may contain folders separated by '/'! The specified path is joined with the value of the 'output.path' option to determine the location on disk.", "oneOf": [{ "$ref": "#/definitions/FilenameTemplate" }] };
|
|
6018
6313
|
function validate88(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) { let vErrors = null; let errors = 0; const _errs0 = errors; let valid0 = false; let passing0 = null; const _errs1 = errors; const _errs3 = errors; let valid2 = false; const _errs4 = errors; if (errors === _errs4) {
|
|
6019
6314
|
if (typeof data === "string") {
|
|
6020
6315
|
if (data.length < 1) {
|
|
@@ -6098,7 +6393,7 @@ else {
|
|
|
6098
6393
|
}
|
|
6099
6394
|
}
|
|
6100
6395
|
} validate88.errors = vErrors; return errors === 0; }
|
|
6101
|
-
const
|
|
6396
|
+
const schema88 = { "description": "Specifies the filename template of output css files on disk. You must **not** specify an absolute path here, but the path may contain folders separated by '/'! The specified path is joined with the value of the 'output.path' option to determine the location on disk.", "oneOf": [{ "$ref": "#/definitions/FilenameTemplate" }] };
|
|
6102
6397
|
function validate90(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) { let vErrors = null; let errors = 0; const _errs0 = errors; let valid0 = false; let passing0 = null; const _errs1 = errors; const _errs3 = errors; let valid2 = false; const _errs4 = errors; if (errors === _errs4) {
|
|
6103
6398
|
if (typeof data === "string") {
|
|
6104
6399
|
if (data.length < 1) {
|
|
@@ -6182,7 +6477,7 @@ else {
|
|
|
6182
6477
|
}
|
|
6183
6478
|
}
|
|
6184
6479
|
} validate90.errors = vErrors; return errors === 0; }
|
|
6185
|
-
const
|
|
6480
|
+
const schema92 = { "description": "List of wasm loading types enabled for use by entry points.", "type": "array", "items": { "$ref": "#/definitions/WasmLoadingType" } };
|
|
6186
6481
|
function validate92(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) { let vErrors = null; let errors = 0; if (errors === 0) {
|
|
6187
6482
|
if (Array.isArray(data)) {
|
|
6188
6483
|
var valid0 = true;
|
|
@@ -6254,7 +6549,7 @@ function validate92(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
6254
6549
|
return false;
|
|
6255
6550
|
}
|
|
6256
6551
|
} validate92.errors = vErrors; return errors === 0; }
|
|
6257
|
-
const
|
|
6552
|
+
const schema95 = { "description": "List of library types enabled for use by entry points.", "type": "array", "items": { "$ref": "#/definitions/LibraryType" } };
|
|
6258
6553
|
function validate95(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) { let vErrors = null; let errors = 0; if (errors === 0) {
|
|
6259
6554
|
if (Array.isArray(data)) {
|
|
6260
6555
|
var valid0 = true;
|
|
@@ -6326,7 +6621,7 @@ function validate95(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
6326
6621
|
return false;
|
|
6327
6622
|
}
|
|
6328
6623
|
} validate95.errors = vErrors; return errors === 0; }
|
|
6329
|
-
const
|
|
6624
|
+
const schema97 = { "description": "Specifies the filename of output files on disk. You must **not** specify an absolute path here, but the path may contain folders separated by '/'! The specified path is joined with the value of the 'output.path' option to determine the location on disk.", "oneOf": [{ "$ref": "#/definitions/FilenameTemplate" }] };
|
|
6330
6625
|
function validate97(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) { let vErrors = null; let errors = 0; const _errs0 = errors; let valid0 = false; let passing0 = null; const _errs1 = errors; const _errs3 = errors; let valid2 = false; const _errs4 = errors; if (errors === _errs4) {
|
|
6331
6626
|
if (typeof data === "string") {
|
|
6332
6627
|
if (data.length < 1) {
|
|
@@ -6410,9 +6705,9 @@ else {
|
|
|
6410
6705
|
}
|
|
6411
6706
|
}
|
|
6412
6707
|
} validate97.errors = vErrors; return errors === 0; }
|
|
6413
|
-
const
|
|
6414
|
-
const
|
|
6415
|
-
const
|
|
6708
|
+
const schema101 = { "description": "Make the output files a library, exporting the exports of the entry point.", "anyOf": [{ "$ref": "#/definitions/LibraryName" }, { "$ref": "#/definitions/LibraryOptions" }] };
|
|
6709
|
+
const schema102 = { "description": "The name of the library (some types allow unnamed libraries too).", "anyOf": [{ "type": "array", "items": { "description": "A part of the library name.", "type": "string", "minLength": 1 }, "minItems": 1 }, { "type": "string", "minLength": 1 }, { "$ref": "#/definitions/LibraryCustomUmdObject" }] };
|
|
6710
|
+
const schema103 = { "description": "Description object for all UMD variants of the library name.", "type": "object", "additionalProperties": false, "properties": { "amd": { "description": "Name of the exposed AMD library in the UMD.", "type": "string", "minLength": 1 }, "commonjs": { "description": "Name of the exposed commonjs export in the UMD.", "type": "string", "minLength": 1 }, "root": { "description": "Name of the property exposed globally by a UMD library.", "anyOf": [{ "type": "array", "items": { "description": "Part of the name of the property exposed globally by a UMD library.", "type": "string", "minLength": 1 } }, { "type": "string", "minLength": 1 }] } } };
|
|
6416
6711
|
function validate100(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) { let vErrors = null; let errors = 0; const _errs0 = errors; let valid0 = false; const _errs1 = errors; if (errors === _errs1) {
|
|
6417
6712
|
if (Array.isArray(data)) {
|
|
6418
6713
|
if (data.length < 1) {
|
|
@@ -6738,7 +7033,7 @@ else {
|
|
|
6738
7033
|
}
|
|
6739
7034
|
}
|
|
6740
7035
|
} validate100.errors = vErrors; return errors === 0; }
|
|
6741
|
-
const
|
|
7036
|
+
const schema104 = { "description": "Options for library.", "type": "object", "additionalProperties": false, "properties": { "auxiliaryComment": { "$ref": "#/definitions/AuxiliaryComment" }, "export": { "$ref": "#/definitions/LibraryExport" }, "name": { "$ref": "#/definitions/LibraryName" }, "type": { "$ref": "#/definitions/LibraryType" }, "umdNamedDefine": { "$ref": "#/definitions/UmdNamedDefine" } }, "required": ["type"] };
|
|
6742
7037
|
function validate102(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) { let vErrors = null; let errors = 0; if (errors === 0) {
|
|
6743
7038
|
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
6744
7039
|
let missing0;
|
|
@@ -7013,8 +7308,8 @@ else {
|
|
|
7013
7308
|
}
|
|
7014
7309
|
}
|
|
7015
7310
|
} validate99.errors = vErrors; return errors === 0; }
|
|
7016
|
-
const
|
|
7017
|
-
const
|
|
7311
|
+
const schema112 = { "description": "The 'publicPath' specifies the public URL address of the output files when referenced in a browser.", "anyOf": [{ "enum": ["auto"] }, { "$ref": "#/definitions/RawPublicPath" }] };
|
|
7312
|
+
const schema113 = { "description": "The 'publicPath' specifies the public URL address of the output files when referenced in a browser.", "anyOf": [{ "type": "string" }] };
|
|
7018
7313
|
function validate107(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) { let vErrors = null; let errors = 0; const _errs0 = errors; let valid0 = false; const _errs1 = errors; if (data !== "auto") {
|
|
7019
7314
|
const err0 = { instancePath, schemaPath: "#/anyOf/0/enum", keyword: "enum", params: {}, message: "must pass \"enum\" keyword validation" };
|
|
7020
7315
|
if (vErrors === null) {
|
|
@@ -7087,7 +7382,7 @@ else {
|
|
|
7087
7382
|
}
|
|
7088
7383
|
}
|
|
7089
7384
|
} validate107.errors = vErrors; return errors === 0; }
|
|
7090
|
-
const
|
|
7385
|
+
const schema119 = { "description": "Specifies the filename of output files on disk. You must **not** specify an absolute path here, but the path may contain folders separated by '/'! The specified path is joined with the value of the 'output.path' option to determine the location on disk.", "oneOf": [{ "$ref": "#/definitions/FilenameTemplate" }] };
|
|
7091
7386
|
function validate109(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) { let vErrors = null; let errors = 0; const _errs0 = errors; let valid0 = false; let passing0 = null; const _errs1 = errors; const _errs3 = errors; let valid2 = false; const _errs4 = errors; if (errors === _errs4) {
|
|
7092
7387
|
if (typeof data === "string") {
|
|
7093
7388
|
if (data.length < 1) {
|
|
@@ -7175,7 +7470,7 @@ function validate79(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
7175
7470
|
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
7176
7471
|
const _errs1 = errors;
|
|
7177
7472
|
for (const key0 in data) {
|
|
7178
|
-
if (!(func2.call(
|
|
7473
|
+
if (!(func2.call(schema72.properties, key0))) {
|
|
7179
7474
|
validate79.errors = [{ instancePath, schemaPath: "#/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key0 }, message: "must NOT have additional properties" }];
|
|
7180
7475
|
return false;
|
|
7181
7476
|
break;
|
|
@@ -8110,6 +8405,142 @@ function validate79(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
8110
8405
|
else {
|
|
8111
8406
|
var valid0 = true;
|
|
8112
8407
|
}
|
|
8408
|
+
if (valid0) {
|
|
8409
|
+
if (data.hashDigest !== undefined) {
|
|
8410
|
+
const _errs101 = errors;
|
|
8411
|
+
if (typeof data.hashDigest !== "string") {
|
|
8412
|
+
validate79.errors = [{ instancePath: instancePath + "/hashDigest", schemaPath: "#/definitions/HashDigest/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
|
|
8413
|
+
return false;
|
|
8414
|
+
}
|
|
8415
|
+
var valid0 = _errs101 === errors;
|
|
8416
|
+
}
|
|
8417
|
+
else {
|
|
8418
|
+
var valid0 = true;
|
|
8419
|
+
}
|
|
8420
|
+
if (valid0) {
|
|
8421
|
+
if (data.hashDigestLength !== undefined) {
|
|
8422
|
+
let data35 = data.hashDigestLength;
|
|
8423
|
+
const _errs104 = errors;
|
|
8424
|
+
const _errs105 = errors;
|
|
8425
|
+
if (errors === _errs105) {
|
|
8426
|
+
if (typeof data35 == "number") {
|
|
8427
|
+
if (data35 < 1 || isNaN(data35)) {
|
|
8428
|
+
validate79.errors = [{ instancePath: instancePath + "/hashDigestLength", schemaPath: "#/definitions/HashDigestLength/minimum", keyword: "minimum", params: { comparison: ">=", limit: 1 }, message: "must be >= 1" }];
|
|
8429
|
+
return false;
|
|
8430
|
+
}
|
|
8431
|
+
}
|
|
8432
|
+
else {
|
|
8433
|
+
validate79.errors = [{ instancePath: instancePath + "/hashDigestLength", schemaPath: "#/definitions/HashDigestLength/type", keyword: "type", params: { type: "number" }, message: "must be number" }];
|
|
8434
|
+
return false;
|
|
8435
|
+
}
|
|
8436
|
+
}
|
|
8437
|
+
var valid0 = _errs104 === errors;
|
|
8438
|
+
}
|
|
8439
|
+
else {
|
|
8440
|
+
var valid0 = true;
|
|
8441
|
+
}
|
|
8442
|
+
if (valid0) {
|
|
8443
|
+
if (data.hashFunction !== undefined) {
|
|
8444
|
+
let data36 = data.hashFunction;
|
|
8445
|
+
const _errs107 = errors;
|
|
8446
|
+
const _errs109 = errors;
|
|
8447
|
+
let valid34 = false;
|
|
8448
|
+
const _errs110 = errors;
|
|
8449
|
+
if (errors === _errs110) {
|
|
8450
|
+
if (typeof data36 === "string") {
|
|
8451
|
+
if (data36.length < 1) {
|
|
8452
|
+
const err27 = { instancePath: instancePath + "/hashFunction", schemaPath: "#/definitions/HashFunction/anyOf/0/minLength", keyword: "minLength", params: {}, message: "must pass \"minLength\" keyword validation" };
|
|
8453
|
+
if (vErrors === null) {
|
|
8454
|
+
vErrors = [err27];
|
|
8455
|
+
}
|
|
8456
|
+
else {
|
|
8457
|
+
vErrors.push(err27);
|
|
8458
|
+
}
|
|
8459
|
+
errors++;
|
|
8460
|
+
}
|
|
8461
|
+
}
|
|
8462
|
+
else {
|
|
8463
|
+
const err28 = { instancePath: instancePath + "/hashFunction", schemaPath: "#/definitions/HashFunction/anyOf/0/type", keyword: "type", params: { type: "string" }, message: "must be string" };
|
|
8464
|
+
if (vErrors === null) {
|
|
8465
|
+
vErrors = [err28];
|
|
8466
|
+
}
|
|
8467
|
+
else {
|
|
8468
|
+
vErrors.push(err28);
|
|
8469
|
+
}
|
|
8470
|
+
errors++;
|
|
8471
|
+
}
|
|
8472
|
+
}
|
|
8473
|
+
var _valid9 = _errs110 === errors;
|
|
8474
|
+
valid34 = valid34 || _valid9;
|
|
8475
|
+
if (!valid34) {
|
|
8476
|
+
const _errs112 = errors;
|
|
8477
|
+
if (!(data36 instanceof Function)) {
|
|
8478
|
+
const err29 = { instancePath: instancePath + "/hashFunction", schemaPath: "#/definitions/HashFunction/anyOf/1/instanceof", keyword: "instanceof", params: {}, message: "must pass \"instanceof\" keyword validation" };
|
|
8479
|
+
if (vErrors === null) {
|
|
8480
|
+
vErrors = [err29];
|
|
8481
|
+
}
|
|
8482
|
+
else {
|
|
8483
|
+
vErrors.push(err29);
|
|
8484
|
+
}
|
|
8485
|
+
errors++;
|
|
8486
|
+
}
|
|
8487
|
+
var _valid9 = _errs112 === errors;
|
|
8488
|
+
valid34 = valid34 || _valid9;
|
|
8489
|
+
}
|
|
8490
|
+
if (!valid34) {
|
|
8491
|
+
const err30 = { instancePath: instancePath + "/hashFunction", schemaPath: "#/definitions/HashFunction/anyOf", keyword: "anyOf", params: {}, message: "must match a schema in anyOf" };
|
|
8492
|
+
if (vErrors === null) {
|
|
8493
|
+
vErrors = [err30];
|
|
8494
|
+
}
|
|
8495
|
+
else {
|
|
8496
|
+
vErrors.push(err30);
|
|
8497
|
+
}
|
|
8498
|
+
errors++;
|
|
8499
|
+
validate79.errors = vErrors;
|
|
8500
|
+
return false;
|
|
8501
|
+
}
|
|
8502
|
+
else {
|
|
8503
|
+
errors = _errs109;
|
|
8504
|
+
if (vErrors !== null) {
|
|
8505
|
+
if (_errs109) {
|
|
8506
|
+
vErrors.length = _errs109;
|
|
8507
|
+
}
|
|
8508
|
+
else {
|
|
8509
|
+
vErrors = null;
|
|
8510
|
+
}
|
|
8511
|
+
}
|
|
8512
|
+
}
|
|
8513
|
+
var valid0 = _errs107 === errors;
|
|
8514
|
+
}
|
|
8515
|
+
else {
|
|
8516
|
+
var valid0 = true;
|
|
8517
|
+
}
|
|
8518
|
+
if (valid0) {
|
|
8519
|
+
if (data.hashSalt !== undefined) {
|
|
8520
|
+
let data37 = data.hashSalt;
|
|
8521
|
+
const _errs113 = errors;
|
|
8522
|
+
const _errs114 = errors;
|
|
8523
|
+
if (errors === _errs114) {
|
|
8524
|
+
if (typeof data37 === "string") {
|
|
8525
|
+
if (data37.length < 1) {
|
|
8526
|
+
validate79.errors = [{ instancePath: instancePath + "/hashSalt", schemaPath: "#/definitions/HashSalt/minLength", keyword: "minLength", params: {}, message: "must pass \"minLength\" keyword validation" }];
|
|
8527
|
+
return false;
|
|
8528
|
+
}
|
|
8529
|
+
}
|
|
8530
|
+
else {
|
|
8531
|
+
validate79.errors = [{ instancePath: instancePath + "/hashSalt", schemaPath: "#/definitions/HashSalt/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
|
|
8532
|
+
return false;
|
|
8533
|
+
}
|
|
8534
|
+
}
|
|
8535
|
+
var valid0 = _errs113 === errors;
|
|
8536
|
+
}
|
|
8537
|
+
else {
|
|
8538
|
+
var valid0 = true;
|
|
8539
|
+
}
|
|
8540
|
+
}
|
|
8541
|
+
}
|
|
8542
|
+
}
|
|
8543
|
+
}
|
|
8113
8544
|
}
|
|
8114
8545
|
}
|
|
8115
8546
|
}
|
|
@@ -8148,7 +8579,7 @@ function validate79(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
8148
8579
|
return false;
|
|
8149
8580
|
}
|
|
8150
8581
|
} validate79.errors = vErrors; return errors === 0; }
|
|
8151
|
-
const
|
|
8582
|
+
const schema125 = { "description": "Add additional plugins to the compiler.", "type": "array", "items": { "description": "Plugin of type object or instanceof Function.", "anyOf": [{ "$ref": "#/definitions/RspackPluginInstance" }, { "$ref": "#/definitions/RspackPluginFunction" }] } };
|
|
8152
8583
|
function validate112(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) { let vErrors = null; let errors = 0; if (errors === 0) {
|
|
8153
8584
|
if (Array.isArray(data)) {
|
|
8154
8585
|
var valid0 = true;
|
|
@@ -8250,7 +8681,7 @@ function validate112(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
8250
8681
|
return false;
|
|
8251
8682
|
}
|
|
8252
8683
|
} validate112.errors = vErrors; return errors === 0; }
|
|
8253
|
-
const
|
|
8684
|
+
const schema128 = { "description": "Options for the resolver.", "oneOf": [{ "$ref": "#/definitions/ResolveOptions" }] };
|
|
8254
8685
|
function validate114(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) { let vErrors = null; let errors = 0; const _errs0 = errors; let valid0 = false; let passing0 = null; const _errs1 = errors; if (!(validate50(data, { instancePath, parentData, parentDataProperty, rootData }))) {
|
|
8255
8686
|
vErrors = vErrors === null ? validate50.errors : vErrors.concat(validate50.errors);
|
|
8256
8687
|
errors = vErrors.length;
|
|
@@ -8280,8 +8711,8 @@ else {
|
|
|
8280
8711
|
}
|
|
8281
8712
|
}
|
|
8282
8713
|
} validate114.errors = vErrors; return errors === 0; }
|
|
8283
|
-
const
|
|
8284
|
-
const
|
|
8714
|
+
const schema130 = { "description": "Stats options object or preset name.", "anyOf": [{ "enum": ["none", "errors-only", "errors-warnings", "normal", "verbose"] }, { "type": "boolean" }, { "$ref": "#/definitions/StatsOptions" }] };
|
|
8715
|
+
const schema131 = { "description": "Stats options object.", "type": "object", "additionalProperties": true, "properties": { "all": { "description": "Fallback value for stats options when an option is not defined (has precedence over local rspack defaults).", "type": "boolean" }, "assets": { "description": "Add assets information.", "type": "boolean" }, "chunkGroups": { "description": "Display all chunk groups with the corresponding bundles.", "type": "boolean" }, "chunks": { "description": "Add chunk information.", "type": "boolean" }, "colors": { "description": "Enables/Disables colorful output.", "type": "boolean" }, "entrypoints": { "description": "Display the entry points with the corresponding bundles.", "anyOf": [{ "enum": ["auto"] }, { "type": "boolean" }] }, "errors": { "description": "Add errors.", "type": "boolean" }, "errorsCount": { "description": "Add errors count.", "type": "boolean" }, "hash": { "description": "Add the hash of the compilation.", "type": "boolean" }, "modules": { "description": "Add built modules information.", "type": "boolean" }, "preset": { "description": "Preset for the default values.", "anyOf": [{ "type": "boolean" }, { "type": "string" }] }, "publicPath": { "description": "Add public path information.", "type": "boolean" }, "reasons": { "description": "Add information about the reasons why modules are included.", "type": "boolean" }, "warnings": { "description": "Add warnings.", "type": "boolean" }, "warningsCount": { "description": "Add warnings count.", "type": "boolean" }, "outputPath": { "description": "Add output path information.", "type": "boolean" }, "chunkModules": { "description": "Add built modules information to chunk information.", "type": "boolean" }, "chunkRelations": { "description": "Add information about parent, children and sibling chunks to chunk information.", "type": "boolean" }, "timings": { "description": "Add timing information.", "type": "boolean" }, "builtAt": { "description": "Add built at time information.", "type": "boolean" }, "nestedModules": { "description": "Add information about modules nested in other modules (like with module concatenation).", "type": "boolean" } } };
|
|
8285
8716
|
function validate117(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) { let vErrors = null; let errors = 0; const _errs0 = errors; let valid0 = false; const _errs1 = errors; if (data !== "none" && data !== "errors-only" && data !== "errors-warnings" && data !== "normal" && data !== "verbose") {
|
|
8286
8717
|
const err0 = { instancePath, schemaPath: "#/anyOf/0/enum", keyword: "enum", params: {}, message: "must pass \"enum\" keyword validation" };
|
|
8287
8718
|
if (vErrors === null) {
|
|
@@ -9167,7 +9598,7 @@ function validate10(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
9167
9598
|
if (data16 && typeof data16 == "object" && !Array.isArray(data16)) {
|
|
9168
9599
|
const _errs47 = errors;
|
|
9169
9600
|
for (const key2 in data16) {
|
|
9170
|
-
if (!(key2 === "node")) {
|
|
9601
|
+
if (!((((((key2 === "node") || (key2 === "web")) || (key2 === "electron")) || (key2 === "electronMain")) || (key2 === "electronPreload")) || (key2 === "electronRenderer"))) {
|
|
9171
9602
|
validate10.errors = [{ instancePath: instancePath + "/externalsPresets", schemaPath: "#/definitions/ExternalsPresets/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key2 }, message: "must NOT have additional properties" }];
|
|
9172
9603
|
return false;
|
|
9173
9604
|
break;
|
|
@@ -9175,10 +9606,80 @@ function validate10(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
9175
9606
|
}
|
|
9176
9607
|
if (_errs47 === errors) {
|
|
9177
9608
|
if (data16.node !== undefined) {
|
|
9609
|
+
const _errs48 = errors;
|
|
9178
9610
|
if (typeof data16.node !== "boolean") {
|
|
9179
9611
|
validate10.errors = [{ instancePath: instancePath + "/externalsPresets/node", schemaPath: "#/definitions/ExternalsPresets/properties/node/type", keyword: "type", params: { type: "boolean" }, message: "must be boolean" }];
|
|
9180
9612
|
return false;
|
|
9181
9613
|
}
|
|
9614
|
+
var valid13 = _errs48 === errors;
|
|
9615
|
+
}
|
|
9616
|
+
else {
|
|
9617
|
+
var valid13 = true;
|
|
9618
|
+
}
|
|
9619
|
+
if (valid13) {
|
|
9620
|
+
if (data16.web !== undefined) {
|
|
9621
|
+
const _errs50 = errors;
|
|
9622
|
+
if (typeof data16.web !== "boolean") {
|
|
9623
|
+
validate10.errors = [{ instancePath: instancePath + "/externalsPresets/web", schemaPath: "#/definitions/ExternalsPresets/properties/web/type", keyword: "type", params: { type: "boolean" }, message: "must be boolean" }];
|
|
9624
|
+
return false;
|
|
9625
|
+
}
|
|
9626
|
+
var valid13 = _errs50 === errors;
|
|
9627
|
+
}
|
|
9628
|
+
else {
|
|
9629
|
+
var valid13 = true;
|
|
9630
|
+
}
|
|
9631
|
+
if (valid13) {
|
|
9632
|
+
if (data16.electron !== undefined) {
|
|
9633
|
+
const _errs52 = errors;
|
|
9634
|
+
if (typeof data16.electron !== "boolean") {
|
|
9635
|
+
validate10.errors = [{ instancePath: instancePath + "/externalsPresets/electron", schemaPath: "#/definitions/ExternalsPresets/properties/electron/type", keyword: "type", params: { type: "boolean" }, message: "must be boolean" }];
|
|
9636
|
+
return false;
|
|
9637
|
+
}
|
|
9638
|
+
var valid13 = _errs52 === errors;
|
|
9639
|
+
}
|
|
9640
|
+
else {
|
|
9641
|
+
var valid13 = true;
|
|
9642
|
+
}
|
|
9643
|
+
if (valid13) {
|
|
9644
|
+
if (data16.electronMain !== undefined) {
|
|
9645
|
+
const _errs54 = errors;
|
|
9646
|
+
if (typeof data16.electronMain !== "boolean") {
|
|
9647
|
+
validate10.errors = [{ instancePath: instancePath + "/externalsPresets/electronMain", schemaPath: "#/definitions/ExternalsPresets/properties/electronMain/type", keyword: "type", params: { type: "boolean" }, message: "must be boolean" }];
|
|
9648
|
+
return false;
|
|
9649
|
+
}
|
|
9650
|
+
var valid13 = _errs54 === errors;
|
|
9651
|
+
}
|
|
9652
|
+
else {
|
|
9653
|
+
var valid13 = true;
|
|
9654
|
+
}
|
|
9655
|
+
if (valid13) {
|
|
9656
|
+
if (data16.electronPreload !== undefined) {
|
|
9657
|
+
const _errs56 = errors;
|
|
9658
|
+
if (typeof data16.electronPreload !== "boolean") {
|
|
9659
|
+
validate10.errors = [{ instancePath: instancePath + "/externalsPresets/electronPreload", schemaPath: "#/definitions/ExternalsPresets/properties/electronPreload/type", keyword: "type", params: { type: "boolean" }, message: "must be boolean" }];
|
|
9660
|
+
return false;
|
|
9661
|
+
}
|
|
9662
|
+
var valid13 = _errs56 === errors;
|
|
9663
|
+
}
|
|
9664
|
+
else {
|
|
9665
|
+
var valid13 = true;
|
|
9666
|
+
}
|
|
9667
|
+
if (valid13) {
|
|
9668
|
+
if (data16.electronRenderer !== undefined) {
|
|
9669
|
+
const _errs58 = errors;
|
|
9670
|
+
if (typeof data16.electronRenderer !== "boolean") {
|
|
9671
|
+
validate10.errors = [{ instancePath: instancePath + "/externalsPresets/electronRenderer", schemaPath: "#/definitions/ExternalsPresets/properties/electronRenderer/type", keyword: "type", params: { type: "boolean" }, message: "must be boolean" }];
|
|
9672
|
+
return false;
|
|
9673
|
+
}
|
|
9674
|
+
var valid13 = _errs58 === errors;
|
|
9675
|
+
}
|
|
9676
|
+
else {
|
|
9677
|
+
var valid13 = true;
|
|
9678
|
+
}
|
|
9679
|
+
}
|
|
9680
|
+
}
|
|
9681
|
+
}
|
|
9682
|
+
}
|
|
9182
9683
|
}
|
|
9183
9684
|
}
|
|
9184
9685
|
}
|
|
@@ -9194,162 +9695,162 @@ function validate10(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
9194
9695
|
}
|
|
9195
9696
|
if (valid0) {
|
|
9196
9697
|
if (data.infrastructureLogging !== undefined) {
|
|
9197
|
-
const
|
|
9698
|
+
const _errs60 = errors;
|
|
9198
9699
|
if (!(validate28(data.infrastructureLogging, { instancePath: instancePath + "/infrastructureLogging", parentData: data, parentDataProperty: "infrastructureLogging", rootData }))) {
|
|
9199
9700
|
vErrors = vErrors === null ? validate28.errors : vErrors.concat(validate28.errors);
|
|
9200
9701
|
errors = vErrors.length;
|
|
9201
9702
|
}
|
|
9202
|
-
var valid0 =
|
|
9703
|
+
var valid0 = _errs60 === errors;
|
|
9203
9704
|
}
|
|
9204
9705
|
else {
|
|
9205
9706
|
var valid0 = true;
|
|
9206
9707
|
}
|
|
9207
9708
|
if (valid0) {
|
|
9208
9709
|
if (data.mode !== undefined) {
|
|
9209
|
-
let
|
|
9210
|
-
const
|
|
9211
|
-
if (
|
|
9710
|
+
let data24 = data.mode;
|
|
9711
|
+
const _errs61 = errors;
|
|
9712
|
+
if (data24 !== "development" && data24 !== "production" && data24 !== "none") {
|
|
9212
9713
|
validate10.errors = [{ instancePath: instancePath + "/mode", schemaPath: "#/definitions/Mode/enum", keyword: "enum", params: {}, message: "must pass \"enum\" keyword validation" }];
|
|
9213
9714
|
return false;
|
|
9214
9715
|
}
|
|
9215
|
-
var valid0 =
|
|
9716
|
+
var valid0 = _errs61 === errors;
|
|
9216
9717
|
}
|
|
9217
9718
|
else {
|
|
9218
9719
|
var valid0 = true;
|
|
9219
9720
|
}
|
|
9220
9721
|
if (valid0) {
|
|
9221
9722
|
if (data.module !== undefined) {
|
|
9222
|
-
const
|
|
9723
|
+
const _errs63 = errors;
|
|
9223
9724
|
if (!(validate32(data.module, { instancePath: instancePath + "/module", parentData: data, parentDataProperty: "module", rootData }))) {
|
|
9224
9725
|
vErrors = vErrors === null ? validate32.errors : vErrors.concat(validate32.errors);
|
|
9225
9726
|
errors = vErrors.length;
|
|
9226
9727
|
}
|
|
9227
|
-
var valid0 =
|
|
9728
|
+
var valid0 = _errs63 === errors;
|
|
9228
9729
|
}
|
|
9229
9730
|
else {
|
|
9230
9731
|
var valid0 = true;
|
|
9231
9732
|
}
|
|
9232
9733
|
if (valid0) {
|
|
9233
9734
|
if (data.name !== undefined) {
|
|
9234
|
-
const
|
|
9735
|
+
const _errs64 = errors;
|
|
9235
9736
|
if (typeof data.name !== "string") {
|
|
9236
9737
|
validate10.errors = [{ instancePath: instancePath + "/name", schemaPath: "#/definitions/Name/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
|
|
9237
9738
|
return false;
|
|
9238
9739
|
}
|
|
9239
|
-
var valid0 =
|
|
9740
|
+
var valid0 = _errs64 === errors;
|
|
9240
9741
|
}
|
|
9241
9742
|
else {
|
|
9242
9743
|
var valid0 = true;
|
|
9243
9744
|
}
|
|
9244
9745
|
if (valid0) {
|
|
9245
9746
|
if (data.node !== undefined) {
|
|
9246
|
-
const
|
|
9747
|
+
const _errs67 = errors;
|
|
9247
9748
|
if (!(validate71(data.node, { instancePath: instancePath + "/node", parentData: data, parentDataProperty: "node", rootData }))) {
|
|
9248
9749
|
vErrors = vErrors === null ? validate71.errors : vErrors.concat(validate71.errors);
|
|
9249
9750
|
errors = vErrors.length;
|
|
9250
9751
|
}
|
|
9251
|
-
var valid0 =
|
|
9752
|
+
var valid0 = _errs67 === errors;
|
|
9252
9753
|
}
|
|
9253
9754
|
else {
|
|
9254
9755
|
var valid0 = true;
|
|
9255
9756
|
}
|
|
9256
9757
|
if (valid0) {
|
|
9257
9758
|
if (data.optimization !== undefined) {
|
|
9258
|
-
const
|
|
9759
|
+
const _errs68 = errors;
|
|
9259
9760
|
if (!(validate73(data.optimization, { instancePath: instancePath + "/optimization", parentData: data, parentDataProperty: "optimization", rootData }))) {
|
|
9260
9761
|
vErrors = vErrors === null ? validate73.errors : vErrors.concat(validate73.errors);
|
|
9261
9762
|
errors = vErrors.length;
|
|
9262
9763
|
}
|
|
9263
|
-
var valid0 =
|
|
9764
|
+
var valid0 = _errs68 === errors;
|
|
9264
9765
|
}
|
|
9265
9766
|
else {
|
|
9266
9767
|
var valid0 = true;
|
|
9267
9768
|
}
|
|
9268
9769
|
if (valid0) {
|
|
9269
9770
|
if (data.output !== undefined) {
|
|
9270
|
-
const
|
|
9771
|
+
const _errs69 = errors;
|
|
9271
9772
|
if (!(validate79(data.output, { instancePath: instancePath + "/output", parentData: data, parentDataProperty: "output", rootData }))) {
|
|
9272
9773
|
vErrors = vErrors === null ? validate79.errors : vErrors.concat(validate79.errors);
|
|
9273
9774
|
errors = vErrors.length;
|
|
9274
9775
|
}
|
|
9275
|
-
var valid0 =
|
|
9776
|
+
var valid0 = _errs69 === errors;
|
|
9276
9777
|
}
|
|
9277
9778
|
else {
|
|
9278
9779
|
var valid0 = true;
|
|
9279
9780
|
}
|
|
9280
9781
|
if (valid0) {
|
|
9281
9782
|
if (data.plugins !== undefined) {
|
|
9282
|
-
const
|
|
9783
|
+
const _errs70 = errors;
|
|
9283
9784
|
if (!(validate112(data.plugins, { instancePath: instancePath + "/plugins", parentData: data, parentDataProperty: "plugins", rootData }))) {
|
|
9284
9785
|
vErrors = vErrors === null ? validate112.errors : vErrors.concat(validate112.errors);
|
|
9285
9786
|
errors = vErrors.length;
|
|
9286
9787
|
}
|
|
9287
|
-
var valid0 =
|
|
9788
|
+
var valid0 = _errs70 === errors;
|
|
9288
9789
|
}
|
|
9289
9790
|
else {
|
|
9290
9791
|
var valid0 = true;
|
|
9291
9792
|
}
|
|
9292
9793
|
if (valid0) {
|
|
9293
9794
|
if (data.resolve !== undefined) {
|
|
9294
|
-
const
|
|
9795
|
+
const _errs71 = errors;
|
|
9295
9796
|
if (!(validate114(data.resolve, { instancePath: instancePath + "/resolve", parentData: data, parentDataProperty: "resolve", rootData }))) {
|
|
9296
9797
|
vErrors = vErrors === null ? validate114.errors : vErrors.concat(validate114.errors);
|
|
9297
9798
|
errors = vErrors.length;
|
|
9298
9799
|
}
|
|
9299
|
-
var valid0 =
|
|
9800
|
+
var valid0 = _errs71 === errors;
|
|
9300
9801
|
}
|
|
9301
9802
|
else {
|
|
9302
9803
|
var valid0 = true;
|
|
9303
9804
|
}
|
|
9304
9805
|
if (valid0) {
|
|
9305
9806
|
if (data.snapshot !== undefined) {
|
|
9306
|
-
let
|
|
9307
|
-
const
|
|
9308
|
-
const
|
|
9309
|
-
if (errors ===
|
|
9310
|
-
if (
|
|
9311
|
-
const
|
|
9312
|
-
for (const key3 in
|
|
9807
|
+
let data32 = data.snapshot;
|
|
9808
|
+
const _errs72 = errors;
|
|
9809
|
+
const _errs73 = errors;
|
|
9810
|
+
if (errors === _errs73) {
|
|
9811
|
+
if (data32 && typeof data32 == "object" && !Array.isArray(data32)) {
|
|
9812
|
+
const _errs75 = errors;
|
|
9813
|
+
for (const key3 in data32) {
|
|
9313
9814
|
if (!((key3 === "module") || (key3 === "resolve"))) {
|
|
9314
9815
|
validate10.errors = [{ instancePath: instancePath + "/snapshot", schemaPath: "#/definitions/SnapshotOptions/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key3 }, message: "must NOT have additional properties" }];
|
|
9315
9816
|
return false;
|
|
9316
9817
|
break;
|
|
9317
9818
|
}
|
|
9318
9819
|
}
|
|
9319
|
-
if (
|
|
9320
|
-
if (
|
|
9321
|
-
let
|
|
9322
|
-
const
|
|
9323
|
-
if (errors ===
|
|
9324
|
-
if (
|
|
9325
|
-
const
|
|
9326
|
-
for (const key4 in
|
|
9820
|
+
if (_errs75 === errors) {
|
|
9821
|
+
if (data32.module !== undefined) {
|
|
9822
|
+
let data33 = data32.module;
|
|
9823
|
+
const _errs76 = errors;
|
|
9824
|
+
if (errors === _errs76) {
|
|
9825
|
+
if (data33 && typeof data33 == "object" && !Array.isArray(data33)) {
|
|
9826
|
+
const _errs78 = errors;
|
|
9827
|
+
for (const key4 in data33) {
|
|
9327
9828
|
if (!((key4 === "hash") || (key4 === "timestamp"))) {
|
|
9328
9829
|
validate10.errors = [{ instancePath: instancePath + "/snapshot/module", schemaPath: "#/definitions/SnapshotOptions/properties/module/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key4 }, message: "must NOT have additional properties" }];
|
|
9329
9830
|
return false;
|
|
9330
9831
|
break;
|
|
9331
9832
|
}
|
|
9332
9833
|
}
|
|
9333
|
-
if (
|
|
9334
|
-
if (
|
|
9335
|
-
const
|
|
9336
|
-
if (typeof
|
|
9834
|
+
if (_errs78 === errors) {
|
|
9835
|
+
if (data33.hash !== undefined) {
|
|
9836
|
+
const _errs79 = errors;
|
|
9837
|
+
if (typeof data33.hash !== "boolean") {
|
|
9337
9838
|
validate10.errors = [{ instancePath: instancePath + "/snapshot/module/hash", schemaPath: "#/definitions/SnapshotOptions/properties/module/properties/hash/type", keyword: "type", params: { type: "boolean" }, message: "must be boolean" }];
|
|
9338
9839
|
return false;
|
|
9339
9840
|
}
|
|
9340
|
-
var valid18 =
|
|
9841
|
+
var valid18 = _errs79 === errors;
|
|
9341
9842
|
}
|
|
9342
9843
|
else {
|
|
9343
9844
|
var valid18 = true;
|
|
9344
9845
|
}
|
|
9345
9846
|
if (valid18) {
|
|
9346
|
-
if (
|
|
9347
|
-
const
|
|
9348
|
-
if (typeof
|
|
9847
|
+
if (data33.timestamp !== undefined) {
|
|
9848
|
+
const _errs81 = errors;
|
|
9849
|
+
if (typeof data33.timestamp !== "boolean") {
|
|
9349
9850
|
validate10.errors = [{ instancePath: instancePath + "/snapshot/module/timestamp", schemaPath: "#/definitions/SnapshotOptions/properties/module/properties/timestamp/type", keyword: "type", params: { type: "boolean" }, message: "must be boolean" }];
|
|
9350
9851
|
return false;
|
|
9351
9852
|
}
|
|
9352
|
-
var valid18 =
|
|
9853
|
+
var valid18 = _errs81 === errors;
|
|
9353
9854
|
}
|
|
9354
9855
|
else {
|
|
9355
9856
|
var valid18 = true;
|
|
@@ -9362,45 +9863,45 @@ function validate10(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
9362
9863
|
return false;
|
|
9363
9864
|
}
|
|
9364
9865
|
}
|
|
9365
|
-
var valid17 =
|
|
9866
|
+
var valid17 = _errs76 === errors;
|
|
9366
9867
|
}
|
|
9367
9868
|
else {
|
|
9368
9869
|
var valid17 = true;
|
|
9369
9870
|
}
|
|
9370
9871
|
if (valid17) {
|
|
9371
|
-
if (
|
|
9372
|
-
let
|
|
9373
|
-
const
|
|
9374
|
-
if (errors ===
|
|
9375
|
-
if (
|
|
9376
|
-
const
|
|
9377
|
-
for (const key5 in
|
|
9872
|
+
if (data32.resolve !== undefined) {
|
|
9873
|
+
let data36 = data32.resolve;
|
|
9874
|
+
const _errs83 = errors;
|
|
9875
|
+
if (errors === _errs83) {
|
|
9876
|
+
if (data36 && typeof data36 == "object" && !Array.isArray(data36)) {
|
|
9877
|
+
const _errs85 = errors;
|
|
9878
|
+
for (const key5 in data36) {
|
|
9378
9879
|
if (!((key5 === "hash") || (key5 === "timestamp"))) {
|
|
9379
9880
|
validate10.errors = [{ instancePath: instancePath + "/snapshot/resolve", schemaPath: "#/definitions/SnapshotOptions/properties/resolve/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key5 }, message: "must NOT have additional properties" }];
|
|
9380
9881
|
return false;
|
|
9381
9882
|
break;
|
|
9382
9883
|
}
|
|
9383
9884
|
}
|
|
9384
|
-
if (
|
|
9385
|
-
if (
|
|
9386
|
-
const
|
|
9387
|
-
if (typeof
|
|
9885
|
+
if (_errs85 === errors) {
|
|
9886
|
+
if (data36.hash !== undefined) {
|
|
9887
|
+
const _errs86 = errors;
|
|
9888
|
+
if (typeof data36.hash !== "boolean") {
|
|
9388
9889
|
validate10.errors = [{ instancePath: instancePath + "/snapshot/resolve/hash", schemaPath: "#/definitions/SnapshotOptions/properties/resolve/properties/hash/type", keyword: "type", params: { type: "boolean" }, message: "must be boolean" }];
|
|
9389
9890
|
return false;
|
|
9390
9891
|
}
|
|
9391
|
-
var valid19 =
|
|
9892
|
+
var valid19 = _errs86 === errors;
|
|
9392
9893
|
}
|
|
9393
9894
|
else {
|
|
9394
9895
|
var valid19 = true;
|
|
9395
9896
|
}
|
|
9396
9897
|
if (valid19) {
|
|
9397
|
-
if (
|
|
9398
|
-
const
|
|
9399
|
-
if (typeof
|
|
9898
|
+
if (data36.timestamp !== undefined) {
|
|
9899
|
+
const _errs88 = errors;
|
|
9900
|
+
if (typeof data36.timestamp !== "boolean") {
|
|
9400
9901
|
validate10.errors = [{ instancePath: instancePath + "/snapshot/resolve/timestamp", schemaPath: "#/definitions/SnapshotOptions/properties/resolve/properties/timestamp/type", keyword: "type", params: { type: "boolean" }, message: "must be boolean" }];
|
|
9401
9902
|
return false;
|
|
9402
9903
|
}
|
|
9403
|
-
var valid19 =
|
|
9904
|
+
var valid19 = _errs88 === errors;
|
|
9404
9905
|
}
|
|
9405
9906
|
else {
|
|
9406
9907
|
var valid19 = true;
|
|
@@ -9413,7 +9914,7 @@ function validate10(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
9413
9914
|
return false;
|
|
9414
9915
|
}
|
|
9415
9916
|
}
|
|
9416
|
-
var valid17 =
|
|
9917
|
+
var valid17 = _errs83 === errors;
|
|
9417
9918
|
}
|
|
9418
9919
|
else {
|
|
9419
9920
|
var valid17 = true;
|
|
@@ -9426,33 +9927,33 @@ function validate10(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
9426
9927
|
return false;
|
|
9427
9928
|
}
|
|
9428
9929
|
}
|
|
9429
|
-
var valid0 =
|
|
9930
|
+
var valid0 = _errs72 === errors;
|
|
9430
9931
|
}
|
|
9431
9932
|
else {
|
|
9432
9933
|
var valid0 = true;
|
|
9433
9934
|
}
|
|
9434
9935
|
if (valid0) {
|
|
9435
9936
|
if (data.stats !== undefined) {
|
|
9436
|
-
const
|
|
9937
|
+
const _errs90 = errors;
|
|
9437
9938
|
if (!(validate117(data.stats, { instancePath: instancePath + "/stats", parentData: data, parentDataProperty: "stats", rootData }))) {
|
|
9438
9939
|
vErrors = vErrors === null ? validate117.errors : vErrors.concat(validate117.errors);
|
|
9439
9940
|
errors = vErrors.length;
|
|
9440
9941
|
}
|
|
9441
|
-
var valid0 =
|
|
9942
|
+
var valid0 = _errs90 === errors;
|
|
9442
9943
|
}
|
|
9443
9944
|
else {
|
|
9444
9945
|
var valid0 = true;
|
|
9445
9946
|
}
|
|
9446
9947
|
if (valid0) {
|
|
9447
9948
|
if (data.target !== undefined) {
|
|
9448
|
-
let
|
|
9449
|
-
const
|
|
9450
|
-
const
|
|
9949
|
+
let data40 = data.target;
|
|
9950
|
+
const _errs91 = errors;
|
|
9951
|
+
const _errs93 = errors;
|
|
9451
9952
|
let valid21 = false;
|
|
9452
|
-
const
|
|
9453
|
-
if (errors ===
|
|
9454
|
-
if (Array.isArray(
|
|
9455
|
-
if (
|
|
9953
|
+
const _errs94 = errors;
|
|
9954
|
+
if (errors === _errs94) {
|
|
9955
|
+
if (Array.isArray(data40)) {
|
|
9956
|
+
if (data40.length < 1) {
|
|
9456
9957
|
const err6 = { instancePath: instancePath + "/target", schemaPath: "#/definitions/Target/anyOf/0/minItems", keyword: "minItems", params: { limit: 1 }, message: "must NOT have fewer than 1 items" };
|
|
9457
9958
|
if (vErrors === null) {
|
|
9458
9959
|
vErrors = [err6];
|
|
@@ -9464,13 +9965,13 @@ function validate10(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
9464
9965
|
}
|
|
9465
9966
|
else {
|
|
9466
9967
|
var valid22 = true;
|
|
9467
|
-
const len1 =
|
|
9968
|
+
const len1 = data40.length;
|
|
9468
9969
|
for (let i1 = 0; i1 < len1; i1++) {
|
|
9469
|
-
let
|
|
9470
|
-
const
|
|
9471
|
-
if (errors ===
|
|
9472
|
-
if (typeof
|
|
9473
|
-
if (
|
|
9970
|
+
let data41 = data40[i1];
|
|
9971
|
+
const _errs96 = errors;
|
|
9972
|
+
if (errors === _errs96) {
|
|
9973
|
+
if (typeof data41 === "string") {
|
|
9974
|
+
if (data41.length < 1) {
|
|
9474
9975
|
const err7 = { instancePath: instancePath + "/target/" + i1, schemaPath: "#/definitions/Target/anyOf/0/items/minLength", keyword: "minLength", params: {}, message: "must pass \"minLength\" keyword validation" };
|
|
9475
9976
|
if (vErrors === null) {
|
|
9476
9977
|
vErrors = [err7];
|
|
@@ -9492,7 +9993,7 @@ function validate10(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
9492
9993
|
errors++;
|
|
9493
9994
|
}
|
|
9494
9995
|
}
|
|
9495
|
-
var valid22 =
|
|
9996
|
+
var valid22 = _errs96 === errors;
|
|
9496
9997
|
if (!valid22) {
|
|
9497
9998
|
break;
|
|
9498
9999
|
}
|
|
@@ -9510,11 +10011,11 @@ function validate10(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
9510
10011
|
errors++;
|
|
9511
10012
|
}
|
|
9512
10013
|
}
|
|
9513
|
-
var _valid2 =
|
|
10014
|
+
var _valid2 = _errs94 === errors;
|
|
9514
10015
|
valid21 = valid21 || _valid2;
|
|
9515
10016
|
if (!valid21) {
|
|
9516
|
-
const
|
|
9517
|
-
if (
|
|
10017
|
+
const _errs98 = errors;
|
|
10018
|
+
if (data40 !== false) {
|
|
9518
10019
|
const err10 = { instancePath: instancePath + "/target", schemaPath: "#/definitions/Target/anyOf/1/enum", keyword: "enum", params: {}, message: "must pass \"enum\" keyword validation" };
|
|
9519
10020
|
if (vErrors === null) {
|
|
9520
10021
|
vErrors = [err10];
|
|
@@ -9524,13 +10025,13 @@ function validate10(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
9524
10025
|
}
|
|
9525
10026
|
errors++;
|
|
9526
10027
|
}
|
|
9527
|
-
var _valid2 =
|
|
10028
|
+
var _valid2 = _errs98 === errors;
|
|
9528
10029
|
valid21 = valid21 || _valid2;
|
|
9529
10030
|
if (!valid21) {
|
|
9530
|
-
const
|
|
9531
|
-
if (errors ===
|
|
9532
|
-
if (typeof
|
|
9533
|
-
if (
|
|
10031
|
+
const _errs99 = errors;
|
|
10032
|
+
if (errors === _errs99) {
|
|
10033
|
+
if (typeof data40 === "string") {
|
|
10034
|
+
if (data40.length < 1) {
|
|
9534
10035
|
const err11 = { instancePath: instancePath + "/target", schemaPath: "#/definitions/Target/anyOf/2/minLength", keyword: "minLength", params: {}, message: "must pass \"minLength\" keyword validation" };
|
|
9535
10036
|
if (vErrors === null) {
|
|
9536
10037
|
vErrors = [err11];
|
|
@@ -9552,7 +10053,7 @@ function validate10(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
9552
10053
|
errors++;
|
|
9553
10054
|
}
|
|
9554
10055
|
}
|
|
9555
|
-
var _valid2 =
|
|
10056
|
+
var _valid2 = _errs99 === errors;
|
|
9556
10057
|
valid21 = valid21 || _valid2;
|
|
9557
10058
|
}
|
|
9558
10059
|
}
|
|
@@ -9569,89 +10070,89 @@ function validate10(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
9569
10070
|
return false;
|
|
9570
10071
|
}
|
|
9571
10072
|
else {
|
|
9572
|
-
errors =
|
|
10073
|
+
errors = _errs93;
|
|
9573
10074
|
if (vErrors !== null) {
|
|
9574
|
-
if (
|
|
9575
|
-
vErrors.length =
|
|
10075
|
+
if (_errs93) {
|
|
10076
|
+
vErrors.length = _errs93;
|
|
9576
10077
|
}
|
|
9577
10078
|
else {
|
|
9578
10079
|
vErrors = null;
|
|
9579
10080
|
}
|
|
9580
10081
|
}
|
|
9581
10082
|
}
|
|
9582
|
-
var valid0 =
|
|
10083
|
+
var valid0 = _errs91 === errors;
|
|
9583
10084
|
}
|
|
9584
10085
|
else {
|
|
9585
10086
|
var valid0 = true;
|
|
9586
10087
|
}
|
|
9587
10088
|
if (valid0) {
|
|
9588
10089
|
if (data.watch !== undefined) {
|
|
9589
|
-
const
|
|
10090
|
+
const _errs101 = errors;
|
|
9590
10091
|
if (typeof data.watch !== "boolean") {
|
|
9591
10092
|
validate10.errors = [{ instancePath: instancePath + "/watch", schemaPath: "#/definitions/Watch/type", keyword: "type", params: { type: "boolean" }, message: "must be boolean" }];
|
|
9592
10093
|
return false;
|
|
9593
10094
|
}
|
|
9594
|
-
var valid0 =
|
|
10095
|
+
var valid0 = _errs101 === errors;
|
|
9595
10096
|
}
|
|
9596
10097
|
else {
|
|
9597
10098
|
var valid0 = true;
|
|
9598
10099
|
}
|
|
9599
10100
|
if (valid0) {
|
|
9600
10101
|
if (data.watchOptions !== undefined) {
|
|
9601
|
-
let
|
|
9602
|
-
const
|
|
9603
|
-
const
|
|
9604
|
-
if (errors ===
|
|
9605
|
-
if (
|
|
9606
|
-
const
|
|
9607
|
-
for (const key6 in
|
|
10102
|
+
let data43 = data.watchOptions;
|
|
10103
|
+
const _errs104 = errors;
|
|
10104
|
+
const _errs105 = errors;
|
|
10105
|
+
if (errors === _errs105) {
|
|
10106
|
+
if (data43 && typeof data43 == "object" && !Array.isArray(data43)) {
|
|
10107
|
+
const _errs107 = errors;
|
|
10108
|
+
for (const key6 in data43) {
|
|
9608
10109
|
if (!(((((key6 === "aggregateTimeout") || (key6 === "followSymlinks")) || (key6 === "ignored")) || (key6 === "poll")) || (key6 === "stdin"))) {
|
|
9609
10110
|
validate10.errors = [{ instancePath: instancePath + "/watchOptions", schemaPath: "#/definitions/WatchOptions/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key6 }, message: "must NOT have additional properties" }];
|
|
9610
10111
|
return false;
|
|
9611
10112
|
break;
|
|
9612
10113
|
}
|
|
9613
10114
|
}
|
|
9614
|
-
if (
|
|
9615
|
-
if (
|
|
9616
|
-
const
|
|
9617
|
-
if (!(typeof
|
|
10115
|
+
if (_errs107 === errors) {
|
|
10116
|
+
if (data43.aggregateTimeout !== undefined) {
|
|
10117
|
+
const _errs108 = errors;
|
|
10118
|
+
if (!(typeof data43.aggregateTimeout == "number")) {
|
|
9618
10119
|
validate10.errors = [{ instancePath: instancePath + "/watchOptions/aggregateTimeout", schemaPath: "#/definitions/WatchOptions/properties/aggregateTimeout/type", keyword: "type", params: { type: "number" }, message: "must be number" }];
|
|
9619
10120
|
return false;
|
|
9620
10121
|
}
|
|
9621
|
-
var valid25 =
|
|
10122
|
+
var valid25 = _errs108 === errors;
|
|
9622
10123
|
}
|
|
9623
10124
|
else {
|
|
9624
10125
|
var valid25 = true;
|
|
9625
10126
|
}
|
|
9626
10127
|
if (valid25) {
|
|
9627
|
-
if (
|
|
9628
|
-
const
|
|
9629
|
-
if (typeof
|
|
10128
|
+
if (data43.followSymlinks !== undefined) {
|
|
10129
|
+
const _errs110 = errors;
|
|
10130
|
+
if (typeof data43.followSymlinks !== "boolean") {
|
|
9630
10131
|
validate10.errors = [{ instancePath: instancePath + "/watchOptions/followSymlinks", schemaPath: "#/definitions/WatchOptions/properties/followSymlinks/type", keyword: "type", params: { type: "boolean" }, message: "must be boolean" }];
|
|
9631
10132
|
return false;
|
|
9632
10133
|
}
|
|
9633
|
-
var valid25 =
|
|
10134
|
+
var valid25 = _errs110 === errors;
|
|
9634
10135
|
}
|
|
9635
10136
|
else {
|
|
9636
10137
|
var valid25 = true;
|
|
9637
10138
|
}
|
|
9638
10139
|
if (valid25) {
|
|
9639
|
-
if (
|
|
9640
|
-
let
|
|
9641
|
-
const
|
|
9642
|
-
const
|
|
10140
|
+
if (data43.ignored !== undefined) {
|
|
10141
|
+
let data46 = data43.ignored;
|
|
10142
|
+
const _errs112 = errors;
|
|
10143
|
+
const _errs113 = errors;
|
|
9643
10144
|
let valid26 = false;
|
|
9644
|
-
const
|
|
9645
|
-
if (errors ===
|
|
9646
|
-
if (Array.isArray(
|
|
10145
|
+
const _errs114 = errors;
|
|
10146
|
+
if (errors === _errs114) {
|
|
10147
|
+
if (Array.isArray(data46)) {
|
|
9647
10148
|
var valid27 = true;
|
|
9648
|
-
const len2 =
|
|
10149
|
+
const len2 = data46.length;
|
|
9649
10150
|
for (let i2 = 0; i2 < len2; i2++) {
|
|
9650
|
-
let
|
|
9651
|
-
const
|
|
9652
|
-
if (errors ===
|
|
9653
|
-
if (typeof
|
|
9654
|
-
if (
|
|
10151
|
+
let data47 = data46[i2];
|
|
10152
|
+
const _errs116 = errors;
|
|
10153
|
+
if (errors === _errs116) {
|
|
10154
|
+
if (typeof data47 === "string") {
|
|
10155
|
+
if (data47.length < 1) {
|
|
9655
10156
|
const err14 = { instancePath: instancePath + "/watchOptions/ignored/" + i2, schemaPath: "#/definitions/WatchOptions/properties/ignored/anyOf/0/items/minLength", keyword: "minLength", params: {}, message: "must pass \"minLength\" keyword validation" };
|
|
9656
10157
|
if (vErrors === null) {
|
|
9657
10158
|
vErrors = [err14];
|
|
@@ -9673,7 +10174,7 @@ function validate10(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
9673
10174
|
errors++;
|
|
9674
10175
|
}
|
|
9675
10176
|
}
|
|
9676
|
-
var valid27 =
|
|
10177
|
+
var valid27 = _errs116 === errors;
|
|
9677
10178
|
if (!valid27) {
|
|
9678
10179
|
break;
|
|
9679
10180
|
}
|
|
@@ -9690,11 +10191,11 @@ function validate10(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
9690
10191
|
errors++;
|
|
9691
10192
|
}
|
|
9692
10193
|
}
|
|
9693
|
-
var _valid3 =
|
|
10194
|
+
var _valid3 = _errs114 === errors;
|
|
9694
10195
|
valid26 = valid26 || _valid3;
|
|
9695
10196
|
if (!valid26) {
|
|
9696
|
-
const
|
|
9697
|
-
if (!(
|
|
10197
|
+
const _errs118 = errors;
|
|
10198
|
+
if (!(data46 instanceof RegExp)) {
|
|
9698
10199
|
const err17 = { instancePath: instancePath + "/watchOptions/ignored", schemaPath: "#/definitions/WatchOptions/properties/ignored/anyOf/1/instanceof", keyword: "instanceof", params: {}, message: "must pass \"instanceof\" keyword validation" };
|
|
9699
10200
|
if (vErrors === null) {
|
|
9700
10201
|
vErrors = [err17];
|
|
@@ -9704,13 +10205,13 @@ function validate10(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
9704
10205
|
}
|
|
9705
10206
|
errors++;
|
|
9706
10207
|
}
|
|
9707
|
-
var _valid3 =
|
|
10208
|
+
var _valid3 = _errs118 === errors;
|
|
9708
10209
|
valid26 = valid26 || _valid3;
|
|
9709
10210
|
if (!valid26) {
|
|
9710
|
-
const
|
|
9711
|
-
if (errors ===
|
|
9712
|
-
if (typeof
|
|
9713
|
-
if (
|
|
10211
|
+
const _errs119 = errors;
|
|
10212
|
+
if (errors === _errs119) {
|
|
10213
|
+
if (typeof data46 === "string") {
|
|
10214
|
+
if (data46.length < 1) {
|
|
9714
10215
|
const err18 = { instancePath: instancePath + "/watchOptions/ignored", schemaPath: "#/definitions/WatchOptions/properties/ignored/anyOf/2/minLength", keyword: "minLength", params: {}, message: "must pass \"minLength\" keyword validation" };
|
|
9715
10216
|
if (vErrors === null) {
|
|
9716
10217
|
vErrors = [err18];
|
|
@@ -9732,7 +10233,7 @@ function validate10(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
9732
10233
|
errors++;
|
|
9733
10234
|
}
|
|
9734
10235
|
}
|
|
9735
|
-
var _valid3 =
|
|
10236
|
+
var _valid3 = _errs119 === errors;
|
|
9736
10237
|
valid26 = valid26 || _valid3;
|
|
9737
10238
|
}
|
|
9738
10239
|
}
|
|
@@ -9749,29 +10250,29 @@ function validate10(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
9749
10250
|
return false;
|
|
9750
10251
|
}
|
|
9751
10252
|
else {
|
|
9752
|
-
errors =
|
|
10253
|
+
errors = _errs113;
|
|
9753
10254
|
if (vErrors !== null) {
|
|
9754
|
-
if (
|
|
9755
|
-
vErrors.length =
|
|
10255
|
+
if (_errs113) {
|
|
10256
|
+
vErrors.length = _errs113;
|
|
9756
10257
|
}
|
|
9757
10258
|
else {
|
|
9758
10259
|
vErrors = null;
|
|
9759
10260
|
}
|
|
9760
10261
|
}
|
|
9761
10262
|
}
|
|
9762
|
-
var valid25 =
|
|
10263
|
+
var valid25 = _errs112 === errors;
|
|
9763
10264
|
}
|
|
9764
10265
|
else {
|
|
9765
10266
|
var valid25 = true;
|
|
9766
10267
|
}
|
|
9767
10268
|
if (valid25) {
|
|
9768
|
-
if (
|
|
9769
|
-
let
|
|
9770
|
-
const
|
|
9771
|
-
const
|
|
10269
|
+
if (data43.poll !== undefined) {
|
|
10270
|
+
let data48 = data43.poll;
|
|
10271
|
+
const _errs121 = errors;
|
|
10272
|
+
const _errs122 = errors;
|
|
9772
10273
|
let valid28 = false;
|
|
9773
|
-
const
|
|
9774
|
-
if (!(typeof
|
|
10274
|
+
const _errs123 = errors;
|
|
10275
|
+
if (!(typeof data48 == "number")) {
|
|
9775
10276
|
const err21 = { instancePath: instancePath + "/watchOptions/poll", schemaPath: "#/definitions/WatchOptions/properties/poll/anyOf/0/type", keyword: "type", params: { type: "number" }, message: "must be number" };
|
|
9776
10277
|
if (vErrors === null) {
|
|
9777
10278
|
vErrors = [err21];
|
|
@@ -9781,11 +10282,11 @@ function validate10(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
9781
10282
|
}
|
|
9782
10283
|
errors++;
|
|
9783
10284
|
}
|
|
9784
|
-
var _valid4 =
|
|
10285
|
+
var _valid4 = _errs123 === errors;
|
|
9785
10286
|
valid28 = valid28 || _valid4;
|
|
9786
10287
|
if (!valid28) {
|
|
9787
|
-
const
|
|
9788
|
-
if (typeof
|
|
10288
|
+
const _errs125 = errors;
|
|
10289
|
+
if (typeof data48 !== "boolean") {
|
|
9789
10290
|
const err22 = { instancePath: instancePath + "/watchOptions/poll", schemaPath: "#/definitions/WatchOptions/properties/poll/anyOf/1/type", keyword: "type", params: { type: "boolean" }, message: "must be boolean" };
|
|
9790
10291
|
if (vErrors === null) {
|
|
9791
10292
|
vErrors = [err22];
|
|
@@ -9795,7 +10296,7 @@ function validate10(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
9795
10296
|
}
|
|
9796
10297
|
errors++;
|
|
9797
10298
|
}
|
|
9798
|
-
var _valid4 =
|
|
10299
|
+
var _valid4 = _errs125 === errors;
|
|
9799
10300
|
valid28 = valid28 || _valid4;
|
|
9800
10301
|
}
|
|
9801
10302
|
if (!valid28) {
|
|
@@ -9811,29 +10312,29 @@ function validate10(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
9811
10312
|
return false;
|
|
9812
10313
|
}
|
|
9813
10314
|
else {
|
|
9814
|
-
errors =
|
|
10315
|
+
errors = _errs122;
|
|
9815
10316
|
if (vErrors !== null) {
|
|
9816
|
-
if (
|
|
9817
|
-
vErrors.length =
|
|
10317
|
+
if (_errs122) {
|
|
10318
|
+
vErrors.length = _errs122;
|
|
9818
10319
|
}
|
|
9819
10320
|
else {
|
|
9820
10321
|
vErrors = null;
|
|
9821
10322
|
}
|
|
9822
10323
|
}
|
|
9823
10324
|
}
|
|
9824
|
-
var valid25 =
|
|
10325
|
+
var valid25 = _errs121 === errors;
|
|
9825
10326
|
}
|
|
9826
10327
|
else {
|
|
9827
10328
|
var valid25 = true;
|
|
9828
10329
|
}
|
|
9829
10330
|
if (valid25) {
|
|
9830
|
-
if (
|
|
9831
|
-
const
|
|
9832
|
-
if (typeof
|
|
10331
|
+
if (data43.stdin !== undefined) {
|
|
10332
|
+
const _errs127 = errors;
|
|
10333
|
+
if (typeof data43.stdin !== "boolean") {
|
|
9833
10334
|
validate10.errors = [{ instancePath: instancePath + "/watchOptions/stdin", schemaPath: "#/definitions/WatchOptions/properties/stdin/type", keyword: "type", params: { type: "boolean" }, message: "must be boolean" }];
|
|
9834
10335
|
return false;
|
|
9835
10336
|
}
|
|
9836
|
-
var valid25 =
|
|
10337
|
+
var valid25 = _errs127 === errors;
|
|
9837
10338
|
}
|
|
9838
10339
|
else {
|
|
9839
10340
|
var valid25 = true;
|
|
@@ -9849,44 +10350,44 @@ function validate10(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
9849
10350
|
return false;
|
|
9850
10351
|
}
|
|
9851
10352
|
}
|
|
9852
|
-
var valid0 =
|
|
10353
|
+
var valid0 = _errs104 === errors;
|
|
9853
10354
|
}
|
|
9854
10355
|
else {
|
|
9855
10356
|
var valid0 = true;
|
|
9856
10357
|
}
|
|
9857
10358
|
if (valid0) {
|
|
9858
10359
|
if (data.builtins !== undefined) {
|
|
9859
|
-
let
|
|
9860
|
-
const
|
|
9861
|
-
if (errors ===
|
|
9862
|
-
if (
|
|
10360
|
+
let data50 = data.builtins;
|
|
10361
|
+
const _errs129 = errors;
|
|
10362
|
+
if (errors === _errs129) {
|
|
10363
|
+
if (data50 && typeof data50 == "object" && !Array.isArray(data50)) { }
|
|
9863
10364
|
else {
|
|
9864
10365
|
validate10.errors = [{ instancePath: instancePath + "/builtins", schemaPath: "#/properties/builtins/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
|
|
9865
10366
|
return false;
|
|
9866
10367
|
}
|
|
9867
10368
|
}
|
|
9868
|
-
var valid0 =
|
|
10369
|
+
var valid0 = _errs129 === errors;
|
|
9869
10370
|
}
|
|
9870
10371
|
else {
|
|
9871
10372
|
var valid0 = true;
|
|
9872
10373
|
}
|
|
9873
10374
|
if (valid0) {
|
|
9874
10375
|
if (data.ignoreWarnings !== undefined) {
|
|
9875
|
-
let
|
|
9876
|
-
const
|
|
9877
|
-
const
|
|
9878
|
-
if (errors ===
|
|
9879
|
-
if (Array.isArray(
|
|
10376
|
+
let data51 = data.ignoreWarnings;
|
|
10377
|
+
const _errs132 = errors;
|
|
10378
|
+
const _errs133 = errors;
|
|
10379
|
+
if (errors === _errs133) {
|
|
10380
|
+
if (Array.isArray(data51)) {
|
|
9880
10381
|
var valid30 = true;
|
|
9881
|
-
const len3 =
|
|
10382
|
+
const len3 = data51.length;
|
|
9882
10383
|
for (let i3 = 0; i3 < len3; i3++) {
|
|
9883
|
-
let
|
|
9884
|
-
const
|
|
9885
|
-
const
|
|
10384
|
+
let data52 = data51[i3];
|
|
10385
|
+
const _errs135 = errors;
|
|
10386
|
+
const _errs136 = errors;
|
|
9886
10387
|
let valid31 = false;
|
|
9887
|
-
const
|
|
9888
|
-
if (!(
|
|
9889
|
-
const err24 = { instancePath: instancePath + "/ignoreWarnings/" + i3, schemaPath: "#/definitions/
|
|
10388
|
+
const _errs137 = errors;
|
|
10389
|
+
if (!(data52 instanceof RegExp)) {
|
|
10390
|
+
const err24 = { instancePath: instancePath + "/ignoreWarnings/" + i3, schemaPath: "#/definitions/IgnoreWarnings/items/anyOf/0/instanceof", keyword: "instanceof", params: {}, message: "must pass \"instanceof\" keyword validation" };
|
|
9890
10391
|
if (vErrors === null) {
|
|
9891
10392
|
vErrors = [err24];
|
|
9892
10393
|
}
|
|
@@ -9895,12 +10396,12 @@ function validate10(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
9895
10396
|
}
|
|
9896
10397
|
errors++;
|
|
9897
10398
|
}
|
|
9898
|
-
var _valid5 =
|
|
10399
|
+
var _valid5 = _errs137 === errors;
|
|
9899
10400
|
valid31 = valid31 || _valid5;
|
|
9900
10401
|
if (!valid31) {
|
|
9901
|
-
const
|
|
9902
|
-
if (!(
|
|
9903
|
-
const err25 = { instancePath: instancePath + "/ignoreWarnings/" + i3, schemaPath: "#/definitions/
|
|
10402
|
+
const _errs138 = errors;
|
|
10403
|
+
if (!(data52 instanceof Function)) {
|
|
10404
|
+
const err25 = { instancePath: instancePath + "/ignoreWarnings/" + i3, schemaPath: "#/definitions/IgnoreWarnings/items/anyOf/1/instanceof", keyword: "instanceof", params: {}, message: "must pass \"instanceof\" keyword validation" };
|
|
9904
10405
|
if (vErrors === null) {
|
|
9905
10406
|
vErrors = [err25];
|
|
9906
10407
|
}
|
|
@@ -9909,11 +10410,11 @@ function validate10(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
9909
10410
|
}
|
|
9910
10411
|
errors++;
|
|
9911
10412
|
}
|
|
9912
|
-
var _valid5 =
|
|
10413
|
+
var _valid5 = _errs138 === errors;
|
|
9913
10414
|
valid31 = valid31 || _valid5;
|
|
9914
10415
|
}
|
|
9915
10416
|
if (!valid31) {
|
|
9916
|
-
const err26 = { instancePath: instancePath + "/ignoreWarnings/" + i3, schemaPath: "#/definitions/
|
|
10417
|
+
const err26 = { instancePath: instancePath + "/ignoreWarnings/" + i3, schemaPath: "#/definitions/IgnoreWarnings/items/anyOf", keyword: "anyOf", params: {}, message: "must match a schema in anyOf" };
|
|
9917
10418
|
if (vErrors === null) {
|
|
9918
10419
|
vErrors = [err26];
|
|
9919
10420
|
}
|
|
@@ -9925,28 +10426,28 @@ function validate10(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
9925
10426
|
return false;
|
|
9926
10427
|
}
|
|
9927
10428
|
else {
|
|
9928
|
-
errors =
|
|
10429
|
+
errors = _errs136;
|
|
9929
10430
|
if (vErrors !== null) {
|
|
9930
|
-
if (
|
|
9931
|
-
vErrors.length =
|
|
10431
|
+
if (_errs136) {
|
|
10432
|
+
vErrors.length = _errs136;
|
|
9932
10433
|
}
|
|
9933
10434
|
else {
|
|
9934
10435
|
vErrors = null;
|
|
9935
10436
|
}
|
|
9936
10437
|
}
|
|
9937
10438
|
}
|
|
9938
|
-
var valid30 =
|
|
10439
|
+
var valid30 = _errs135 === errors;
|
|
9939
10440
|
if (!valid30) {
|
|
9940
10441
|
break;
|
|
9941
10442
|
}
|
|
9942
10443
|
}
|
|
9943
10444
|
}
|
|
9944
10445
|
else {
|
|
9945
|
-
validate10.errors = [{ instancePath: instancePath + "/ignoreWarnings", schemaPath: "#/definitions/
|
|
10446
|
+
validate10.errors = [{ instancePath: instancePath + "/ignoreWarnings", schemaPath: "#/definitions/IgnoreWarnings/type", keyword: "type", params: { type: "array" }, message: "must be array" }];
|
|
9946
10447
|
return false;
|
|
9947
10448
|
}
|
|
9948
10449
|
}
|
|
9949
|
-
var valid0 =
|
|
10450
|
+
var valid0 = _errs132 === errors;
|
|
9950
10451
|
}
|
|
9951
10452
|
else {
|
|
9952
10453
|
var valid0 = true;
|