@rspack/core 0.1.6 → 0.1.8
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.js +2 -2
- package/dist/compilation.js.map +1 -1
- package/dist/config/adapter.d.ts +1 -1
- package/dist/config/adapter.d.ts.map +1 -1
- package/dist/config/adapter.js +21 -1
- package/dist/config/adapter.js.map +1 -1
- package/dist/config/defaults.d.ts.map +1 -1
- package/dist/config/defaults.js +37 -23
- package/dist/config/defaults.js.map +1 -1
- package/dist/config/normalization.d.ts.map +1 -1
- package/dist/config/normalization.js +3 -0
- package/dist/config/normalization.js.map +1 -1
- package/dist/config/schema.check.d.ts.map +1 -1
- package/dist/config/schema.check.js +1162 -1067
- package/dist/config/schema.check.js.map +1 -1
- package/dist/config/schema.d.ts +682 -633
- package/dist/config/schema.js +33 -0
- package/dist/config/schema.js.map +1 -1
- package/dist/config/types.d.ts +14 -1
- package/dist/config/types.d.ts.map +1 -1
- package/dist/fileSystem.d.ts +1 -0
- package/dist/fileSystem.d.ts.map +1 -1
- package/dist/fileSystem.js +24 -1
- package/dist/fileSystem.js.map +1 -1
- package/dist/multiCompiler.d.ts +1 -2
- package/dist/multiCompiler.d.ts.map +1 -1
- package/dist/multiCompiler.js.map +1 -1
- package/dist/watching.d.ts.map +1 -1
- package/dist/watching.js +18 -17
- package/dist/watching.js.map +1 -1
- package/dist/web/ResolveSwcPlugin.d.ts.map +1 -1
- package/dist/web/ResolveSwcPlugin.js +5 -0
- package/dist/web/ResolveSwcPlugin.js.map +1 -1
- package/package.json +15 -11
|
@@ -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" }] }, "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" }] }, "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" } }, "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" }] } } }, "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" } }] }, "ExternalItemValue": { "description": "The dependency used for the external.", "anyOf": [{ "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" }] }, "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"] }, "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" }, "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" }] } } }, "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" }, "test": { "description": "Assign modules to a cache group by module name.", "anyOf": [{ "instanceof": "RegExp" }] } } }, "OptimizationSplitChunksOptions": { "description": "Options object for splitting chunks into smaller chunks.", "type": "object", "additionalProperties": false, "properties": { "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" }] } } }, "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" }, "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" }, "assetModuleFilename": { "$ref": "#/definitions/AssetModuleFilename" }, "auxiliaryComment": { "oneOf": [{ "$ref": "#/definitions/AuxiliaryComment" }] }, "chunkFilename": { "$ref": "#/definitions/ChunkFilename" }, "cssChunkFilename": { "$ref": "#/definitions/CssChunkFilename" }, "cssFilename": { "$ref": "#/definitions/CssFilename" }, "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" } } }, "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" }] }, "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" } } }, "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": { "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" }] }, "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" }] }, "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" } } }, "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 }] }, "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 }, "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 } } };
|
|
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" }] }, "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" }] }, "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" } }, "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" }] } } }, "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" } }] }, "ExternalItemValue": { "description": "The dependency used for the external.", "anyOf": [{ "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" }] }, "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"] }, "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" }, "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" }] } } }, "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" }, "test": { "description": "Assign modules to a cache group by module name.", "anyOf": [{ "instanceof": "RegExp" }] } } }, "OptimizationSplitChunksOptions": { "description": "Options object for splitting chunks into smaller chunks.", "type": "object", "additionalProperties": false, "properties": { "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" }] } } }, "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" }] }, "chunkFilename": { "$ref": "#/definitions/ChunkFilename" }, "crossOriginLoading": { "$ref": "#/definitions/CrossOriginLoading" }, "cssChunkFilename": { "$ref": "#/definitions/CssChunkFilename" }, "cssFilename": { "$ref": "#/definitions/CssFilename" }, "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" } } }, "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" } } }, "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": { "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" }] }, "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" } } }, "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 }] }, "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 } } };
|
|
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" } };
|
|
@@ -13,10 +13,10 @@ const schema32 = { "description": "Specifies the default type of externals ('amd
|
|
|
13
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" } } };
|
|
14
14
|
const schema38 = { "description": "Enable production optimizations or development hints.", "enum": ["development", "production", "none"] };
|
|
15
15
|
const schema57 = { "description": "Name of the configuration. Used when loading multiple configurations.", "type": "string" };
|
|
16
|
-
const
|
|
17
|
-
const
|
|
18
|
-
const
|
|
19
|
-
const
|
|
16
|
+
const schema112 = { "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 schema115 = { "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 schema116 = { "description": "Enter watch mode, which rebuilds on file change.", "type": "boolean" };
|
|
19
|
+
const schema117 = { "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
20
|
const func2 = Object.prototype.hasOwnProperty;
|
|
21
21
|
const pattern0 = new RegExp("^(inline-|hidden-|eval-)?(nosources-)?(cheap-(module-)?)?source-map$", "u");
|
|
22
22
|
const schema17 = { "description": "The entry point(s) of the compilation.", "anyOf": [{ "$ref": "#/definitions/EntryStatic" }] };
|
|
@@ -1308,7 +1308,7 @@ function validate28(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
1308
1308
|
} validate28.errors = vErrors; return errors === 0; }
|
|
1309
1309
|
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" }] } } };
|
|
1310
1310
|
const schema40 = { "description": "A list of rules.", "type": "array", "items": { "description": "A rule.", "anyOf": [{ "enum": ["..."] }, { "$ref": "#/definitions/RuleSetRule" }] } };
|
|
1311
|
-
const schema41 = { "description": "A rule description with conditions and effects for modules.", "type": "object", "additionalProperties": false, "properties": { "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" }] }, "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" }] }, "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" }] } } };
|
|
1311
|
+
const schema41 = { "description": "A rule description with conditions and effects for modules.", "type": "object", "additionalProperties": false, "properties": { "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" }] }, "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" }] } } };
|
|
1312
1312
|
const schema42 = { "description": "One or multiple rule conditions.", "anyOf": [{ "$ref": "#/definitions/RuleSetCondition" }, { "$ref": "#/definitions/RuleSetConditions" }] };
|
|
1313
1313
|
const schema43 = { "description": "A condition matcher.", "anyOf": [{ "instanceof": "RegExp" }, { "type": "string" }, { "instanceof": "Function" }, { "$ref": "#/definitions/RuleSetLogicalConditions" }, { "$ref": "#/definitions/RuleSetConditions" }] };
|
|
1314
1314
|
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" }] } } };
|
|
@@ -1631,15 +1631,15 @@ else {
|
|
|
1631
1631
|
}
|
|
1632
1632
|
}
|
|
1633
1633
|
} validate35.errors = vErrors; return errors === 0; }
|
|
1634
|
-
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" }] }, "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" } } };
|
|
1634
|
+
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" } } };
|
|
1635
1635
|
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 }] } }] };
|
|
1636
|
-
const wrapper3 = { validate:
|
|
1637
|
-
function
|
|
1636
|
+
const wrapper3 = { validate: validate50 };
|
|
1637
|
+
function validate50(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) { let vErrors = null; let errors = 0; if (errors === 0) {
|
|
1638
1638
|
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
1639
1639
|
const _errs1 = errors;
|
|
1640
1640
|
for (const key0 in data) {
|
|
1641
1641
|
if (!(func2.call(schema46.properties, key0))) {
|
|
1642
|
-
|
|
1642
|
+
validate50.errors = [{ instancePath, schemaPath: "#/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key0 }, message: "must NOT have additional properties" }];
|
|
1643
1643
|
return false;
|
|
1644
1644
|
break;
|
|
1645
1645
|
}
|
|
@@ -1802,7 +1802,7 @@ function validate49(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
1802
1802
|
vErrors.push(err8);
|
|
1803
1803
|
}
|
|
1804
1804
|
errors++;
|
|
1805
|
-
|
|
1805
|
+
validate50.errors = vErrors;
|
|
1806
1806
|
return false;
|
|
1807
1807
|
}
|
|
1808
1808
|
else {
|
|
@@ -1825,7 +1825,7 @@ function validate49(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
1825
1825
|
if (data.browserField !== undefined) {
|
|
1826
1826
|
const _errs17 = errors;
|
|
1827
1827
|
if (typeof data.browserField !== "boolean") {
|
|
1828
|
-
|
|
1828
|
+
validate50.errors = [{ instancePath: instancePath + "/browserField", schemaPath: "#/properties/browserField/type", keyword: "type", params: { type: "boolean" }, message: "must be boolean" }];
|
|
1829
1829
|
return false;
|
|
1830
1830
|
}
|
|
1831
1831
|
var valid0 = _errs17 === errors;
|
|
@@ -1844,7 +1844,7 @@ function validate49(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
1844
1844
|
for (let i1 = 0; i1 < len1; i1++) {
|
|
1845
1845
|
const _errs21 = errors;
|
|
1846
1846
|
if (typeof data4[i1] !== "string") {
|
|
1847
|
-
|
|
1847
|
+
validate50.errors = [{ instancePath: instancePath + "/conditionNames/" + i1, schemaPath: "#/properties/conditionNames/items/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
|
|
1848
1848
|
return false;
|
|
1849
1849
|
}
|
|
1850
1850
|
var valid6 = _errs21 === errors;
|
|
@@ -1854,7 +1854,7 @@ function validate49(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
1854
1854
|
}
|
|
1855
1855
|
}
|
|
1856
1856
|
else {
|
|
1857
|
-
|
|
1857
|
+
validate50.errors = [{ instancePath: instancePath + "/conditionNames", schemaPath: "#/properties/conditionNames/type", keyword: "type", params: { type: "array" }, message: "must be array" }];
|
|
1858
1858
|
return false;
|
|
1859
1859
|
}
|
|
1860
1860
|
}
|
|
@@ -1874,7 +1874,7 @@ function validate49(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
1874
1874
|
for (let i2 = 0; i2 < len2; i2++) {
|
|
1875
1875
|
const _errs25 = errors;
|
|
1876
1876
|
if (typeof data6[i2] !== "string") {
|
|
1877
|
-
|
|
1877
|
+
validate50.errors = [{ instancePath: instancePath + "/extensions/" + i2, schemaPath: "#/properties/extensions/items/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
|
|
1878
1878
|
return false;
|
|
1879
1879
|
}
|
|
1880
1880
|
var valid7 = _errs25 === errors;
|
|
@@ -1884,7 +1884,7 @@ function validate49(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
1884
1884
|
}
|
|
1885
1885
|
}
|
|
1886
1886
|
else {
|
|
1887
|
-
|
|
1887
|
+
validate50.errors = [{ instancePath: instancePath + "/extensions", schemaPath: "#/properties/extensions/type", keyword: "type", params: { type: "array" }, message: "must be array" }];
|
|
1888
1888
|
return false;
|
|
1889
1889
|
}
|
|
1890
1890
|
}
|
|
@@ -2081,7 +2081,7 @@ function validate49(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
2081
2081
|
vErrors.push(err18);
|
|
2082
2082
|
}
|
|
2083
2083
|
errors++;
|
|
2084
|
-
|
|
2084
|
+
validate50.errors = vErrors;
|
|
2085
2085
|
return false;
|
|
2086
2086
|
}
|
|
2087
2087
|
else {
|
|
@@ -2101,299 +2101,312 @@ function validate49(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
2101
2101
|
var valid0 = true;
|
|
2102
2102
|
}
|
|
2103
2103
|
if (valid0) {
|
|
2104
|
-
if (data.
|
|
2105
|
-
let data11 = data.mainFields;
|
|
2104
|
+
if (data.fullySpecified !== undefined) {
|
|
2106
2105
|
const _errs44 = errors;
|
|
2107
|
-
if (
|
|
2108
|
-
|
|
2109
|
-
|
|
2110
|
-
|
|
2111
|
-
|
|
2112
|
-
|
|
2113
|
-
|
|
2114
|
-
|
|
2115
|
-
|
|
2116
|
-
|
|
2117
|
-
|
|
2118
|
-
|
|
2119
|
-
|
|
2120
|
-
|
|
2121
|
-
|
|
2122
|
-
|
|
2123
|
-
|
|
2124
|
-
|
|
2125
|
-
|
|
2126
|
-
|
|
2127
|
-
|
|
2106
|
+
if (typeof data.fullySpecified !== "boolean") {
|
|
2107
|
+
validate50.errors = [{ instancePath: instancePath + "/fullySpecified", schemaPath: "#/properties/fullySpecified/type", keyword: "type", params: { type: "boolean" }, message: "must be boolean" }];
|
|
2108
|
+
return false;
|
|
2109
|
+
}
|
|
2110
|
+
var valid0 = _errs44 === errors;
|
|
2111
|
+
}
|
|
2112
|
+
else {
|
|
2113
|
+
var valid0 = true;
|
|
2114
|
+
}
|
|
2115
|
+
if (valid0) {
|
|
2116
|
+
if (data.mainFields !== undefined) {
|
|
2117
|
+
let data12 = data.mainFields;
|
|
2118
|
+
const _errs46 = errors;
|
|
2119
|
+
if (errors === _errs46) {
|
|
2120
|
+
if (Array.isArray(data12)) {
|
|
2121
|
+
var valid14 = true;
|
|
2122
|
+
const len4 = data12.length;
|
|
2123
|
+
for (let i4 = 0; i4 < len4; i4++) {
|
|
2124
|
+
let data13 = data12[i4];
|
|
2125
|
+
const _errs48 = errors;
|
|
2126
|
+
const _errs49 = errors;
|
|
2127
|
+
let valid15 = false;
|
|
2128
|
+
const _errs50 = errors;
|
|
2129
|
+
if (errors === _errs50) {
|
|
2130
|
+
if (Array.isArray(data13)) {
|
|
2131
|
+
var valid16 = true;
|
|
2132
|
+
const len5 = data13.length;
|
|
2133
|
+
for (let i5 = 0; i5 < len5; i5++) {
|
|
2134
|
+
let data14 = data13[i5];
|
|
2135
|
+
const _errs52 = errors;
|
|
2136
|
+
if (errors === _errs52) {
|
|
2137
|
+
if (typeof data14 === "string") {
|
|
2138
|
+
if (data14.length < 1) {
|
|
2139
|
+
const err19 = { instancePath: instancePath + "/mainFields/" + i4 + "/" + i5, schemaPath: "#/properties/mainFields/items/anyOf/0/items/minLength", keyword: "minLength", params: {}, message: "must pass \"minLength\" keyword validation" };
|
|
2140
|
+
if (vErrors === null) {
|
|
2141
|
+
vErrors = [err19];
|
|
2142
|
+
}
|
|
2143
|
+
else {
|
|
2144
|
+
vErrors.push(err19);
|
|
2145
|
+
}
|
|
2146
|
+
errors++;
|
|
2147
|
+
}
|
|
2148
|
+
}
|
|
2149
|
+
else {
|
|
2150
|
+
const err20 = { instancePath: instancePath + "/mainFields/" + i4 + "/" + i5, schemaPath: "#/properties/mainFields/items/anyOf/0/items/type", keyword: "type", params: { type: "string" }, message: "must be string" };
|
|
2128
2151
|
if (vErrors === null) {
|
|
2129
|
-
vErrors = [
|
|
2152
|
+
vErrors = [err20];
|
|
2130
2153
|
}
|
|
2131
2154
|
else {
|
|
2132
|
-
vErrors.push(
|
|
2155
|
+
vErrors.push(err20);
|
|
2133
2156
|
}
|
|
2134
2157
|
errors++;
|
|
2135
2158
|
}
|
|
2136
2159
|
}
|
|
2137
|
-
|
|
2138
|
-
|
|
2160
|
+
var valid16 = _errs52 === errors;
|
|
2161
|
+
if (!valid16) {
|
|
2162
|
+
break;
|
|
2163
|
+
}
|
|
2164
|
+
}
|
|
2165
|
+
}
|
|
2166
|
+
else {
|
|
2167
|
+
const err21 = { instancePath: instancePath + "/mainFields/" + i4, schemaPath: "#/properties/mainFields/items/anyOf/0/type", keyword: "type", params: { type: "array" }, message: "must be array" };
|
|
2168
|
+
if (vErrors === null) {
|
|
2169
|
+
vErrors = [err21];
|
|
2170
|
+
}
|
|
2171
|
+
else {
|
|
2172
|
+
vErrors.push(err21);
|
|
2173
|
+
}
|
|
2174
|
+
errors++;
|
|
2175
|
+
}
|
|
2176
|
+
}
|
|
2177
|
+
var _valid5 = _errs50 === errors;
|
|
2178
|
+
valid15 = valid15 || _valid5;
|
|
2179
|
+
if (!valid15) {
|
|
2180
|
+
const _errs54 = errors;
|
|
2181
|
+
if (errors === _errs54) {
|
|
2182
|
+
if (typeof data13 === "string") {
|
|
2183
|
+
if (data13.length < 1) {
|
|
2184
|
+
const err22 = { instancePath: instancePath + "/mainFields/" + i4, schemaPath: "#/properties/mainFields/items/anyOf/1/minLength", keyword: "minLength", params: {}, message: "must pass \"minLength\" keyword validation" };
|
|
2139
2185
|
if (vErrors === null) {
|
|
2140
|
-
vErrors = [
|
|
2186
|
+
vErrors = [err22];
|
|
2141
2187
|
}
|
|
2142
2188
|
else {
|
|
2143
|
-
vErrors.push(
|
|
2189
|
+
vErrors.push(err22);
|
|
2144
2190
|
}
|
|
2145
2191
|
errors++;
|
|
2146
2192
|
}
|
|
2147
2193
|
}
|
|
2148
|
-
|
|
2149
|
-
|
|
2150
|
-
break;
|
|
2151
|
-
}
|
|
2152
|
-
}
|
|
2153
|
-
}
|
|
2154
|
-
else {
|
|
2155
|
-
const err21 = { instancePath: instancePath + "/mainFields/" + i4, schemaPath: "#/properties/mainFields/items/anyOf/0/type", keyword: "type", params: { type: "array" }, message: "must be array" };
|
|
2156
|
-
if (vErrors === null) {
|
|
2157
|
-
vErrors = [err21];
|
|
2158
|
-
}
|
|
2159
|
-
else {
|
|
2160
|
-
vErrors.push(err21);
|
|
2161
|
-
}
|
|
2162
|
-
errors++;
|
|
2163
|
-
}
|
|
2164
|
-
}
|
|
2165
|
-
var _valid5 = _errs48 === errors;
|
|
2166
|
-
valid15 = valid15 || _valid5;
|
|
2167
|
-
if (!valid15) {
|
|
2168
|
-
const _errs52 = errors;
|
|
2169
|
-
if (errors === _errs52) {
|
|
2170
|
-
if (typeof data12 === "string") {
|
|
2171
|
-
if (data12.length < 1) {
|
|
2172
|
-
const err22 = { instancePath: instancePath + "/mainFields/" + i4, schemaPath: "#/properties/mainFields/items/anyOf/1/minLength", keyword: "minLength", params: {}, message: "must pass \"minLength\" keyword validation" };
|
|
2194
|
+
else {
|
|
2195
|
+
const err23 = { instancePath: instancePath + "/mainFields/" + i4, schemaPath: "#/properties/mainFields/items/anyOf/1/type", keyword: "type", params: { type: "string" }, message: "must be string" };
|
|
2173
2196
|
if (vErrors === null) {
|
|
2174
|
-
vErrors = [
|
|
2197
|
+
vErrors = [err23];
|
|
2175
2198
|
}
|
|
2176
2199
|
else {
|
|
2177
|
-
vErrors.push(
|
|
2200
|
+
vErrors.push(err23);
|
|
2178
2201
|
}
|
|
2179
2202
|
errors++;
|
|
2180
2203
|
}
|
|
2181
2204
|
}
|
|
2182
|
-
|
|
2183
|
-
|
|
2184
|
-
if (vErrors === null) {
|
|
2185
|
-
vErrors = [err23];
|
|
2186
|
-
}
|
|
2187
|
-
else {
|
|
2188
|
-
vErrors.push(err23);
|
|
2189
|
-
}
|
|
2190
|
-
errors++;
|
|
2191
|
-
}
|
|
2192
|
-
}
|
|
2193
|
-
var _valid5 = _errs52 === errors;
|
|
2194
|
-
valid15 = valid15 || _valid5;
|
|
2195
|
-
}
|
|
2196
|
-
if (!valid15) {
|
|
2197
|
-
const err24 = { instancePath: instancePath + "/mainFields/" + i4, schemaPath: "#/properties/mainFields/items/anyOf", keyword: "anyOf", params: {}, message: "must match a schema in anyOf" };
|
|
2198
|
-
if (vErrors === null) {
|
|
2199
|
-
vErrors = [err24];
|
|
2200
|
-
}
|
|
2201
|
-
else {
|
|
2202
|
-
vErrors.push(err24);
|
|
2205
|
+
var _valid5 = _errs54 === errors;
|
|
2206
|
+
valid15 = valid15 || _valid5;
|
|
2203
2207
|
}
|
|
2204
|
-
|
|
2205
|
-
|
|
2206
|
-
|
|
2207
|
-
|
|
2208
|
-
else {
|
|
2209
|
-
errors = _errs47;
|
|
2210
|
-
if (vErrors !== null) {
|
|
2211
|
-
if (_errs47) {
|
|
2212
|
-
vErrors.length = _errs47;
|
|
2208
|
+
if (!valid15) {
|
|
2209
|
+
const err24 = { instancePath: instancePath + "/mainFields/" + i4, schemaPath: "#/properties/mainFields/items/anyOf", keyword: "anyOf", params: {}, message: "must match a schema in anyOf" };
|
|
2210
|
+
if (vErrors === null) {
|
|
2211
|
+
vErrors = [err24];
|
|
2213
2212
|
}
|
|
2214
2213
|
else {
|
|
2215
|
-
vErrors
|
|
2214
|
+
vErrors.push(err24);
|
|
2216
2215
|
}
|
|
2216
|
+
errors++;
|
|
2217
|
+
validate50.errors = vErrors;
|
|
2218
|
+
return false;
|
|
2217
2219
|
}
|
|
2218
|
-
|
|
2219
|
-
|
|
2220
|
-
|
|
2221
|
-
|
|
2222
|
-
|
|
2223
|
-
|
|
2224
|
-
|
|
2225
|
-
|
|
2226
|
-
validate49.errors = [{ instancePath: instancePath + "/mainFields", schemaPath: "#/properties/mainFields/type", keyword: "type", params: { type: "array" }, message: "must be array" }];
|
|
2227
|
-
return false;
|
|
2228
|
-
}
|
|
2229
|
-
}
|
|
2230
|
-
var valid0 = _errs44 === errors;
|
|
2231
|
-
}
|
|
2232
|
-
else {
|
|
2233
|
-
var valid0 = true;
|
|
2234
|
-
}
|
|
2235
|
-
if (valid0) {
|
|
2236
|
-
if (data.mainFiles !== undefined) {
|
|
2237
|
-
let data14 = data.mainFiles;
|
|
2238
|
-
const _errs54 = errors;
|
|
2239
|
-
if (errors === _errs54) {
|
|
2240
|
-
if (Array.isArray(data14)) {
|
|
2241
|
-
var valid17 = true;
|
|
2242
|
-
const len6 = data14.length;
|
|
2243
|
-
for (let i6 = 0; i6 < len6; i6++) {
|
|
2244
|
-
let data15 = data14[i6];
|
|
2245
|
-
const _errs56 = errors;
|
|
2246
|
-
if (errors === _errs56) {
|
|
2247
|
-
if (typeof data15 === "string") {
|
|
2248
|
-
if (data15.length < 1) {
|
|
2249
|
-
validate49.errors = [{ instancePath: instancePath + "/mainFiles/" + i6, schemaPath: "#/properties/mainFiles/items/minLength", keyword: "minLength", params: {}, message: "must pass \"minLength\" keyword validation" }];
|
|
2250
|
-
return false;
|
|
2220
|
+
else {
|
|
2221
|
+
errors = _errs49;
|
|
2222
|
+
if (vErrors !== null) {
|
|
2223
|
+
if (_errs49) {
|
|
2224
|
+
vErrors.length = _errs49;
|
|
2225
|
+
}
|
|
2226
|
+
else {
|
|
2227
|
+
vErrors = null;
|
|
2251
2228
|
}
|
|
2252
|
-
}
|
|
2253
|
-
else {
|
|
2254
|
-
validate49.errors = [{ instancePath: instancePath + "/mainFiles/" + i6, schemaPath: "#/properties/mainFiles/items/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
|
|
2255
|
-
return false;
|
|
2256
2229
|
}
|
|
2257
2230
|
}
|
|
2258
|
-
var
|
|
2259
|
-
if (!
|
|
2231
|
+
var valid14 = _errs48 === errors;
|
|
2232
|
+
if (!valid14) {
|
|
2260
2233
|
break;
|
|
2261
2234
|
}
|
|
2262
2235
|
}
|
|
2263
2236
|
}
|
|
2264
2237
|
else {
|
|
2265
|
-
|
|
2238
|
+
validate50.errors = [{ instancePath: instancePath + "/mainFields", schemaPath: "#/properties/mainFields/type", keyword: "type", params: { type: "array" }, message: "must be array" }];
|
|
2266
2239
|
return false;
|
|
2267
2240
|
}
|
|
2268
2241
|
}
|
|
2269
|
-
var valid0 =
|
|
2242
|
+
var valid0 = _errs46 === errors;
|
|
2270
2243
|
}
|
|
2271
2244
|
else {
|
|
2272
2245
|
var valid0 = true;
|
|
2273
2246
|
}
|
|
2274
2247
|
if (valid0) {
|
|
2275
|
-
if (data.
|
|
2276
|
-
let
|
|
2277
|
-
const
|
|
2278
|
-
if (errors ===
|
|
2279
|
-
if (Array.isArray(
|
|
2280
|
-
var
|
|
2281
|
-
const
|
|
2282
|
-
for (let
|
|
2283
|
-
let
|
|
2284
|
-
const
|
|
2285
|
-
if (errors ===
|
|
2286
|
-
if (typeof
|
|
2287
|
-
if (
|
|
2288
|
-
|
|
2248
|
+
if (data.mainFiles !== undefined) {
|
|
2249
|
+
let data15 = data.mainFiles;
|
|
2250
|
+
const _errs56 = errors;
|
|
2251
|
+
if (errors === _errs56) {
|
|
2252
|
+
if (Array.isArray(data15)) {
|
|
2253
|
+
var valid17 = true;
|
|
2254
|
+
const len6 = data15.length;
|
|
2255
|
+
for (let i6 = 0; i6 < len6; i6++) {
|
|
2256
|
+
let data16 = data15[i6];
|
|
2257
|
+
const _errs58 = errors;
|
|
2258
|
+
if (errors === _errs58) {
|
|
2259
|
+
if (typeof data16 === "string") {
|
|
2260
|
+
if (data16.length < 1) {
|
|
2261
|
+
validate50.errors = [{ instancePath: instancePath + "/mainFiles/" + i6, schemaPath: "#/properties/mainFiles/items/minLength", keyword: "minLength", params: {}, message: "must pass \"minLength\" keyword validation" }];
|
|
2289
2262
|
return false;
|
|
2290
2263
|
}
|
|
2291
2264
|
}
|
|
2292
2265
|
else {
|
|
2293
|
-
|
|
2266
|
+
validate50.errors = [{ instancePath: instancePath + "/mainFiles/" + i6, schemaPath: "#/properties/mainFiles/items/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
|
|
2294
2267
|
return false;
|
|
2295
2268
|
}
|
|
2296
2269
|
}
|
|
2297
|
-
var
|
|
2298
|
-
if (!
|
|
2270
|
+
var valid17 = _errs58 === errors;
|
|
2271
|
+
if (!valid17) {
|
|
2299
2272
|
break;
|
|
2300
2273
|
}
|
|
2301
2274
|
}
|
|
2302
2275
|
}
|
|
2303
2276
|
else {
|
|
2304
|
-
|
|
2277
|
+
validate50.errors = [{ instancePath: instancePath + "/mainFiles", schemaPath: "#/properties/mainFiles/type", keyword: "type", params: { type: "array" }, message: "must be array" }];
|
|
2305
2278
|
return false;
|
|
2306
2279
|
}
|
|
2307
2280
|
}
|
|
2308
|
-
var valid0 =
|
|
2281
|
+
var valid0 = _errs56 === errors;
|
|
2309
2282
|
}
|
|
2310
2283
|
else {
|
|
2311
2284
|
var valid0 = true;
|
|
2312
2285
|
}
|
|
2313
2286
|
if (valid0) {
|
|
2314
|
-
if (data.
|
|
2315
|
-
|
|
2316
|
-
|
|
2317
|
-
|
|
2318
|
-
|
|
2287
|
+
if (data.modules !== undefined) {
|
|
2288
|
+
let data17 = data.modules;
|
|
2289
|
+
const _errs60 = errors;
|
|
2290
|
+
if (errors === _errs60) {
|
|
2291
|
+
if (Array.isArray(data17)) {
|
|
2292
|
+
var valid18 = true;
|
|
2293
|
+
const len7 = data17.length;
|
|
2294
|
+
for (let i7 = 0; i7 < len7; i7++) {
|
|
2295
|
+
let data18 = data17[i7];
|
|
2296
|
+
const _errs62 = errors;
|
|
2297
|
+
if (errors === _errs62) {
|
|
2298
|
+
if (typeof data18 === "string") {
|
|
2299
|
+
if (data18.length < 1) {
|
|
2300
|
+
validate50.errors = [{ instancePath: instancePath + "/modules/" + i7, schemaPath: "#/properties/modules/items/minLength", keyword: "minLength", params: {}, message: "must pass \"minLength\" keyword validation" }];
|
|
2301
|
+
return false;
|
|
2302
|
+
}
|
|
2303
|
+
}
|
|
2304
|
+
else {
|
|
2305
|
+
validate50.errors = [{ instancePath: instancePath + "/modules/" + i7, schemaPath: "#/properties/modules/items/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
|
|
2306
|
+
return false;
|
|
2307
|
+
}
|
|
2308
|
+
}
|
|
2309
|
+
var valid18 = _errs62 === errors;
|
|
2310
|
+
if (!valid18) {
|
|
2311
|
+
break;
|
|
2312
|
+
}
|
|
2313
|
+
}
|
|
2314
|
+
}
|
|
2315
|
+
else {
|
|
2316
|
+
validate50.errors = [{ instancePath: instancePath + "/modules", schemaPath: "#/properties/modules/type", keyword: "type", params: { type: "array" }, message: "must be array" }];
|
|
2317
|
+
return false;
|
|
2318
|
+
}
|
|
2319
2319
|
}
|
|
2320
|
-
var valid0 =
|
|
2320
|
+
var valid0 = _errs60 === errors;
|
|
2321
2321
|
}
|
|
2322
2322
|
else {
|
|
2323
2323
|
var valid0 = true;
|
|
2324
2324
|
}
|
|
2325
2325
|
if (valid0) {
|
|
2326
|
-
if (data.
|
|
2327
|
-
let data19 = data.byDependency;
|
|
2326
|
+
if (data.preferRelative !== undefined) {
|
|
2328
2327
|
const _errs64 = errors;
|
|
2329
|
-
if (
|
|
2330
|
-
|
|
2331
|
-
|
|
2332
|
-
|
|
2333
|
-
|
|
2334
|
-
|
|
2335
|
-
|
|
2336
|
-
|
|
2337
|
-
|
|
2338
|
-
|
|
2339
|
-
|
|
2340
|
-
|
|
2341
|
-
|
|
2342
|
-
|
|
2343
|
-
|
|
2344
|
-
|
|
2345
|
-
|
|
2346
|
-
|
|
2347
|
-
|
|
2348
|
-
|
|
2349
|
-
|
|
2328
|
+
if (typeof data.preferRelative !== "boolean") {
|
|
2329
|
+
validate50.errors = [{ instancePath: instancePath + "/preferRelative", schemaPath: "#/properties/preferRelative/type", keyword: "type", params: { type: "boolean" }, message: "must be boolean" }];
|
|
2330
|
+
return false;
|
|
2331
|
+
}
|
|
2332
|
+
var valid0 = _errs64 === errors;
|
|
2333
|
+
}
|
|
2334
|
+
else {
|
|
2335
|
+
var valid0 = true;
|
|
2336
|
+
}
|
|
2337
|
+
if (valid0) {
|
|
2338
|
+
if (data.byDependency !== undefined) {
|
|
2339
|
+
let data20 = data.byDependency;
|
|
2340
|
+
const _errs66 = errors;
|
|
2341
|
+
if (errors === _errs66) {
|
|
2342
|
+
if (data20 && typeof data20 == "object" && !Array.isArray(data20)) {
|
|
2343
|
+
for (const key3 in data20) {
|
|
2344
|
+
const _errs69 = errors;
|
|
2345
|
+
const _errs70 = errors;
|
|
2346
|
+
let valid20 = false;
|
|
2347
|
+
let passing1 = null;
|
|
2348
|
+
const _errs71 = errors;
|
|
2349
|
+
if (!(wrapper3.validate(data20[key3], { instancePath: instancePath + "/byDependency/" + key3.replace(/~/g, "~0").replace(/\//g, "~1"), parentData: data20, parentDataProperty: key3, rootData }))) {
|
|
2350
|
+
vErrors = vErrors === null ? wrapper3.validate.errors : vErrors.concat(wrapper3.validate.errors);
|
|
2351
|
+
errors = vErrors.length;
|
|
2350
2352
|
}
|
|
2351
|
-
|
|
2352
|
-
|
|
2353
|
+
var _valid6 = _errs71 === errors;
|
|
2354
|
+
if (_valid6) {
|
|
2355
|
+
valid20 = true;
|
|
2356
|
+
passing1 = 0;
|
|
2353
2357
|
}
|
|
2354
|
-
|
|
2355
|
-
|
|
2356
|
-
|
|
2357
|
-
|
|
2358
|
-
else {
|
|
2359
|
-
errors = _errs68;
|
|
2360
|
-
if (vErrors !== null) {
|
|
2361
|
-
if (_errs68) {
|
|
2362
|
-
vErrors.length = _errs68;
|
|
2358
|
+
if (!valid20) {
|
|
2359
|
+
const err25 = { instancePath: instancePath + "/byDependency/" + key3.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "#/properties/byDependency/additionalProperties/oneOf", keyword: "oneOf", params: { passingSchemas: passing1 }, message: "must match exactly one schema in oneOf" };
|
|
2360
|
+
if (vErrors === null) {
|
|
2361
|
+
vErrors = [err25];
|
|
2363
2362
|
}
|
|
2364
2363
|
else {
|
|
2365
|
-
vErrors
|
|
2364
|
+
vErrors.push(err25);
|
|
2366
2365
|
}
|
|
2366
|
+
errors++;
|
|
2367
|
+
validate50.errors = vErrors;
|
|
2368
|
+
return false;
|
|
2369
|
+
}
|
|
2370
|
+
else {
|
|
2371
|
+
errors = _errs70;
|
|
2372
|
+
if (vErrors !== null) {
|
|
2373
|
+
if (_errs70) {
|
|
2374
|
+
vErrors.length = _errs70;
|
|
2375
|
+
}
|
|
2376
|
+
else {
|
|
2377
|
+
vErrors = null;
|
|
2378
|
+
}
|
|
2379
|
+
}
|
|
2380
|
+
}
|
|
2381
|
+
var valid19 = _errs69 === errors;
|
|
2382
|
+
if (!valid19) {
|
|
2383
|
+
break;
|
|
2367
2384
|
}
|
|
2368
|
-
}
|
|
2369
|
-
var valid19 = _errs67 === errors;
|
|
2370
|
-
if (!valid19) {
|
|
2371
|
-
break;
|
|
2372
2385
|
}
|
|
2373
2386
|
}
|
|
2387
|
+
else {
|
|
2388
|
+
validate50.errors = [{ instancePath: instancePath + "/byDependency", schemaPath: "#/properties/byDependency/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
|
|
2389
|
+
return false;
|
|
2390
|
+
}
|
|
2374
2391
|
}
|
|
2375
|
-
|
|
2376
|
-
validate49.errors = [{ instancePath: instancePath + "/byDependency", schemaPath: "#/properties/byDependency/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
|
|
2377
|
-
return false;
|
|
2378
|
-
}
|
|
2379
|
-
}
|
|
2380
|
-
var valid0 = _errs64 === errors;
|
|
2381
|
-
}
|
|
2382
|
-
else {
|
|
2383
|
-
var valid0 = true;
|
|
2384
|
-
}
|
|
2385
|
-
if (valid0) {
|
|
2386
|
-
if (data.tsConfigPath !== undefined) {
|
|
2387
|
-
const _errs70 = errors;
|
|
2388
|
-
if (typeof data.tsConfigPath !== "string") {
|
|
2389
|
-
validate49.errors = [{ instancePath: instancePath + "/tsConfigPath", schemaPath: "#/properties/tsConfigPath/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
|
|
2390
|
-
return false;
|
|
2391
|
-
}
|
|
2392
|
-
var valid0 = _errs70 === errors;
|
|
2392
|
+
var valid0 = _errs66 === errors;
|
|
2393
2393
|
}
|
|
2394
2394
|
else {
|
|
2395
2395
|
var valid0 = true;
|
|
2396
2396
|
}
|
|
2397
|
+
if (valid0) {
|
|
2398
|
+
if (data.tsConfigPath !== undefined) {
|
|
2399
|
+
const _errs72 = errors;
|
|
2400
|
+
if (typeof data.tsConfigPath !== "string") {
|
|
2401
|
+
validate50.errors = [{ instancePath: instancePath + "/tsConfigPath", schemaPath: "#/properties/tsConfigPath/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
|
|
2402
|
+
return false;
|
|
2403
|
+
}
|
|
2404
|
+
var valid0 = _errs72 === errors;
|
|
2405
|
+
}
|
|
2406
|
+
else {
|
|
2407
|
+
var valid0 = true;
|
|
2408
|
+
}
|
|
2409
|
+
}
|
|
2397
2410
|
}
|
|
2398
2411
|
}
|
|
2399
2412
|
}
|
|
@@ -2407,15 +2420,15 @@ function validate49(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
2407
2420
|
}
|
|
2408
2421
|
}
|
|
2409
2422
|
else {
|
|
2410
|
-
|
|
2423
|
+
validate50.errors = [{ instancePath, schemaPath: "#/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
|
|
2411
2424
|
return false;
|
|
2412
2425
|
}
|
|
2413
|
-
}
|
|
2426
|
+
} validate50.errors = vErrors; return errors === 0; }
|
|
2414
2427
|
const schema49 = { "description": "A list of descriptions of loaders applied.", "anyOf": [{ "type": "array", "items": { "description": "An use item.", "oneOf": [{ "$ref": "#/definitions/RuleSetUseItem" }] } }, { "$ref": "#/definitions/RuleSetUseItem" }] };
|
|
2415
2428
|
const schema50 = { "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" }] };
|
|
2416
2429
|
const schema51 = { "description": "A loader request.", "type": "string", "minLength": 1 };
|
|
2417
2430
|
const schema52 = { "description": "Options passed to a loader.", "anyOf": [{ "type": "string" }, { "type": "object" }] };
|
|
2418
|
-
function
|
|
2431
|
+
function validate57(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) { let vErrors = null; let errors = 0; const _errs0 = errors; let valid0 = false; const _errs1 = errors; if (errors === _errs1) {
|
|
2419
2432
|
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
2420
2433
|
const _errs3 = errors;
|
|
2421
2434
|
for (const key0 in data) {
|
|
@@ -2636,7 +2649,7 @@ function validate56(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
2636
2649
|
vErrors.push(err11);
|
|
2637
2650
|
}
|
|
2638
2651
|
errors++;
|
|
2639
|
-
|
|
2652
|
+
validate57.errors = vErrors;
|
|
2640
2653
|
return false;
|
|
2641
2654
|
}
|
|
2642
2655
|
else {
|
|
@@ -2649,8 +2662,8 @@ else {
|
|
|
2649
2662
|
vErrors = null;
|
|
2650
2663
|
}
|
|
2651
2664
|
}
|
|
2652
|
-
}
|
|
2653
|
-
function
|
|
2665
|
+
} validate57.errors = vErrors; return errors === 0; }
|
|
2666
|
+
function validate56(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) { let vErrors = null; let errors = 0; const _errs0 = errors; let valid0 = false; const _errs1 = errors; if (errors === _errs1) {
|
|
2654
2667
|
if (Array.isArray(data)) {
|
|
2655
2668
|
var valid1 = true;
|
|
2656
2669
|
const len0 = data.length;
|
|
@@ -2660,8 +2673,8 @@ function validate55(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
2660
2673
|
let valid2 = false;
|
|
2661
2674
|
let passing0 = null;
|
|
2662
2675
|
const _errs5 = errors;
|
|
2663
|
-
if (!(
|
|
2664
|
-
vErrors = vErrors === null ?
|
|
2676
|
+
if (!(validate57(data[i0], { instancePath: instancePath + "/" + i0, parentData: data, parentDataProperty: i0, rootData }))) {
|
|
2677
|
+
vErrors = vErrors === null ? validate57.errors : vErrors.concat(validate57.errors);
|
|
2665
2678
|
errors = vErrors.length;
|
|
2666
2679
|
}
|
|
2667
2680
|
var _valid1 = _errs5 === errors;
|
|
@@ -2708,8 +2721,8 @@ function validate55(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
2708
2721
|
}
|
|
2709
2722
|
} var _valid0 = _errs1 === errors; valid0 = valid0 || _valid0; if (!valid0) {
|
|
2710
2723
|
const _errs6 = errors;
|
|
2711
|
-
if (!(
|
|
2712
|
-
vErrors = vErrors === null ?
|
|
2724
|
+
if (!(validate57(data, { instancePath, parentData, parentDataProperty, rootData }))) {
|
|
2725
|
+
vErrors = vErrors === null ? validate57.errors : vErrors.concat(validate57.errors);
|
|
2713
2726
|
errors = vErrors.length;
|
|
2714
2727
|
}
|
|
2715
2728
|
var _valid0 = _errs6 === errors;
|
|
@@ -2723,7 +2736,7 @@ function validate55(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
2723
2736
|
vErrors.push(err2);
|
|
2724
2737
|
}
|
|
2725
2738
|
errors++;
|
|
2726
|
-
|
|
2739
|
+
validate56.errors = vErrors;
|
|
2727
2740
|
return false;
|
|
2728
2741
|
}
|
|
2729
2742
|
else {
|
|
@@ -2736,7 +2749,7 @@ else {
|
|
|
2736
2749
|
vErrors = null;
|
|
2737
2750
|
}
|
|
2738
2751
|
}
|
|
2739
|
-
}
|
|
2752
|
+
} validate56.errors = vErrors; return errors === 0; }
|
|
2740
2753
|
const wrapper2 = { validate: validate34 };
|
|
2741
2754
|
function validate34(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) { let vErrors = null; let errors = 0; if (errors === 0) {
|
|
2742
2755
|
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
@@ -2938,59 +2951,25 @@ function validate34(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
2938
2951
|
var valid0 = true;
|
|
2939
2952
|
}
|
|
2940
2953
|
if (valid0) {
|
|
2941
|
-
if (data.
|
|
2942
|
-
let data5 = data.
|
|
2954
|
+
if (data.descriptionData !== undefined) {
|
|
2955
|
+
let data5 = data.descriptionData;
|
|
2943
2956
|
const _errs16 = errors;
|
|
2944
2957
|
if (errors === _errs16) {
|
|
2945
|
-
if (Array.isArray(data5)) {
|
|
2946
|
-
|
|
2947
|
-
const len0 = data5.length;
|
|
2948
|
-
for (let i0 = 0; i0 < len0; i0++) {
|
|
2949
|
-
const _errs18 = errors;
|
|
2958
|
+
if (data5 && typeof data5 == "object" && !Array.isArray(data5)) {
|
|
2959
|
+
for (const key1 in data5) {
|
|
2950
2960
|
const _errs19 = errors;
|
|
2951
|
-
|
|
2952
|
-
|
|
2953
|
-
const _errs20 = errors;
|
|
2954
|
-
if (!(wrapper2.validate(data5[i0], { instancePath: instancePath + "/oneOf/" + i0, parentData: data5, parentDataProperty: i0, rootData }))) {
|
|
2955
|
-
vErrors = vErrors === null ? wrapper2.validate.errors : vErrors.concat(wrapper2.validate.errors);
|
|
2961
|
+
if (!(validate35(data5[key1], { instancePath: instancePath + "/descriptionData/" + key1.replace(/~/g, "~0").replace(/\//g, "~1"), parentData: data5, parentDataProperty: key1, rootData }))) {
|
|
2962
|
+
vErrors = vErrors === null ? validate35.errors : vErrors.concat(validate35.errors);
|
|
2956
2963
|
errors = vErrors.length;
|
|
2957
2964
|
}
|
|
2958
|
-
var
|
|
2959
|
-
if (_valid4) {
|
|
2960
|
-
valid6 = true;
|
|
2961
|
-
passing4 = 0;
|
|
2962
|
-
}
|
|
2963
|
-
if (!valid6) {
|
|
2964
|
-
const err4 = { instancePath: instancePath + "/oneOf/" + i0, schemaPath: "#/properties/oneOf/items/oneOf", keyword: "oneOf", params: { passingSchemas: passing4 }, message: "must match exactly one schema in oneOf" };
|
|
2965
|
-
if (vErrors === null) {
|
|
2966
|
-
vErrors = [err4];
|
|
2967
|
-
}
|
|
2968
|
-
else {
|
|
2969
|
-
vErrors.push(err4);
|
|
2970
|
-
}
|
|
2971
|
-
errors++;
|
|
2972
|
-
validate34.errors = vErrors;
|
|
2973
|
-
return false;
|
|
2974
|
-
}
|
|
2975
|
-
else {
|
|
2976
|
-
errors = _errs19;
|
|
2977
|
-
if (vErrors !== null) {
|
|
2978
|
-
if (_errs19) {
|
|
2979
|
-
vErrors.length = _errs19;
|
|
2980
|
-
}
|
|
2981
|
-
else {
|
|
2982
|
-
vErrors = null;
|
|
2983
|
-
}
|
|
2984
|
-
}
|
|
2985
|
-
}
|
|
2986
|
-
var valid5 = _errs18 === errors;
|
|
2965
|
+
var valid5 = _errs19 === errors;
|
|
2987
2966
|
if (!valid5) {
|
|
2988
2967
|
break;
|
|
2989
2968
|
}
|
|
2990
2969
|
}
|
|
2991
2970
|
}
|
|
2992
2971
|
else {
|
|
2993
|
-
validate34.errors = [{ instancePath: instancePath + "/
|
|
2972
|
+
validate34.errors = [{ instancePath: instancePath + "/descriptionData", schemaPath: "#/properties/descriptionData/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
|
|
2994
2973
|
return false;
|
|
2995
2974
|
}
|
|
2996
2975
|
}
|
|
@@ -3000,103 +2979,121 @@ function validate34(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
3000
2979
|
var valid0 = true;
|
|
3001
2980
|
}
|
|
3002
2981
|
if (valid0) {
|
|
3003
|
-
if (data.
|
|
3004
|
-
let data7 = data.
|
|
3005
|
-
const
|
|
3006
|
-
if (errors ===
|
|
3007
|
-
if (
|
|
2982
|
+
if (data.oneOf !== undefined) {
|
|
2983
|
+
let data7 = data.oneOf;
|
|
2984
|
+
const _errs20 = errors;
|
|
2985
|
+
if (errors === _errs20) {
|
|
2986
|
+
if (Array.isArray(data7)) {
|
|
2987
|
+
var valid6 = true;
|
|
2988
|
+
const len0 = data7.length;
|
|
2989
|
+
for (let i0 = 0; i0 < len0; i0++) {
|
|
2990
|
+
const _errs22 = errors;
|
|
2991
|
+
const _errs23 = errors;
|
|
2992
|
+
let valid7 = false;
|
|
2993
|
+
let passing4 = null;
|
|
2994
|
+
const _errs24 = errors;
|
|
2995
|
+
if (!(wrapper2.validate(data7[i0], { instancePath: instancePath + "/oneOf/" + i0, parentData: data7, parentDataProperty: i0, rootData }))) {
|
|
2996
|
+
vErrors = vErrors === null ? wrapper2.validate.errors : vErrors.concat(wrapper2.validate.errors);
|
|
2997
|
+
errors = vErrors.length;
|
|
2998
|
+
}
|
|
2999
|
+
var _valid4 = _errs24 === errors;
|
|
3000
|
+
if (_valid4) {
|
|
3001
|
+
valid7 = true;
|
|
3002
|
+
passing4 = 0;
|
|
3003
|
+
}
|
|
3004
|
+
if (!valid7) {
|
|
3005
|
+
const err4 = { instancePath: instancePath + "/oneOf/" + i0, schemaPath: "#/properties/oneOf/items/oneOf", keyword: "oneOf", params: { passingSchemas: passing4 }, message: "must match exactly one schema in oneOf" };
|
|
3006
|
+
if (vErrors === null) {
|
|
3007
|
+
vErrors = [err4];
|
|
3008
|
+
}
|
|
3009
|
+
else {
|
|
3010
|
+
vErrors.push(err4);
|
|
3011
|
+
}
|
|
3012
|
+
errors++;
|
|
3013
|
+
validate34.errors = vErrors;
|
|
3014
|
+
return false;
|
|
3015
|
+
}
|
|
3016
|
+
else {
|
|
3017
|
+
errors = _errs23;
|
|
3018
|
+
if (vErrors !== null) {
|
|
3019
|
+
if (_errs23) {
|
|
3020
|
+
vErrors.length = _errs23;
|
|
3021
|
+
}
|
|
3022
|
+
else {
|
|
3023
|
+
vErrors = null;
|
|
3024
|
+
}
|
|
3025
|
+
}
|
|
3026
|
+
}
|
|
3027
|
+
var valid6 = _errs22 === errors;
|
|
3028
|
+
if (!valid6) {
|
|
3029
|
+
break;
|
|
3030
|
+
}
|
|
3031
|
+
}
|
|
3032
|
+
}
|
|
3008
3033
|
else {
|
|
3009
|
-
validate34.errors = [{ instancePath: instancePath + "/
|
|
3034
|
+
validate34.errors = [{ instancePath: instancePath + "/oneOf", schemaPath: "#/properties/oneOf/type", keyword: "type", params: { type: "array" }, message: "must be array" }];
|
|
3010
3035
|
return false;
|
|
3011
3036
|
}
|
|
3012
3037
|
}
|
|
3013
|
-
var valid0 =
|
|
3038
|
+
var valid0 = _errs20 === errors;
|
|
3014
3039
|
}
|
|
3015
3040
|
else {
|
|
3016
3041
|
var valid0 = true;
|
|
3017
3042
|
}
|
|
3018
3043
|
if (valid0) {
|
|
3019
|
-
if (data.
|
|
3020
|
-
let
|
|
3021
|
-
const
|
|
3022
|
-
if (
|
|
3023
|
-
|
|
3024
|
-
return false;
|
|
3025
|
-
}
|
|
3026
|
-
const _errs26 = errors;
|
|
3027
|
-
let valid7 = false;
|
|
3028
|
-
let passing5 = null;
|
|
3029
|
-
const _errs27 = errors;
|
|
3030
|
-
if (!(validate49(data8, { instancePath: instancePath + "/resolve", parentData: data, parentDataProperty: "resolve", rootData }))) {
|
|
3031
|
-
vErrors = vErrors === null ? validate49.errors : vErrors.concat(validate49.errors);
|
|
3032
|
-
errors = vErrors.length;
|
|
3033
|
-
}
|
|
3034
|
-
var _valid5 = _errs27 === errors;
|
|
3035
|
-
if (_valid5) {
|
|
3036
|
-
valid7 = true;
|
|
3037
|
-
passing5 = 0;
|
|
3038
|
-
}
|
|
3039
|
-
if (!valid7) {
|
|
3040
|
-
const err5 = { instancePath: instancePath + "/resolve", schemaPath: "#/properties/resolve/oneOf", keyword: "oneOf", params: { passingSchemas: passing5 }, message: "must match exactly one schema in oneOf" };
|
|
3041
|
-
if (vErrors === null) {
|
|
3042
|
-
vErrors = [err5];
|
|
3043
|
-
}
|
|
3044
|
+
if (data.parser !== undefined) {
|
|
3045
|
+
let data9 = data.parser;
|
|
3046
|
+
const _errs25 = errors;
|
|
3047
|
+
if (errors === _errs25) {
|
|
3048
|
+
if (data9 && typeof data9 == "object" && !Array.isArray(data9)) { }
|
|
3044
3049
|
else {
|
|
3045
|
-
|
|
3046
|
-
|
|
3047
|
-
errors++;
|
|
3048
|
-
validate34.errors = vErrors;
|
|
3049
|
-
return false;
|
|
3050
|
-
}
|
|
3051
|
-
else {
|
|
3052
|
-
errors = _errs26;
|
|
3053
|
-
if (vErrors !== null) {
|
|
3054
|
-
if (_errs26) {
|
|
3055
|
-
vErrors.length = _errs26;
|
|
3056
|
-
}
|
|
3057
|
-
else {
|
|
3058
|
-
vErrors = null;
|
|
3059
|
-
}
|
|
3050
|
+
validate34.errors = [{ instancePath: instancePath + "/parser", schemaPath: "#/properties/parser/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
|
|
3051
|
+
return false;
|
|
3060
3052
|
}
|
|
3061
3053
|
}
|
|
3062
|
-
var valid0 =
|
|
3054
|
+
var valid0 = _errs25 === errors;
|
|
3063
3055
|
}
|
|
3064
3056
|
else {
|
|
3065
3057
|
var valid0 = true;
|
|
3066
3058
|
}
|
|
3067
3059
|
if (valid0) {
|
|
3068
|
-
if (data.
|
|
3060
|
+
if (data.resolve !== undefined) {
|
|
3061
|
+
let data10 = data.resolve;
|
|
3069
3062
|
const _errs28 = errors;
|
|
3070
|
-
|
|
3071
|
-
|
|
3072
|
-
|
|
3063
|
+
if (!(data10 && typeof data10 == "object" && !Array.isArray(data10))) {
|
|
3064
|
+
validate34.errors = [{ instancePath: instancePath + "/resolve", schemaPath: "#/properties/resolve/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
|
|
3065
|
+
return false;
|
|
3066
|
+
}
|
|
3073
3067
|
const _errs30 = errors;
|
|
3074
|
-
|
|
3075
|
-
|
|
3068
|
+
let valid8 = false;
|
|
3069
|
+
let passing5 = null;
|
|
3070
|
+
const _errs31 = errors;
|
|
3071
|
+
if (!(validate50(data10, { instancePath: instancePath + "/resolve", parentData: data, parentDataProperty: "resolve", rootData }))) {
|
|
3072
|
+
vErrors = vErrors === null ? validate50.errors : vErrors.concat(validate50.errors);
|
|
3076
3073
|
errors = vErrors.length;
|
|
3077
3074
|
}
|
|
3078
|
-
var
|
|
3079
|
-
if (
|
|
3075
|
+
var _valid5 = _errs31 === errors;
|
|
3076
|
+
if (_valid5) {
|
|
3080
3077
|
valid8 = true;
|
|
3081
|
-
|
|
3078
|
+
passing5 = 0;
|
|
3082
3079
|
}
|
|
3083
3080
|
if (!valid8) {
|
|
3084
|
-
const
|
|
3081
|
+
const err5 = { instancePath: instancePath + "/resolve", schemaPath: "#/properties/resolve/oneOf", keyword: "oneOf", params: { passingSchemas: passing5 }, message: "must match exactly one schema in oneOf" };
|
|
3085
3082
|
if (vErrors === null) {
|
|
3086
|
-
vErrors = [
|
|
3083
|
+
vErrors = [err5];
|
|
3087
3084
|
}
|
|
3088
3085
|
else {
|
|
3089
|
-
vErrors.push(
|
|
3086
|
+
vErrors.push(err5);
|
|
3090
3087
|
}
|
|
3091
3088
|
errors++;
|
|
3092
3089
|
validate34.errors = vErrors;
|
|
3093
3090
|
return false;
|
|
3094
3091
|
}
|
|
3095
3092
|
else {
|
|
3096
|
-
errors =
|
|
3093
|
+
errors = _errs30;
|
|
3097
3094
|
if (vErrors !== null) {
|
|
3098
|
-
if (
|
|
3099
|
-
vErrors.length =
|
|
3095
|
+
if (_errs30) {
|
|
3096
|
+
vErrors.length = _errs30;
|
|
3100
3097
|
}
|
|
3101
3098
|
else {
|
|
3102
3099
|
vErrors = null;
|
|
@@ -3109,266 +3106,311 @@ function validate34(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
3109
3106
|
var valid0 = true;
|
|
3110
3107
|
}
|
|
3111
3108
|
if (valid0) {
|
|
3112
|
-
if (data.
|
|
3113
|
-
const _errs31 = errors;
|
|
3109
|
+
if (data.resource !== undefined) {
|
|
3114
3110
|
const _errs32 = errors;
|
|
3115
|
-
let valid9 = false;
|
|
3116
|
-
let passing7 = null;
|
|
3117
3111
|
const _errs33 = errors;
|
|
3118
|
-
|
|
3112
|
+
let valid9 = false;
|
|
3113
|
+
let passing6 = null;
|
|
3114
|
+
const _errs34 = errors;
|
|
3115
|
+
if (!(validate35(data.resource, { instancePath: instancePath + "/resource", parentData: data, parentDataProperty: "resource", rootData }))) {
|
|
3119
3116
|
vErrors = vErrors === null ? validate35.errors : vErrors.concat(validate35.errors);
|
|
3120
3117
|
errors = vErrors.length;
|
|
3121
3118
|
}
|
|
3122
|
-
var
|
|
3123
|
-
if (
|
|
3119
|
+
var _valid6 = _errs34 === errors;
|
|
3120
|
+
if (_valid6) {
|
|
3124
3121
|
valid9 = true;
|
|
3125
|
-
|
|
3122
|
+
passing6 = 0;
|
|
3126
3123
|
}
|
|
3127
3124
|
if (!valid9) {
|
|
3128
|
-
const
|
|
3125
|
+
const err6 = { instancePath: instancePath + "/resource", schemaPath: "#/properties/resource/oneOf", keyword: "oneOf", params: { passingSchemas: passing6 }, message: "must match exactly one schema in oneOf" };
|
|
3129
3126
|
if (vErrors === null) {
|
|
3130
|
-
vErrors = [
|
|
3127
|
+
vErrors = [err6];
|
|
3131
3128
|
}
|
|
3132
3129
|
else {
|
|
3133
|
-
vErrors.push(
|
|
3130
|
+
vErrors.push(err6);
|
|
3134
3131
|
}
|
|
3135
3132
|
errors++;
|
|
3136
3133
|
validate34.errors = vErrors;
|
|
3137
3134
|
return false;
|
|
3138
3135
|
}
|
|
3139
3136
|
else {
|
|
3140
|
-
errors =
|
|
3137
|
+
errors = _errs33;
|
|
3141
3138
|
if (vErrors !== null) {
|
|
3142
|
-
if (
|
|
3143
|
-
vErrors.length =
|
|
3139
|
+
if (_errs33) {
|
|
3140
|
+
vErrors.length = _errs33;
|
|
3144
3141
|
}
|
|
3145
3142
|
else {
|
|
3146
3143
|
vErrors = null;
|
|
3147
3144
|
}
|
|
3148
3145
|
}
|
|
3149
3146
|
}
|
|
3150
|
-
var valid0 =
|
|
3147
|
+
var valid0 = _errs32 === errors;
|
|
3151
3148
|
}
|
|
3152
3149
|
else {
|
|
3153
3150
|
var valid0 = true;
|
|
3154
3151
|
}
|
|
3155
3152
|
if (valid0) {
|
|
3156
|
-
if (data.
|
|
3157
|
-
const _errs34 = errors;
|
|
3153
|
+
if (data.resourceFragment !== undefined) {
|
|
3158
3154
|
const _errs35 = errors;
|
|
3159
|
-
let valid10 = false;
|
|
3160
|
-
let passing8 = null;
|
|
3161
3155
|
const _errs36 = errors;
|
|
3162
|
-
|
|
3156
|
+
let valid10 = false;
|
|
3157
|
+
let passing7 = null;
|
|
3158
|
+
const _errs37 = errors;
|
|
3159
|
+
if (!(validate35(data.resourceFragment, { instancePath: instancePath + "/resourceFragment", parentData: data, parentDataProperty: "resourceFragment", rootData }))) {
|
|
3163
3160
|
vErrors = vErrors === null ? validate35.errors : vErrors.concat(validate35.errors);
|
|
3164
3161
|
errors = vErrors.length;
|
|
3165
3162
|
}
|
|
3166
|
-
var
|
|
3167
|
-
if (
|
|
3163
|
+
var _valid7 = _errs37 === errors;
|
|
3164
|
+
if (_valid7) {
|
|
3168
3165
|
valid10 = true;
|
|
3169
|
-
|
|
3166
|
+
passing7 = 0;
|
|
3170
3167
|
}
|
|
3171
3168
|
if (!valid10) {
|
|
3172
|
-
const
|
|
3169
|
+
const err7 = { instancePath: instancePath + "/resourceFragment", schemaPath: "#/properties/resourceFragment/oneOf", keyword: "oneOf", params: { passingSchemas: passing7 }, message: "must match exactly one schema in oneOf" };
|
|
3173
3170
|
if (vErrors === null) {
|
|
3174
|
-
vErrors = [
|
|
3171
|
+
vErrors = [err7];
|
|
3175
3172
|
}
|
|
3176
3173
|
else {
|
|
3177
|
-
vErrors.push(
|
|
3174
|
+
vErrors.push(err7);
|
|
3178
3175
|
}
|
|
3179
3176
|
errors++;
|
|
3180
3177
|
validate34.errors = vErrors;
|
|
3181
3178
|
return false;
|
|
3182
3179
|
}
|
|
3183
3180
|
else {
|
|
3184
|
-
errors =
|
|
3181
|
+
errors = _errs36;
|
|
3185
3182
|
if (vErrors !== null) {
|
|
3186
|
-
if (
|
|
3187
|
-
vErrors.length =
|
|
3183
|
+
if (_errs36) {
|
|
3184
|
+
vErrors.length = _errs36;
|
|
3188
3185
|
}
|
|
3189
3186
|
else {
|
|
3190
3187
|
vErrors = null;
|
|
3191
3188
|
}
|
|
3192
3189
|
}
|
|
3193
3190
|
}
|
|
3194
|
-
var valid0 =
|
|
3191
|
+
var valid0 = _errs35 === errors;
|
|
3195
3192
|
}
|
|
3196
3193
|
else {
|
|
3197
3194
|
var valid0 = true;
|
|
3198
3195
|
}
|
|
3199
3196
|
if (valid0) {
|
|
3200
|
-
if (data.
|
|
3201
|
-
|
|
3202
|
-
const
|
|
3203
|
-
|
|
3204
|
-
|
|
3205
|
-
|
|
3206
|
-
|
|
3207
|
-
|
|
3208
|
-
|
|
3209
|
-
|
|
3210
|
-
|
|
3211
|
-
|
|
3212
|
-
|
|
3213
|
-
|
|
3214
|
-
|
|
3215
|
-
|
|
3216
|
-
|
|
3217
|
-
|
|
3218
|
-
|
|
3219
|
-
valid12 = true;
|
|
3220
|
-
passing9 = 0;
|
|
3221
|
-
}
|
|
3222
|
-
if (!valid12) {
|
|
3223
|
-
const err9 = { instancePath: instancePath + "/rules/" + i1, schemaPath: "#/properties/rules/items/oneOf", keyword: "oneOf", params: { passingSchemas: passing9 }, message: "must match exactly one schema in oneOf" };
|
|
3224
|
-
if (vErrors === null) {
|
|
3225
|
-
vErrors = [err9];
|
|
3226
|
-
}
|
|
3227
|
-
else {
|
|
3228
|
-
vErrors.push(err9);
|
|
3229
|
-
}
|
|
3230
|
-
errors++;
|
|
3231
|
-
validate34.errors = vErrors;
|
|
3232
|
-
return false;
|
|
3233
|
-
}
|
|
3234
|
-
else {
|
|
3235
|
-
errors = _errs40;
|
|
3236
|
-
if (vErrors !== null) {
|
|
3237
|
-
if (_errs40) {
|
|
3238
|
-
vErrors.length = _errs40;
|
|
3239
|
-
}
|
|
3240
|
-
else {
|
|
3241
|
-
vErrors = null;
|
|
3242
|
-
}
|
|
3243
|
-
}
|
|
3244
|
-
}
|
|
3245
|
-
var valid11 = _errs39 === errors;
|
|
3246
|
-
if (!valid11) {
|
|
3247
|
-
break;
|
|
3248
|
-
}
|
|
3249
|
-
}
|
|
3197
|
+
if (data.resourceQuery !== undefined) {
|
|
3198
|
+
const _errs38 = errors;
|
|
3199
|
+
const _errs39 = errors;
|
|
3200
|
+
let valid11 = false;
|
|
3201
|
+
let passing8 = null;
|
|
3202
|
+
const _errs40 = errors;
|
|
3203
|
+
if (!(validate35(data.resourceQuery, { instancePath: instancePath + "/resourceQuery", parentData: data, parentDataProperty: "resourceQuery", rootData }))) {
|
|
3204
|
+
vErrors = vErrors === null ? validate35.errors : vErrors.concat(validate35.errors);
|
|
3205
|
+
errors = vErrors.length;
|
|
3206
|
+
}
|
|
3207
|
+
var _valid8 = _errs40 === errors;
|
|
3208
|
+
if (_valid8) {
|
|
3209
|
+
valid11 = true;
|
|
3210
|
+
passing8 = 0;
|
|
3211
|
+
}
|
|
3212
|
+
if (!valid11) {
|
|
3213
|
+
const err8 = { instancePath: instancePath + "/resourceQuery", schemaPath: "#/properties/resourceQuery/oneOf", keyword: "oneOf", params: { passingSchemas: passing8 }, message: "must match exactly one schema in oneOf" };
|
|
3214
|
+
if (vErrors === null) {
|
|
3215
|
+
vErrors = [err8];
|
|
3250
3216
|
}
|
|
3251
3217
|
else {
|
|
3252
|
-
|
|
3253
|
-
|
|
3218
|
+
vErrors.push(err8);
|
|
3219
|
+
}
|
|
3220
|
+
errors++;
|
|
3221
|
+
validate34.errors = vErrors;
|
|
3222
|
+
return false;
|
|
3223
|
+
}
|
|
3224
|
+
else {
|
|
3225
|
+
errors = _errs39;
|
|
3226
|
+
if (vErrors !== null) {
|
|
3227
|
+
if (_errs39) {
|
|
3228
|
+
vErrors.length = _errs39;
|
|
3229
|
+
}
|
|
3230
|
+
else {
|
|
3231
|
+
vErrors = null;
|
|
3232
|
+
}
|
|
3254
3233
|
}
|
|
3255
3234
|
}
|
|
3256
|
-
var valid0 =
|
|
3235
|
+
var valid0 = _errs38 === errors;
|
|
3257
3236
|
}
|
|
3258
3237
|
else {
|
|
3259
3238
|
var valid0 = true;
|
|
3260
3239
|
}
|
|
3261
3240
|
if (valid0) {
|
|
3262
|
-
if (data.
|
|
3263
|
-
|
|
3264
|
-
|
|
3265
|
-
|
|
3266
|
-
|
|
3241
|
+
if (data.rules !== undefined) {
|
|
3242
|
+
let data14 = data.rules;
|
|
3243
|
+
const _errs41 = errors;
|
|
3244
|
+
if (errors === _errs41) {
|
|
3245
|
+
if (Array.isArray(data14)) {
|
|
3246
|
+
var valid12 = true;
|
|
3247
|
+
const len1 = data14.length;
|
|
3248
|
+
for (let i1 = 0; i1 < len1; i1++) {
|
|
3249
|
+
const _errs43 = errors;
|
|
3250
|
+
const _errs44 = errors;
|
|
3251
|
+
let valid13 = false;
|
|
3252
|
+
let passing9 = null;
|
|
3253
|
+
const _errs45 = errors;
|
|
3254
|
+
if (!(wrapper2.validate(data14[i1], { instancePath: instancePath + "/rules/" + i1, parentData: data14, parentDataProperty: i1, rootData }))) {
|
|
3255
|
+
vErrors = vErrors === null ? wrapper2.validate.errors : vErrors.concat(wrapper2.validate.errors);
|
|
3256
|
+
errors = vErrors.length;
|
|
3257
|
+
}
|
|
3258
|
+
var _valid9 = _errs45 === errors;
|
|
3259
|
+
if (_valid9) {
|
|
3260
|
+
valid13 = true;
|
|
3261
|
+
passing9 = 0;
|
|
3262
|
+
}
|
|
3263
|
+
if (!valid13) {
|
|
3264
|
+
const err9 = { instancePath: instancePath + "/rules/" + i1, schemaPath: "#/properties/rules/items/oneOf", keyword: "oneOf", params: { passingSchemas: passing9 }, message: "must match exactly one schema in oneOf" };
|
|
3265
|
+
if (vErrors === null) {
|
|
3266
|
+
vErrors = [err9];
|
|
3267
|
+
}
|
|
3268
|
+
else {
|
|
3269
|
+
vErrors.push(err9);
|
|
3270
|
+
}
|
|
3271
|
+
errors++;
|
|
3272
|
+
validate34.errors = vErrors;
|
|
3273
|
+
return false;
|
|
3274
|
+
}
|
|
3275
|
+
else {
|
|
3276
|
+
errors = _errs44;
|
|
3277
|
+
if (vErrors !== null) {
|
|
3278
|
+
if (_errs44) {
|
|
3279
|
+
vErrors.length = _errs44;
|
|
3280
|
+
}
|
|
3281
|
+
else {
|
|
3282
|
+
vErrors = null;
|
|
3283
|
+
}
|
|
3284
|
+
}
|
|
3285
|
+
}
|
|
3286
|
+
var valid12 = _errs43 === errors;
|
|
3287
|
+
if (!valid12) {
|
|
3288
|
+
break;
|
|
3289
|
+
}
|
|
3290
|
+
}
|
|
3291
|
+
}
|
|
3292
|
+
else {
|
|
3293
|
+
validate34.errors = [{ instancePath: instancePath + "/rules", schemaPath: "#/properties/rules/type", keyword: "type", params: { type: "array" }, message: "must be array" }];
|
|
3294
|
+
return false;
|
|
3295
|
+
}
|
|
3267
3296
|
}
|
|
3268
|
-
var valid0 =
|
|
3297
|
+
var valid0 = _errs41 === errors;
|
|
3269
3298
|
}
|
|
3270
3299
|
else {
|
|
3271
3300
|
var valid0 = true;
|
|
3272
3301
|
}
|
|
3273
3302
|
if (valid0) {
|
|
3274
|
-
if (data.
|
|
3275
|
-
const _errs44 = errors;
|
|
3276
|
-
const _errs45 = errors;
|
|
3277
|
-
let valid13 = false;
|
|
3278
|
-
let passing10 = null;
|
|
3303
|
+
if (data.sideEffects !== undefined) {
|
|
3279
3304
|
const _errs46 = errors;
|
|
3280
|
-
if (
|
|
3281
|
-
|
|
3282
|
-
errors = vErrors.length;
|
|
3283
|
-
}
|
|
3284
|
-
var _valid10 = _errs46 === errors;
|
|
3285
|
-
if (_valid10) {
|
|
3286
|
-
valid13 = true;
|
|
3287
|
-
passing10 = 0;
|
|
3288
|
-
}
|
|
3289
|
-
if (!valid13) {
|
|
3290
|
-
const err10 = { instancePath: instancePath + "/test", schemaPath: "#/properties/test/oneOf", keyword: "oneOf", params: { passingSchemas: passing10 }, message: "must match exactly one schema in oneOf" };
|
|
3291
|
-
if (vErrors === null) {
|
|
3292
|
-
vErrors = [err10];
|
|
3293
|
-
}
|
|
3294
|
-
else {
|
|
3295
|
-
vErrors.push(err10);
|
|
3296
|
-
}
|
|
3297
|
-
errors++;
|
|
3298
|
-
validate34.errors = vErrors;
|
|
3305
|
+
if (typeof data.sideEffects !== "boolean") {
|
|
3306
|
+
validate34.errors = [{ instancePath: instancePath + "/sideEffects", schemaPath: "#/properties/sideEffects/type", keyword: "type", params: { type: "boolean" }, message: "must be boolean" }];
|
|
3299
3307
|
return false;
|
|
3300
3308
|
}
|
|
3301
|
-
|
|
3302
|
-
errors = _errs45;
|
|
3303
|
-
if (vErrors !== null) {
|
|
3304
|
-
if (_errs45) {
|
|
3305
|
-
vErrors.length = _errs45;
|
|
3306
|
-
}
|
|
3307
|
-
else {
|
|
3308
|
-
vErrors = null;
|
|
3309
|
-
}
|
|
3310
|
-
}
|
|
3311
|
-
}
|
|
3312
|
-
var valid0 = _errs44 === errors;
|
|
3309
|
+
var valid0 = _errs46 === errors;
|
|
3313
3310
|
}
|
|
3314
3311
|
else {
|
|
3315
3312
|
var valid0 = true;
|
|
3316
3313
|
}
|
|
3317
3314
|
if (valid0) {
|
|
3318
|
-
if (data.
|
|
3319
|
-
const
|
|
3320
|
-
|
|
3321
|
-
|
|
3315
|
+
if (data.test !== undefined) {
|
|
3316
|
+
const _errs48 = errors;
|
|
3317
|
+
const _errs49 = errors;
|
|
3318
|
+
let valid14 = false;
|
|
3319
|
+
let passing10 = null;
|
|
3320
|
+
const _errs50 = errors;
|
|
3321
|
+
if (!(validate35(data.test, { instancePath: instancePath + "/test", parentData: data, parentDataProperty: "test", rootData }))) {
|
|
3322
|
+
vErrors = vErrors === null ? validate35.errors : vErrors.concat(validate35.errors);
|
|
3323
|
+
errors = vErrors.length;
|
|
3324
|
+
}
|
|
3325
|
+
var _valid10 = _errs50 === errors;
|
|
3326
|
+
if (_valid10) {
|
|
3327
|
+
valid14 = true;
|
|
3328
|
+
passing10 = 0;
|
|
3329
|
+
}
|
|
3330
|
+
if (!valid14) {
|
|
3331
|
+
const err10 = { instancePath: instancePath + "/test", schemaPath: "#/properties/test/oneOf", keyword: "oneOf", params: { passingSchemas: passing10 }, message: "must match exactly one schema in oneOf" };
|
|
3332
|
+
if (vErrors === null) {
|
|
3333
|
+
vErrors = [err10];
|
|
3334
|
+
}
|
|
3335
|
+
else {
|
|
3336
|
+
vErrors.push(err10);
|
|
3337
|
+
}
|
|
3338
|
+
errors++;
|
|
3339
|
+
validate34.errors = vErrors;
|
|
3322
3340
|
return false;
|
|
3323
3341
|
}
|
|
3324
|
-
|
|
3342
|
+
else {
|
|
3343
|
+
errors = _errs49;
|
|
3344
|
+
if (vErrors !== null) {
|
|
3345
|
+
if (_errs49) {
|
|
3346
|
+
vErrors.length = _errs49;
|
|
3347
|
+
}
|
|
3348
|
+
else {
|
|
3349
|
+
vErrors = null;
|
|
3350
|
+
}
|
|
3351
|
+
}
|
|
3352
|
+
}
|
|
3353
|
+
var valid0 = _errs48 === errors;
|
|
3325
3354
|
}
|
|
3326
3355
|
else {
|
|
3327
3356
|
var valid0 = true;
|
|
3328
3357
|
}
|
|
3329
3358
|
if (valid0) {
|
|
3330
|
-
if (data.
|
|
3331
|
-
const _errs49 = errors;
|
|
3332
|
-
const _errs50 = errors;
|
|
3333
|
-
let valid14 = false;
|
|
3334
|
-
let passing11 = null;
|
|
3359
|
+
if (data.type !== undefined) {
|
|
3335
3360
|
const _errs51 = errors;
|
|
3336
|
-
if (
|
|
3337
|
-
|
|
3338
|
-
|
|
3339
|
-
}
|
|
3340
|
-
var _valid11 = _errs51 === errors;
|
|
3341
|
-
if (_valid11) {
|
|
3342
|
-
valid14 = true;
|
|
3343
|
-
passing11 = 0;
|
|
3361
|
+
if (typeof data.type !== "string") {
|
|
3362
|
+
validate34.errors = [{ instancePath: instancePath + "/type", schemaPath: "#/properties/type/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
|
|
3363
|
+
return false;
|
|
3344
3364
|
}
|
|
3345
|
-
|
|
3346
|
-
|
|
3347
|
-
|
|
3348
|
-
|
|
3365
|
+
var valid0 = _errs51 === errors;
|
|
3366
|
+
}
|
|
3367
|
+
else {
|
|
3368
|
+
var valid0 = true;
|
|
3369
|
+
}
|
|
3370
|
+
if (valid0) {
|
|
3371
|
+
if (data.use !== undefined) {
|
|
3372
|
+
const _errs53 = errors;
|
|
3373
|
+
const _errs54 = errors;
|
|
3374
|
+
let valid15 = false;
|
|
3375
|
+
let passing11 = null;
|
|
3376
|
+
const _errs55 = errors;
|
|
3377
|
+
if (!(validate56(data.use, { instancePath: instancePath + "/use", parentData: data, parentDataProperty: "use", rootData }))) {
|
|
3378
|
+
vErrors = vErrors === null ? validate56.errors : vErrors.concat(validate56.errors);
|
|
3379
|
+
errors = vErrors.length;
|
|
3349
3380
|
}
|
|
3350
|
-
|
|
3351
|
-
|
|
3381
|
+
var _valid11 = _errs55 === errors;
|
|
3382
|
+
if (_valid11) {
|
|
3383
|
+
valid15 = true;
|
|
3384
|
+
passing11 = 0;
|
|
3352
3385
|
}
|
|
3353
|
-
|
|
3354
|
-
|
|
3355
|
-
|
|
3356
|
-
|
|
3357
|
-
else {
|
|
3358
|
-
errors = _errs50;
|
|
3359
|
-
if (vErrors !== null) {
|
|
3360
|
-
if (_errs50) {
|
|
3361
|
-
vErrors.length = _errs50;
|
|
3386
|
+
if (!valid15) {
|
|
3387
|
+
const err11 = { instancePath: instancePath + "/use", schemaPath: "#/properties/use/oneOf", keyword: "oneOf", params: { passingSchemas: passing11 }, message: "must match exactly one schema in oneOf" };
|
|
3388
|
+
if (vErrors === null) {
|
|
3389
|
+
vErrors = [err11];
|
|
3362
3390
|
}
|
|
3363
3391
|
else {
|
|
3364
|
-
vErrors
|
|
3392
|
+
vErrors.push(err11);
|
|
3393
|
+
}
|
|
3394
|
+
errors++;
|
|
3395
|
+
validate34.errors = vErrors;
|
|
3396
|
+
return false;
|
|
3397
|
+
}
|
|
3398
|
+
else {
|
|
3399
|
+
errors = _errs54;
|
|
3400
|
+
if (vErrors !== null) {
|
|
3401
|
+
if (_errs54) {
|
|
3402
|
+
vErrors.length = _errs54;
|
|
3403
|
+
}
|
|
3404
|
+
else {
|
|
3405
|
+
vErrors = null;
|
|
3406
|
+
}
|
|
3365
3407
|
}
|
|
3366
3408
|
}
|
|
3409
|
+
var valid0 = _errs53 === errors;
|
|
3410
|
+
}
|
|
3411
|
+
else {
|
|
3412
|
+
var valid0 = true;
|
|
3367
3413
|
}
|
|
3368
|
-
var valid0 = _errs49 === errors;
|
|
3369
|
-
}
|
|
3370
|
-
else {
|
|
3371
|
-
var valid0 = true;
|
|
3372
3414
|
}
|
|
3373
3415
|
}
|
|
3374
3416
|
}
|
|
@@ -3460,12 +3502,12 @@ function validate33(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
3460
3502
|
const schema54 = { "description": "Specify options for each parser.", "type": "object", "additionalProperties": { "description": "Options for parsing.", "type": "object", "additionalProperties": true }, "properties": { "asset": { "$ref": "#/definitions/AssetParserOptions" } } };
|
|
3461
3503
|
const schema55 = { "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" }] } } };
|
|
3462
3504
|
const schema56 = { "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" } } };
|
|
3463
|
-
function
|
|
3505
|
+
function validate64(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) { let vErrors = null; let errors = 0; if (errors === 0) {
|
|
3464
3506
|
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
3465
3507
|
const _errs1 = errors;
|
|
3466
3508
|
for (const key0 in data) {
|
|
3467
3509
|
if (!(key0 === "dataUrlCondition")) {
|
|
3468
|
-
|
|
3510
|
+
validate64.errors = [{ instancePath, schemaPath: "#/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key0 }, message: "must NOT have additional properties" }];
|
|
3469
3511
|
return false;
|
|
3470
3512
|
break;
|
|
3471
3513
|
}
|
|
@@ -3530,7 +3572,7 @@ function validate63(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
3530
3572
|
vErrors.push(err3);
|
|
3531
3573
|
}
|
|
3532
3574
|
errors++;
|
|
3533
|
-
|
|
3575
|
+
validate64.errors = vErrors;
|
|
3534
3576
|
return false;
|
|
3535
3577
|
}
|
|
3536
3578
|
else {
|
|
@@ -3548,11 +3590,11 @@ function validate63(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
3548
3590
|
}
|
|
3549
3591
|
}
|
|
3550
3592
|
else {
|
|
3551
|
-
|
|
3593
|
+
validate64.errors = [{ instancePath, schemaPath: "#/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
|
|
3552
3594
|
return false;
|
|
3553
3595
|
}
|
|
3554
|
-
}
|
|
3555
|
-
function
|
|
3596
|
+
} validate64.errors = vErrors; return errors === 0; }
|
|
3597
|
+
function validate63(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) { let vErrors = null; let errors = 0; if (errors === 0) {
|
|
3556
3598
|
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
3557
3599
|
const _errs1 = errors;
|
|
3558
3600
|
for (const key0 in data) {
|
|
@@ -3562,7 +3604,7 @@ function validate62(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
3562
3604
|
if (errors === _errs2) {
|
|
3563
3605
|
if (data0 && typeof data0 == "object" && !Array.isArray(data0)) { }
|
|
3564
3606
|
else {
|
|
3565
|
-
|
|
3607
|
+
validate63.errors = [{ instancePath: instancePath + "/" + key0.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "#/additionalProperties/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
|
|
3566
3608
|
return false;
|
|
3567
3609
|
}
|
|
3568
3610
|
}
|
|
@@ -3574,18 +3616,18 @@ function validate62(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
3574
3616
|
}
|
|
3575
3617
|
if (_errs1 === errors) {
|
|
3576
3618
|
if (data.asset !== undefined) {
|
|
3577
|
-
if (!(
|
|
3578
|
-
vErrors = vErrors === null ?
|
|
3619
|
+
if (!(validate64(data.asset, { instancePath: instancePath + "/asset", parentData: data, parentDataProperty: "asset", rootData }))) {
|
|
3620
|
+
vErrors = vErrors === null ? validate64.errors : vErrors.concat(validate64.errors);
|
|
3579
3621
|
errors = vErrors.length;
|
|
3580
3622
|
}
|
|
3581
3623
|
}
|
|
3582
3624
|
}
|
|
3583
3625
|
}
|
|
3584
3626
|
else {
|
|
3585
|
-
|
|
3627
|
+
validate63.errors = [{ instancePath, schemaPath: "#/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
|
|
3586
3628
|
return false;
|
|
3587
3629
|
}
|
|
3588
|
-
}
|
|
3630
|
+
} validate63.errors = vErrors; return errors === 0; }
|
|
3589
3631
|
function validate32(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) { let vErrors = null; let errors = 0; if (errors === 0) {
|
|
3590
3632
|
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
3591
3633
|
const _errs1 = errors;
|
|
@@ -3643,8 +3685,8 @@ function validate32(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
3643
3685
|
if (valid0) {
|
|
3644
3686
|
if (data.parser !== undefined) {
|
|
3645
3687
|
const _errs5 = errors;
|
|
3646
|
-
if (!(
|
|
3647
|
-
vErrors = vErrors === null ?
|
|
3688
|
+
if (!(validate63(data.parser, { instancePath: instancePath + "/parser", parentData: data, parentDataProperty: "parser", rootData }))) {
|
|
3689
|
+
vErrors = vErrors === null ? validate63.errors : vErrors.concat(validate63.errors);
|
|
3648
3690
|
errors = vErrors.length;
|
|
3649
3691
|
}
|
|
3650
3692
|
var valid0 = _errs5 === errors;
|
|
@@ -3707,7 +3749,7 @@ function validate32(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
3707
3749
|
} validate32.errors = vErrors; return errors === 0; }
|
|
3708
3750
|
const schema58 = { "description": "Include polyfills or mocks for various node stuff.", "anyOf": [{ "enum": [false] }, { "$ref": "#/definitions/NodeOptions" }] };
|
|
3709
3751
|
const schema59 = { "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"] } } };
|
|
3710
|
-
function
|
|
3752
|
+
function validate69(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) { let vErrors = null; let errors = 0; const _errs0 = errors; let valid0 = false; const _errs1 = errors; if (data !== false) {
|
|
3711
3753
|
const err0 = { instancePath, schemaPath: "#/anyOf/0/enum", keyword: "enum", params: {}, message: "must pass \"enum\" keyword validation" };
|
|
3712
3754
|
if (vErrors === null) {
|
|
3713
3755
|
vErrors = [err0];
|
|
@@ -3818,7 +3860,7 @@ function validate68(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
3818
3860
|
vErrors.push(err6);
|
|
3819
3861
|
}
|
|
3820
3862
|
errors++;
|
|
3821
|
-
|
|
3863
|
+
validate69.errors = vErrors;
|
|
3822
3864
|
return false;
|
|
3823
3865
|
}
|
|
3824
3866
|
else {
|
|
@@ -3831,7 +3873,7 @@ else {
|
|
|
3831
3873
|
vErrors = null;
|
|
3832
3874
|
}
|
|
3833
3875
|
}
|
|
3834
|
-
}
|
|
3876
|
+
} validate69.errors = vErrors; return errors === 0; }
|
|
3835
3877
|
const schema60 = { "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" }, "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" }] } } };
|
|
3836
3878
|
const schema61 = { "description": "Plugin instance.", "type": "object", "additionalProperties": true, "properties": { "apply": { "description": "The run point of the plugin, required method.", "instanceof": "Function" } }, "required": ["apply"] };
|
|
3837
3879
|
const schema62 = { "description": "Function acting as plugin.", "instanceof": "Function" };
|
|
@@ -3839,12 +3881,12 @@ const schema63 = { "description": "Create an additional chunk which contains onl
|
|
|
3839
3881
|
const schema64 = { "description": "Options object for splitting chunks into smaller chunks.", "type": "object", "additionalProperties": false, "properties": { "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" }] } } };
|
|
3840
3882
|
const schema65 = { "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" }, "test": { "description": "Assign modules to a cache group by module name.", "anyOf": [{ "instanceof": "RegExp" }] } } };
|
|
3841
3883
|
const schema66 = { "description": "Size description for limits.", "anyOf": [{ "description": "Size of the javascript part of the chunk.", "type": "number", "minimum": 0 }] };
|
|
3842
|
-
function
|
|
3884
|
+
function validate72(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) { let vErrors = null; let errors = 0; if (errors === 0) {
|
|
3843
3885
|
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
3844
3886
|
const _errs1 = errors;
|
|
3845
3887
|
for (const key0 in data) {
|
|
3846
3888
|
if (!((((((((key0 === "cacheGroups") || (key0 === "chunks")) || (key0 === "enforceSizeThreshold")) || (key0 === "maxAsyncRequests")) || (key0 === "maxInitialRequests")) || (key0 === "minChunks")) || (key0 === "minRemainingSize")) || (key0 === "minSize"))) {
|
|
3847
|
-
|
|
3889
|
+
validate72.errors = [{ instancePath, schemaPath: "#/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key0 }, message: "must NOT have additional properties" }];
|
|
3848
3890
|
return false;
|
|
3849
3891
|
break;
|
|
3850
3892
|
}
|
|
@@ -4155,7 +4197,7 @@ function validate71(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
4155
4197
|
vErrors.push(err15);
|
|
4156
4198
|
}
|
|
4157
4199
|
errors++;
|
|
4158
|
-
|
|
4200
|
+
validate72.errors = vErrors;
|
|
4159
4201
|
return false;
|
|
4160
4202
|
}
|
|
4161
4203
|
else {
|
|
@@ -4176,7 +4218,7 @@ function validate71(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
4176
4218
|
}
|
|
4177
4219
|
}
|
|
4178
4220
|
else {
|
|
4179
|
-
|
|
4221
|
+
validate72.errors = [{ instancePath: instancePath + "/cacheGroups", schemaPath: "#/properties/cacheGroups/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
|
|
4180
4222
|
return false;
|
|
4181
4223
|
}
|
|
4182
4224
|
}
|
|
@@ -4213,7 +4255,7 @@ function validate71(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
4213
4255
|
vErrors.push(err17);
|
|
4214
4256
|
}
|
|
4215
4257
|
errors++;
|
|
4216
|
-
|
|
4258
|
+
validate72.errors = vErrors;
|
|
4217
4259
|
return false;
|
|
4218
4260
|
}
|
|
4219
4261
|
else {
|
|
@@ -4304,7 +4346,7 @@ function validate71(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
4304
4346
|
vErrors.push(err21);
|
|
4305
4347
|
}
|
|
4306
4348
|
errors++;
|
|
4307
|
-
|
|
4349
|
+
validate72.errors = vErrors;
|
|
4308
4350
|
return false;
|
|
4309
4351
|
}
|
|
4310
4352
|
else {
|
|
@@ -4330,12 +4372,12 @@ function validate71(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
4330
4372
|
if (errors === _errs40) {
|
|
4331
4373
|
if (typeof data10 == "number") {
|
|
4332
4374
|
if (data10 < 1 || isNaN(data10)) {
|
|
4333
|
-
|
|
4375
|
+
validate72.errors = [{ instancePath: instancePath + "/maxAsyncRequests", schemaPath: "#/properties/maxAsyncRequests/minimum", keyword: "minimum", params: { comparison: ">=", limit: 1 }, message: "must be >= 1" }];
|
|
4334
4376
|
return false;
|
|
4335
4377
|
}
|
|
4336
4378
|
}
|
|
4337
4379
|
else {
|
|
4338
|
-
|
|
4380
|
+
validate72.errors = [{ instancePath: instancePath + "/maxAsyncRequests", schemaPath: "#/properties/maxAsyncRequests/type", keyword: "type", params: { type: "number" }, message: "must be number" }];
|
|
4339
4381
|
return false;
|
|
4340
4382
|
}
|
|
4341
4383
|
}
|
|
@@ -4351,12 +4393,12 @@ function validate71(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
4351
4393
|
if (errors === _errs42) {
|
|
4352
4394
|
if (typeof data11 == "number") {
|
|
4353
4395
|
if (data11 < 1 || isNaN(data11)) {
|
|
4354
|
-
|
|
4396
|
+
validate72.errors = [{ instancePath: instancePath + "/maxInitialRequests", schemaPath: "#/properties/maxInitialRequests/minimum", keyword: "minimum", params: { comparison: ">=", limit: 1 }, message: "must be >= 1" }];
|
|
4355
4397
|
return false;
|
|
4356
4398
|
}
|
|
4357
4399
|
}
|
|
4358
4400
|
else {
|
|
4359
|
-
|
|
4401
|
+
validate72.errors = [{ instancePath: instancePath + "/maxInitialRequests", schemaPath: "#/properties/maxInitialRequests/type", keyword: "type", params: { type: "number" }, message: "must be number" }];
|
|
4360
4402
|
return false;
|
|
4361
4403
|
}
|
|
4362
4404
|
}
|
|
@@ -4372,12 +4414,12 @@ function validate71(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
4372
4414
|
if (errors === _errs44) {
|
|
4373
4415
|
if (typeof data12 == "number") {
|
|
4374
4416
|
if (data12 < 1 || isNaN(data12)) {
|
|
4375
|
-
|
|
4417
|
+
validate72.errors = [{ instancePath: instancePath + "/minChunks", schemaPath: "#/properties/minChunks/minimum", keyword: "minimum", params: { comparison: ">=", limit: 1 }, message: "must be >= 1" }];
|
|
4376
4418
|
return false;
|
|
4377
4419
|
}
|
|
4378
4420
|
}
|
|
4379
4421
|
else {
|
|
4380
|
-
|
|
4422
|
+
validate72.errors = [{ instancePath: instancePath + "/minChunks", schemaPath: "#/properties/minChunks/type", keyword: "type", params: { type: "number" }, message: "must be number" }];
|
|
4381
4423
|
return false;
|
|
4382
4424
|
}
|
|
4383
4425
|
}
|
|
@@ -4458,7 +4500,7 @@ function validate71(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
4458
4500
|
vErrors.push(err25);
|
|
4459
4501
|
}
|
|
4460
4502
|
errors++;
|
|
4461
|
-
|
|
4503
|
+
validate72.errors = vErrors;
|
|
4462
4504
|
return false;
|
|
4463
4505
|
}
|
|
4464
4506
|
else {
|
|
@@ -4549,7 +4591,7 @@ function validate71(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
4549
4591
|
vErrors.push(err29);
|
|
4550
4592
|
}
|
|
4551
4593
|
errors++;
|
|
4552
|
-
|
|
4594
|
+
validate72.errors = vErrors;
|
|
4553
4595
|
return false;
|
|
4554
4596
|
}
|
|
4555
4597
|
else {
|
|
@@ -4578,16 +4620,16 @@ function validate71(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
4578
4620
|
}
|
|
4579
4621
|
}
|
|
4580
4622
|
else {
|
|
4581
|
-
|
|
4623
|
+
validate72.errors = [{ instancePath, schemaPath: "#/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
|
|
4582
4624
|
return false;
|
|
4583
4625
|
}
|
|
4584
|
-
}
|
|
4585
|
-
function
|
|
4626
|
+
} validate72.errors = vErrors; return errors === 0; }
|
|
4627
|
+
function validate71(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) { let vErrors = null; let errors = 0; if (errors === 0) {
|
|
4586
4628
|
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
4587
4629
|
const _errs1 = errors;
|
|
4588
4630
|
for (const key0 in data) {
|
|
4589
4631
|
if (!((((((((key0 === "chunkIds") || (key0 === "minimize")) || (key0 === "minimizer")) || (key0 === "moduleIds")) || (key0 === "removeAvailableModules")) || (key0 === "runtimeChunk")) || (key0 === "sideEffects")) || (key0 === "splitChunks"))) {
|
|
4590
|
-
|
|
4632
|
+
validate71.errors = [{ instancePath, schemaPath: "#/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key0 }, message: "must NOT have additional properties" }];
|
|
4591
4633
|
return false;
|
|
4592
4634
|
break;
|
|
4593
4635
|
}
|
|
@@ -4597,7 +4639,7 @@ function validate70(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
4597
4639
|
let data0 = data.chunkIds;
|
|
4598
4640
|
const _errs2 = errors;
|
|
4599
4641
|
if (data0 !== "named" && data0 !== "deterministic") {
|
|
4600
|
-
|
|
4642
|
+
validate71.errors = [{ instancePath: instancePath + "/chunkIds", schemaPath: "#/properties/chunkIds/enum", keyword: "enum", params: {}, message: "must pass \"enum\" keyword validation" }];
|
|
4601
4643
|
return false;
|
|
4602
4644
|
}
|
|
4603
4645
|
var valid0 = _errs2 === errors;
|
|
@@ -4609,7 +4651,7 @@ function validate70(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
4609
4651
|
if (data.minimize !== undefined) {
|
|
4610
4652
|
const _errs3 = errors;
|
|
4611
4653
|
if (typeof data.minimize !== "boolean") {
|
|
4612
|
-
|
|
4654
|
+
validate71.errors = [{ instancePath: instancePath + "/minimize", schemaPath: "#/properties/minimize/type", keyword: "type", params: { type: "boolean" }, message: "must be boolean" }];
|
|
4613
4655
|
return false;
|
|
4614
4656
|
}
|
|
4615
4657
|
var valid0 = _errs3 === errors;
|
|
@@ -4712,7 +4754,7 @@ function validate70(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
4712
4754
|
vErrors.push(err5);
|
|
4713
4755
|
}
|
|
4714
4756
|
errors++;
|
|
4715
|
-
|
|
4757
|
+
validate71.errors = vErrors;
|
|
4716
4758
|
return false;
|
|
4717
4759
|
}
|
|
4718
4760
|
else {
|
|
@@ -4733,7 +4775,7 @@ function validate70(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
4733
4775
|
}
|
|
4734
4776
|
}
|
|
4735
4777
|
else {
|
|
4736
|
-
|
|
4778
|
+
validate71.errors = [{ instancePath: instancePath + "/minimizer", schemaPath: "#/properties/minimizer/type", keyword: "type", params: { type: "array" }, message: "must be array" }];
|
|
4737
4779
|
return false;
|
|
4738
4780
|
}
|
|
4739
4781
|
}
|
|
@@ -4747,7 +4789,7 @@ function validate70(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
4747
4789
|
let data5 = data.moduleIds;
|
|
4748
4790
|
const _errs17 = errors;
|
|
4749
4791
|
if (data5 !== "named" && data5 !== "deterministic") {
|
|
4750
|
-
|
|
4792
|
+
validate71.errors = [{ instancePath: instancePath + "/moduleIds", schemaPath: "#/properties/moduleIds/enum", keyword: "enum", params: {}, message: "must pass \"enum\" keyword validation" }];
|
|
4751
4793
|
return false;
|
|
4752
4794
|
}
|
|
4753
4795
|
var valid0 = _errs17 === errors;
|
|
@@ -4759,7 +4801,7 @@ function validate70(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
4759
4801
|
if (data.removeAvailableModules !== undefined) {
|
|
4760
4802
|
const _errs18 = errors;
|
|
4761
4803
|
if (typeof data.removeAvailableModules !== "boolean") {
|
|
4762
|
-
|
|
4804
|
+
validate71.errors = [{ instancePath: instancePath + "/removeAvailableModules", schemaPath: "#/properties/removeAvailableModules/type", keyword: "type", params: { type: "boolean" }, message: "must be boolean" }];
|
|
4763
4805
|
return false;
|
|
4764
4806
|
}
|
|
4765
4807
|
var valid0 = _errs18 === errors;
|
|
@@ -4899,7 +4941,7 @@ function validate70(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
4899
4941
|
vErrors.push(err13);
|
|
4900
4942
|
}
|
|
4901
4943
|
errors++;
|
|
4902
|
-
|
|
4944
|
+
validate71.errors = vErrors;
|
|
4903
4945
|
return false;
|
|
4904
4946
|
}
|
|
4905
4947
|
else {
|
|
@@ -4961,7 +5003,7 @@ function validate70(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
4961
5003
|
vErrors.push(err16);
|
|
4962
5004
|
}
|
|
4963
5005
|
errors++;
|
|
4964
|
-
|
|
5006
|
+
validate71.errors = vErrors;
|
|
4965
5007
|
return false;
|
|
4966
5008
|
}
|
|
4967
5009
|
else {
|
|
@@ -5001,8 +5043,8 @@ function validate70(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
5001
5043
|
valid11 = valid11 || _valid4;
|
|
5002
5044
|
if (!valid11) {
|
|
5003
5045
|
const _errs42 = errors;
|
|
5004
|
-
if (!(
|
|
5005
|
-
vErrors = vErrors === null ?
|
|
5046
|
+
if (!(validate72(data10, { instancePath: instancePath + "/splitChunks", parentData: data, parentDataProperty: "splitChunks", rootData }))) {
|
|
5047
|
+
vErrors = vErrors === null ? validate72.errors : vErrors.concat(validate72.errors);
|
|
5006
5048
|
errors = vErrors.length;
|
|
5007
5049
|
}
|
|
5008
5050
|
var _valid4 = _errs42 === errors;
|
|
@@ -5017,7 +5059,7 @@ function validate70(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
5017
5059
|
vErrors.push(err18);
|
|
5018
5060
|
}
|
|
5019
5061
|
errors++;
|
|
5020
|
-
|
|
5062
|
+
validate71.errors = vErrors;
|
|
5021
5063
|
return false;
|
|
5022
5064
|
}
|
|
5023
5065
|
else {
|
|
@@ -5046,26 +5088,29 @@ function validate70(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
5046
5088
|
}
|
|
5047
5089
|
}
|
|
5048
5090
|
else {
|
|
5049
|
-
|
|
5091
|
+
validate71.errors = [{ instancePath, schemaPath: "#/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
|
|
5050
5092
|
return false;
|
|
5051
5093
|
}
|
|
5052
|
-
}
|
|
5053
|
-
const schema69 = { "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" }, "assetModuleFilename": { "$ref": "#/definitions/AssetModuleFilename" }, "auxiliaryComment": { "oneOf": [{ "$ref": "#/definitions/AuxiliaryComment" }] }, "chunkFilename": { "$ref": "#/definitions/ChunkFilename" }, "cssChunkFilename": { "$ref": "#/definitions/CssChunkFilename" }, "cssFilename": { "$ref": "#/definitions/CssFilename" }, "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" } } };
|
|
5094
|
+
} validate71.errors = vErrors; return errors === 0; }
|
|
5095
|
+
const schema69 = { "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" }] }, "chunkFilename": { "$ref": "#/definitions/ChunkFilename" }, "crossOriginLoading": { "$ref": "#/definitions/CrossOriginLoading" }, "cssChunkFilename": { "$ref": "#/definitions/CssChunkFilename" }, "cssFilename": { "$ref": "#/definitions/CssFilename" }, "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" } } };
|
|
5054
5096
|
const schema70 = { "description": "Wrap javascript code into IIFE's to avoid leaking into global scope.", "type": "boolean" };
|
|
5055
|
-
const schema71 = { "description": "
|
|
5056
|
-
const
|
|
5057
|
-
const
|
|
5058
|
-
const
|
|
5059
|
-
const
|
|
5060
|
-
const
|
|
5061
|
-
const
|
|
5062
|
-
const
|
|
5063
|
-
const
|
|
5064
|
-
const
|
|
5065
|
-
const schema104 = { "description": "
|
|
5066
|
-
const
|
|
5067
|
-
const
|
|
5068
|
-
|
|
5097
|
+
const schema71 = { "description": "Clears the output build directory", "type": "boolean" };
|
|
5098
|
+
const schema72 = { "description": "The filename of asset modules as relative path inside the 'output.path' directory.", "anyOf": [{ "type": "string" }] };
|
|
5099
|
+
const schema77 = { "description": "This option enables cross-origin loading of chunks.", "enum": [false, "anonymous", "use-credentials"] };
|
|
5100
|
+
const schema84 = { "description": "The filename of WebAssembly modules as relative path inside the 'output.path' directory.", "type": "string" };
|
|
5101
|
+
const schema89 = { "description": "An expression which is used to address the global object/scope in runtime code.", "type": "string", "minLength": 1 };
|
|
5102
|
+
const schema90 = { "description": "The name of the native import() function (can be exchanged for a polyfill).", "type": "string" };
|
|
5103
|
+
const schema95 = { "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 }] };
|
|
5104
|
+
const schema86 = { "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" }] };
|
|
5105
|
+
const schema100 = { "description": "Output javascript files as module source type.", "type": "boolean" };
|
|
5106
|
+
const schema101 = { "description": "The output directory as **absolute path** (required).", "type": "string" };
|
|
5107
|
+
const schema104 = { "description": "Handles error in module loading correctly at a performance cost. This will handle module error compatible with the EcmaScript Modules spec.", "type": "boolean" };
|
|
5108
|
+
const schema97 = { "description": "If `output.libraryTarget` is set to umd and `output.library` is set, setting this to true will name the AMD module.", "type": "boolean" };
|
|
5109
|
+
const schema106 = { "description": "A unique name of the rspack build to avoid multiple rspack runtimes to conflict when using globals.", "type": "string", "minLength": 1 };
|
|
5110
|
+
const schema107 = { "description": "The global variable used by rspack for loading of chunks.", "type": "string", "minLength": 1 };
|
|
5111
|
+
const schema73 = { "description": "Add a comment in the UMD wrapper.", "anyOf": [{ "description": "Append the same comment above each import style.", "type": "string" }, { "$ref": "#/definitions/LibraryCustomUmdCommentObject" }] };
|
|
5112
|
+
const schema74 = { "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" } } };
|
|
5113
|
+
function validate76(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") {
|
|
5069
5114
|
const err0 = { instancePath, schemaPath: "#/anyOf/0/type", keyword: "type", params: { type: "string" }, message: "must be string" };
|
|
5070
5115
|
if (vErrors === null) {
|
|
5071
5116
|
vErrors = [err0];
|
|
@@ -5192,7 +5237,7 @@ function validate75(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
5192
5237
|
vErrors.push(err7);
|
|
5193
5238
|
}
|
|
5194
5239
|
errors++;
|
|
5195
|
-
|
|
5240
|
+
validate76.errors = vErrors;
|
|
5196
5241
|
return false;
|
|
5197
5242
|
}
|
|
5198
5243
|
else {
|
|
@@ -5205,10 +5250,10 @@ else {
|
|
|
5205
5250
|
vErrors = null;
|
|
5206
5251
|
}
|
|
5207
5252
|
}
|
|
5208
|
-
}
|
|
5209
|
-
const
|
|
5210
|
-
const
|
|
5211
|
-
function
|
|
5253
|
+
} validate76.errors = vErrors; return errors === 0; }
|
|
5254
|
+
const schema75 = { "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" }] };
|
|
5255
|
+
const schema76 = { "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" }] };
|
|
5256
|
+
function validate78(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) {
|
|
5212
5257
|
if (typeof data === "string") {
|
|
5213
5258
|
if (data.length < 1) {
|
|
5214
5259
|
const err0 = { instancePath, schemaPath: "#/definitions/FilenameTemplate/anyOf/0/minLength", keyword: "minLength", params: {}, message: "must pass \"minLength\" keyword validation" };
|
|
@@ -5277,7 +5322,7 @@ else {
|
|
|
5277
5322
|
vErrors.push(err4);
|
|
5278
5323
|
}
|
|
5279
5324
|
errors++;
|
|
5280
|
-
|
|
5325
|
+
validate78.errors = vErrors;
|
|
5281
5326
|
return false;
|
|
5282
5327
|
}
|
|
5283
5328
|
else {
|
|
@@ -5290,9 +5335,9 @@ else {
|
|
|
5290
5335
|
vErrors = null;
|
|
5291
5336
|
}
|
|
5292
5337
|
}
|
|
5293
|
-
}
|
|
5294
|
-
const
|
|
5295
|
-
function
|
|
5338
|
+
} validate78.errors = vErrors; return errors === 0; }
|
|
5339
|
+
const schema78 = { "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" }] };
|
|
5340
|
+
function validate80(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) {
|
|
5296
5341
|
if (typeof data === "string") {
|
|
5297
5342
|
if (data.length < 1) {
|
|
5298
5343
|
const err0 = { instancePath, schemaPath: "#/definitions/FilenameTemplate/anyOf/0/minLength", keyword: "minLength", params: {}, message: "must pass \"minLength\" keyword validation" };
|
|
@@ -5361,7 +5406,7 @@ else {
|
|
|
5361
5406
|
vErrors.push(err4);
|
|
5362
5407
|
}
|
|
5363
5408
|
errors++;
|
|
5364
|
-
|
|
5409
|
+
validate80.errors = vErrors;
|
|
5365
5410
|
return false;
|
|
5366
5411
|
}
|
|
5367
5412
|
else {
|
|
@@ -5374,9 +5419,9 @@ else {
|
|
|
5374
5419
|
vErrors = null;
|
|
5375
5420
|
}
|
|
5376
5421
|
}
|
|
5377
|
-
}
|
|
5378
|
-
const
|
|
5379
|
-
function
|
|
5422
|
+
} validate80.errors = vErrors; return errors === 0; }
|
|
5423
|
+
const schema80 = { "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" }] };
|
|
5424
|
+
function validate82(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) {
|
|
5380
5425
|
if (typeof data === "string") {
|
|
5381
5426
|
if (data.length < 1) {
|
|
5382
5427
|
const err0 = { instancePath, schemaPath: "#/definitions/FilenameTemplate/anyOf/0/minLength", keyword: "minLength", params: {}, message: "must pass \"minLength\" keyword validation" };
|
|
@@ -5445,7 +5490,7 @@ else {
|
|
|
5445
5490
|
vErrors.push(err4);
|
|
5446
5491
|
}
|
|
5447
5492
|
errors++;
|
|
5448
|
-
|
|
5493
|
+
validate82.errors = vErrors;
|
|
5449
5494
|
return false;
|
|
5450
5495
|
}
|
|
5451
5496
|
else {
|
|
@@ -5458,9 +5503,9 @@ else {
|
|
|
5458
5503
|
vErrors = null;
|
|
5459
5504
|
}
|
|
5460
5505
|
}
|
|
5461
|
-
}
|
|
5462
|
-
const
|
|
5463
|
-
function
|
|
5506
|
+
} validate82.errors = vErrors; return errors === 0; }
|
|
5507
|
+
const schema82 = { "description": "List of wasm loading types enabled for use by entry points.", "type": "array", "items": { "$ref": "#/definitions/WasmLoadingType" } };
|
|
5508
|
+
function validate84(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) { let vErrors = null; let errors = 0; if (errors === 0) {
|
|
5464
5509
|
if (Array.isArray(data)) {
|
|
5465
5510
|
var valid0 = true;
|
|
5466
5511
|
const len0 = data.length;
|
|
@@ -5506,7 +5551,7 @@ function validate83(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
5506
5551
|
vErrors.push(err2);
|
|
5507
5552
|
}
|
|
5508
5553
|
errors++;
|
|
5509
|
-
|
|
5554
|
+
validate84.errors = vErrors;
|
|
5510
5555
|
return false;
|
|
5511
5556
|
}
|
|
5512
5557
|
else {
|
|
@@ -5527,12 +5572,12 @@ function validate83(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
5527
5572
|
}
|
|
5528
5573
|
}
|
|
5529
5574
|
else {
|
|
5530
|
-
|
|
5575
|
+
validate84.errors = [{ instancePath, schemaPath: "#/type", keyword: "type", params: { type: "array" }, message: "must be array" }];
|
|
5531
5576
|
return false;
|
|
5532
5577
|
}
|
|
5533
|
-
}
|
|
5534
|
-
const
|
|
5535
|
-
function
|
|
5578
|
+
} validate84.errors = vErrors; return errors === 0; }
|
|
5579
|
+
const schema85 = { "description": "List of library types enabled for use by entry points.", "type": "array", "items": { "$ref": "#/definitions/LibraryType" } };
|
|
5580
|
+
function validate87(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) { let vErrors = null; let errors = 0; if (errors === 0) {
|
|
5536
5581
|
if (Array.isArray(data)) {
|
|
5537
5582
|
var valid0 = true;
|
|
5538
5583
|
const len0 = data.length;
|
|
@@ -5578,7 +5623,7 @@ function validate86(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
5578
5623
|
vErrors.push(err2);
|
|
5579
5624
|
}
|
|
5580
5625
|
errors++;
|
|
5581
|
-
|
|
5626
|
+
validate87.errors = vErrors;
|
|
5582
5627
|
return false;
|
|
5583
5628
|
}
|
|
5584
5629
|
else {
|
|
@@ -5599,12 +5644,12 @@ function validate86(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
5599
5644
|
}
|
|
5600
5645
|
}
|
|
5601
5646
|
else {
|
|
5602
|
-
|
|
5647
|
+
validate87.errors = [{ instancePath, schemaPath: "#/type", keyword: "type", params: { type: "array" }, message: "must be array" }];
|
|
5603
5648
|
return false;
|
|
5604
5649
|
}
|
|
5605
|
-
}
|
|
5606
|
-
const
|
|
5607
|
-
function
|
|
5650
|
+
} validate87.errors = vErrors; return errors === 0; }
|
|
5651
|
+
const schema87 = { "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" }] };
|
|
5652
|
+
function validate89(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) {
|
|
5608
5653
|
if (typeof data === "string") {
|
|
5609
5654
|
if (data.length < 1) {
|
|
5610
5655
|
const err0 = { instancePath, schemaPath: "#/definitions/FilenameTemplate/anyOf/0/minLength", keyword: "minLength", params: {}, message: "must pass \"minLength\" keyword validation" };
|
|
@@ -5673,7 +5718,7 @@ else {
|
|
|
5673
5718
|
vErrors.push(err4);
|
|
5674
5719
|
}
|
|
5675
5720
|
errors++;
|
|
5676
|
-
|
|
5721
|
+
validate89.errors = vErrors;
|
|
5677
5722
|
return false;
|
|
5678
5723
|
}
|
|
5679
5724
|
else {
|
|
@@ -5686,11 +5731,11 @@ else {
|
|
|
5686
5731
|
vErrors = null;
|
|
5687
5732
|
}
|
|
5688
5733
|
}
|
|
5689
|
-
}
|
|
5690
|
-
const
|
|
5691
|
-
const
|
|
5692
|
-
const
|
|
5693
|
-
function
|
|
5734
|
+
} validate89.errors = vErrors; return errors === 0; }
|
|
5735
|
+
const schema91 = { "description": "Make the output files a library, exporting the exports of the entry point.", "anyOf": [{ "$ref": "#/definitions/LibraryName" }, { "$ref": "#/definitions/LibraryOptions" }] };
|
|
5736
|
+
const schema92 = { "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" }] };
|
|
5737
|
+
const schema93 = { "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 }] } } };
|
|
5738
|
+
function validate92(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) { let vErrors = null; let errors = 0; const _errs0 = errors; let valid0 = false; const _errs1 = errors; if (errors === _errs1) {
|
|
5694
5739
|
if (Array.isArray(data)) {
|
|
5695
5740
|
if (data.length < 1) {
|
|
5696
5741
|
const err0 = { instancePath, schemaPath: "#/anyOf/0/minItems", keyword: "minItems", params: { limit: 1 }, message: "must NOT have fewer than 1 items" };
|
|
@@ -6001,7 +6046,7 @@ function validate91(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
6001
6046
|
vErrors.push(err18);
|
|
6002
6047
|
}
|
|
6003
6048
|
errors++;
|
|
6004
|
-
|
|
6049
|
+
validate92.errors = vErrors;
|
|
6005
6050
|
return false;
|
|
6006
6051
|
}
|
|
6007
6052
|
else {
|
|
@@ -6014,20 +6059,20 @@ else {
|
|
|
6014
6059
|
vErrors = null;
|
|
6015
6060
|
}
|
|
6016
6061
|
}
|
|
6017
|
-
}
|
|
6018
|
-
const
|
|
6019
|
-
function
|
|
6062
|
+
} validate92.errors = vErrors; return errors === 0; }
|
|
6063
|
+
const schema94 = { "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"] };
|
|
6064
|
+
function validate94(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) { let vErrors = null; let errors = 0; if (errors === 0) {
|
|
6020
6065
|
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
6021
6066
|
let missing0;
|
|
6022
6067
|
if ((data.type === undefined) && (missing0 = "type")) {
|
|
6023
|
-
|
|
6068
|
+
validate94.errors = [{ instancePath, schemaPath: "#/required", keyword: "required", params: { missingProperty: missing0 }, message: "must have required property '" + missing0 + "'" }];
|
|
6024
6069
|
return false;
|
|
6025
6070
|
}
|
|
6026
6071
|
else {
|
|
6027
6072
|
const _errs1 = errors;
|
|
6028
6073
|
for (const key0 in data) {
|
|
6029
6074
|
if (!(((((key0 === "auxiliaryComment") || (key0 === "export")) || (key0 === "name")) || (key0 === "type")) || (key0 === "umdNamedDefine"))) {
|
|
6030
|
-
|
|
6075
|
+
validate94.errors = [{ instancePath, schemaPath: "#/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key0 }, message: "must NOT have additional properties" }];
|
|
6031
6076
|
return false;
|
|
6032
6077
|
break;
|
|
6033
6078
|
}
|
|
@@ -6035,8 +6080,8 @@ function validate93(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
6035
6080
|
if (_errs1 === errors) {
|
|
6036
6081
|
if (data.auxiliaryComment !== undefined) {
|
|
6037
6082
|
const _errs2 = errors;
|
|
6038
|
-
if (!(
|
|
6039
|
-
vErrors = vErrors === null ?
|
|
6083
|
+
if (!(validate76(data.auxiliaryComment, { instancePath: instancePath + "/auxiliaryComment", parentData: data, parentDataProperty: "auxiliaryComment", rootData }))) {
|
|
6084
|
+
vErrors = vErrors === null ? validate76.errors : vErrors.concat(validate76.errors);
|
|
6040
6085
|
errors = vErrors.length;
|
|
6041
6086
|
}
|
|
6042
6087
|
var valid0 = _errs2 === errors;
|
|
@@ -6139,7 +6184,7 @@ function validate93(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
6139
6184
|
vErrors.push(err5);
|
|
6140
6185
|
}
|
|
6141
6186
|
errors++;
|
|
6142
|
-
|
|
6187
|
+
validate94.errors = vErrors;
|
|
6143
6188
|
return false;
|
|
6144
6189
|
}
|
|
6145
6190
|
else {
|
|
@@ -6161,8 +6206,8 @@ function validate93(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
6161
6206
|
if (valid0) {
|
|
6162
6207
|
if (data.name !== undefined) {
|
|
6163
6208
|
const _errs12 = errors;
|
|
6164
|
-
if (!(
|
|
6165
|
-
vErrors = vErrors === null ?
|
|
6209
|
+
if (!(validate92(data.name, { instancePath: instancePath + "/name", parentData: data, parentDataProperty: "name", rootData }))) {
|
|
6210
|
+
vErrors = vErrors === null ? validate92.errors : vErrors.concat(validate92.errors);
|
|
6166
6211
|
errors = vErrors.length;
|
|
6167
6212
|
}
|
|
6168
6213
|
var valid0 = _errs12 === errors;
|
|
@@ -6213,7 +6258,7 @@ function validate93(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
6213
6258
|
vErrors.push(err8);
|
|
6214
6259
|
}
|
|
6215
6260
|
errors++;
|
|
6216
|
-
|
|
6261
|
+
validate94.errors = vErrors;
|
|
6217
6262
|
return false;
|
|
6218
6263
|
}
|
|
6219
6264
|
else {
|
|
@@ -6236,7 +6281,7 @@ function validate93(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
6236
6281
|
if (data.umdNamedDefine !== undefined) {
|
|
6237
6282
|
const _errs19 = errors;
|
|
6238
6283
|
if (typeof data.umdNamedDefine !== "boolean") {
|
|
6239
|
-
|
|
6284
|
+
validate94.errors = [{ instancePath: instancePath + "/umdNamedDefine", schemaPath: "#/definitions/UmdNamedDefine/type", keyword: "type", params: { type: "boolean" }, message: "must be boolean" }];
|
|
6240
6285
|
return false;
|
|
6241
6286
|
}
|
|
6242
6287
|
var valid0 = _errs19 === errors;
|
|
@@ -6252,17 +6297,17 @@ function validate93(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
6252
6297
|
}
|
|
6253
6298
|
}
|
|
6254
6299
|
else {
|
|
6255
|
-
|
|
6300
|
+
validate94.errors = [{ instancePath, schemaPath: "#/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
|
|
6256
6301
|
return false;
|
|
6257
6302
|
}
|
|
6258
|
-
}
|
|
6259
|
-
function
|
|
6260
|
-
vErrors = vErrors === null ?
|
|
6303
|
+
} validate94.errors = vErrors; return errors === 0; }
|
|
6304
|
+
function validate91(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) { let vErrors = null; let errors = 0; const _errs0 = errors; let valid0 = false; const _errs1 = errors; if (!(validate92(data, { instancePath, parentData, parentDataProperty, rootData }))) {
|
|
6305
|
+
vErrors = vErrors === null ? validate92.errors : vErrors.concat(validate92.errors);
|
|
6261
6306
|
errors = vErrors.length;
|
|
6262
6307
|
} var _valid0 = _errs1 === errors; valid0 = valid0 || _valid0; if (!valid0) {
|
|
6263
6308
|
const _errs2 = errors;
|
|
6264
|
-
if (!(
|
|
6265
|
-
vErrors = vErrors === null ?
|
|
6309
|
+
if (!(validate94(data, { instancePath, parentData, parentDataProperty, rootData }))) {
|
|
6310
|
+
vErrors = vErrors === null ? validate94.errors : vErrors.concat(validate94.errors);
|
|
6266
6311
|
errors = vErrors.length;
|
|
6267
6312
|
}
|
|
6268
6313
|
var _valid0 = _errs2 === errors;
|
|
@@ -6276,7 +6321,7 @@ function validate90(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
6276
6321
|
vErrors.push(err0);
|
|
6277
6322
|
}
|
|
6278
6323
|
errors++;
|
|
6279
|
-
|
|
6324
|
+
validate91.errors = vErrors;
|
|
6280
6325
|
return false;
|
|
6281
6326
|
}
|
|
6282
6327
|
else {
|
|
@@ -6289,10 +6334,10 @@ else {
|
|
|
6289
6334
|
vErrors = null;
|
|
6290
6335
|
}
|
|
6291
6336
|
}
|
|
6292
|
-
}
|
|
6293
|
-
const
|
|
6294
|
-
const
|
|
6295
|
-
function
|
|
6337
|
+
} validate91.errors = vErrors; return errors === 0; }
|
|
6338
|
+
const schema102 = { "description": "The 'publicPath' specifies the public URL address of the output files when referenced in a browser.", "anyOf": [{ "enum": ["auto"] }, { "$ref": "#/definitions/RawPublicPath" }] };
|
|
6339
|
+
const schema103 = { "description": "The 'publicPath' specifies the public URL address of the output files when referenced in a browser.", "anyOf": [{ "type": "string" }] };
|
|
6340
|
+
function validate99(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) { let vErrors = null; let errors = 0; const _errs0 = errors; let valid0 = false; const _errs1 = errors; if (data !== "auto") {
|
|
6296
6341
|
const err0 = { instancePath, schemaPath: "#/anyOf/0/enum", keyword: "enum", params: {}, message: "must pass \"enum\" keyword validation" };
|
|
6297
6342
|
if (vErrors === null) {
|
|
6298
6343
|
vErrors = [err0];
|
|
@@ -6350,7 +6395,7 @@ function validate98(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
6350
6395
|
vErrors.push(err3);
|
|
6351
6396
|
}
|
|
6352
6397
|
errors++;
|
|
6353
|
-
|
|
6398
|
+
validate99.errors = vErrors;
|
|
6354
6399
|
return false;
|
|
6355
6400
|
}
|
|
6356
6401
|
else {
|
|
@@ -6363,13 +6408,13 @@ else {
|
|
|
6363
6408
|
vErrors = null;
|
|
6364
6409
|
}
|
|
6365
6410
|
}
|
|
6366
|
-
}
|
|
6367
|
-
function
|
|
6411
|
+
} validate99.errors = vErrors; return errors === 0; }
|
|
6412
|
+
function validate75(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) { let vErrors = null; let errors = 0; if (errors === 0) {
|
|
6368
6413
|
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
6369
6414
|
const _errs1 = errors;
|
|
6370
6415
|
for (const key0 in data) {
|
|
6371
6416
|
if (!(func2.call(schema69.properties, key0))) {
|
|
6372
|
-
|
|
6417
|
+
validate75.errors = [{ instancePath, schemaPath: "#/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key0 }, message: "must NOT have additional properties" }];
|
|
6373
6418
|
return false;
|
|
6374
6419
|
break;
|
|
6375
6420
|
}
|
|
@@ -6378,7 +6423,7 @@ function validate74(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
6378
6423
|
if (data.iife !== undefined) {
|
|
6379
6424
|
const _errs2 = errors;
|
|
6380
6425
|
if (typeof data.iife !== "boolean") {
|
|
6381
|
-
|
|
6426
|
+
validate75.errors = [{ instancePath: instancePath + "/iife", schemaPath: "#/definitions/Iife/type", keyword: "type", params: { type: "boolean" }, message: "must be boolean" }];
|
|
6382
6427
|
return false;
|
|
6383
6428
|
}
|
|
6384
6429
|
var valid0 = _errs2 === errors;
|
|
@@ -6387,592 +6432,642 @@ function validate74(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
6387
6432
|
var valid0 = true;
|
|
6388
6433
|
}
|
|
6389
6434
|
if (valid0) {
|
|
6390
|
-
if (data.
|
|
6435
|
+
if (data.clean !== undefined) {
|
|
6391
6436
|
const _errs5 = errors;
|
|
6392
|
-
|
|
6393
|
-
|
|
6394
|
-
const _errs8 = errors;
|
|
6395
|
-
if (typeof data.assetModuleFilename !== "string") {
|
|
6396
|
-
const err0 = { instancePath: instancePath + "/assetModuleFilename", schemaPath: "#/definitions/AssetModuleFilename/anyOf/0/type", keyword: "type", params: { type: "string" }, message: "must be string" };
|
|
6397
|
-
if (vErrors === null) {
|
|
6398
|
-
vErrors = [err0];
|
|
6399
|
-
}
|
|
6400
|
-
else {
|
|
6401
|
-
vErrors.push(err0);
|
|
6402
|
-
}
|
|
6403
|
-
errors++;
|
|
6404
|
-
}
|
|
6405
|
-
var _valid0 = _errs8 === errors;
|
|
6406
|
-
valid3 = valid3 || _valid0;
|
|
6407
|
-
if (!valid3) {
|
|
6408
|
-
const err1 = { instancePath: instancePath + "/assetModuleFilename", schemaPath: "#/definitions/AssetModuleFilename/anyOf", keyword: "anyOf", params: {}, message: "must match a schema in anyOf" };
|
|
6409
|
-
if (vErrors === null) {
|
|
6410
|
-
vErrors = [err1];
|
|
6411
|
-
}
|
|
6412
|
-
else {
|
|
6413
|
-
vErrors.push(err1);
|
|
6414
|
-
}
|
|
6415
|
-
errors++;
|
|
6416
|
-
validate74.errors = vErrors;
|
|
6437
|
+
if (typeof data.clean !== "boolean") {
|
|
6438
|
+
validate75.errors = [{ instancePath: instancePath + "/clean", schemaPath: "#/definitions/Clean/type", keyword: "type", params: { type: "boolean" }, message: "must be boolean" }];
|
|
6417
6439
|
return false;
|
|
6418
6440
|
}
|
|
6419
|
-
else {
|
|
6420
|
-
errors = _errs7;
|
|
6421
|
-
if (vErrors !== null) {
|
|
6422
|
-
if (_errs7) {
|
|
6423
|
-
vErrors.length = _errs7;
|
|
6424
|
-
}
|
|
6425
|
-
else {
|
|
6426
|
-
vErrors = null;
|
|
6427
|
-
}
|
|
6428
|
-
}
|
|
6429
|
-
}
|
|
6430
6441
|
var valid0 = _errs5 === errors;
|
|
6431
6442
|
}
|
|
6432
6443
|
else {
|
|
6433
6444
|
var valid0 = true;
|
|
6434
6445
|
}
|
|
6435
6446
|
if (valid0) {
|
|
6436
|
-
if (data.
|
|
6447
|
+
if (data.assetModuleFilename !== undefined) {
|
|
6448
|
+
const _errs8 = errors;
|
|
6437
6449
|
const _errs10 = errors;
|
|
6438
|
-
const _errs11 = errors;
|
|
6439
6450
|
let valid4 = false;
|
|
6440
|
-
|
|
6441
|
-
|
|
6442
|
-
|
|
6443
|
-
|
|
6444
|
-
|
|
6445
|
-
|
|
6446
|
-
|
|
6447
|
-
|
|
6448
|
-
|
|
6449
|
-
|
|
6451
|
+
const _errs11 = errors;
|
|
6452
|
+
if (typeof data.assetModuleFilename !== "string") {
|
|
6453
|
+
const err0 = { instancePath: instancePath + "/assetModuleFilename", schemaPath: "#/definitions/AssetModuleFilename/anyOf/0/type", keyword: "type", params: { type: "string" }, message: "must be string" };
|
|
6454
|
+
if (vErrors === null) {
|
|
6455
|
+
vErrors = [err0];
|
|
6456
|
+
}
|
|
6457
|
+
else {
|
|
6458
|
+
vErrors.push(err0);
|
|
6459
|
+
}
|
|
6460
|
+
errors++;
|
|
6450
6461
|
}
|
|
6462
|
+
var _valid0 = _errs11 === errors;
|
|
6463
|
+
valid4 = valid4 || _valid0;
|
|
6451
6464
|
if (!valid4) {
|
|
6452
|
-
const
|
|
6465
|
+
const err1 = { instancePath: instancePath + "/assetModuleFilename", schemaPath: "#/definitions/AssetModuleFilename/anyOf", keyword: "anyOf", params: {}, message: "must match a schema in anyOf" };
|
|
6453
6466
|
if (vErrors === null) {
|
|
6454
|
-
vErrors = [
|
|
6467
|
+
vErrors = [err1];
|
|
6455
6468
|
}
|
|
6456
6469
|
else {
|
|
6457
|
-
vErrors.push(
|
|
6470
|
+
vErrors.push(err1);
|
|
6458
6471
|
}
|
|
6459
6472
|
errors++;
|
|
6460
|
-
|
|
6473
|
+
validate75.errors = vErrors;
|
|
6461
6474
|
return false;
|
|
6462
6475
|
}
|
|
6463
6476
|
else {
|
|
6464
|
-
errors =
|
|
6477
|
+
errors = _errs10;
|
|
6465
6478
|
if (vErrors !== null) {
|
|
6466
|
-
if (
|
|
6467
|
-
vErrors.length =
|
|
6479
|
+
if (_errs10) {
|
|
6480
|
+
vErrors.length = _errs10;
|
|
6468
6481
|
}
|
|
6469
6482
|
else {
|
|
6470
6483
|
vErrors = null;
|
|
6471
6484
|
}
|
|
6472
6485
|
}
|
|
6473
6486
|
}
|
|
6474
|
-
var valid0 =
|
|
6487
|
+
var valid0 = _errs8 === errors;
|
|
6475
6488
|
}
|
|
6476
6489
|
else {
|
|
6477
6490
|
var valid0 = true;
|
|
6478
6491
|
}
|
|
6479
6492
|
if (valid0) {
|
|
6480
|
-
if (data.
|
|
6493
|
+
if (data.auxiliaryComment !== undefined) {
|
|
6481
6494
|
const _errs13 = errors;
|
|
6482
|
-
|
|
6483
|
-
|
|
6495
|
+
const _errs14 = errors;
|
|
6496
|
+
let valid5 = false;
|
|
6497
|
+
let passing0 = null;
|
|
6498
|
+
const _errs15 = errors;
|
|
6499
|
+
if (!(validate76(data.auxiliaryComment, { instancePath: instancePath + "/auxiliaryComment", parentData: data, parentDataProperty: "auxiliaryComment", rootData }))) {
|
|
6500
|
+
vErrors = vErrors === null ? validate76.errors : vErrors.concat(validate76.errors);
|
|
6484
6501
|
errors = vErrors.length;
|
|
6485
6502
|
}
|
|
6503
|
+
var _valid1 = _errs15 === errors;
|
|
6504
|
+
if (_valid1) {
|
|
6505
|
+
valid5 = true;
|
|
6506
|
+
passing0 = 0;
|
|
6507
|
+
}
|
|
6508
|
+
if (!valid5) {
|
|
6509
|
+
const err2 = { instancePath: instancePath + "/auxiliaryComment", schemaPath: "#/properties/auxiliaryComment/oneOf", keyword: "oneOf", params: { passingSchemas: passing0 }, message: "must match exactly one schema in oneOf" };
|
|
6510
|
+
if (vErrors === null) {
|
|
6511
|
+
vErrors = [err2];
|
|
6512
|
+
}
|
|
6513
|
+
else {
|
|
6514
|
+
vErrors.push(err2);
|
|
6515
|
+
}
|
|
6516
|
+
errors++;
|
|
6517
|
+
validate75.errors = vErrors;
|
|
6518
|
+
return false;
|
|
6519
|
+
}
|
|
6520
|
+
else {
|
|
6521
|
+
errors = _errs14;
|
|
6522
|
+
if (vErrors !== null) {
|
|
6523
|
+
if (_errs14) {
|
|
6524
|
+
vErrors.length = _errs14;
|
|
6525
|
+
}
|
|
6526
|
+
else {
|
|
6527
|
+
vErrors = null;
|
|
6528
|
+
}
|
|
6529
|
+
}
|
|
6530
|
+
}
|
|
6486
6531
|
var valid0 = _errs13 === errors;
|
|
6487
6532
|
}
|
|
6488
6533
|
else {
|
|
6489
6534
|
var valid0 = true;
|
|
6490
6535
|
}
|
|
6491
6536
|
if (valid0) {
|
|
6492
|
-
if (data.
|
|
6493
|
-
const
|
|
6494
|
-
if (!(
|
|
6495
|
-
vErrors = vErrors === null ?
|
|
6537
|
+
if (data.chunkFilename !== undefined) {
|
|
6538
|
+
const _errs16 = errors;
|
|
6539
|
+
if (!(validate78(data.chunkFilename, { instancePath: instancePath + "/chunkFilename", parentData: data, parentDataProperty: "chunkFilename", rootData }))) {
|
|
6540
|
+
vErrors = vErrors === null ? validate78.errors : vErrors.concat(validate78.errors);
|
|
6496
6541
|
errors = vErrors.length;
|
|
6497
6542
|
}
|
|
6498
|
-
var valid0 =
|
|
6543
|
+
var valid0 = _errs16 === errors;
|
|
6499
6544
|
}
|
|
6500
6545
|
else {
|
|
6501
6546
|
var valid0 = true;
|
|
6502
6547
|
}
|
|
6503
6548
|
if (valid0) {
|
|
6504
|
-
if (data.
|
|
6505
|
-
|
|
6506
|
-
|
|
6507
|
-
|
|
6508
|
-
errors =
|
|
6549
|
+
if (data.crossOriginLoading !== undefined) {
|
|
6550
|
+
let data5 = data.crossOriginLoading;
|
|
6551
|
+
const _errs17 = errors;
|
|
6552
|
+
if (data5 !== false && data5 !== "anonymous" && data5 !== "use-credentials") {
|
|
6553
|
+
validate75.errors = [{ instancePath: instancePath + "/crossOriginLoading", schemaPath: "#/definitions/CrossOriginLoading/enum", keyword: "enum", params: {}, message: "must pass \"enum\" keyword validation" }];
|
|
6554
|
+
return false;
|
|
6509
6555
|
}
|
|
6510
|
-
var valid0 =
|
|
6556
|
+
var valid0 = _errs17 === errors;
|
|
6511
6557
|
}
|
|
6512
6558
|
else {
|
|
6513
6559
|
var valid0 = true;
|
|
6514
6560
|
}
|
|
6515
6561
|
if (valid0) {
|
|
6516
|
-
if (data.
|
|
6517
|
-
const
|
|
6518
|
-
if (!(
|
|
6519
|
-
vErrors = vErrors === null ?
|
|
6562
|
+
if (data.cssChunkFilename !== undefined) {
|
|
6563
|
+
const _errs19 = errors;
|
|
6564
|
+
if (!(validate80(data.cssChunkFilename, { instancePath: instancePath + "/cssChunkFilename", parentData: data, parentDataProperty: "cssChunkFilename", rootData }))) {
|
|
6565
|
+
vErrors = vErrors === null ? validate80.errors : vErrors.concat(validate80.errors);
|
|
6520
6566
|
errors = vErrors.length;
|
|
6521
6567
|
}
|
|
6522
|
-
var valid0 =
|
|
6568
|
+
var valid0 = _errs19 === errors;
|
|
6523
6569
|
}
|
|
6524
6570
|
else {
|
|
6525
6571
|
var valid0 = true;
|
|
6526
6572
|
}
|
|
6527
6573
|
if (valid0) {
|
|
6528
|
-
if (data.
|
|
6529
|
-
const
|
|
6530
|
-
if (!(
|
|
6531
|
-
vErrors = vErrors === null ?
|
|
6574
|
+
if (data.cssFilename !== undefined) {
|
|
6575
|
+
const _errs20 = errors;
|
|
6576
|
+
if (!(validate82(data.cssFilename, { instancePath: instancePath + "/cssFilename", parentData: data, parentDataProperty: "cssFilename", rootData }))) {
|
|
6577
|
+
vErrors = vErrors === null ? validate82.errors : vErrors.concat(validate82.errors);
|
|
6532
6578
|
errors = vErrors.length;
|
|
6533
6579
|
}
|
|
6534
|
-
var valid0 =
|
|
6580
|
+
var valid0 = _errs20 === errors;
|
|
6535
6581
|
}
|
|
6536
6582
|
else {
|
|
6537
6583
|
var valid0 = true;
|
|
6538
6584
|
}
|
|
6539
6585
|
if (valid0) {
|
|
6540
|
-
if (data.
|
|
6541
|
-
const
|
|
6542
|
-
if (
|
|
6543
|
-
|
|
6544
|
-
|
|
6586
|
+
if (data.enabledWasmLoadingTypes !== undefined) {
|
|
6587
|
+
const _errs21 = errors;
|
|
6588
|
+
if (!(validate84(data.enabledWasmLoadingTypes, { instancePath: instancePath + "/enabledWasmLoadingTypes", parentData: data, parentDataProperty: "enabledWasmLoadingTypes", rootData }))) {
|
|
6589
|
+
vErrors = vErrors === null ? validate84.errors : vErrors.concat(validate84.errors);
|
|
6590
|
+
errors = vErrors.length;
|
|
6545
6591
|
}
|
|
6546
|
-
var valid0 =
|
|
6592
|
+
var valid0 = _errs21 === errors;
|
|
6547
6593
|
}
|
|
6548
6594
|
else {
|
|
6549
6595
|
var valid0 = true;
|
|
6550
6596
|
}
|
|
6551
6597
|
if (valid0) {
|
|
6552
|
-
if (data.
|
|
6553
|
-
const
|
|
6554
|
-
if (!(
|
|
6555
|
-
vErrors = vErrors === null ?
|
|
6598
|
+
if (data.wasmLoading !== undefined) {
|
|
6599
|
+
const _errs22 = errors;
|
|
6600
|
+
if (!(validate15(data.wasmLoading, { instancePath: instancePath + "/wasmLoading", parentData: data, parentDataProperty: "wasmLoading", rootData }))) {
|
|
6601
|
+
vErrors = vErrors === null ? validate15.errors : vErrors.concat(validate15.errors);
|
|
6556
6602
|
errors = vErrors.length;
|
|
6557
6603
|
}
|
|
6558
|
-
var valid0 =
|
|
6604
|
+
var valid0 = _errs22 === errors;
|
|
6559
6605
|
}
|
|
6560
6606
|
else {
|
|
6561
6607
|
var valid0 = true;
|
|
6562
6608
|
}
|
|
6563
6609
|
if (valid0) {
|
|
6564
|
-
if (data.
|
|
6565
|
-
const
|
|
6566
|
-
if (
|
|
6567
|
-
|
|
6568
|
-
|
|
6610
|
+
if (data.webassemblyModuleFilename !== undefined) {
|
|
6611
|
+
const _errs23 = errors;
|
|
6612
|
+
if (typeof data.webassemblyModuleFilename !== "string") {
|
|
6613
|
+
validate75.errors = [{ instancePath: instancePath + "/webassemblyModuleFilename", schemaPath: "#/definitions/WebassemblyModuleFilename/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
|
|
6614
|
+
return false;
|
|
6569
6615
|
}
|
|
6570
|
-
var valid0 =
|
|
6616
|
+
var valid0 = _errs23 === errors;
|
|
6571
6617
|
}
|
|
6572
6618
|
else {
|
|
6573
6619
|
var valid0 = true;
|
|
6574
6620
|
}
|
|
6575
6621
|
if (valid0) {
|
|
6576
|
-
if (data.
|
|
6577
|
-
|
|
6578
|
-
|
|
6579
|
-
|
|
6580
|
-
|
|
6581
|
-
if (typeof data11 === "string") {
|
|
6582
|
-
if (data11.length < 1) {
|
|
6583
|
-
validate74.errors = [{ instancePath: instancePath + "/globalObject", schemaPath: "#/definitions/GlobalObject/minLength", keyword: "minLength", params: {}, message: "must pass \"minLength\" keyword validation" }];
|
|
6584
|
-
return false;
|
|
6585
|
-
}
|
|
6586
|
-
}
|
|
6587
|
-
else {
|
|
6588
|
-
validate74.errors = [{ instancePath: instancePath + "/globalObject", schemaPath: "#/definitions/GlobalObject/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
|
|
6589
|
-
return false;
|
|
6590
|
-
}
|
|
6622
|
+
if (data.enabledLibraryTypes !== undefined) {
|
|
6623
|
+
const _errs26 = errors;
|
|
6624
|
+
if (!(validate87(data.enabledLibraryTypes, { instancePath: instancePath + "/enabledLibraryTypes", parentData: data, parentDataProperty: "enabledLibraryTypes", rootData }))) {
|
|
6625
|
+
vErrors = vErrors === null ? validate87.errors : vErrors.concat(validate87.errors);
|
|
6626
|
+
errors = vErrors.length;
|
|
6591
6627
|
}
|
|
6592
|
-
var valid0 =
|
|
6628
|
+
var valid0 = _errs26 === errors;
|
|
6593
6629
|
}
|
|
6594
6630
|
else {
|
|
6595
6631
|
var valid0 = true;
|
|
6596
6632
|
}
|
|
6597
6633
|
if (valid0) {
|
|
6598
|
-
if (data.
|
|
6599
|
-
const
|
|
6600
|
-
if (
|
|
6601
|
-
|
|
6602
|
-
|
|
6634
|
+
if (data.filename !== undefined) {
|
|
6635
|
+
const _errs27 = errors;
|
|
6636
|
+
if (!(validate89(data.filename, { instancePath: instancePath + "/filename", parentData: data, parentDataProperty: "filename", rootData }))) {
|
|
6637
|
+
vErrors = vErrors === null ? validate89.errors : vErrors.concat(validate89.errors);
|
|
6638
|
+
errors = vErrors.length;
|
|
6603
6639
|
}
|
|
6604
|
-
var valid0 =
|
|
6640
|
+
var valid0 = _errs27 === errors;
|
|
6605
6641
|
}
|
|
6606
6642
|
else {
|
|
6607
6643
|
var valid0 = true;
|
|
6608
6644
|
}
|
|
6609
6645
|
if (valid0) {
|
|
6610
|
-
if (data.
|
|
6646
|
+
if (data.globalObject !== undefined) {
|
|
6647
|
+
let data13 = data.globalObject;
|
|
6648
|
+
const _errs28 = errors;
|
|
6611
6649
|
const _errs29 = errors;
|
|
6612
|
-
if (
|
|
6613
|
-
|
|
6614
|
-
|
|
6650
|
+
if (errors === _errs29) {
|
|
6651
|
+
if (typeof data13 === "string") {
|
|
6652
|
+
if (data13.length < 1) {
|
|
6653
|
+
validate75.errors = [{ instancePath: instancePath + "/globalObject", schemaPath: "#/definitions/GlobalObject/minLength", keyword: "minLength", params: {}, message: "must pass \"minLength\" keyword validation" }];
|
|
6654
|
+
return false;
|
|
6655
|
+
}
|
|
6656
|
+
}
|
|
6657
|
+
else {
|
|
6658
|
+
validate75.errors = [{ instancePath: instancePath + "/globalObject", schemaPath: "#/definitions/GlobalObject/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
|
|
6659
|
+
return false;
|
|
6660
|
+
}
|
|
6615
6661
|
}
|
|
6616
|
-
var valid0 =
|
|
6662
|
+
var valid0 = _errs28 === errors;
|
|
6617
6663
|
}
|
|
6618
6664
|
else {
|
|
6619
6665
|
var valid0 = true;
|
|
6620
6666
|
}
|
|
6621
6667
|
if (valid0) {
|
|
6622
|
-
if (data.
|
|
6623
|
-
let data14 = data.libraryExport;
|
|
6624
|
-
const _errs30 = errors;
|
|
6668
|
+
if (data.importFunctionName !== undefined) {
|
|
6625
6669
|
const _errs31 = errors;
|
|
6626
|
-
|
|
6627
|
-
|
|
6628
|
-
|
|
6629
|
-
|
|
6630
|
-
|
|
6631
|
-
|
|
6632
|
-
|
|
6633
|
-
|
|
6634
|
-
|
|
6635
|
-
|
|
6636
|
-
|
|
6637
|
-
|
|
6638
|
-
|
|
6639
|
-
|
|
6640
|
-
|
|
6641
|
-
|
|
6642
|
-
|
|
6643
|
-
|
|
6644
|
-
|
|
6645
|
-
|
|
6646
|
-
|
|
6647
|
-
|
|
6670
|
+
if (typeof data.importFunctionName !== "string") {
|
|
6671
|
+
validate75.errors = [{ instancePath: instancePath + "/importFunctionName", schemaPath: "#/definitions/ImportFunctionName/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
|
|
6672
|
+
return false;
|
|
6673
|
+
}
|
|
6674
|
+
var valid0 = _errs31 === errors;
|
|
6675
|
+
}
|
|
6676
|
+
else {
|
|
6677
|
+
var valid0 = true;
|
|
6678
|
+
}
|
|
6679
|
+
if (valid0) {
|
|
6680
|
+
if (data.library !== undefined) {
|
|
6681
|
+
const _errs34 = errors;
|
|
6682
|
+
if (!(validate91(data.library, { instancePath: instancePath + "/library", parentData: data, parentDataProperty: "library", rootData }))) {
|
|
6683
|
+
vErrors = vErrors === null ? validate91.errors : vErrors.concat(validate91.errors);
|
|
6684
|
+
errors = vErrors.length;
|
|
6685
|
+
}
|
|
6686
|
+
var valid0 = _errs34 === errors;
|
|
6687
|
+
}
|
|
6688
|
+
else {
|
|
6689
|
+
var valid0 = true;
|
|
6690
|
+
}
|
|
6691
|
+
if (valid0) {
|
|
6692
|
+
if (data.libraryExport !== undefined) {
|
|
6693
|
+
let data16 = data.libraryExport;
|
|
6694
|
+
const _errs35 = errors;
|
|
6695
|
+
const _errs36 = errors;
|
|
6696
|
+
let valid10 = false;
|
|
6697
|
+
let passing1 = null;
|
|
6698
|
+
const _errs37 = errors;
|
|
6699
|
+
const _errs39 = errors;
|
|
6700
|
+
let valid12 = false;
|
|
6701
|
+
const _errs40 = errors;
|
|
6702
|
+
if (errors === _errs40) {
|
|
6703
|
+
if (Array.isArray(data16)) {
|
|
6704
|
+
var valid13 = true;
|
|
6705
|
+
const len0 = data16.length;
|
|
6706
|
+
for (let i0 = 0; i0 < len0; i0++) {
|
|
6707
|
+
let data17 = data16[i0];
|
|
6708
|
+
const _errs42 = errors;
|
|
6709
|
+
if (errors === _errs42) {
|
|
6710
|
+
if (typeof data17 === "string") {
|
|
6711
|
+
if (data17.length < 1) {
|
|
6712
|
+
const err3 = { instancePath: instancePath + "/libraryExport/" + i0, schemaPath: "#/definitions/LibraryExport/anyOf/0/items/minLength", keyword: "minLength", params: {}, message: "must pass \"minLength\" keyword validation" };
|
|
6713
|
+
if (vErrors === null) {
|
|
6714
|
+
vErrors = [err3];
|
|
6715
|
+
}
|
|
6716
|
+
else {
|
|
6717
|
+
vErrors.push(err3);
|
|
6718
|
+
}
|
|
6719
|
+
errors++;
|
|
6720
|
+
}
|
|
6721
|
+
}
|
|
6722
|
+
else {
|
|
6723
|
+
const err4 = { instancePath: instancePath + "/libraryExport/" + i0, schemaPath: "#/definitions/LibraryExport/anyOf/0/items/type", keyword: "type", params: { type: "string" }, message: "must be string" };
|
|
6724
|
+
if (vErrors === null) {
|
|
6725
|
+
vErrors = [err4];
|
|
6726
|
+
}
|
|
6727
|
+
else {
|
|
6728
|
+
vErrors.push(err4);
|
|
6729
|
+
}
|
|
6730
|
+
errors++;
|
|
6731
|
+
}
|
|
6732
|
+
}
|
|
6733
|
+
var valid13 = _errs42 === errors;
|
|
6734
|
+
if (!valid13) {
|
|
6735
|
+
break;
|
|
6736
|
+
}
|
|
6737
|
+
}
|
|
6738
|
+
}
|
|
6739
|
+
else {
|
|
6740
|
+
const err5 = { instancePath: instancePath + "/libraryExport", schemaPath: "#/definitions/LibraryExport/anyOf/0/type", keyword: "type", params: { type: "array" }, message: "must be array" };
|
|
6741
|
+
if (vErrors === null) {
|
|
6742
|
+
vErrors = [err5];
|
|
6743
|
+
}
|
|
6744
|
+
else {
|
|
6745
|
+
vErrors.push(err5);
|
|
6746
|
+
}
|
|
6747
|
+
errors++;
|
|
6748
|
+
}
|
|
6749
|
+
}
|
|
6750
|
+
var _valid3 = _errs40 === errors;
|
|
6751
|
+
valid12 = valid12 || _valid3;
|
|
6752
|
+
if (!valid12) {
|
|
6753
|
+
const _errs44 = errors;
|
|
6754
|
+
if (errors === _errs44) {
|
|
6755
|
+
if (typeof data16 === "string") {
|
|
6756
|
+
if (data16.length < 1) {
|
|
6757
|
+
const err6 = { instancePath: instancePath + "/libraryExport", schemaPath: "#/definitions/LibraryExport/anyOf/1/minLength", keyword: "minLength", params: {}, message: "must pass \"minLength\" keyword validation" };
|
|
6758
|
+
if (vErrors === null) {
|
|
6759
|
+
vErrors = [err6];
|
|
6760
|
+
}
|
|
6761
|
+
else {
|
|
6762
|
+
vErrors.push(err6);
|
|
6648
6763
|
}
|
|
6649
6764
|
errors++;
|
|
6650
6765
|
}
|
|
6651
6766
|
}
|
|
6652
6767
|
else {
|
|
6653
|
-
const
|
|
6768
|
+
const err7 = { instancePath: instancePath + "/libraryExport", schemaPath: "#/definitions/LibraryExport/anyOf/1/type", keyword: "type", params: { type: "string" }, message: "must be string" };
|
|
6654
6769
|
if (vErrors === null) {
|
|
6655
|
-
vErrors = [
|
|
6770
|
+
vErrors = [err7];
|
|
6656
6771
|
}
|
|
6657
6772
|
else {
|
|
6658
|
-
vErrors.push(
|
|
6773
|
+
vErrors.push(err7);
|
|
6659
6774
|
}
|
|
6660
6775
|
errors++;
|
|
6661
6776
|
}
|
|
6662
6777
|
}
|
|
6663
|
-
var
|
|
6664
|
-
|
|
6665
|
-
break;
|
|
6666
|
-
}
|
|
6667
|
-
}
|
|
6668
|
-
}
|
|
6669
|
-
else {
|
|
6670
|
-
const err5 = { instancePath: instancePath + "/libraryExport", schemaPath: "#/definitions/LibraryExport/anyOf/0/type", keyword: "type", params: { type: "array" }, message: "must be array" };
|
|
6671
|
-
if (vErrors === null) {
|
|
6672
|
-
vErrors = [err5];
|
|
6673
|
-
}
|
|
6674
|
-
else {
|
|
6675
|
-
vErrors.push(err5);
|
|
6778
|
+
var _valid3 = _errs44 === errors;
|
|
6779
|
+
valid12 = valid12 || _valid3;
|
|
6676
6780
|
}
|
|
6677
|
-
|
|
6678
|
-
|
|
6679
|
-
}
|
|
6680
|
-
var _valid3 = _errs35 === errors;
|
|
6681
|
-
valid10 = valid10 || _valid3;
|
|
6682
|
-
if (!valid10) {
|
|
6683
|
-
const _errs39 = errors;
|
|
6684
|
-
if (errors === _errs39) {
|
|
6685
|
-
if (typeof data14 === "string") {
|
|
6686
|
-
if (data14.length < 1) {
|
|
6687
|
-
const err6 = { instancePath: instancePath + "/libraryExport", schemaPath: "#/definitions/LibraryExport/anyOf/1/minLength", keyword: "minLength", params: {}, message: "must pass \"minLength\" keyword validation" };
|
|
6688
|
-
if (vErrors === null) {
|
|
6689
|
-
vErrors = [err6];
|
|
6690
|
-
}
|
|
6691
|
-
else {
|
|
6692
|
-
vErrors.push(err6);
|
|
6693
|
-
}
|
|
6694
|
-
errors++;
|
|
6695
|
-
}
|
|
6696
|
-
}
|
|
6697
|
-
else {
|
|
6698
|
-
const err7 = { instancePath: instancePath + "/libraryExport", schemaPath: "#/definitions/LibraryExport/anyOf/1/type", keyword: "type", params: { type: "string" }, message: "must be string" };
|
|
6781
|
+
if (!valid12) {
|
|
6782
|
+
const err8 = { instancePath: instancePath + "/libraryExport", schemaPath: "#/definitions/LibraryExport/anyOf", keyword: "anyOf", params: {}, message: "must match a schema in anyOf" };
|
|
6699
6783
|
if (vErrors === null) {
|
|
6700
|
-
vErrors = [
|
|
6784
|
+
vErrors = [err8];
|
|
6701
6785
|
}
|
|
6702
6786
|
else {
|
|
6703
|
-
vErrors.push(
|
|
6787
|
+
vErrors.push(err8);
|
|
6704
6788
|
}
|
|
6705
6789
|
errors++;
|
|
6706
6790
|
}
|
|
6707
|
-
}
|
|
6708
|
-
var _valid3 = _errs39 === errors;
|
|
6709
|
-
valid10 = valid10 || _valid3;
|
|
6710
|
-
}
|
|
6711
|
-
if (!valid10) {
|
|
6712
|
-
const err8 = { instancePath: instancePath + "/libraryExport", schemaPath: "#/definitions/LibraryExport/anyOf", keyword: "anyOf", params: {}, message: "must match a schema in anyOf" };
|
|
6713
|
-
if (vErrors === null) {
|
|
6714
|
-
vErrors = [err8];
|
|
6715
|
-
}
|
|
6716
|
-
else {
|
|
6717
|
-
vErrors.push(err8);
|
|
6718
|
-
}
|
|
6719
|
-
errors++;
|
|
6720
|
-
}
|
|
6721
|
-
else {
|
|
6722
|
-
errors = _errs34;
|
|
6723
|
-
if (vErrors !== null) {
|
|
6724
|
-
if (_errs34) {
|
|
6725
|
-
vErrors.length = _errs34;
|
|
6726
|
-
}
|
|
6727
6791
|
else {
|
|
6728
|
-
|
|
6729
|
-
|
|
6730
|
-
|
|
6731
|
-
|
|
6732
|
-
|
|
6733
|
-
|
|
6734
|
-
|
|
6735
|
-
|
|
6736
|
-
|
|
6737
|
-
if (!valid8) {
|
|
6738
|
-
const err9 = { instancePath: instancePath + "/libraryExport", schemaPath: "#/properties/libraryExport/oneOf", keyword: "oneOf", params: { passingSchemas: passing1 }, message: "must match exactly one schema in oneOf" };
|
|
6739
|
-
if (vErrors === null) {
|
|
6740
|
-
vErrors = [err9];
|
|
6741
|
-
}
|
|
6742
|
-
else {
|
|
6743
|
-
vErrors.push(err9);
|
|
6744
|
-
}
|
|
6745
|
-
errors++;
|
|
6746
|
-
validate74.errors = vErrors;
|
|
6747
|
-
return false;
|
|
6748
|
-
}
|
|
6749
|
-
else {
|
|
6750
|
-
errors = _errs31;
|
|
6751
|
-
if (vErrors !== null) {
|
|
6752
|
-
if (_errs31) {
|
|
6753
|
-
vErrors.length = _errs31;
|
|
6754
|
-
}
|
|
6755
|
-
else {
|
|
6756
|
-
vErrors = null;
|
|
6757
|
-
}
|
|
6758
|
-
}
|
|
6759
|
-
}
|
|
6760
|
-
var valid0 = _errs30 === errors;
|
|
6761
|
-
}
|
|
6762
|
-
else {
|
|
6763
|
-
var valid0 = true;
|
|
6764
|
-
}
|
|
6765
|
-
if (valid0) {
|
|
6766
|
-
if (data.libraryTarget !== undefined) {
|
|
6767
|
-
let data16 = data.libraryTarget;
|
|
6768
|
-
const _errs41 = errors;
|
|
6769
|
-
const _errs42 = errors;
|
|
6770
|
-
let valid12 = false;
|
|
6771
|
-
let passing2 = null;
|
|
6772
|
-
const _errs43 = errors;
|
|
6773
|
-
const _errs45 = errors;
|
|
6774
|
-
let valid14 = false;
|
|
6775
|
-
const _errs46 = errors;
|
|
6776
|
-
if (data16 !== "var" && data16 !== "module" && data16 !== "assign" && data16 !== "assign-properties" && data16 !== "this" && data16 !== "window" && data16 !== "self" && data16 !== "global" && data16 !== "commonjs" && data16 !== "commonjs2" && data16 !== "commonjs-module" && data16 !== "commonjs-static" && data16 !== "amd" && data16 !== "amd-require" && data16 !== "umd" && data16 !== "umd2" && data16 !== "jsonp" && data16 !== "system") {
|
|
6777
|
-
const err10 = { instancePath: instancePath + "/libraryTarget", schemaPath: "#/definitions/LibraryType/anyOf/0/enum", keyword: "enum", params: {}, message: "must pass \"enum\" keyword validation" };
|
|
6778
|
-
if (vErrors === null) {
|
|
6779
|
-
vErrors = [err10];
|
|
6792
|
+
errors = _errs39;
|
|
6793
|
+
if (vErrors !== null) {
|
|
6794
|
+
if (_errs39) {
|
|
6795
|
+
vErrors.length = _errs39;
|
|
6796
|
+
}
|
|
6797
|
+
else {
|
|
6798
|
+
vErrors = null;
|
|
6799
|
+
}
|
|
6800
|
+
}
|
|
6780
6801
|
}
|
|
6781
|
-
|
|
6782
|
-
|
|
6802
|
+
var _valid2 = _errs37 === errors;
|
|
6803
|
+
if (_valid2) {
|
|
6804
|
+
valid10 = true;
|
|
6805
|
+
passing1 = 0;
|
|
6783
6806
|
}
|
|
6784
|
-
|
|
6785
|
-
|
|
6786
|
-
var _valid5 = _errs46 === errors;
|
|
6787
|
-
valid14 = valid14 || _valid5;
|
|
6788
|
-
if (!valid14) {
|
|
6789
|
-
const _errs47 = errors;
|
|
6790
|
-
if (typeof data16 !== "string") {
|
|
6791
|
-
const err11 = { instancePath: instancePath + "/libraryTarget", schemaPath: "#/definitions/LibraryType/anyOf/1/type", keyword: "type", params: { type: "string" }, message: "must be string" };
|
|
6807
|
+
if (!valid10) {
|
|
6808
|
+
const err9 = { instancePath: instancePath + "/libraryExport", schemaPath: "#/properties/libraryExport/oneOf", keyword: "oneOf", params: { passingSchemas: passing1 }, message: "must match exactly one schema in oneOf" };
|
|
6792
6809
|
if (vErrors === null) {
|
|
6793
|
-
vErrors = [
|
|
6810
|
+
vErrors = [err9];
|
|
6794
6811
|
}
|
|
6795
6812
|
else {
|
|
6796
|
-
vErrors.push(
|
|
6813
|
+
vErrors.push(err9);
|
|
6797
6814
|
}
|
|
6798
6815
|
errors++;
|
|
6799
|
-
|
|
6800
|
-
|
|
6801
|
-
valid14 = valid14 || _valid5;
|
|
6802
|
-
}
|
|
6803
|
-
if (!valid14) {
|
|
6804
|
-
const err12 = { instancePath: instancePath + "/libraryTarget", schemaPath: "#/definitions/LibraryType/anyOf", keyword: "anyOf", params: {}, message: "must match a schema in anyOf" };
|
|
6805
|
-
if (vErrors === null) {
|
|
6806
|
-
vErrors = [err12];
|
|
6816
|
+
validate75.errors = vErrors;
|
|
6817
|
+
return false;
|
|
6807
6818
|
}
|
|
6808
6819
|
else {
|
|
6809
|
-
|
|
6820
|
+
errors = _errs36;
|
|
6821
|
+
if (vErrors !== null) {
|
|
6822
|
+
if (_errs36) {
|
|
6823
|
+
vErrors.length = _errs36;
|
|
6824
|
+
}
|
|
6825
|
+
else {
|
|
6826
|
+
vErrors = null;
|
|
6827
|
+
}
|
|
6828
|
+
}
|
|
6810
6829
|
}
|
|
6811
|
-
errors
|
|
6830
|
+
var valid0 = _errs35 === errors;
|
|
6812
6831
|
}
|
|
6813
6832
|
else {
|
|
6814
|
-
|
|
6815
|
-
|
|
6816
|
-
|
|
6817
|
-
|
|
6833
|
+
var valid0 = true;
|
|
6834
|
+
}
|
|
6835
|
+
if (valid0) {
|
|
6836
|
+
if (data.libraryTarget !== undefined) {
|
|
6837
|
+
let data18 = data.libraryTarget;
|
|
6838
|
+
const _errs46 = errors;
|
|
6839
|
+
const _errs47 = errors;
|
|
6840
|
+
let valid14 = false;
|
|
6841
|
+
let passing2 = null;
|
|
6842
|
+
const _errs48 = errors;
|
|
6843
|
+
const _errs50 = errors;
|
|
6844
|
+
let valid16 = false;
|
|
6845
|
+
const _errs51 = errors;
|
|
6846
|
+
if (data18 !== "var" && data18 !== "module" && data18 !== "assign" && data18 !== "assign-properties" && data18 !== "this" && data18 !== "window" && data18 !== "self" && data18 !== "global" && data18 !== "commonjs" && data18 !== "commonjs2" && data18 !== "commonjs-module" && data18 !== "commonjs-static" && data18 !== "amd" && data18 !== "amd-require" && data18 !== "umd" && data18 !== "umd2" && data18 !== "jsonp" && data18 !== "system") {
|
|
6847
|
+
const err10 = { instancePath: instancePath + "/libraryTarget", schemaPath: "#/definitions/LibraryType/anyOf/0/enum", keyword: "enum", params: {}, message: "must pass \"enum\" keyword validation" };
|
|
6848
|
+
if (vErrors === null) {
|
|
6849
|
+
vErrors = [err10];
|
|
6850
|
+
}
|
|
6851
|
+
else {
|
|
6852
|
+
vErrors.push(err10);
|
|
6853
|
+
}
|
|
6854
|
+
errors++;
|
|
6818
6855
|
}
|
|
6819
|
-
|
|
6820
|
-
|
|
6856
|
+
var _valid5 = _errs51 === errors;
|
|
6857
|
+
valid16 = valid16 || _valid5;
|
|
6858
|
+
if (!valid16) {
|
|
6859
|
+
const _errs52 = errors;
|
|
6860
|
+
if (typeof data18 !== "string") {
|
|
6861
|
+
const err11 = { instancePath: instancePath + "/libraryTarget", schemaPath: "#/definitions/LibraryType/anyOf/1/type", keyword: "type", params: { type: "string" }, message: "must be string" };
|
|
6862
|
+
if (vErrors === null) {
|
|
6863
|
+
vErrors = [err11];
|
|
6864
|
+
}
|
|
6865
|
+
else {
|
|
6866
|
+
vErrors.push(err11);
|
|
6867
|
+
}
|
|
6868
|
+
errors++;
|
|
6869
|
+
}
|
|
6870
|
+
var _valid5 = _errs52 === errors;
|
|
6871
|
+
valid16 = valid16 || _valid5;
|
|
6821
6872
|
}
|
|
6822
|
-
|
|
6823
|
-
|
|
6824
|
-
|
|
6825
|
-
|
|
6826
|
-
|
|
6827
|
-
|
|
6828
|
-
|
|
6829
|
-
|
|
6830
|
-
|
|
6831
|
-
if (vErrors === null) {
|
|
6832
|
-
vErrors = [err13];
|
|
6833
|
-
}
|
|
6834
|
-
else {
|
|
6835
|
-
vErrors.push(err13);
|
|
6836
|
-
}
|
|
6837
|
-
errors++;
|
|
6838
|
-
validate74.errors = vErrors;
|
|
6839
|
-
return false;
|
|
6840
|
-
}
|
|
6841
|
-
else {
|
|
6842
|
-
errors = _errs42;
|
|
6843
|
-
if (vErrors !== null) {
|
|
6844
|
-
if (_errs42) {
|
|
6845
|
-
vErrors.length = _errs42;
|
|
6873
|
+
if (!valid16) {
|
|
6874
|
+
const err12 = { instancePath: instancePath + "/libraryTarget", schemaPath: "#/definitions/LibraryType/anyOf", keyword: "anyOf", params: {}, message: "must match a schema in anyOf" };
|
|
6875
|
+
if (vErrors === null) {
|
|
6876
|
+
vErrors = [err12];
|
|
6877
|
+
}
|
|
6878
|
+
else {
|
|
6879
|
+
vErrors.push(err12);
|
|
6880
|
+
}
|
|
6881
|
+
errors++;
|
|
6846
6882
|
}
|
|
6847
6883
|
else {
|
|
6848
|
-
|
|
6884
|
+
errors = _errs50;
|
|
6885
|
+
if (vErrors !== null) {
|
|
6886
|
+
if (_errs50) {
|
|
6887
|
+
vErrors.length = _errs50;
|
|
6888
|
+
}
|
|
6889
|
+
else {
|
|
6890
|
+
vErrors = null;
|
|
6891
|
+
}
|
|
6892
|
+
}
|
|
6849
6893
|
}
|
|
6850
|
-
|
|
6851
|
-
|
|
6852
|
-
|
|
6853
|
-
|
|
6854
|
-
|
|
6855
|
-
|
|
6856
|
-
|
|
6857
|
-
|
|
6858
|
-
|
|
6859
|
-
|
|
6860
|
-
|
|
6861
|
-
|
|
6862
|
-
|
|
6863
|
-
|
|
6864
|
-
|
|
6865
|
-
}
|
|
6866
|
-
else {
|
|
6867
|
-
var valid0 = true;
|
|
6868
|
-
}
|
|
6869
|
-
if (valid0) {
|
|
6870
|
-
if (data.path !== undefined) {
|
|
6871
|
-
const _errs52 = errors;
|
|
6872
|
-
if (typeof data.path !== "string") {
|
|
6873
|
-
validate74.errors = [{ instancePath: instancePath + "/path", schemaPath: "#/definitions/Path/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
|
|
6894
|
+
var _valid4 = _errs48 === errors;
|
|
6895
|
+
if (_valid4) {
|
|
6896
|
+
valid14 = true;
|
|
6897
|
+
passing2 = 0;
|
|
6898
|
+
}
|
|
6899
|
+
if (!valid14) {
|
|
6900
|
+
const err13 = { instancePath: instancePath + "/libraryTarget", schemaPath: "#/properties/libraryTarget/oneOf", keyword: "oneOf", params: { passingSchemas: passing2 }, message: "must match exactly one schema in oneOf" };
|
|
6901
|
+
if (vErrors === null) {
|
|
6902
|
+
vErrors = [err13];
|
|
6903
|
+
}
|
|
6904
|
+
else {
|
|
6905
|
+
vErrors.push(err13);
|
|
6906
|
+
}
|
|
6907
|
+
errors++;
|
|
6908
|
+
validate75.errors = vErrors;
|
|
6874
6909
|
return false;
|
|
6875
6910
|
}
|
|
6876
|
-
|
|
6911
|
+
else {
|
|
6912
|
+
errors = _errs47;
|
|
6913
|
+
if (vErrors !== null) {
|
|
6914
|
+
if (_errs47) {
|
|
6915
|
+
vErrors.length = _errs47;
|
|
6916
|
+
}
|
|
6917
|
+
else {
|
|
6918
|
+
vErrors = null;
|
|
6919
|
+
}
|
|
6920
|
+
}
|
|
6921
|
+
}
|
|
6922
|
+
var valid0 = _errs46 === errors;
|
|
6877
6923
|
}
|
|
6878
6924
|
else {
|
|
6879
6925
|
var valid0 = true;
|
|
6880
6926
|
}
|
|
6881
6927
|
if (valid0) {
|
|
6882
|
-
if (data.
|
|
6883
|
-
const
|
|
6884
|
-
if (
|
|
6885
|
-
|
|
6886
|
-
|
|
6928
|
+
if (data.module !== undefined) {
|
|
6929
|
+
const _errs54 = errors;
|
|
6930
|
+
if (typeof data.module !== "boolean") {
|
|
6931
|
+
validate75.errors = [{ instancePath: instancePath + "/module", schemaPath: "#/definitions/OutputModule/type", keyword: "type", params: { type: "boolean" }, message: "must be boolean" }];
|
|
6932
|
+
return false;
|
|
6887
6933
|
}
|
|
6888
|
-
var valid0 =
|
|
6934
|
+
var valid0 = _errs54 === errors;
|
|
6889
6935
|
}
|
|
6890
6936
|
else {
|
|
6891
6937
|
var valid0 = true;
|
|
6892
6938
|
}
|
|
6893
6939
|
if (valid0) {
|
|
6894
|
-
if (data.
|
|
6895
|
-
const
|
|
6896
|
-
if (typeof data.
|
|
6897
|
-
|
|
6940
|
+
if (data.path !== undefined) {
|
|
6941
|
+
const _errs57 = errors;
|
|
6942
|
+
if (typeof data.path !== "string") {
|
|
6943
|
+
validate75.errors = [{ instancePath: instancePath + "/path", schemaPath: "#/definitions/Path/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
|
|
6898
6944
|
return false;
|
|
6899
6945
|
}
|
|
6900
|
-
var valid0 =
|
|
6946
|
+
var valid0 = _errs57 === errors;
|
|
6901
6947
|
}
|
|
6902
6948
|
else {
|
|
6903
6949
|
var valid0 = true;
|
|
6904
6950
|
}
|
|
6905
6951
|
if (valid0) {
|
|
6906
|
-
if (data.
|
|
6907
|
-
const _errs59 = errors;
|
|
6952
|
+
if (data.publicPath !== undefined) {
|
|
6908
6953
|
const _errs60 = errors;
|
|
6909
|
-
|
|
6910
|
-
|
|
6911
|
-
|
|
6912
|
-
if (typeof data.umdNamedDefine !== "boolean") {
|
|
6913
|
-
const err14 = { instancePath: instancePath + "/umdNamedDefine", schemaPath: "#/definitions/UmdNamedDefine/type", keyword: "type", params: { type: "boolean" }, message: "must be boolean" };
|
|
6914
|
-
if (vErrors === null) {
|
|
6915
|
-
vErrors = [err14];
|
|
6916
|
-
}
|
|
6917
|
-
else {
|
|
6918
|
-
vErrors.push(err14);
|
|
6919
|
-
}
|
|
6920
|
-
errors++;
|
|
6921
|
-
}
|
|
6922
|
-
var _valid6 = _errs61 === errors;
|
|
6923
|
-
if (_valid6) {
|
|
6924
|
-
valid18 = true;
|
|
6925
|
-
passing3 = 0;
|
|
6954
|
+
if (!(validate99(data.publicPath, { instancePath: instancePath + "/publicPath", parentData: data, parentDataProperty: "publicPath", rootData }))) {
|
|
6955
|
+
vErrors = vErrors === null ? validate99.errors : vErrors.concat(validate99.errors);
|
|
6956
|
+
errors = vErrors.length;
|
|
6926
6957
|
}
|
|
6927
|
-
|
|
6928
|
-
|
|
6929
|
-
|
|
6930
|
-
|
|
6931
|
-
|
|
6932
|
-
|
|
6933
|
-
|
|
6958
|
+
var valid0 = _errs60 === errors;
|
|
6959
|
+
}
|
|
6960
|
+
else {
|
|
6961
|
+
var valid0 = true;
|
|
6962
|
+
}
|
|
6963
|
+
if (valid0) {
|
|
6964
|
+
if (data.strictModuleErrorHandling !== undefined) {
|
|
6965
|
+
const _errs61 = errors;
|
|
6966
|
+
if (typeof data.strictModuleErrorHandling !== "boolean") {
|
|
6967
|
+
validate75.errors = [{ instancePath: instancePath + "/strictModuleErrorHandling", schemaPath: "#/definitions/StrictModuleErrorHandling/type", keyword: "type", params: { type: "boolean" }, message: "must be boolean" }];
|
|
6968
|
+
return false;
|
|
6934
6969
|
}
|
|
6935
|
-
errors
|
|
6936
|
-
validate74.errors = vErrors;
|
|
6937
|
-
return false;
|
|
6970
|
+
var valid0 = _errs61 === errors;
|
|
6938
6971
|
}
|
|
6939
6972
|
else {
|
|
6940
|
-
|
|
6941
|
-
|
|
6942
|
-
|
|
6943
|
-
|
|
6973
|
+
var valid0 = true;
|
|
6974
|
+
}
|
|
6975
|
+
if (valid0) {
|
|
6976
|
+
if (data.umdNamedDefine !== undefined) {
|
|
6977
|
+
const _errs64 = errors;
|
|
6978
|
+
const _errs65 = errors;
|
|
6979
|
+
let valid20 = false;
|
|
6980
|
+
let passing3 = null;
|
|
6981
|
+
const _errs66 = errors;
|
|
6982
|
+
if (typeof data.umdNamedDefine !== "boolean") {
|
|
6983
|
+
const err14 = { instancePath: instancePath + "/umdNamedDefine", schemaPath: "#/definitions/UmdNamedDefine/type", keyword: "type", params: { type: "boolean" }, message: "must be boolean" };
|
|
6984
|
+
if (vErrors === null) {
|
|
6985
|
+
vErrors = [err14];
|
|
6986
|
+
}
|
|
6987
|
+
else {
|
|
6988
|
+
vErrors.push(err14);
|
|
6989
|
+
}
|
|
6990
|
+
errors++;
|
|
6991
|
+
}
|
|
6992
|
+
var _valid6 = _errs66 === errors;
|
|
6993
|
+
if (_valid6) {
|
|
6994
|
+
valid20 = true;
|
|
6995
|
+
passing3 = 0;
|
|
6996
|
+
}
|
|
6997
|
+
if (!valid20) {
|
|
6998
|
+
const err15 = { instancePath: instancePath + "/umdNamedDefine", schemaPath: "#/properties/umdNamedDefine/oneOf", keyword: "oneOf", params: { passingSchemas: passing3 }, message: "must match exactly one schema in oneOf" };
|
|
6999
|
+
if (vErrors === null) {
|
|
7000
|
+
vErrors = [err15];
|
|
7001
|
+
}
|
|
7002
|
+
else {
|
|
7003
|
+
vErrors.push(err15);
|
|
7004
|
+
}
|
|
7005
|
+
errors++;
|
|
7006
|
+
validate75.errors = vErrors;
|
|
7007
|
+
return false;
|
|
6944
7008
|
}
|
|
6945
7009
|
else {
|
|
6946
|
-
|
|
7010
|
+
errors = _errs65;
|
|
7011
|
+
if (vErrors !== null) {
|
|
7012
|
+
if (_errs65) {
|
|
7013
|
+
vErrors.length = _errs65;
|
|
7014
|
+
}
|
|
7015
|
+
else {
|
|
7016
|
+
vErrors = null;
|
|
7017
|
+
}
|
|
7018
|
+
}
|
|
6947
7019
|
}
|
|
7020
|
+
var valid0 = _errs64 === errors;
|
|
6948
7021
|
}
|
|
6949
|
-
|
|
6950
|
-
|
|
6951
|
-
|
|
6952
|
-
|
|
6953
|
-
|
|
6954
|
-
|
|
6955
|
-
|
|
6956
|
-
|
|
6957
|
-
|
|
6958
|
-
|
|
6959
|
-
|
|
6960
|
-
|
|
6961
|
-
|
|
6962
|
-
|
|
6963
|
-
|
|
6964
|
-
|
|
7022
|
+
else {
|
|
7023
|
+
var valid0 = true;
|
|
7024
|
+
}
|
|
7025
|
+
if (valid0) {
|
|
7026
|
+
if (data.uniqueName !== undefined) {
|
|
7027
|
+
let data24 = data.uniqueName;
|
|
7028
|
+
const _errs69 = errors;
|
|
7029
|
+
const _errs70 = errors;
|
|
7030
|
+
if (errors === _errs70) {
|
|
7031
|
+
if (typeof data24 === "string") {
|
|
7032
|
+
if (data24.length < 1) {
|
|
7033
|
+
validate75.errors = [{ instancePath: instancePath + "/uniqueName", schemaPath: "#/definitions/UniqueName/minLength", keyword: "minLength", params: {}, message: "must pass \"minLength\" keyword validation" }];
|
|
7034
|
+
return false;
|
|
7035
|
+
}
|
|
7036
|
+
}
|
|
7037
|
+
else {
|
|
7038
|
+
validate75.errors = [{ instancePath: instancePath + "/uniqueName", schemaPath: "#/definitions/UniqueName/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
|
|
7039
|
+
return false;
|
|
7040
|
+
}
|
|
6965
7041
|
}
|
|
7042
|
+
var valid0 = _errs69 === errors;
|
|
6966
7043
|
}
|
|
6967
7044
|
else {
|
|
6968
|
-
|
|
6969
|
-
|
|
7045
|
+
var valid0 = true;
|
|
7046
|
+
}
|
|
7047
|
+
if (valid0) {
|
|
7048
|
+
if (data.chunkLoadingGlobal !== undefined) {
|
|
7049
|
+
let data25 = data.chunkLoadingGlobal;
|
|
7050
|
+
const _errs72 = errors;
|
|
7051
|
+
const _errs73 = errors;
|
|
7052
|
+
if (errors === _errs73) {
|
|
7053
|
+
if (typeof data25 === "string") {
|
|
7054
|
+
if (data25.length < 1) {
|
|
7055
|
+
validate75.errors = [{ instancePath: instancePath + "/chunkLoadingGlobal", schemaPath: "#/definitions/ChunkLoadingGlobal/minLength", keyword: "minLength", params: {}, message: "must pass \"minLength\" keyword validation" }];
|
|
7056
|
+
return false;
|
|
7057
|
+
}
|
|
7058
|
+
}
|
|
7059
|
+
else {
|
|
7060
|
+
validate75.errors = [{ instancePath: instancePath + "/chunkLoadingGlobal", schemaPath: "#/definitions/ChunkLoadingGlobal/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
|
|
7061
|
+
return false;
|
|
7062
|
+
}
|
|
7063
|
+
}
|
|
7064
|
+
var valid0 = _errs72 === errors;
|
|
7065
|
+
}
|
|
7066
|
+
else {
|
|
7067
|
+
var valid0 = true;
|
|
7068
|
+
}
|
|
6970
7069
|
}
|
|
6971
7070
|
}
|
|
6972
|
-
var valid0 = _errs64 === errors;
|
|
6973
|
-
}
|
|
6974
|
-
else {
|
|
6975
|
-
var valid0 = true;
|
|
6976
7071
|
}
|
|
6977
7072
|
}
|
|
6978
7073
|
}
|
|
@@ -6998,12 +7093,12 @@ function validate74(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
6998
7093
|
}
|
|
6999
7094
|
}
|
|
7000
7095
|
else {
|
|
7001
|
-
|
|
7096
|
+
validate75.errors = [{ instancePath, schemaPath: "#/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
|
|
7002
7097
|
return false;
|
|
7003
7098
|
}
|
|
7004
|
-
}
|
|
7005
|
-
const
|
|
7006
|
-
function
|
|
7099
|
+
} validate75.errors = vErrors; return errors === 0; }
|
|
7100
|
+
const schema108 = { "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" }] } };
|
|
7101
|
+
function validate102(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) { let vErrors = null; let errors = 0; if (errors === 0) {
|
|
7007
7102
|
if (Array.isArray(data)) {
|
|
7008
7103
|
var valid0 = true;
|
|
7009
7104
|
const len0 = data.length;
|
|
@@ -7079,7 +7174,7 @@ function validate101(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
7079
7174
|
vErrors.push(err4);
|
|
7080
7175
|
}
|
|
7081
7176
|
errors++;
|
|
7082
|
-
|
|
7177
|
+
validate102.errors = vErrors;
|
|
7083
7178
|
return false;
|
|
7084
7179
|
}
|
|
7085
7180
|
else {
|
|
@@ -7100,13 +7195,13 @@ function validate101(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
7100
7195
|
}
|
|
7101
7196
|
}
|
|
7102
7197
|
else {
|
|
7103
|
-
|
|
7198
|
+
validate102.errors = [{ instancePath, schemaPath: "#/type", keyword: "type", params: { type: "array" }, message: "must be array" }];
|
|
7104
7199
|
return false;
|
|
7105
7200
|
}
|
|
7106
|
-
}
|
|
7107
|
-
const
|
|
7108
|
-
function
|
|
7109
|
-
vErrors = vErrors === null ?
|
|
7201
|
+
} validate102.errors = vErrors; return errors === 0; }
|
|
7202
|
+
const schema111 = { "description": "Options for the resolver.", "oneOf": [{ "$ref": "#/definitions/ResolveOptions" }] };
|
|
7203
|
+
function validate104(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 }))) {
|
|
7204
|
+
vErrors = vErrors === null ? validate50.errors : vErrors.concat(validate50.errors);
|
|
7110
7205
|
errors = vErrors.length;
|
|
7111
7206
|
} var _valid0 = _errs1 === errors; if (_valid0) {
|
|
7112
7207
|
valid0 = true;
|
|
@@ -7120,7 +7215,7 @@ function validate103(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
7120
7215
|
vErrors.push(err0);
|
|
7121
7216
|
}
|
|
7122
7217
|
errors++;
|
|
7123
|
-
|
|
7218
|
+
validate104.errors = vErrors;
|
|
7124
7219
|
return false;
|
|
7125
7220
|
}
|
|
7126
7221
|
else {
|
|
@@ -7133,10 +7228,10 @@ else {
|
|
|
7133
7228
|
vErrors = null;
|
|
7134
7229
|
}
|
|
7135
7230
|
}
|
|
7136
|
-
}
|
|
7137
|
-
const
|
|
7138
|
-
const
|
|
7139
|
-
function
|
|
7231
|
+
} validate104.errors = vErrors; return errors === 0; }
|
|
7232
|
+
const schema113 = { "description": "Stats options object or preset name.", "anyOf": [{ "enum": ["none", "errors-only", "errors-warnings", "normal", "verbose"] }, { "type": "boolean" }, { "$ref": "#/definitions/StatsOptions" }] };
|
|
7233
|
+
const schema114 = { "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" } } };
|
|
7234
|
+
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 !== "none" && data !== "errors-only" && data !== "errors-warnings" && data !== "normal" && data !== "verbose") {
|
|
7140
7235
|
const err0 = { instancePath, schemaPath: "#/anyOf/0/enum", keyword: "enum", params: {}, message: "must pass \"enum\" keyword validation" };
|
|
7141
7236
|
if (vErrors === null) {
|
|
7142
7237
|
vErrors = [err0];
|
|
@@ -7650,7 +7745,7 @@ function validate106(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
7650
7745
|
vErrors.push(err27);
|
|
7651
7746
|
}
|
|
7652
7747
|
errors++;
|
|
7653
|
-
|
|
7748
|
+
validate107.errors = vErrors;
|
|
7654
7749
|
return false;
|
|
7655
7750
|
}
|
|
7656
7751
|
else {
|
|
@@ -7663,7 +7758,7 @@ else {
|
|
|
7663
7758
|
vErrors = null;
|
|
7664
7759
|
}
|
|
7665
7760
|
}
|
|
7666
|
-
}
|
|
7761
|
+
} validate107.errors = vErrors; return errors === 0; }
|
|
7667
7762
|
function validate10(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) { let vErrors = null; let errors = 0; if (errors === 0) {
|
|
7668
7763
|
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
7669
7764
|
const _errs1 = errors;
|
|
@@ -8040,8 +8135,8 @@ function validate10(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
8040
8135
|
if (valid0) {
|
|
8041
8136
|
if (data.node !== undefined) {
|
|
8042
8137
|
const _errs51 = errors;
|
|
8043
|
-
if (!(
|
|
8044
|
-
vErrors = vErrors === null ?
|
|
8138
|
+
if (!(validate69(data.node, { instancePath: instancePath + "/node", parentData: data, parentDataProperty: "node", rootData }))) {
|
|
8139
|
+
vErrors = vErrors === null ? validate69.errors : vErrors.concat(validate69.errors);
|
|
8045
8140
|
errors = vErrors.length;
|
|
8046
8141
|
}
|
|
8047
8142
|
var valid0 = _errs51 === errors;
|
|
@@ -8052,8 +8147,8 @@ function validate10(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
8052
8147
|
if (valid0) {
|
|
8053
8148
|
if (data.optimization !== undefined) {
|
|
8054
8149
|
const _errs52 = errors;
|
|
8055
|
-
if (!(
|
|
8056
|
-
vErrors = vErrors === null ?
|
|
8150
|
+
if (!(validate71(data.optimization, { instancePath: instancePath + "/optimization", parentData: data, parentDataProperty: "optimization", rootData }))) {
|
|
8151
|
+
vErrors = vErrors === null ? validate71.errors : vErrors.concat(validate71.errors);
|
|
8057
8152
|
errors = vErrors.length;
|
|
8058
8153
|
}
|
|
8059
8154
|
var valid0 = _errs52 === errors;
|
|
@@ -8064,8 +8159,8 @@ function validate10(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
8064
8159
|
if (valid0) {
|
|
8065
8160
|
if (data.output !== undefined) {
|
|
8066
8161
|
const _errs53 = errors;
|
|
8067
|
-
if (!(
|
|
8068
|
-
vErrors = vErrors === null ?
|
|
8162
|
+
if (!(validate75(data.output, { instancePath: instancePath + "/output", parentData: data, parentDataProperty: "output", rootData }))) {
|
|
8163
|
+
vErrors = vErrors === null ? validate75.errors : vErrors.concat(validate75.errors);
|
|
8069
8164
|
errors = vErrors.length;
|
|
8070
8165
|
}
|
|
8071
8166
|
var valid0 = _errs53 === errors;
|
|
@@ -8076,8 +8171,8 @@ function validate10(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
8076
8171
|
if (valid0) {
|
|
8077
8172
|
if (data.plugins !== undefined) {
|
|
8078
8173
|
const _errs54 = errors;
|
|
8079
|
-
if (!(
|
|
8080
|
-
vErrors = vErrors === null ?
|
|
8174
|
+
if (!(validate102(data.plugins, { instancePath: instancePath + "/plugins", parentData: data, parentDataProperty: "plugins", rootData }))) {
|
|
8175
|
+
vErrors = vErrors === null ? validate102.errors : vErrors.concat(validate102.errors);
|
|
8081
8176
|
errors = vErrors.length;
|
|
8082
8177
|
}
|
|
8083
8178
|
var valid0 = _errs54 === errors;
|
|
@@ -8088,8 +8183,8 @@ function validate10(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
8088
8183
|
if (valid0) {
|
|
8089
8184
|
if (data.resolve !== undefined) {
|
|
8090
8185
|
const _errs55 = errors;
|
|
8091
|
-
if (!(
|
|
8092
|
-
vErrors = vErrors === null ?
|
|
8186
|
+
if (!(validate104(data.resolve, { instancePath: instancePath + "/resolve", parentData: data, parentDataProperty: "resolve", rootData }))) {
|
|
8187
|
+
vErrors = vErrors === null ? validate104.errors : vErrors.concat(validate104.errors);
|
|
8093
8188
|
errors = vErrors.length;
|
|
8094
8189
|
}
|
|
8095
8190
|
var valid0 = _errs55 === errors;
|
|
@@ -8230,8 +8325,8 @@ function validate10(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
8230
8325
|
if (valid0) {
|
|
8231
8326
|
if (data.stats !== undefined) {
|
|
8232
8327
|
const _errs74 = errors;
|
|
8233
|
-
if (!(
|
|
8234
|
-
vErrors = vErrors === null ?
|
|
8328
|
+
if (!(validate107(data.stats, { instancePath: instancePath + "/stats", parentData: data, parentDataProperty: "stats", rootData }))) {
|
|
8329
|
+
vErrors = vErrors === null ? validate107.errors : vErrors.concat(validate107.errors);
|
|
8235
8330
|
errors = vErrors.length;
|
|
8236
8331
|
}
|
|
8237
8332
|
var valid0 = _errs74 === errors;
|