@akashnetwork/chain-sdk 1.0.0-alpha.27 → 1.0.0-alpha.29
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/cjs/generated/createNodeSDK.cjs +65 -23
- package/dist/cjs/generated/createNodeSDK.cjs.map +2 -2
- package/dist/cjs/generated/patches/nodeCustomTypePatches.cjs +27 -0
- package/dist/cjs/generated/patches/nodeCustomTypePatches.cjs.map +2 -2
- package/dist/cjs/generated/protos/akash/bme/v1/events.cjs +39 -23
- package/dist/cjs/generated/protos/akash/bme/v1/events.cjs.map +2 -2
- package/dist/cjs/generated/protos/akash/bme/v1/params.cjs +19 -2
- package/dist/cjs/generated/protos/akash/bme/v1/params.cjs.map +2 -2
- package/dist/cjs/generated/protos/akash/bme/v1/query.cjs +17 -2
- package/dist/cjs/generated/protos/akash/bme/v1/query.cjs.map +2 -2
- package/dist/cjs/generated/protos/akash/bme/v1/types.cjs +49 -83
- package/dist/cjs/generated/protos/akash/bme/v1/types.cjs.map +3 -3
- package/dist/cjs/generated/protos/akash/oracle/v1/events.cjs +60 -40
- package/dist/cjs/generated/protos/akash/oracle/v1/events.cjs.map +2 -2
- package/dist/cjs/generated/protos/akash/oracle/v2/events.cjs +428 -0
- package/dist/cjs/generated/protos/akash/oracle/v2/events.cjs.map +7 -0
- package/dist/cjs/generated/protos/akash/oracle/v2/genesis.cjs +287 -0
- package/dist/cjs/generated/protos/akash/oracle/v2/genesis.cjs.map +7 -0
- package/dist/cjs/generated/protos/akash/oracle/v2/msgs.cjs +302 -0
- package/dist/cjs/generated/protos/akash/oracle/v2/msgs.cjs.map +7 -0
- package/dist/cjs/generated/protos/akash/oracle/v2/params.cjs +239 -0
- package/dist/cjs/generated/protos/akash/oracle/v2/params.cjs.map +7 -0
- package/dist/cjs/generated/protos/akash/oracle/v2/prices.cjs +826 -0
- package/dist/cjs/generated/protos/akash/oracle/v2/prices.cjs.map +7 -0
- package/dist/cjs/generated/protos/akash/oracle/v2/query.cjs +499 -0
- package/dist/cjs/generated/protos/akash/oracle/v2/query.cjs.map +7 -0
- package/dist/cjs/generated/protos/akash/oracle/v2/query_akash.cjs +57 -0
- package/dist/cjs/generated/protos/akash/oracle/v2/query_akash.cjs.map +7 -0
- package/dist/cjs/generated/protos/akash/oracle/v2/service.cjs +17 -0
- package/dist/cjs/generated/protos/akash/oracle/v2/service.cjs.map +7 -0
- package/dist/cjs/generated/protos/akash/oracle/v2/service_akash.cjs +46 -0
- package/dist/cjs/generated/protos/akash/oracle/v2/service_akash.cjs.map +7 -0
- package/dist/cjs/generated/protos/index.akash.v1.cjs +5 -5
- package/dist/cjs/generated/protos/index.akash.v1.cjs.map +2 -2
- package/dist/cjs/generated/protos/index.akash.v2.cjs +57 -0
- package/dist/cjs/generated/protos/index.akash.v2.cjs.map +7 -0
- package/dist/cjs/sdk/provider/auth/mtls/CertificateManager.cjs +1 -1
- package/dist/cjs/sdk/provider/auth/mtls/CertificateManager.cjs.map +2 -2
- package/dist/cjs/sdk/transport/interceptors/retry.cjs +11 -1
- package/dist/cjs/sdk/transport/interceptors/retry.cjs.map +2 -2
- package/dist/cjs/sdl/SDL/SDL.cjs +2 -2
- package/dist/cjs/sdl/SDL/SDL.cjs.map +2 -2
- package/dist/cjs/sdl/validateSDL/validateSDL.cjs +2 -2
- package/dist/cjs/sdl/validateSDL/validateSDL.cjs.map +2 -2
- package/dist/cjs/sdl/validateSDL/validateSDLInput.cjs +1717 -1227
- package/dist/cjs/sdl/validateSDL/validateSDLInput.cjs.map +2 -2
- package/dist/cjs/utils/jsonSchemaValidation.cjs +5 -3
- package/dist/cjs/utils/jsonSchemaValidation.cjs.map +2 -2
- package/dist/esm/chunk-4AX2DFWM.js +459 -0
- package/dist/esm/chunk-4AX2DFWM.js.map +7 -0
- package/dist/esm/{chunk-NK3HEQIK.js → chunk-5CNNJS3V.js} +5 -5
- package/dist/esm/{chunk-VG4MSYO3.js → chunk-5RTSSO7K.js} +2 -2
- package/dist/esm/{chunk-NLEJ4EGX.js → chunk-67IG5SEC.js} +4 -4
- package/dist/esm/{chunk-FFDPZFUZ.js → chunk-67IN34AN.js} +5 -5
- package/dist/esm/{chunk-Z3KCQDCI.js → chunk-7ZECBWMX.js} +2 -2
- package/dist/esm/{chunk-GKCTHQR4.js → chunk-ABUJVUFW.js} +2 -2
- package/dist/esm/{chunk-JPXDOHZO.js → chunk-B4MMOAAO.js} +2 -2
- package/dist/esm/{chunk-WH2VEITL.js → chunk-C7JHIHHY.js} +1768 -1224
- package/dist/esm/chunk-C7JHIHHY.js.map +7 -0
- package/dist/esm/{chunk-ULXT5CMX.js → chunk-CSHWHZAN.js} +3 -3
- package/dist/esm/{chunk-EREBC2UQ.js → chunk-GOT4YWEE.js} +4 -4
- package/dist/esm/{chunk-XCOULB5P.js → chunk-GPNENANV.js} +2 -2
- package/dist/esm/{chunk-DZA4DZ5G.js → chunk-HDAINZXA.js} +8 -8
- package/dist/esm/chunk-IK3BT54L.js +989 -0
- package/dist/esm/chunk-IK3BT54L.js.map +7 -0
- package/dist/esm/{chunk-OYYJMHQ3.js → chunk-JAPXWQ3D.js} +21 -5
- package/dist/esm/chunk-JAPXWQ3D.js.map +7 -0
- package/dist/esm/{chunk-33CSM66D.js → chunk-JSSYCEVK.js} +4 -4
- package/dist/esm/{chunk-MMLVMSLL.js → chunk-MHDIR7F3.js} +2 -2
- package/dist/esm/{chunk-MJQJUDLN.js → chunk-MWE2RSPA.js} +4 -4
- package/dist/esm/{chunk-W2FEAX2Q.js → chunk-PFJG3V3A.js} +71 -89
- package/dist/esm/chunk-PFJG3V3A.js.map +7 -0
- package/dist/esm/{chunk-KPF2DJHF.js → chunk-PKKLQO24.js} +5 -5
- package/dist/esm/{chunk-CPH6LY54.js → chunk-PVFWFANN.js} +2 -2
- package/dist/esm/{chunk-GEEFQK3U.js → chunk-QIS4LLV4.js} +28 -1
- package/dist/esm/chunk-QIS4LLV4.js.map +7 -0
- package/dist/esm/{chunk-DFTJWAGU.js → chunk-SJLQ462M.js} +4 -4
- package/dist/esm/chunk-SQBIPP3B.js +259 -0
- package/dist/esm/chunk-SQBIPP3B.js.map +7 -0
- package/dist/esm/{chunk-CWUY6LIH.js → chunk-T4KWTZ3E.js} +3 -3
- package/dist/esm/{chunk-YKBRNXZM.js → chunk-T7LAPKN5.js} +2 -2
- package/dist/esm/{chunk-XIHNXIBW.js → chunk-UKRRRF5V.js} +4 -4
- package/dist/esm/{chunk-BLN3B4MW.js → chunk-VC2S4TB4.js} +3 -3
- package/dist/esm/{chunk-FXRP7A3E.js → chunk-VZZ4GN23.js} +2 -2
- package/dist/esm/{chunk-5LJZW6XW.js → chunk-WMUEPNSU.js} +4 -4
- package/dist/esm/{chunk-OAFZZVHG.js → chunk-WU3UGZP6.js} +2 -2
- package/dist/esm/{chunk-7WA6OZCK.js → chunk-XPU3NKM5.js} +5 -5
- package/dist/esm/{chunk-V2U5JQHJ.js → chunk-Y2T5VNY5.js} +2 -2
- package/dist/esm/{chunk-IBPHW6GW.js → chunk-YAWU44BQ.js} +4 -4
- package/dist/esm/{chunk-BNXSING3.js → chunk-ZV4RZMBN.js} +4 -4
- package/dist/esm/generated/protos/index.akash.v1.js +160 -126
- package/dist/esm/generated/protos/index.akash.v1.js.map +2 -2
- package/dist/esm/generated/protos/index.akash.v1beta4.js +5 -5
- package/dist/esm/generated/protos/index.akash.v1beta5.js +5 -5
- package/dist/esm/generated/protos/index.akash.v2.js +681 -0
- package/dist/esm/generated/protos/index.akash.v2.js.map +7 -0
- package/dist/esm/generated/protos/index.cosmos.abci.js +4 -4
- package/dist/esm/generated/protos/index.cosmos.v1.js +25 -25
- package/dist/esm/generated/protos/index.cosmos.v1beta1.js +76 -76
- package/dist/esm/generated/protos/index.ibc.v1.js +4 -4
- package/dist/esm/generated/protos/index.provider.akash.v1.js +14 -14
- package/dist/esm/generated/protos/index.tendermint.abci.js +2 -2
- package/dist/esm/generated/protos/index.tendermint.types.js +7 -7
- package/dist/esm/{grpc_akash-WPXYPHAW.js → grpc_akash-YXP225OJ.js} +5 -5
- package/dist/esm/index.js +8 -8
- package/dist/esm/index.web.js +8 -8
- package/dist/esm/{query_akash-347IWP76.js → query_akash-3LAHGVQJ.js} +6 -6
- package/dist/esm/{query_akash-XYBD7HGP.js → query_akash-3UBRLLRZ.js} +5 -5
- package/dist/esm/{query_akash-2XAWK4QC.js → query_akash-CKZRI7R6.js} +5 -5
- package/dist/esm/{query_akash-ZYKYGHGB.js → query_akash-EEPQJYKA.js} +3 -3
- package/dist/esm/{query_akash-GKNMAC72.js → query_akash-FU3ACWAO.js} +6 -6
- package/dist/esm/{query_akash-O2VK7XI7.js → query_akash-JGZ2VS5H.js} +4 -4
- package/dist/esm/{query_akash-LQWOK2TQ.js → query_akash-K53WZSU3.js} +7 -7
- package/dist/esm/{query_akash-J6WGNFRM.js → query_akash-NELAC6IV.js} +3 -3
- package/dist/esm/{query_akash-LHHLETWS.js → query_akash-QMVZT2ZN.js} +5 -5
- package/dist/esm/query_akash-QW7MA3NO.js +53 -0
- package/dist/esm/query_akash-QW7MA3NO.js.map +7 -0
- package/dist/esm/query_akash-RNOEMF2J.js +1 -1
- package/dist/esm/{query_akash-AQHBNLRW.js → query_akash-TKFQCVYV.js} +3 -3
- package/dist/esm/{query_akash-LK7RYFHN.js → query_akash-UVZZQTKV.js} +4 -4
- package/dist/esm/{query_akash-IST3STNQ.js → query_akash-X76NVZ2L.js} +5 -5
- package/dist/esm/service_akash-3DIKTIOI.js +39 -0
- package/dist/esm/service_akash-3DIKTIOI.js.map +7 -0
- package/dist/esm/{service_akash-WPIJ5Y3Z.js → service_akash-CM7RP67D.js} +7 -7
- package/dist/esm/{service_akash-WLSC2YDO.js → service_akash-DSFYKCTK.js} +4 -4
- package/dist/esm/{service_akash-KSM5UR43.js → service_akash-UFTUJDPM.js} +4 -4
- package/dist/esm/{tx_akash-FXR4FY7E.js → tx_akash-3ZAQZWMP.js} +4 -4
- package/dist/esm/{tx_akash-U5OICQIY.js → tx_akash-FCS2KVR7.js} +4 -4
- package/dist/esm/tx_akash-XMYD5SGR.js +1 -1
- package/dist/esm/{tx_akash-2CJAERYQ.js → tx_akash-YHLPPFSA.js} +6 -6
- package/dist/esm/{types_akash-NO63F5II.js → types_akash-LWHM4M7S.js} +3 -3
- package/dist/sdl-schema.yaml +142 -83
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/dist/types/generated/createNodeSDK.d.ts +73 -5
- package/dist/types/generated/patches/nodeCustomTypePatches.d.ts +28 -0
- package/dist/types/generated/protos/akash/bme/v1/events.d.ts +9 -8
- package/dist/types/generated/protos/akash/bme/v1/params.d.ts +3 -0
- package/dist/types/generated/protos/akash/bme/v1/query.d.ts +3 -1
- package/dist/types/generated/protos/akash/bme/v1/types.d.ts +13 -17
- package/dist/types/generated/protos/akash/oracle/v1/events.d.ts +6 -5
- package/dist/types/generated/protos/akash/oracle/v2/events.d.ts +47 -0
- package/dist/types/generated/protos/akash/oracle/v2/genesis.d.ts +34 -0
- package/dist/types/generated/protos/akash/oracle/v2/msgs.d.ts +50 -0
- package/dist/types/generated/protos/akash/oracle/v2/params.d.ts +34 -0
- package/dist/types/generated/protos/akash/oracle/v2/prices.d.ts +97 -0
- package/dist/types/generated/protos/akash/oracle/v2/query.d.ts +56 -0
- package/dist/types/generated/protos/akash/oracle/v2/query_akash.d.ts +27 -0
- package/dist/types/generated/protos/akash/oracle/v2/service.d.ts +1 -0
- package/dist/types/generated/protos/akash/oracle/v2/service_akash.d.ts +18 -0
- package/dist/types/generated/protos/index.akash.v1.d.ts +3 -3
- package/dist/types/generated/protos/index.akash.v2.d.ts +6 -0
- package/dist/types/sdk/chain/createChainNodeSDK.d.ts +7 -0
- package/dist/types/sdk/chain/createChainNodeWebSDK.d.ts +7 -0
- package/dist/types/sdk/provider/auth/mtls/CertificateManager.d.ts +1 -0
- package/dist/types/sdl/validateSDL/validateSDLInput.d.ts +200 -109
- package/package.json +2 -1
- package/dist/esm/chunk-GEEFQK3U.js.map +0 -7
- package/dist/esm/chunk-OYYJMHQ3.js.map +0 -7
- package/dist/esm/chunk-W2FEAX2Q.js.map +0 -7
- package/dist/esm/chunk-WH2VEITL.js.map +0 -7
- /package/dist/esm/{chunk-NK3HEQIK.js.map → chunk-5CNNJS3V.js.map} +0 -0
- /package/dist/esm/{chunk-VG4MSYO3.js.map → chunk-5RTSSO7K.js.map} +0 -0
- /package/dist/esm/{chunk-NLEJ4EGX.js.map → chunk-67IG5SEC.js.map} +0 -0
- /package/dist/esm/{chunk-FFDPZFUZ.js.map → chunk-67IN34AN.js.map} +0 -0
- /package/dist/esm/{chunk-Z3KCQDCI.js.map → chunk-7ZECBWMX.js.map} +0 -0
- /package/dist/esm/{chunk-GKCTHQR4.js.map → chunk-ABUJVUFW.js.map} +0 -0
- /package/dist/esm/{chunk-JPXDOHZO.js.map → chunk-B4MMOAAO.js.map} +0 -0
- /package/dist/esm/{chunk-ULXT5CMX.js.map → chunk-CSHWHZAN.js.map} +0 -0
- /package/dist/esm/{chunk-EREBC2UQ.js.map → chunk-GOT4YWEE.js.map} +0 -0
- /package/dist/esm/{chunk-XCOULB5P.js.map → chunk-GPNENANV.js.map} +0 -0
- /package/dist/esm/{chunk-DZA4DZ5G.js.map → chunk-HDAINZXA.js.map} +0 -0
- /package/dist/esm/{chunk-33CSM66D.js.map → chunk-JSSYCEVK.js.map} +0 -0
- /package/dist/esm/{chunk-MMLVMSLL.js.map → chunk-MHDIR7F3.js.map} +0 -0
- /package/dist/esm/{chunk-MJQJUDLN.js.map → chunk-MWE2RSPA.js.map} +0 -0
- /package/dist/esm/{chunk-KPF2DJHF.js.map → chunk-PKKLQO24.js.map} +0 -0
- /package/dist/esm/{chunk-CPH6LY54.js.map → chunk-PVFWFANN.js.map} +0 -0
- /package/dist/esm/{chunk-DFTJWAGU.js.map → chunk-SJLQ462M.js.map} +0 -0
- /package/dist/esm/{chunk-CWUY6LIH.js.map → chunk-T4KWTZ3E.js.map} +0 -0
- /package/dist/esm/{chunk-YKBRNXZM.js.map → chunk-T7LAPKN5.js.map} +0 -0
- /package/dist/esm/{chunk-XIHNXIBW.js.map → chunk-UKRRRF5V.js.map} +0 -0
- /package/dist/esm/{chunk-BLN3B4MW.js.map → chunk-VC2S4TB4.js.map} +0 -0
- /package/dist/esm/{chunk-FXRP7A3E.js.map → chunk-VZZ4GN23.js.map} +0 -0
- /package/dist/esm/{chunk-5LJZW6XW.js.map → chunk-WMUEPNSU.js.map} +0 -0
- /package/dist/esm/{chunk-OAFZZVHG.js.map → chunk-WU3UGZP6.js.map} +0 -0
- /package/dist/esm/{chunk-7WA6OZCK.js.map → chunk-XPU3NKM5.js.map} +0 -0
- /package/dist/esm/{chunk-V2U5JQHJ.js.map → chunk-Y2T5VNY5.js.map} +0 -0
- /package/dist/esm/{chunk-IBPHW6GW.js.map → chunk-YAWU44BQ.js.map} +0 -0
- /package/dist/esm/{chunk-BNXSING3.js.map → chunk-ZV4RZMBN.js.map} +0 -0
- /package/dist/esm/{grpc_akash-WPXYPHAW.js.map → grpc_akash-YXP225OJ.js.map} +0 -0
- /package/dist/esm/{query_akash-347IWP76.js.map → query_akash-3LAHGVQJ.js.map} +0 -0
- /package/dist/esm/{query_akash-XYBD7HGP.js.map → query_akash-3UBRLLRZ.js.map} +0 -0
- /package/dist/esm/{query_akash-2XAWK4QC.js.map → query_akash-CKZRI7R6.js.map} +0 -0
- /package/dist/esm/{query_akash-ZYKYGHGB.js.map → query_akash-EEPQJYKA.js.map} +0 -0
- /package/dist/esm/{query_akash-GKNMAC72.js.map → query_akash-FU3ACWAO.js.map} +0 -0
- /package/dist/esm/{query_akash-O2VK7XI7.js.map → query_akash-JGZ2VS5H.js.map} +0 -0
- /package/dist/esm/{query_akash-LQWOK2TQ.js.map → query_akash-K53WZSU3.js.map} +0 -0
- /package/dist/esm/{query_akash-J6WGNFRM.js.map → query_akash-NELAC6IV.js.map} +0 -0
- /package/dist/esm/{query_akash-LHHLETWS.js.map → query_akash-QMVZT2ZN.js.map} +0 -0
- /package/dist/esm/{query_akash-AQHBNLRW.js.map → query_akash-TKFQCVYV.js.map} +0 -0
- /package/dist/esm/{query_akash-LK7RYFHN.js.map → query_akash-UVZZQTKV.js.map} +0 -0
- /package/dist/esm/{query_akash-IST3STNQ.js.map → query_akash-X76NVZ2L.js.map} +0 -0
- /package/dist/esm/{service_akash-WPIJ5Y3Z.js.map → service_akash-CM7RP67D.js.map} +0 -0
- /package/dist/esm/{service_akash-WLSC2YDO.js.map → service_akash-DSFYKCTK.js.map} +0 -0
- /package/dist/esm/{service_akash-KSM5UR43.js.map → service_akash-UFTUJDPM.js.map} +0 -0
- /package/dist/esm/{tx_akash-FXR4FY7E.js.map → tx_akash-3ZAQZWMP.js.map} +0 -0
- /package/dist/esm/{tx_akash-U5OICQIY.js.map → tx_akash-FCS2KVR7.js.map} +0 -0
- /package/dist/esm/{tx_akash-2CJAERYQ.js.map → tx_akash-YHLPPFSA.js.map} +0 -0
- /package/dist/esm/{types_akash-NO63F5II.js.map → types_akash-LWHM4M7S.js.map} +0 -0
|
@@ -53,274 +53,423 @@ var require_ucs2length = __commonJS({
|
|
|
53
53
|
});
|
|
54
54
|
var validate = validate11;
|
|
55
55
|
var stdin_default = validate11;
|
|
56
|
-
var schema12 = { "$schema": "http://json-schema.org/draft-07/schema#", "additionalProperties": false, "description": "Schema for Akash Stack Definition Language (SDL) YAML input files.\n\nNote: This schema validates structure only. Semantic validations (cross-references,\nunused endpoints, profile references, etc.) are performed at runtime by the Go parser.\nSee README.md for details.\n", "definitions": { "stringArrayOrNull": { "description": "String array or null value (used for command args and env vars)", "oneOf": [{ "items": { "type": "string" }, "type": "array" }, { "type": "null" }] }, "portNumber": { "description": "Valid TCP/UDP port number (1-65535)", "type": "integer", "minimum": 1, "maximum": 65535 }, "httpErrorCode": { "description": "HTTP error codes for proxy retry logic", "enum": ["error", "timeout", "500", "502", "503", "504", "403", "404", "429", "off"], "type": "string" }, "priceCoin": { "description": "Price definition with amount and denomination", "additionalProperties": false, "properties": { "amount": { "oneOf": [{ "type": "string", "pattern": "^[0-9]+(\\.[0-9]+)?$", "description": "Positive number as string" }, { "type": "number", "minimum": 0, "description": "Positive number" }] }, "denom": { "pattern": "^(uakt|uact|ibc/.*)$", "type": "string" } }, "required": ["denom", "amount"], "type": "object" }, "storageAttributesValidation": { "description": "Storage attributes validation:\n1. RAM class must not be persistent\n2. Non-RAM classes (beta1, beta2, beta3, default) require persistent=true\n", "additionalProperties": false, "properties": { "class": { "type": "string" }, "persistent": { "oneOf": [{ "type": "boolean" }, { "type": "string" }] } }, "not": { "properties": { "class": { "const": "ram" }, "persistent": { "oneOf": [{ "const": true }, { "const": "true" }] } }, "required": ["class", "persistent"] }, "type": "object" }, "storageVolume": { "description": "Storage volume definition with size and optional attributes", "additionalProperties": false, "properties": { "attributes": { "$ref": "#/definitions/storageAttributesValidation" }, "name": { "type": "string" }, "size": { "type": "string" } }, "required": ["size"], "type": "object" }, "absolutePath": { "description": "Absolute filesystem path starting with /", "type": "string", "minLength": 1, "pattern": "^/" }, "exposeToWithIpEnforcesGlobal": { "description": "Expose to with IP enforces global", "if": { "properties": { "ip": { "type": "string", "minLength": 1 } }, "required": ["ip"] }, "then": { "properties": { "global": { "const": true } }, "required": ["global"] } } }, "properties": { "deployment": { "additionalProperties": { "additionalProperties": { "additionalProperties": false, "properties": { "count": { "minimum": 1, "type": "integer" }, "profile": { "type": "string" } }, "required": ["profile", "count"], "type": "object" }, "type": "object" }, "type": "object" }, "endpoints": { "additionalProperties": false, "patternProperties": { "^[a-z]+[-_0-9a-z]+$": { "additionalProperties": false, "properties": { "kind": { "enum": ["ip"], "type": "string" } }, "required": ["kind"], "type": "object" } }, "type": "object" }, "include": { "description": "Optional list of files to include", "items": { "type": "string" }, "type": "array" }, "profiles": { "additionalProperties": false, "properties": { "compute": { "additionalProperties": { "additionalProperties": false, "properties": { "resources": { "additionalProperties": false, "properties": { "cpu": { "additionalProperties": false, "properties": { "attributes": { "type": "object" }, "units": { "oneOf": [{ "type": "string", "pattern": "^[0-9]+(\\.[0-9]+)?[a-zA-Z]*$", "not": { "pattern": "^0+(\\.0+)?m?$" } }, { "type": "number", "exclusiveMinimum": 0 }] } }, "required": ["units"], "type": "object" }, "gpu": { "description": "GPU resource specification.\n- units defaults to 0 if omitted\n- Bidirectional validation: units > 0 requires attributes, and attributes require units > 0\n", "additionalProperties": false, "properties": { "attributes": { "additionalProperties": false, "properties": { "vendor": { "additionalProperties": false, "minProperties": 1, "properties": { "nvidia": { "oneOf": [{ "type": "array", "items": { "additionalProperties": false, "properties": { "interface": { "enum": ["pcie", "sxm"], "type": "string" }, "model": { "type": "string" }, "ram": { "type": "string" } }, "type": "object" } }, { "type": "null" }] } }, "type": "object" } }, "type": "object" }, "units": { "oneOf": [{ "type": "string" }, { "type": "number" }] } }, "required": ["units"], "type": "object" }, "memory": { "additionalProperties": false, "properties": { "size": { "type": "string" } }, "required": ["size"], "type": "object" }, "storage": { "oneOf": [{ "$ref": "#/definitions/storageVolume" }, { "items": { "$ref": "#/definitions/storageVolume" }, "type": "array" }] } }, "required": ["cpu", "memory", "storage"], "type": "object" } }, "required": ["resources"], "type": "object" }, "type": "object" }, "placement": { "additionalProperties": { "additionalProperties": false, "properties": { "attributes": { "type": "object" }, "pricing": { "additionalProperties": { "$ref": "#/definitions/priceCoin" }, "type": "object" }, "signedBy": { "additionalProperties": false, "properties": { "allOf": { "items": { "type": "string" }, "type": "array" }, "anyOf": { "items": { "type": "string" }, "type": "array" } }, "type": "object" } }, "required": ["pricing"], "type": "object" }, "type": "object" } }, "required": ["compute", "placement"], "type": "object" }, "services": { "additionalProperties": { "properties": { "args": { "$ref": "#/definitions/stringArrayOrNull" }, "command": { "$ref": "#/definitions/stringArrayOrNull" }, "credentials": { "additionalProperties": false, "properties": { "email": { "type": "string", "minLength": 5 }, "host": { "type": "string", "minLength": 1 }, "password": { "type": "string", "minLength": 6 }, "username": { "type": "string", "minLength": 1 } }, "required": ["host", "username", "password"], "type": "object" }, "dependencies": { "items": { "additionalProperties": false, "properties": { "service": { "type": "string" } }, "type": "object" }, "type": "array" }, "env": { "$ref": "#/definitions/stringArrayOrNull" }, "expose": { "items": { "additionalProperties": false, "properties": { "accept": { "items": { "type": "string" }, "type": "array" }, "as": { "$ref": "#/definitions/portNumber" }, "http_options": { "additionalProperties": false, "properties": { "max_body_size": { "type": "integer", "minimum": 0, "maximum": 104857600, "description": "Maximum body size in bytes (max 100 MB)" }, "next_cases": { "oneOf": [{ "type": "array", "items": { "$ref": "#/definitions/httpErrorCode" }, "contains": { "const": "off" }, "maxItems": 1, "minItems": 1 }, { "type": "array", "items": { "$ref": "#/definitions/httpErrorCode" }, "not": { "contains": { "const": "off" } } }] }, "next_timeout": { "type": "integer", "minimum": 0 }, "next_tries": { "type": "integer", "minimum": 0 }, "read_timeout": { "type": "integer", "minimum": 0, "maximum": 6e4, "description": "Read timeout in milliseconds (max 60 seconds)" }, "send_timeout": { "type": "integer", "minimum": 0, "maximum": 6e4, "description": "Send timeout in milliseconds (max 60 seconds)" } }, "type": "object" }, "port": { "$ref": "#/definitions/portNumber" }, "proto": { "enum": ["TCP", "UDP", "tcp", "udp"], "type": "string" }, "to": { "items": { "additionalProperties": false, "properties": { "global": { "type": "boolean" }, "ip": { "minLength": 1, "type": "string" }, "service": { "type": "string" } }, "allOf": [{ "$ref": "#/definitions/exposeToWithIpEnforcesGlobal" }], "type": "object" }, "type": "array" } }, "required": ["port"], "type": "object" }, "type": "array" }, "image": { "type": "string", "minLength": 1 }, "params": { "additionalProperties": false, "properties": { "storage": { "additionalProperties": { "additionalProperties": false, "properties": { "mount": { "$ref": "#/definitions/absolutePath" }, "readOnly": { "type": "boolean" } }, "type": "object" }, "type": "object" }, "permissions": { "additionalProperties": false, "properties": { "read": { "items": { "type": "string", "enum": ["deployment", "logs"] }, "type": "array" } }, "type": "object" } }, "type": "object" } }, "required": ["image"], "type": "object", "additionalProperties": false }, "type": "object" }, "version": { "description": "SDL version", "enum": ["2.0", "2.1"], "type": "string" } }, "required": ["version", "services", "profiles", "deployment"], "title": "Akash SDL Input Schema", "type": "object" };
|
|
57
|
-
var
|
|
56
|
+
var schema12 = { "$schema": "http://json-schema.org/draft-07/schema#", "additionalProperties": false, "description": "Schema for Akash Stack Definition Language (SDL) YAML input files.\n\nNote: This schema validates structure only. Semantic validations (cross-references,\nunused endpoints, profile references, etc.) are performed at runtime by the Go parser.\nSee README.md for details.\n", "definitions": { "stringArrayOrNull": { "description": "String array or null value (used for command args and env vars)", "oneOf": [{ "items": { "type": "string" }, "type": "array" }, { "type": "null" }] }, "portNumber": { "description": "Valid TCP/UDP port number (1-65535)", "type": "integer", "minimum": 1, "maximum": 65535 }, "httpErrorCode": { "description": "HTTP error codes for proxy retry logic", "enum": ["error", "timeout", "500", "502", "503", "504", "403", "404", "429", "off"], "type": "string" }, "priceCoin": { "description": "Price definition with amount and denomination", "additionalProperties": false, "properties": { "amount": { "oneOf": [{ "type": "string", "pattern": "^[0-9]+(\\.[0-9]+)?$", "description": "Positive number as string" }, { "type": "number", "minimum": 0, "description": "Positive number" }] }, "denom": { "pattern": "^(uakt|uact|ibc/.*)$", "type": "string" } }, "required": ["denom", "amount"], "type": "object" }, "storageRamClassMustNotBePersistent": { "description": "RAM storage class must not have persistent=true", "not": { "properties": { "class": { "const": "ram" }, "persistent": { "oneOf": [{ "const": true }, { "const": "true" }] } }, "required": ["class", "persistent"] } }, "storageNonRamClassRequiresPersistent": { "description": "Non-RAM storage classes (beta1, beta2, beta3, default) require persistent=true", "if": { "properties": { "class": { "enum": ["beta1", "beta2", "beta3", "default"] } }, "required": ["class"] }, "then": { "properties": { "persistent": { "oneOf": [{ "const": true }, { "const": "true" }] } }, "required": ["persistent"] } }, "storageAttributesValidation": { "description": "Storage attributes validation:\n1. RAM class must not be persistent\n2. Non-RAM classes (beta1, beta2, beta3, default) require persistent=true\n", "additionalProperties": false, "properties": { "class": { "type": "string" }, "persistent": { "oneOf": [{ "type": "boolean" }, { "type": "string" }] } }, "allOf": [{ "$ref": "#/definitions/storageRamClassMustNotBePersistent" }, { "$ref": "#/definitions/storageNonRamClassRequiresPersistent" }], "required": ["class", "persistent"], "type": "object" }, "storageVolume": { "description": "Storage volume definition with size and optional attributes", "additionalProperties": false, "properties": { "attributes": { "$ref": "#/definitions/storageAttributesValidation" }, "name": { "type": "string" }, "size": { "type": "string" } }, "required": ["size"], "type": "object" }, "absolutePath": { "description": "Absolute filesystem path starting with /", "type": "string", "minLength": 1, "pattern": "^/" }, "gpuUnitsGt0RequiresAttributes": { "description": "GPU units > 0 requires attributes to be present", "if": { "properties": { "units": { "oneOf": [{ "type": "number", "exclusiveMinimum": 0 }, { "type": "string", "not": { "pattern": "^0+(\\.0+)?$" } }] } }, "required": ["units"] }, "then": { "required": ["attributes"] } }, "gpuAttributesRequireUnitsGt0": { "description": "GPU attributes present requires units > 0", "if": { "required": ["attributes"] }, "then": { "properties": { "units": { "oneOf": [{ "type": "number", "exclusiveMinimum": 0 }, { "type": "string", "not": { "pattern": "^0+(\\.0+)?$" } }] } }, "required": ["units"] } }, "exposeToWithIpEnforcesGlobal": { "description": "Expose to with IP enforces global", "if": { "properties": { "ip": { "type": "string", "minLength": 1 } }, "required": ["ip"] }, "then": { "properties": { "global": { "const": true } }, "required": ["global"] } } }, "properties": { "deployment": { "additionalProperties": { "additionalProperties": { "additionalProperties": false, "properties": { "count": { "minimum": 1, "type": "integer" }, "profile": { "type": "string" } }, "required": ["profile", "count"], "type": "object" }, "type": "object" }, "type": "object" }, "endpoints": { "additionalProperties": false, "patternProperties": { "^[a-z]+[-_0-9a-z]+$": { "additionalProperties": false, "properties": { "kind": { "enum": ["ip"], "type": "string" } }, "required": ["kind"], "type": "object" } }, "type": "object" }, "include": { "description": "Optional list of files to include", "items": { "type": "string" }, "type": "array" }, "profiles": { "additionalProperties": false, "properties": { "compute": { "additionalProperties": { "additionalProperties": false, "properties": { "resources": { "additionalProperties": false, "properties": { "cpu": { "additionalProperties": false, "properties": { "attributes": { "type": "object" }, "units": { "oneOf": [{ "type": "string", "pattern": "^[0-9]+(\\.[0-9]+)?[a-zA-Z]*$", "not": { "pattern": "^0+(\\.0+)?m?$" } }, { "type": "number", "exclusiveMinimum": 0 }] } }, "required": ["units"], "type": "object" }, "gpu": { "description": "GPU resource specification.\n- units defaults to 0 if omitted\n- Bidirectional validation: units > 0 requires attributes, and attributes require units > 0\n", "additionalProperties": false, "properties": { "attributes": { "additionalProperties": false, "properties": { "vendor": { "additionalProperties": false, "minProperties": 1, "properties": { "nvidia": { "oneOf": [{ "type": "array", "items": { "additionalProperties": false, "properties": { "interface": { "enum": ["pcie", "sxm"], "type": "string" }, "model": { "type": "string" }, "ram": { "type": "string" } }, "type": "object" } }, { "type": "null" }] } }, "type": "object" } }, "type": "object" }, "units": { "oneOf": [{ "type": "string" }, { "type": "number" }] } }, "allOf": [{ "$ref": "#/definitions/gpuUnitsGt0RequiresAttributes" }, { "$ref": "#/definitions/gpuAttributesRequireUnitsGt0" }], "type": "object" }, "memory": { "additionalProperties": false, "properties": { "size": { "type": "string" } }, "required": ["size"], "type": "object" }, "storage": { "oneOf": [{ "$ref": "#/definitions/storageVolume" }, { "items": { "$ref": "#/definitions/storageVolume" }, "type": "array" }] } }, "required": ["cpu", "memory", "storage"], "type": "object" } }, "required": ["resources"], "type": "object" }, "type": "object" }, "placement": { "additionalProperties": { "additionalProperties": false, "properties": { "attributes": { "type": "object" }, "pricing": { "additionalProperties": { "$ref": "#/definitions/priceCoin" }, "type": "object" }, "signedBy": { "additionalProperties": false, "properties": { "allOf": { "items": { "type": "string" }, "type": "array" }, "anyOf": { "items": { "type": "string" }, "type": "array" } }, "type": "object" } }, "required": ["pricing"], "type": "object" }, "type": "object" } }, "required": ["compute", "placement"], "type": "object" }, "services": { "additionalProperties": { "properties": { "args": { "$ref": "#/definitions/stringArrayOrNull" }, "command": { "$ref": "#/definitions/stringArrayOrNull" }, "credentials": { "additionalProperties": false, "properties": { "email": { "type": "string", "minLength": 5 }, "host": { "type": "string", "minLength": 1 }, "password": { "type": "string", "minLength": 6 }, "username": { "type": "string", "minLength": 1 } }, "required": ["host", "username", "password"], "type": "object" }, "dependencies": { "items": { "additionalProperties": false, "properties": { "service": { "type": "string" } }, "type": "object" }, "type": "array" }, "env": { "$ref": "#/definitions/stringArrayOrNull" }, "expose": { "oneOf": [{ "type": "array", "items": { "additionalProperties": false, "properties": { "accept": { "items": { "type": "string" }, "type": "array" }, "as": { "$ref": "#/definitions/portNumber" }, "http_options": { "additionalProperties": false, "properties": { "max_body_size": { "type": "integer", "minimum": 0, "maximum": 104857600, "description": "Maximum body size in bytes (max 100 MB)" }, "next_cases": { "oneOf": [{ "type": "array", "items": { "$ref": "#/definitions/httpErrorCode" }, "contains": { "const": "off" }, "maxItems": 1, "minItems": 1 }, { "type": "array", "items": { "$ref": "#/definitions/httpErrorCode" }, "not": { "contains": { "const": "off" } } }] }, "next_timeout": { "type": "integer", "minimum": 0 }, "next_tries": { "type": "integer", "minimum": 0 }, "read_timeout": { "type": "integer", "minimum": 0, "maximum": 6e4, "description": "Read timeout in milliseconds (max 60 seconds)" }, "send_timeout": { "type": "integer", "minimum": 0, "maximum": 6e4, "description": "Send timeout in milliseconds (max 60 seconds)" } }, "type": "object" }, "port": { "$ref": "#/definitions/portNumber" }, "proto": { "enum": ["TCP", "UDP", "tcp", "udp"], "type": "string" }, "to": { "items": { "additionalProperties": false, "properties": { "global": { "type": "boolean" }, "ip": { "minLength": 1, "type": "string" }, "service": { "type": "string" } }, "allOf": [{ "$ref": "#/definitions/exposeToWithIpEnforcesGlobal" }], "type": "object" }, "type": "array" } }, "required": ["port"], "type": "object" } }, { "type": "null" }] }, "image": { "type": "string", "minLength": 1 }, "params": { "additionalProperties": false, "properties": { "storage": { "additionalProperties": { "additionalProperties": false, "properties": { "mount": { "$ref": "#/definitions/absolutePath" }, "readOnly": { "type": "boolean" } }, "type": "object" }, "type": "object" }, "permissions": { "additionalProperties": false, "properties": { "read": { "items": { "type": "string", "enum": ["deployment", "logs"] }, "type": "array" } }, "type": "object" } }, "type": "object" } }, "required": ["image"], "type": "object", "additionalProperties": false }, "type": "object" }, "version": { "description": "SDL version", "enum": ["2.0", "2.1"], "type": "string" } }, "required": ["version", "services", "profiles", "deployment"], "title": "Akash SDL Input Schema", "type": "object" };
|
|
57
|
+
var schema24 = { "description": "HTTP error codes for proxy retry logic", "enum": ["error", "timeout", "500", "502", "503", "504", "403", "404", "429", "off"], "type": "string" };
|
|
58
58
|
var pattern2 = new RegExp("^[a-z]+[-_0-9a-z]+$", "u");
|
|
59
59
|
var pattern4 = new RegExp("^0+(\\.0+)?m?$", "u");
|
|
60
60
|
var pattern5 = new RegExp("^[0-9]+(\\.[0-9]+)?[a-zA-Z]*$", "u");
|
|
61
|
-
var pattern6 = new RegExp("^
|
|
62
|
-
var
|
|
63
|
-
var
|
|
64
|
-
|
|
61
|
+
var pattern6 = new RegExp("^0+(\\.0+)?$", "u");
|
|
62
|
+
var pattern8 = new RegExp("^[0-9]+(\\.[0-9]+)?$", "u");
|
|
63
|
+
var pattern9 = new RegExp("^(uakt|uact|ibc/.*)$", "u");
|
|
64
|
+
var pattern10 = new RegExp("^/", "u");
|
|
65
|
+
function validate13(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
|
|
65
66
|
let vErrors = null;
|
|
66
67
|
let errors = 0;
|
|
68
|
+
const _errs3 = errors;
|
|
69
|
+
const _errs4 = errors;
|
|
67
70
|
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
68
|
-
|
|
69
|
-
|
|
71
|
+
let missing0;
|
|
72
|
+
if (data.class === void 0 && (missing0 = "class") || data.persistent === void 0 && (missing0 = "persistent")) {
|
|
73
|
+
const err0 = {};
|
|
70
74
|
if (vErrors === null) {
|
|
71
75
|
vErrors = [err0];
|
|
72
76
|
} else {
|
|
73
77
|
vErrors.push(err0);
|
|
74
78
|
}
|
|
75
79
|
errors++;
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
vErrors = [err1];
|
|
82
|
-
} else {
|
|
83
|
-
vErrors.push(err1);
|
|
84
|
-
}
|
|
85
|
-
errors++;
|
|
86
|
-
}
|
|
87
|
-
}
|
|
88
|
-
if (data.attributes !== void 0) {
|
|
89
|
-
let data0 = data.attributes;
|
|
90
|
-
const _errs5 = errors;
|
|
91
|
-
const _errs6 = errors;
|
|
92
|
-
if (data0 && typeof data0 == "object" && !Array.isArray(data0)) {
|
|
93
|
-
let missing0;
|
|
94
|
-
if (data0.class === void 0 && (missing0 = "class") || data0.persistent === void 0 && (missing0 = "persistent")) {
|
|
95
|
-
const err2 = {};
|
|
80
|
+
} else {
|
|
81
|
+
if (data.class !== void 0) {
|
|
82
|
+
const _errs5 = errors;
|
|
83
|
+
if ("ram" !== data.class) {
|
|
84
|
+
const err1 = {};
|
|
96
85
|
if (vErrors === null) {
|
|
97
|
-
vErrors = [
|
|
86
|
+
vErrors = [err1];
|
|
98
87
|
} else {
|
|
99
|
-
vErrors.push(
|
|
88
|
+
vErrors.push(err1);
|
|
100
89
|
}
|
|
101
90
|
errors++;
|
|
102
|
-
} else {
|
|
103
|
-
if (data0.class !== void 0) {
|
|
104
|
-
const _errs7 = errors;
|
|
105
|
-
if ("ram" !== data0.class) {
|
|
106
|
-
const err3 = {};
|
|
107
|
-
if (vErrors === null) {
|
|
108
|
-
vErrors = [err3];
|
|
109
|
-
} else {
|
|
110
|
-
vErrors.push(err3);
|
|
111
|
-
}
|
|
112
|
-
errors++;
|
|
113
|
-
}
|
|
114
|
-
var valid3 = _errs7 === errors;
|
|
115
|
-
} else {
|
|
116
|
-
var valid3 = true;
|
|
117
|
-
}
|
|
118
|
-
if (valid3) {
|
|
119
|
-
if (data0.persistent !== void 0) {
|
|
120
|
-
let data2 = data0.persistent;
|
|
121
|
-
const _errs8 = errors;
|
|
122
|
-
const _errs9 = errors;
|
|
123
|
-
let valid4 = false;
|
|
124
|
-
let passing0 = null;
|
|
125
|
-
const _errs10 = errors;
|
|
126
|
-
if (true !== data2) {
|
|
127
|
-
const err4 = {};
|
|
128
|
-
if (vErrors === null) {
|
|
129
|
-
vErrors = [err4];
|
|
130
|
-
} else {
|
|
131
|
-
vErrors.push(err4);
|
|
132
|
-
}
|
|
133
|
-
errors++;
|
|
134
|
-
}
|
|
135
|
-
var _valid0 = _errs10 === errors;
|
|
136
|
-
if (_valid0) {
|
|
137
|
-
valid4 = true;
|
|
138
|
-
passing0 = 0;
|
|
139
|
-
}
|
|
140
|
-
const _errs11 = errors;
|
|
141
|
-
if ("true" !== data2) {
|
|
142
|
-
const err5 = {};
|
|
143
|
-
if (vErrors === null) {
|
|
144
|
-
vErrors = [err5];
|
|
145
|
-
} else {
|
|
146
|
-
vErrors.push(err5);
|
|
147
|
-
}
|
|
148
|
-
errors++;
|
|
149
|
-
}
|
|
150
|
-
var _valid0 = _errs11 === errors;
|
|
151
|
-
if (_valid0 && valid4) {
|
|
152
|
-
valid4 = false;
|
|
153
|
-
passing0 = [passing0, 1];
|
|
154
|
-
} else {
|
|
155
|
-
if (_valid0) {
|
|
156
|
-
valid4 = true;
|
|
157
|
-
passing0 = 1;
|
|
158
|
-
}
|
|
159
|
-
}
|
|
160
|
-
if (!valid4) {
|
|
161
|
-
const err6 = {};
|
|
162
|
-
if (vErrors === null) {
|
|
163
|
-
vErrors = [err6];
|
|
164
|
-
} else {
|
|
165
|
-
vErrors.push(err6);
|
|
166
|
-
}
|
|
167
|
-
errors++;
|
|
168
|
-
} else {
|
|
169
|
-
errors = _errs9;
|
|
170
|
-
if (vErrors !== null) {
|
|
171
|
-
if (_errs9) {
|
|
172
|
-
vErrors.length = _errs9;
|
|
173
|
-
} else {
|
|
174
|
-
vErrors = null;
|
|
175
|
-
}
|
|
176
|
-
}
|
|
177
|
-
}
|
|
178
|
-
var valid3 = _errs8 === errors;
|
|
179
|
-
} else {
|
|
180
|
-
var valid3 = true;
|
|
181
|
-
}
|
|
182
|
-
}
|
|
183
91
|
}
|
|
184
|
-
|
|
185
|
-
var valid2 = _errs6 === errors;
|
|
186
|
-
if (valid2) {
|
|
187
|
-
const err7 = { instancePath: instancePath + "/attributes", schemaPath: "#/definitions/storageAttributesValidation/not", keyword: "not", params: {}, message: "must NOT be valid" };
|
|
188
|
-
if (vErrors === null) {
|
|
189
|
-
vErrors = [err7];
|
|
190
|
-
} else {
|
|
191
|
-
vErrors.push(err7);
|
|
192
|
-
}
|
|
193
|
-
errors++;
|
|
92
|
+
var valid3 = _errs5 === errors;
|
|
194
93
|
} else {
|
|
195
|
-
|
|
196
|
-
if (vErrors !== null) {
|
|
197
|
-
if (_errs5) {
|
|
198
|
-
vErrors.length = _errs5;
|
|
199
|
-
} else {
|
|
200
|
-
vErrors = null;
|
|
201
|
-
}
|
|
202
|
-
}
|
|
94
|
+
var valid3 = true;
|
|
203
95
|
}
|
|
204
|
-
if (
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
}
|
|
215
|
-
}
|
|
216
|
-
if (data0.class !== void 0) {
|
|
217
|
-
if (typeof data0.class !== "string") {
|
|
218
|
-
const err9 = { instancePath: instancePath + "/attributes/class", schemaPath: "#/definitions/storageAttributesValidation/properties/class/type", keyword: "type", params: { type: "string" }, message: "must be string" };
|
|
219
|
-
if (vErrors === null) {
|
|
220
|
-
vErrors = [err9];
|
|
221
|
-
} else {
|
|
222
|
-
vErrors.push(err9);
|
|
223
|
-
}
|
|
224
|
-
errors++;
|
|
225
|
-
}
|
|
226
|
-
}
|
|
227
|
-
if (data0.persistent !== void 0) {
|
|
228
|
-
let data4 = data0.persistent;
|
|
229
|
-
const _errs16 = errors;
|
|
230
|
-
let valid6 = false;
|
|
231
|
-
let passing1 = null;
|
|
232
|
-
const _errs17 = errors;
|
|
233
|
-
if (typeof data4 !== "boolean") {
|
|
234
|
-
const err10 = { instancePath: instancePath + "/attributes/persistent", schemaPath: "#/definitions/storageAttributesValidation/properties/persistent/oneOf/0/type", keyword: "type", params: { type: "boolean" }, message: "must be boolean" };
|
|
96
|
+
if (valid3) {
|
|
97
|
+
if (data.persistent !== void 0) {
|
|
98
|
+
let data1 = data.persistent;
|
|
99
|
+
const _errs6 = errors;
|
|
100
|
+
const _errs7 = errors;
|
|
101
|
+
let valid4 = false;
|
|
102
|
+
let passing0 = null;
|
|
103
|
+
const _errs8 = errors;
|
|
104
|
+
if (true !== data1) {
|
|
105
|
+
const err2 = {};
|
|
235
106
|
if (vErrors === null) {
|
|
236
|
-
vErrors = [
|
|
107
|
+
vErrors = [err2];
|
|
237
108
|
} else {
|
|
238
|
-
vErrors.push(
|
|
109
|
+
vErrors.push(err2);
|
|
239
110
|
}
|
|
240
111
|
errors++;
|
|
241
112
|
}
|
|
242
|
-
var
|
|
243
|
-
if (
|
|
244
|
-
|
|
245
|
-
|
|
113
|
+
var _valid0 = _errs8 === errors;
|
|
114
|
+
if (_valid0) {
|
|
115
|
+
valid4 = true;
|
|
116
|
+
passing0 = 0;
|
|
246
117
|
}
|
|
247
|
-
const
|
|
248
|
-
if (
|
|
249
|
-
const
|
|
118
|
+
const _errs9 = errors;
|
|
119
|
+
if ("true" !== data1) {
|
|
120
|
+
const err3 = {};
|
|
250
121
|
if (vErrors === null) {
|
|
251
|
-
vErrors = [
|
|
122
|
+
vErrors = [err3];
|
|
252
123
|
} else {
|
|
253
|
-
vErrors.push(
|
|
124
|
+
vErrors.push(err3);
|
|
254
125
|
}
|
|
255
126
|
errors++;
|
|
256
127
|
}
|
|
257
|
-
var
|
|
258
|
-
if (
|
|
259
|
-
|
|
260
|
-
|
|
128
|
+
var _valid0 = _errs9 === errors;
|
|
129
|
+
if (_valid0 && valid4) {
|
|
130
|
+
valid4 = false;
|
|
131
|
+
passing0 = [passing0, 1];
|
|
261
132
|
} else {
|
|
262
|
-
if (
|
|
263
|
-
|
|
264
|
-
|
|
133
|
+
if (_valid0) {
|
|
134
|
+
valid4 = true;
|
|
135
|
+
passing0 = 1;
|
|
265
136
|
}
|
|
266
137
|
}
|
|
267
|
-
if (!
|
|
268
|
-
const
|
|
138
|
+
if (!valid4) {
|
|
139
|
+
const err4 = {};
|
|
269
140
|
if (vErrors === null) {
|
|
270
|
-
vErrors = [
|
|
141
|
+
vErrors = [err4];
|
|
271
142
|
} else {
|
|
272
|
-
vErrors.push(
|
|
143
|
+
vErrors.push(err4);
|
|
273
144
|
}
|
|
274
145
|
errors++;
|
|
275
146
|
} else {
|
|
276
|
-
errors =
|
|
147
|
+
errors = _errs7;
|
|
277
148
|
if (vErrors !== null) {
|
|
278
|
-
if (
|
|
279
|
-
vErrors.length =
|
|
149
|
+
if (_errs7) {
|
|
150
|
+
vErrors.length = _errs7;
|
|
280
151
|
} else {
|
|
281
152
|
vErrors = null;
|
|
282
153
|
}
|
|
283
154
|
}
|
|
284
155
|
}
|
|
156
|
+
var valid3 = _errs6 === errors;
|
|
157
|
+
} else {
|
|
158
|
+
var valid3 = true;
|
|
159
|
+
}
|
|
160
|
+
}
|
|
161
|
+
}
|
|
162
|
+
}
|
|
163
|
+
var valid2 = _errs4 === errors;
|
|
164
|
+
if (valid2) {
|
|
165
|
+
const err5 = { instancePath, schemaPath: "#/definitions/storageRamClassMustNotBePersistent/not", keyword: "not", params: {}, message: "must NOT be valid" };
|
|
166
|
+
if (vErrors === null) {
|
|
167
|
+
vErrors = [err5];
|
|
168
|
+
} else {
|
|
169
|
+
vErrors.push(err5);
|
|
170
|
+
}
|
|
171
|
+
errors++;
|
|
172
|
+
} else {
|
|
173
|
+
errors = _errs3;
|
|
174
|
+
if (vErrors !== null) {
|
|
175
|
+
if (_errs3) {
|
|
176
|
+
vErrors.length = _errs3;
|
|
177
|
+
} else {
|
|
178
|
+
vErrors = null;
|
|
179
|
+
}
|
|
180
|
+
}
|
|
181
|
+
}
|
|
182
|
+
const _errs12 = errors;
|
|
183
|
+
let valid6 = true;
|
|
184
|
+
const _errs13 = errors;
|
|
185
|
+
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
186
|
+
let missing1;
|
|
187
|
+
if (data.class === void 0 && (missing1 = "class")) {
|
|
188
|
+
const err6 = {};
|
|
189
|
+
if (vErrors === null) {
|
|
190
|
+
vErrors = [err6];
|
|
191
|
+
} else {
|
|
192
|
+
vErrors.push(err6);
|
|
193
|
+
}
|
|
194
|
+
errors++;
|
|
195
|
+
} else {
|
|
196
|
+
if (data.class !== void 0) {
|
|
197
|
+
let data2 = data.class;
|
|
198
|
+
if (!(data2 === "beta1" || data2 === "beta2" || data2 === "beta3" || data2 === "default")) {
|
|
199
|
+
const err7 = {};
|
|
200
|
+
if (vErrors === null) {
|
|
201
|
+
vErrors = [err7];
|
|
202
|
+
} else {
|
|
203
|
+
vErrors.push(err7);
|
|
204
|
+
}
|
|
205
|
+
errors++;
|
|
206
|
+
}
|
|
207
|
+
}
|
|
208
|
+
}
|
|
209
|
+
}
|
|
210
|
+
var _valid1 = _errs13 === errors;
|
|
211
|
+
errors = _errs12;
|
|
212
|
+
if (vErrors !== null) {
|
|
213
|
+
if (_errs12) {
|
|
214
|
+
vErrors.length = _errs12;
|
|
215
|
+
} else {
|
|
216
|
+
vErrors = null;
|
|
217
|
+
}
|
|
218
|
+
}
|
|
219
|
+
if (_valid1) {
|
|
220
|
+
const _errs15 = errors;
|
|
221
|
+
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
222
|
+
if (data.persistent === void 0) {
|
|
223
|
+
const err8 = { instancePath, schemaPath: "#/definitions/storageNonRamClassRequiresPersistent/then/required", keyword: "required", params: { missingProperty: "persistent" }, message: "must have required property 'persistent'" };
|
|
224
|
+
if (vErrors === null) {
|
|
225
|
+
vErrors = [err8];
|
|
226
|
+
} else {
|
|
227
|
+
vErrors.push(err8);
|
|
228
|
+
}
|
|
229
|
+
errors++;
|
|
230
|
+
}
|
|
231
|
+
if (data.persistent !== void 0) {
|
|
232
|
+
let data3 = data.persistent;
|
|
233
|
+
const _errs17 = errors;
|
|
234
|
+
let valid9 = false;
|
|
235
|
+
let passing1 = null;
|
|
236
|
+
const _errs18 = errors;
|
|
237
|
+
if (true !== data3) {
|
|
238
|
+
const err9 = { instancePath: instancePath + "/persistent", schemaPath: "#/definitions/storageNonRamClassRequiresPersistent/then/properties/persistent/oneOf/0/const", keyword: "const", params: { allowedValue: true }, message: "must be equal to constant" };
|
|
239
|
+
if (vErrors === null) {
|
|
240
|
+
vErrors = [err9];
|
|
241
|
+
} else {
|
|
242
|
+
vErrors.push(err9);
|
|
243
|
+
}
|
|
244
|
+
errors++;
|
|
245
|
+
}
|
|
246
|
+
var _valid2 = _errs18 === errors;
|
|
247
|
+
if (_valid2) {
|
|
248
|
+
valid9 = true;
|
|
249
|
+
passing1 = 0;
|
|
250
|
+
}
|
|
251
|
+
const _errs19 = errors;
|
|
252
|
+
if ("true" !== data3) {
|
|
253
|
+
const err10 = { instancePath: instancePath + "/persistent", schemaPath: "#/definitions/storageNonRamClassRequiresPersistent/then/properties/persistent/oneOf/1/const", keyword: "const", params: { allowedValue: "true" }, message: "must be equal to constant" };
|
|
254
|
+
if (vErrors === null) {
|
|
255
|
+
vErrors = [err10];
|
|
256
|
+
} else {
|
|
257
|
+
vErrors.push(err10);
|
|
258
|
+
}
|
|
259
|
+
errors++;
|
|
260
|
+
}
|
|
261
|
+
var _valid2 = _errs19 === errors;
|
|
262
|
+
if (_valid2 && valid9) {
|
|
263
|
+
valid9 = false;
|
|
264
|
+
passing1 = [passing1, 1];
|
|
265
|
+
} else {
|
|
266
|
+
if (_valid2) {
|
|
267
|
+
valid9 = true;
|
|
268
|
+
passing1 = 1;
|
|
269
|
+
}
|
|
270
|
+
}
|
|
271
|
+
if (!valid9) {
|
|
272
|
+
const err11 = { instancePath: instancePath + "/persistent", schemaPath: "#/definitions/storageNonRamClassRequiresPersistent/then/properties/persistent/oneOf", keyword: "oneOf", params: { passingSchemas: passing1 }, message: "must match exactly one schema in oneOf" };
|
|
273
|
+
if (vErrors === null) {
|
|
274
|
+
vErrors = [err11];
|
|
275
|
+
} else {
|
|
276
|
+
vErrors.push(err11);
|
|
277
|
+
}
|
|
278
|
+
errors++;
|
|
279
|
+
} else {
|
|
280
|
+
errors = _errs17;
|
|
281
|
+
if (vErrors !== null) {
|
|
282
|
+
if (_errs17) {
|
|
283
|
+
vErrors.length = _errs17;
|
|
284
|
+
} else {
|
|
285
|
+
vErrors = null;
|
|
286
|
+
}
|
|
287
|
+
}
|
|
288
|
+
}
|
|
289
|
+
}
|
|
290
|
+
}
|
|
291
|
+
var _valid1 = _errs15 === errors;
|
|
292
|
+
valid6 = _valid1;
|
|
293
|
+
}
|
|
294
|
+
if (!valid6) {
|
|
295
|
+
const err12 = { instancePath, schemaPath: "#/definitions/storageNonRamClassRequiresPersistent/if", keyword: "if", params: { failingKeyword: "then" }, message: 'must match "then" schema' };
|
|
296
|
+
if (vErrors === null) {
|
|
297
|
+
vErrors = [err12];
|
|
298
|
+
} else {
|
|
299
|
+
vErrors.push(err12);
|
|
300
|
+
}
|
|
301
|
+
errors++;
|
|
302
|
+
}
|
|
303
|
+
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
304
|
+
if (data.class === void 0) {
|
|
305
|
+
const err13 = { instancePath, schemaPath: "#/required", keyword: "required", params: { missingProperty: "class" }, message: "must have required property 'class'" };
|
|
306
|
+
if (vErrors === null) {
|
|
307
|
+
vErrors = [err13];
|
|
308
|
+
} else {
|
|
309
|
+
vErrors.push(err13);
|
|
310
|
+
}
|
|
311
|
+
errors++;
|
|
312
|
+
}
|
|
313
|
+
if (data.persistent === void 0) {
|
|
314
|
+
const err14 = { instancePath, schemaPath: "#/required", keyword: "required", params: { missingProperty: "persistent" }, message: "must have required property 'persistent'" };
|
|
315
|
+
if (vErrors === null) {
|
|
316
|
+
vErrors = [err14];
|
|
317
|
+
} else {
|
|
318
|
+
vErrors.push(err14);
|
|
319
|
+
}
|
|
320
|
+
errors++;
|
|
321
|
+
}
|
|
322
|
+
for (const key0 in data) {
|
|
323
|
+
if (!(key0 === "class" || key0 === "persistent")) {
|
|
324
|
+
const err15 = { instancePath, schemaPath: "#/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key0 }, message: "must NOT have additional properties" };
|
|
325
|
+
if (vErrors === null) {
|
|
326
|
+
vErrors = [err15];
|
|
327
|
+
} else {
|
|
328
|
+
vErrors.push(err15);
|
|
329
|
+
}
|
|
330
|
+
errors++;
|
|
331
|
+
}
|
|
332
|
+
}
|
|
333
|
+
if (data.class !== void 0) {
|
|
334
|
+
if (typeof data.class !== "string") {
|
|
335
|
+
const err16 = { instancePath: instancePath + "/class", schemaPath: "#/properties/class/type", keyword: "type", params: { type: "string" }, message: "must be string" };
|
|
336
|
+
if (vErrors === null) {
|
|
337
|
+
vErrors = [err16];
|
|
338
|
+
} else {
|
|
339
|
+
vErrors.push(err16);
|
|
285
340
|
}
|
|
341
|
+
errors++;
|
|
342
|
+
}
|
|
343
|
+
}
|
|
344
|
+
if (data.persistent !== void 0) {
|
|
345
|
+
let data5 = data.persistent;
|
|
346
|
+
const _errs24 = errors;
|
|
347
|
+
let valid11 = false;
|
|
348
|
+
let passing2 = null;
|
|
349
|
+
const _errs25 = errors;
|
|
350
|
+
if (typeof data5 !== "boolean") {
|
|
351
|
+
const err17 = { instancePath: instancePath + "/persistent", schemaPath: "#/properties/persistent/oneOf/0/type", keyword: "type", params: { type: "boolean" }, message: "must be boolean" };
|
|
352
|
+
if (vErrors === null) {
|
|
353
|
+
vErrors = [err17];
|
|
354
|
+
} else {
|
|
355
|
+
vErrors.push(err17);
|
|
356
|
+
}
|
|
357
|
+
errors++;
|
|
358
|
+
}
|
|
359
|
+
var _valid3 = _errs25 === errors;
|
|
360
|
+
if (_valid3) {
|
|
361
|
+
valid11 = true;
|
|
362
|
+
passing2 = 0;
|
|
363
|
+
}
|
|
364
|
+
const _errs27 = errors;
|
|
365
|
+
if (typeof data5 !== "string") {
|
|
366
|
+
const err18 = { instancePath: instancePath + "/persistent", schemaPath: "#/properties/persistent/oneOf/1/type", keyword: "type", params: { type: "string" }, message: "must be string" };
|
|
367
|
+
if (vErrors === null) {
|
|
368
|
+
vErrors = [err18];
|
|
369
|
+
} else {
|
|
370
|
+
vErrors.push(err18);
|
|
371
|
+
}
|
|
372
|
+
errors++;
|
|
373
|
+
}
|
|
374
|
+
var _valid3 = _errs27 === errors;
|
|
375
|
+
if (_valid3 && valid11) {
|
|
376
|
+
valid11 = false;
|
|
377
|
+
passing2 = [passing2, 1];
|
|
286
378
|
} else {
|
|
287
|
-
|
|
379
|
+
if (_valid3) {
|
|
380
|
+
valid11 = true;
|
|
381
|
+
passing2 = 1;
|
|
382
|
+
}
|
|
383
|
+
}
|
|
384
|
+
if (!valid11) {
|
|
385
|
+
const err19 = { instancePath: instancePath + "/persistent", schemaPath: "#/properties/persistent/oneOf", keyword: "oneOf", params: { passingSchemas: passing2 }, message: "must match exactly one schema in oneOf" };
|
|
288
386
|
if (vErrors === null) {
|
|
289
|
-
vErrors = [
|
|
387
|
+
vErrors = [err19];
|
|
290
388
|
} else {
|
|
291
|
-
vErrors.push(
|
|
389
|
+
vErrors.push(err19);
|
|
390
|
+
}
|
|
391
|
+
errors++;
|
|
392
|
+
} else {
|
|
393
|
+
errors = _errs24;
|
|
394
|
+
if (vErrors !== null) {
|
|
395
|
+
if (_errs24) {
|
|
396
|
+
vErrors.length = _errs24;
|
|
397
|
+
} else {
|
|
398
|
+
vErrors = null;
|
|
399
|
+
}
|
|
400
|
+
}
|
|
401
|
+
}
|
|
402
|
+
}
|
|
403
|
+
} else {
|
|
404
|
+
const err20 = { instancePath, schemaPath: "#/type", keyword: "type", params: { type: "object" }, message: "must be object" };
|
|
405
|
+
if (vErrors === null) {
|
|
406
|
+
vErrors = [err20];
|
|
407
|
+
} else {
|
|
408
|
+
vErrors.push(err20);
|
|
409
|
+
}
|
|
410
|
+
errors++;
|
|
411
|
+
}
|
|
412
|
+
validate13.errors = vErrors;
|
|
413
|
+
return errors === 0;
|
|
414
|
+
}
|
|
415
|
+
function validate12(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
|
|
416
|
+
let vErrors = null;
|
|
417
|
+
let errors = 0;
|
|
418
|
+
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
419
|
+
if (data.size === void 0) {
|
|
420
|
+
const err0 = { instancePath, schemaPath: "#/required", keyword: "required", params: { missingProperty: "size" }, message: "must have required property 'size'" };
|
|
421
|
+
if (vErrors === null) {
|
|
422
|
+
vErrors = [err0];
|
|
423
|
+
} else {
|
|
424
|
+
vErrors.push(err0);
|
|
425
|
+
}
|
|
426
|
+
errors++;
|
|
427
|
+
}
|
|
428
|
+
for (const key0 in data) {
|
|
429
|
+
if (!(key0 === "attributes" || key0 === "name" || key0 === "size")) {
|
|
430
|
+
const err1 = { instancePath, schemaPath: "#/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key0 }, message: "must NOT have additional properties" };
|
|
431
|
+
if (vErrors === null) {
|
|
432
|
+
vErrors = [err1];
|
|
433
|
+
} else {
|
|
434
|
+
vErrors.push(err1);
|
|
292
435
|
}
|
|
293
436
|
errors++;
|
|
294
437
|
}
|
|
295
438
|
}
|
|
439
|
+
if (data.attributes !== void 0) {
|
|
440
|
+
if (!validate13(data.attributes, { instancePath: instancePath + "/attributes", parentData: data, parentDataProperty: "attributes", rootData })) {
|
|
441
|
+
vErrors = vErrors === null ? validate13.errors : vErrors.concat(validate13.errors);
|
|
442
|
+
errors = vErrors.length;
|
|
443
|
+
}
|
|
444
|
+
}
|
|
296
445
|
if (data.name !== void 0) {
|
|
297
446
|
if (typeof data.name !== "string") {
|
|
298
|
-
const
|
|
447
|
+
const err2 = { instancePath: instancePath + "/name", schemaPath: "#/properties/name/type", keyword: "type", params: { type: "string" }, message: "must be string" };
|
|
299
448
|
if (vErrors === null) {
|
|
300
|
-
vErrors = [
|
|
449
|
+
vErrors = [err2];
|
|
301
450
|
} else {
|
|
302
|
-
vErrors.push(
|
|
451
|
+
vErrors.push(err2);
|
|
303
452
|
}
|
|
304
453
|
errors++;
|
|
305
454
|
}
|
|
306
455
|
}
|
|
307
456
|
if (data.size !== void 0) {
|
|
308
457
|
if (typeof data.size !== "string") {
|
|
309
|
-
const
|
|
458
|
+
const err3 = { instancePath: instancePath + "/size", schemaPath: "#/properties/size/type", keyword: "type", params: { type: "string" }, message: "must be string" };
|
|
310
459
|
if (vErrors === null) {
|
|
311
|
-
vErrors = [
|
|
460
|
+
vErrors = [err3];
|
|
312
461
|
} else {
|
|
313
|
-
vErrors.push(
|
|
462
|
+
vErrors.push(err3);
|
|
314
463
|
}
|
|
315
464
|
errors++;
|
|
316
465
|
}
|
|
317
466
|
}
|
|
318
467
|
} else {
|
|
319
|
-
const
|
|
468
|
+
const err4 = { instancePath, schemaPath: "#/type", keyword: "type", params: { type: "object" }, message: "must be object" };
|
|
320
469
|
if (vErrors === null) {
|
|
321
|
-
vErrors = [
|
|
470
|
+
vErrors = [err4];
|
|
322
471
|
} else {
|
|
323
|
-
vErrors.push(
|
|
472
|
+
vErrors.push(err4);
|
|
324
473
|
}
|
|
325
474
|
errors++;
|
|
326
475
|
}
|
|
@@ -754,275 +903,569 @@ function validate11(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
754
903
|
if (_errs48) {
|
|
755
904
|
vErrors.length = _errs48;
|
|
756
905
|
} else {
|
|
757
|
-
vErrors = null;
|
|
906
|
+
vErrors = null;
|
|
907
|
+
}
|
|
908
|
+
}
|
|
909
|
+
}
|
|
910
|
+
if (typeof data16 === "string") {
|
|
911
|
+
if (!pattern5.test(data16)) {
|
|
912
|
+
const err37 = { instancePath: instancePath + "/profiles/compute/" + key8.replace(/~/g, "~0").replace(/\//g, "~1") + "/resources/cpu/units", schemaPath: "#/properties/profiles/properties/compute/additionalProperties/properties/resources/properties/cpu/properties/units/oneOf/0/pattern", keyword: "pattern", params: { pattern: "^[0-9]+(\\.[0-9]+)?[a-zA-Z]*$" }, message: 'must match pattern "^[0-9]+(\\.[0-9]+)?[a-zA-Z]*$"' };
|
|
913
|
+
if (vErrors === null) {
|
|
914
|
+
vErrors = [err37];
|
|
915
|
+
} else {
|
|
916
|
+
vErrors.push(err37);
|
|
917
|
+
}
|
|
918
|
+
errors++;
|
|
919
|
+
}
|
|
920
|
+
} else {
|
|
921
|
+
const err38 = { instancePath: instancePath + "/profiles/compute/" + key8.replace(/~/g, "~0").replace(/\//g, "~1") + "/resources/cpu/units", schemaPath: "#/properties/profiles/properties/compute/additionalProperties/properties/resources/properties/cpu/properties/units/oneOf/0/type", keyword: "type", params: { type: "string" }, message: "must be string" };
|
|
922
|
+
if (vErrors === null) {
|
|
923
|
+
vErrors = [err38];
|
|
924
|
+
} else {
|
|
925
|
+
vErrors.push(err38);
|
|
926
|
+
}
|
|
927
|
+
errors++;
|
|
928
|
+
}
|
|
929
|
+
var _valid0 = _errs46 === errors;
|
|
930
|
+
if (_valid0) {
|
|
931
|
+
valid13 = true;
|
|
932
|
+
passing0 = 0;
|
|
933
|
+
}
|
|
934
|
+
const _errs50 = errors;
|
|
935
|
+
if (typeof data16 == "number") {
|
|
936
|
+
if (data16 <= 0 || isNaN(data16)) {
|
|
937
|
+
const err39 = { instancePath: instancePath + "/profiles/compute/" + key8.replace(/~/g, "~0").replace(/\//g, "~1") + "/resources/cpu/units", schemaPath: "#/properties/profiles/properties/compute/additionalProperties/properties/resources/properties/cpu/properties/units/oneOf/1/exclusiveMinimum", keyword: "exclusiveMinimum", params: { comparison: ">", limit: 0 }, message: "must be > 0" };
|
|
938
|
+
if (vErrors === null) {
|
|
939
|
+
vErrors = [err39];
|
|
940
|
+
} else {
|
|
941
|
+
vErrors.push(err39);
|
|
942
|
+
}
|
|
943
|
+
errors++;
|
|
944
|
+
}
|
|
945
|
+
} else {
|
|
946
|
+
const err40 = { instancePath: instancePath + "/profiles/compute/" + key8.replace(/~/g, "~0").replace(/\//g, "~1") + "/resources/cpu/units", schemaPath: "#/properties/profiles/properties/compute/additionalProperties/properties/resources/properties/cpu/properties/units/oneOf/1/type", keyword: "type", params: { type: "number" }, message: "must be number" };
|
|
947
|
+
if (vErrors === null) {
|
|
948
|
+
vErrors = [err40];
|
|
949
|
+
} else {
|
|
950
|
+
vErrors.push(err40);
|
|
951
|
+
}
|
|
952
|
+
errors++;
|
|
953
|
+
}
|
|
954
|
+
var _valid0 = _errs50 === errors;
|
|
955
|
+
if (_valid0 && valid13) {
|
|
956
|
+
valid13 = false;
|
|
957
|
+
passing0 = [passing0, 1];
|
|
958
|
+
} else {
|
|
959
|
+
if (_valid0) {
|
|
960
|
+
valid13 = true;
|
|
961
|
+
passing0 = 1;
|
|
962
|
+
}
|
|
963
|
+
}
|
|
964
|
+
if (!valid13) {
|
|
965
|
+
const err41 = { instancePath: instancePath + "/profiles/compute/" + key8.replace(/~/g, "~0").replace(/\//g, "~1") + "/resources/cpu/units", schemaPath: "#/properties/profiles/properties/compute/additionalProperties/properties/resources/properties/cpu/properties/units/oneOf", keyword: "oneOf", params: { passingSchemas: passing0 }, message: "must match exactly one schema in oneOf" };
|
|
966
|
+
if (vErrors === null) {
|
|
967
|
+
vErrors = [err41];
|
|
968
|
+
} else {
|
|
969
|
+
vErrors.push(err41);
|
|
970
|
+
}
|
|
971
|
+
errors++;
|
|
972
|
+
} else {
|
|
973
|
+
errors = _errs45;
|
|
974
|
+
if (vErrors !== null) {
|
|
975
|
+
if (_errs45) {
|
|
976
|
+
vErrors.length = _errs45;
|
|
977
|
+
} else {
|
|
978
|
+
vErrors = null;
|
|
979
|
+
}
|
|
980
|
+
}
|
|
981
|
+
}
|
|
982
|
+
}
|
|
983
|
+
} else {
|
|
984
|
+
const err42 = { instancePath: instancePath + "/profiles/compute/" + key8.replace(/~/g, "~0").replace(/\//g, "~1") + "/resources/cpu", schemaPath: "#/properties/profiles/properties/compute/additionalProperties/properties/resources/properties/cpu/type", keyword: "type", params: { type: "object" }, message: "must be object" };
|
|
985
|
+
if (vErrors === null) {
|
|
986
|
+
vErrors = [err42];
|
|
987
|
+
} else {
|
|
988
|
+
vErrors.push(err42);
|
|
989
|
+
}
|
|
990
|
+
errors++;
|
|
991
|
+
}
|
|
992
|
+
}
|
|
993
|
+
if (data13.gpu !== void 0) {
|
|
994
|
+
let data17 = data13.gpu;
|
|
995
|
+
const _errs56 = errors;
|
|
996
|
+
let valid17 = true;
|
|
997
|
+
const _errs57 = errors;
|
|
998
|
+
if (data17 && typeof data17 == "object" && !Array.isArray(data17)) {
|
|
999
|
+
let missing0;
|
|
1000
|
+
if (data17.units === void 0 && (missing0 = "units")) {
|
|
1001
|
+
const err43 = {};
|
|
1002
|
+
if (vErrors === null) {
|
|
1003
|
+
vErrors = [err43];
|
|
1004
|
+
} else {
|
|
1005
|
+
vErrors.push(err43);
|
|
1006
|
+
}
|
|
1007
|
+
errors++;
|
|
1008
|
+
} else {
|
|
1009
|
+
if (data17.units !== void 0) {
|
|
1010
|
+
let data18 = data17.units;
|
|
1011
|
+
const _errs59 = errors;
|
|
1012
|
+
let valid19 = false;
|
|
1013
|
+
let passing1 = null;
|
|
1014
|
+
const _errs60 = errors;
|
|
1015
|
+
if (errors === _errs60) {
|
|
1016
|
+
if (typeof data18 == "number") {
|
|
1017
|
+
if (data18 <= 0 || isNaN(data18)) {
|
|
1018
|
+
const err44 = {};
|
|
1019
|
+
if (vErrors === null) {
|
|
1020
|
+
vErrors = [err44];
|
|
1021
|
+
} else {
|
|
1022
|
+
vErrors.push(err44);
|
|
1023
|
+
}
|
|
1024
|
+
errors++;
|
|
1025
|
+
}
|
|
1026
|
+
} else {
|
|
1027
|
+
const err45 = {};
|
|
1028
|
+
if (vErrors === null) {
|
|
1029
|
+
vErrors = [err45];
|
|
1030
|
+
} else {
|
|
1031
|
+
vErrors.push(err45);
|
|
1032
|
+
}
|
|
1033
|
+
errors++;
|
|
1034
|
+
}
|
|
1035
|
+
}
|
|
1036
|
+
var _valid2 = _errs60 === errors;
|
|
1037
|
+
if (_valid2) {
|
|
1038
|
+
valid19 = true;
|
|
1039
|
+
passing1 = 0;
|
|
1040
|
+
}
|
|
1041
|
+
const _errs62 = errors;
|
|
1042
|
+
if (typeof data18 !== "string") {
|
|
1043
|
+
const err46 = {};
|
|
1044
|
+
if (vErrors === null) {
|
|
1045
|
+
vErrors = [err46];
|
|
1046
|
+
} else {
|
|
1047
|
+
vErrors.push(err46);
|
|
1048
|
+
}
|
|
1049
|
+
errors++;
|
|
1050
|
+
}
|
|
1051
|
+
const _errs64 = errors;
|
|
1052
|
+
const _errs65 = errors;
|
|
1053
|
+
if (typeof data18 === "string") {
|
|
1054
|
+
if (!pattern6.test(data18)) {
|
|
1055
|
+
const err47 = {};
|
|
1056
|
+
if (vErrors === null) {
|
|
1057
|
+
vErrors = [err47];
|
|
1058
|
+
} else {
|
|
1059
|
+
vErrors.push(err47);
|
|
1060
|
+
}
|
|
1061
|
+
errors++;
|
|
1062
|
+
}
|
|
1063
|
+
}
|
|
1064
|
+
var valid20 = _errs65 === errors;
|
|
1065
|
+
if (valid20) {
|
|
1066
|
+
const err48 = {};
|
|
1067
|
+
if (vErrors === null) {
|
|
1068
|
+
vErrors = [err48];
|
|
1069
|
+
} else {
|
|
1070
|
+
vErrors.push(err48);
|
|
1071
|
+
}
|
|
1072
|
+
errors++;
|
|
1073
|
+
} else {
|
|
1074
|
+
errors = _errs64;
|
|
1075
|
+
if (vErrors !== null) {
|
|
1076
|
+
if (_errs64) {
|
|
1077
|
+
vErrors.length = _errs64;
|
|
1078
|
+
} else {
|
|
1079
|
+
vErrors = null;
|
|
1080
|
+
}
|
|
1081
|
+
}
|
|
1082
|
+
}
|
|
1083
|
+
var _valid2 = _errs62 === errors;
|
|
1084
|
+
if (_valid2 && valid19) {
|
|
1085
|
+
valid19 = false;
|
|
1086
|
+
passing1 = [passing1, 1];
|
|
1087
|
+
} else {
|
|
1088
|
+
if (_valid2) {
|
|
1089
|
+
valid19 = true;
|
|
1090
|
+
passing1 = 1;
|
|
1091
|
+
}
|
|
1092
|
+
}
|
|
1093
|
+
if (!valid19) {
|
|
1094
|
+
const err49 = {};
|
|
1095
|
+
if (vErrors === null) {
|
|
1096
|
+
vErrors = [err49];
|
|
1097
|
+
} else {
|
|
1098
|
+
vErrors.push(err49);
|
|
1099
|
+
}
|
|
1100
|
+
errors++;
|
|
1101
|
+
} else {
|
|
1102
|
+
errors = _errs59;
|
|
1103
|
+
if (vErrors !== null) {
|
|
1104
|
+
if (_errs59) {
|
|
1105
|
+
vErrors.length = _errs59;
|
|
1106
|
+
} else {
|
|
1107
|
+
vErrors = null;
|
|
1108
|
+
}
|
|
1109
|
+
}
|
|
1110
|
+
}
|
|
1111
|
+
}
|
|
1112
|
+
}
|
|
1113
|
+
}
|
|
1114
|
+
var _valid1 = _errs57 === errors;
|
|
1115
|
+
errors = _errs56;
|
|
1116
|
+
if (vErrors !== null) {
|
|
1117
|
+
if (_errs56) {
|
|
1118
|
+
vErrors.length = _errs56;
|
|
1119
|
+
} else {
|
|
1120
|
+
vErrors = null;
|
|
1121
|
+
}
|
|
1122
|
+
}
|
|
1123
|
+
if (_valid1) {
|
|
1124
|
+
const _errs66 = errors;
|
|
1125
|
+
if (data17 && typeof data17 == "object" && !Array.isArray(data17)) {
|
|
1126
|
+
if (data17.attributes === void 0) {
|
|
1127
|
+
const err50 = { instancePath: instancePath + "/profiles/compute/" + key8.replace(/~/g, "~0").replace(/\//g, "~1") + "/resources/gpu", schemaPath: "#/definitions/gpuUnitsGt0RequiresAttributes/then/required", keyword: "required", params: { missingProperty: "attributes" }, message: "must have required property 'attributes'" };
|
|
1128
|
+
if (vErrors === null) {
|
|
1129
|
+
vErrors = [err50];
|
|
1130
|
+
} else {
|
|
1131
|
+
vErrors.push(err50);
|
|
1132
|
+
}
|
|
1133
|
+
errors++;
|
|
1134
|
+
}
|
|
1135
|
+
}
|
|
1136
|
+
var _valid1 = _errs66 === errors;
|
|
1137
|
+
valid17 = _valid1;
|
|
1138
|
+
}
|
|
1139
|
+
if (!valid17) {
|
|
1140
|
+
const err51 = { instancePath: instancePath + "/profiles/compute/" + key8.replace(/~/g, "~0").replace(/\//g, "~1") + "/resources/gpu", schemaPath: "#/definitions/gpuUnitsGt0RequiresAttributes/if", keyword: "if", params: { failingKeyword: "then" }, message: 'must match "then" schema' };
|
|
1141
|
+
if (vErrors === null) {
|
|
1142
|
+
vErrors = [err51];
|
|
1143
|
+
} else {
|
|
1144
|
+
vErrors.push(err51);
|
|
1145
|
+
}
|
|
1146
|
+
errors++;
|
|
1147
|
+
}
|
|
1148
|
+
const _errs69 = errors;
|
|
1149
|
+
let valid22 = true;
|
|
1150
|
+
const _errs70 = errors;
|
|
1151
|
+
if (data17 && typeof data17 == "object" && !Array.isArray(data17)) {
|
|
1152
|
+
let missing1;
|
|
1153
|
+
if (data17.attributes === void 0 && (missing1 = "attributes")) {
|
|
1154
|
+
const err52 = {};
|
|
1155
|
+
if (vErrors === null) {
|
|
1156
|
+
vErrors = [err52];
|
|
1157
|
+
} else {
|
|
1158
|
+
vErrors.push(err52);
|
|
1159
|
+
}
|
|
1160
|
+
errors++;
|
|
1161
|
+
}
|
|
1162
|
+
}
|
|
1163
|
+
var _valid3 = _errs70 === errors;
|
|
1164
|
+
errors = _errs69;
|
|
1165
|
+
if (vErrors !== null) {
|
|
1166
|
+
if (_errs69) {
|
|
1167
|
+
vErrors.length = _errs69;
|
|
1168
|
+
} else {
|
|
1169
|
+
vErrors = null;
|
|
1170
|
+
}
|
|
1171
|
+
}
|
|
1172
|
+
if (_valid3) {
|
|
1173
|
+
const _errs71 = errors;
|
|
1174
|
+
if (data17 && typeof data17 == "object" && !Array.isArray(data17)) {
|
|
1175
|
+
if (data17.units === void 0) {
|
|
1176
|
+
const err53 = { instancePath: instancePath + "/profiles/compute/" + key8.replace(/~/g, "~0").replace(/\//g, "~1") + "/resources/gpu", schemaPath: "#/definitions/gpuAttributesRequireUnitsGt0/then/required", keyword: "required", params: { missingProperty: "units" }, message: "must have required property 'units'" };
|
|
1177
|
+
if (vErrors === null) {
|
|
1178
|
+
vErrors = [err53];
|
|
1179
|
+
} else {
|
|
1180
|
+
vErrors.push(err53);
|
|
1181
|
+
}
|
|
1182
|
+
errors++;
|
|
1183
|
+
}
|
|
1184
|
+
if (data17.units !== void 0) {
|
|
1185
|
+
let data19 = data17.units;
|
|
1186
|
+
const _errs73 = errors;
|
|
1187
|
+
let valid24 = false;
|
|
1188
|
+
let passing2 = null;
|
|
1189
|
+
const _errs74 = errors;
|
|
1190
|
+
if (typeof data19 == "number") {
|
|
1191
|
+
if (data19 <= 0 || isNaN(data19)) {
|
|
1192
|
+
const err54 = { instancePath: instancePath + "/profiles/compute/" + key8.replace(/~/g, "~0").replace(/\//g, "~1") + "/resources/gpu/units", schemaPath: "#/definitions/gpuAttributesRequireUnitsGt0/then/properties/units/oneOf/0/exclusiveMinimum", keyword: "exclusiveMinimum", params: { comparison: ">", limit: 0 }, message: "must be > 0" };
|
|
1193
|
+
if (vErrors === null) {
|
|
1194
|
+
vErrors = [err54];
|
|
1195
|
+
} else {
|
|
1196
|
+
vErrors.push(err54);
|
|
1197
|
+
}
|
|
1198
|
+
errors++;
|
|
1199
|
+
}
|
|
1200
|
+
} else {
|
|
1201
|
+
const err55 = { instancePath: instancePath + "/profiles/compute/" + key8.replace(/~/g, "~0").replace(/\//g, "~1") + "/resources/gpu/units", schemaPath: "#/definitions/gpuAttributesRequireUnitsGt0/then/properties/units/oneOf/0/type", keyword: "type", params: { type: "number" }, message: "must be number" };
|
|
1202
|
+
if (vErrors === null) {
|
|
1203
|
+
vErrors = [err55];
|
|
1204
|
+
} else {
|
|
1205
|
+
vErrors.push(err55);
|
|
758
1206
|
}
|
|
1207
|
+
errors++;
|
|
759
1208
|
}
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
1209
|
+
var _valid4 = _errs74 === errors;
|
|
1210
|
+
if (_valid4) {
|
|
1211
|
+
valid24 = true;
|
|
1212
|
+
passing2 = 0;
|
|
1213
|
+
}
|
|
1214
|
+
const _errs76 = errors;
|
|
1215
|
+
if (typeof data19 !== "string") {
|
|
1216
|
+
const err56 = { instancePath: instancePath + "/profiles/compute/" + key8.replace(/~/g, "~0").replace(/\//g, "~1") + "/resources/gpu/units", schemaPath: "#/definitions/gpuAttributesRequireUnitsGt0/then/properties/units/oneOf/1/type", keyword: "type", params: { type: "string" }, message: "must be string" };
|
|
764
1217
|
if (vErrors === null) {
|
|
765
|
-
vErrors = [
|
|
1218
|
+
vErrors = [err56];
|
|
766
1219
|
} else {
|
|
767
|
-
vErrors.push(
|
|
1220
|
+
vErrors.push(err56);
|
|
768
1221
|
}
|
|
769
1222
|
errors++;
|
|
770
1223
|
}
|
|
771
|
-
|
|
772
|
-
const
|
|
773
|
-
if (
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
1224
|
+
const _errs78 = errors;
|
|
1225
|
+
const _errs79 = errors;
|
|
1226
|
+
if (typeof data19 === "string") {
|
|
1227
|
+
if (!pattern6.test(data19)) {
|
|
1228
|
+
const err57 = {};
|
|
1229
|
+
if (vErrors === null) {
|
|
1230
|
+
vErrors = [err57];
|
|
1231
|
+
} else {
|
|
1232
|
+
vErrors.push(err57);
|
|
1233
|
+
}
|
|
1234
|
+
errors++;
|
|
1235
|
+
}
|
|
777
1236
|
}
|
|
778
|
-
errors
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
if (_valid0) {
|
|
782
|
-
valid13 = true;
|
|
783
|
-
passing0 = 0;
|
|
784
|
-
}
|
|
785
|
-
const _errs50 = errors;
|
|
786
|
-
if (typeof data16 == "number") {
|
|
787
|
-
if (data16 <= 0 || isNaN(data16)) {
|
|
788
|
-
const err39 = { instancePath: instancePath + "/profiles/compute/" + key8.replace(/~/g, "~0").replace(/\//g, "~1") + "/resources/cpu/units", schemaPath: "#/properties/profiles/properties/compute/additionalProperties/properties/resources/properties/cpu/properties/units/oneOf/1/exclusiveMinimum", keyword: "exclusiveMinimum", params: { comparison: ">", limit: 0 }, message: "must be > 0" };
|
|
1237
|
+
var valid25 = _errs79 === errors;
|
|
1238
|
+
if (valid25) {
|
|
1239
|
+
const err58 = { instancePath: instancePath + "/profiles/compute/" + key8.replace(/~/g, "~0").replace(/\//g, "~1") + "/resources/gpu/units", schemaPath: "#/definitions/gpuAttributesRequireUnitsGt0/then/properties/units/oneOf/1/not", keyword: "not", params: {}, message: "must NOT be valid" };
|
|
789
1240
|
if (vErrors === null) {
|
|
790
|
-
vErrors = [
|
|
1241
|
+
vErrors = [err58];
|
|
791
1242
|
} else {
|
|
792
|
-
vErrors.push(
|
|
1243
|
+
vErrors.push(err58);
|
|
793
1244
|
}
|
|
794
1245
|
errors++;
|
|
795
|
-
}
|
|
796
|
-
} else {
|
|
797
|
-
const err40 = { instancePath: instancePath + "/profiles/compute/" + key8.replace(/~/g, "~0").replace(/\//g, "~1") + "/resources/cpu/units", schemaPath: "#/properties/profiles/properties/compute/additionalProperties/properties/resources/properties/cpu/properties/units/oneOf/1/type", keyword: "type", params: { type: "number" }, message: "must be number" };
|
|
798
|
-
if (vErrors === null) {
|
|
799
|
-
vErrors = [err40];
|
|
800
1246
|
} else {
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
} else {
|
|
810
|
-
if (_valid0) {
|
|
811
|
-
valid13 = true;
|
|
812
|
-
passing0 = 1;
|
|
1247
|
+
errors = _errs78;
|
|
1248
|
+
if (vErrors !== null) {
|
|
1249
|
+
if (_errs78) {
|
|
1250
|
+
vErrors.length = _errs78;
|
|
1251
|
+
} else {
|
|
1252
|
+
vErrors = null;
|
|
1253
|
+
}
|
|
1254
|
+
}
|
|
813
1255
|
}
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
vErrors = [err41];
|
|
1256
|
+
var _valid4 = _errs76 === errors;
|
|
1257
|
+
if (_valid4 && valid24) {
|
|
1258
|
+
valid24 = false;
|
|
1259
|
+
passing2 = [passing2, 1];
|
|
819
1260
|
} else {
|
|
820
|
-
|
|
1261
|
+
if (_valid4) {
|
|
1262
|
+
valid24 = true;
|
|
1263
|
+
passing2 = 1;
|
|
1264
|
+
}
|
|
821
1265
|
}
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
if (_errs45) {
|
|
827
|
-
vErrors.length = _errs45;
|
|
1266
|
+
if (!valid24) {
|
|
1267
|
+
const err59 = { instancePath: instancePath + "/profiles/compute/" + key8.replace(/~/g, "~0").replace(/\//g, "~1") + "/resources/gpu/units", schemaPath: "#/definitions/gpuAttributesRequireUnitsGt0/then/properties/units/oneOf", keyword: "oneOf", params: { passingSchemas: passing2 }, message: "must match exactly one schema in oneOf" };
|
|
1268
|
+
if (vErrors === null) {
|
|
1269
|
+
vErrors = [err59];
|
|
828
1270
|
} else {
|
|
829
|
-
vErrors
|
|
1271
|
+
vErrors.push(err59);
|
|
1272
|
+
}
|
|
1273
|
+
errors++;
|
|
1274
|
+
} else {
|
|
1275
|
+
errors = _errs73;
|
|
1276
|
+
if (vErrors !== null) {
|
|
1277
|
+
if (_errs73) {
|
|
1278
|
+
vErrors.length = _errs73;
|
|
1279
|
+
} else {
|
|
1280
|
+
vErrors = null;
|
|
1281
|
+
}
|
|
830
1282
|
}
|
|
831
1283
|
}
|
|
832
1284
|
}
|
|
833
1285
|
}
|
|
834
|
-
|
|
835
|
-
|
|
1286
|
+
var _valid3 = _errs71 === errors;
|
|
1287
|
+
valid22 = _valid3;
|
|
1288
|
+
}
|
|
1289
|
+
if (!valid22) {
|
|
1290
|
+
const err60 = { instancePath: instancePath + "/profiles/compute/" + key8.replace(/~/g, "~0").replace(/\//g, "~1") + "/resources/gpu", schemaPath: "#/definitions/gpuAttributesRequireUnitsGt0/if", keyword: "if", params: { failingKeyword: "then" }, message: 'must match "then" schema' };
|
|
836
1291
|
if (vErrors === null) {
|
|
837
|
-
vErrors = [
|
|
1292
|
+
vErrors = [err60];
|
|
838
1293
|
} else {
|
|
839
|
-
vErrors.push(
|
|
1294
|
+
vErrors.push(err60);
|
|
840
1295
|
}
|
|
841
1296
|
errors++;
|
|
842
1297
|
}
|
|
843
|
-
}
|
|
844
|
-
if (data13.gpu !== void 0) {
|
|
845
|
-
let data17 = data13.gpu;
|
|
846
1298
|
if (data17 && typeof data17 == "object" && !Array.isArray(data17)) {
|
|
847
|
-
if (data17.units === void 0) {
|
|
848
|
-
const err43 = { instancePath: instancePath + "/profiles/compute/" + key8.replace(/~/g, "~0").replace(/\//g, "~1") + "/resources/gpu", schemaPath: "#/properties/profiles/properties/compute/additionalProperties/properties/resources/properties/gpu/required", keyword: "required", params: { missingProperty: "units" }, message: "must have required property 'units'" };
|
|
849
|
-
if (vErrors === null) {
|
|
850
|
-
vErrors = [err43];
|
|
851
|
-
} else {
|
|
852
|
-
vErrors.push(err43);
|
|
853
|
-
}
|
|
854
|
-
errors++;
|
|
855
|
-
}
|
|
856
1299
|
for (const key12 in data17) {
|
|
857
1300
|
if (!(key12 === "attributes" || key12 === "units")) {
|
|
858
|
-
const
|
|
1301
|
+
const err61 = { instancePath: instancePath + "/profiles/compute/" + key8.replace(/~/g, "~0").replace(/\//g, "~1") + "/resources/gpu", schemaPath: "#/properties/profiles/properties/compute/additionalProperties/properties/resources/properties/gpu/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key12 }, message: "must NOT have additional properties" };
|
|
859
1302
|
if (vErrors === null) {
|
|
860
|
-
vErrors = [
|
|
1303
|
+
vErrors = [err61];
|
|
861
1304
|
} else {
|
|
862
|
-
vErrors.push(
|
|
1305
|
+
vErrors.push(err61);
|
|
863
1306
|
}
|
|
864
1307
|
errors++;
|
|
865
1308
|
}
|
|
866
1309
|
}
|
|
867
1310
|
if (data17.attributes !== void 0) {
|
|
868
|
-
let
|
|
869
|
-
if (
|
|
870
|
-
for (const key13 in
|
|
1311
|
+
let data20 = data17.attributes;
|
|
1312
|
+
if (data20 && typeof data20 == "object" && !Array.isArray(data20)) {
|
|
1313
|
+
for (const key13 in data20) {
|
|
871
1314
|
if (!(key13 === "vendor")) {
|
|
872
|
-
const
|
|
1315
|
+
const err62 = { instancePath: instancePath + "/profiles/compute/" + key8.replace(/~/g, "~0").replace(/\//g, "~1") + "/resources/gpu/attributes", schemaPath: "#/properties/profiles/properties/compute/additionalProperties/properties/resources/properties/gpu/properties/attributes/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key13 }, message: "must NOT have additional properties" };
|
|
873
1316
|
if (vErrors === null) {
|
|
874
|
-
vErrors = [
|
|
1317
|
+
vErrors = [err62];
|
|
875
1318
|
} else {
|
|
876
|
-
vErrors.push(
|
|
1319
|
+
vErrors.push(err62);
|
|
877
1320
|
}
|
|
878
1321
|
errors++;
|
|
879
1322
|
}
|
|
880
1323
|
}
|
|
881
|
-
if (
|
|
882
|
-
let
|
|
883
|
-
if (
|
|
884
|
-
if (Object.keys(
|
|
885
|
-
const
|
|
1324
|
+
if (data20.vendor !== void 0) {
|
|
1325
|
+
let data21 = data20.vendor;
|
|
1326
|
+
if (data21 && typeof data21 == "object" && !Array.isArray(data21)) {
|
|
1327
|
+
if (Object.keys(data21).length < 1) {
|
|
1328
|
+
const err63 = { instancePath: instancePath + "/profiles/compute/" + key8.replace(/~/g, "~0").replace(/\//g, "~1") + "/resources/gpu/attributes/vendor", schemaPath: "#/properties/profiles/properties/compute/additionalProperties/properties/resources/properties/gpu/properties/attributes/properties/vendor/minProperties", keyword: "minProperties", params: { limit: 1 }, message: "must NOT have fewer than 1 properties" };
|
|
886
1329
|
if (vErrors === null) {
|
|
887
|
-
vErrors = [
|
|
1330
|
+
vErrors = [err63];
|
|
888
1331
|
} else {
|
|
889
|
-
vErrors.push(
|
|
1332
|
+
vErrors.push(err63);
|
|
890
1333
|
}
|
|
891
1334
|
errors++;
|
|
892
1335
|
}
|
|
893
|
-
for (const key14 in
|
|
1336
|
+
for (const key14 in data21) {
|
|
894
1337
|
if (!(key14 === "nvidia")) {
|
|
895
|
-
const
|
|
1338
|
+
const err64 = { instancePath: instancePath + "/profiles/compute/" + key8.replace(/~/g, "~0").replace(/\//g, "~1") + "/resources/gpu/attributes/vendor", schemaPath: "#/properties/profiles/properties/compute/additionalProperties/properties/resources/properties/gpu/properties/attributes/properties/vendor/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key14 }, message: "must NOT have additional properties" };
|
|
896
1339
|
if (vErrors === null) {
|
|
897
|
-
vErrors = [
|
|
1340
|
+
vErrors = [err64];
|
|
898
1341
|
} else {
|
|
899
|
-
vErrors.push(
|
|
1342
|
+
vErrors.push(err64);
|
|
900
1343
|
}
|
|
901
1344
|
errors++;
|
|
902
1345
|
}
|
|
903
1346
|
}
|
|
904
|
-
if (
|
|
905
|
-
let
|
|
906
|
-
const
|
|
907
|
-
let
|
|
908
|
-
let
|
|
909
|
-
const
|
|
910
|
-
if (Array.isArray(
|
|
911
|
-
const len1 =
|
|
1347
|
+
if (data21.nvidia !== void 0) {
|
|
1348
|
+
let data22 = data21.nvidia;
|
|
1349
|
+
const _errs88 = errors;
|
|
1350
|
+
let valid29 = false;
|
|
1351
|
+
let passing3 = null;
|
|
1352
|
+
const _errs89 = errors;
|
|
1353
|
+
if (Array.isArray(data22)) {
|
|
1354
|
+
const len1 = data22.length;
|
|
912
1355
|
for (let i1 = 0; i1 < len1; i1++) {
|
|
913
|
-
let
|
|
914
|
-
if (
|
|
915
|
-
for (const key15 in
|
|
1356
|
+
let data23 = data22[i1];
|
|
1357
|
+
if (data23 && typeof data23 == "object" && !Array.isArray(data23)) {
|
|
1358
|
+
for (const key15 in data23) {
|
|
916
1359
|
if (!(key15 === "interface" || key15 === "model" || key15 === "ram")) {
|
|
917
|
-
const
|
|
1360
|
+
const err65 = { instancePath: instancePath + "/profiles/compute/" + key8.replace(/~/g, "~0").replace(/\//g, "~1") + "/resources/gpu/attributes/vendor/nvidia/" + i1, schemaPath: "#/properties/profiles/properties/compute/additionalProperties/properties/resources/properties/gpu/properties/attributes/properties/vendor/properties/nvidia/oneOf/0/items/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key15 }, message: "must NOT have additional properties" };
|
|
918
1361
|
if (vErrors === null) {
|
|
919
|
-
vErrors = [
|
|
1362
|
+
vErrors = [err65];
|
|
920
1363
|
} else {
|
|
921
|
-
vErrors.push(
|
|
1364
|
+
vErrors.push(err65);
|
|
922
1365
|
}
|
|
923
1366
|
errors++;
|
|
924
1367
|
}
|
|
925
1368
|
}
|
|
926
|
-
if (
|
|
927
|
-
let
|
|
928
|
-
if (typeof
|
|
929
|
-
const
|
|
1369
|
+
if (data23.interface !== void 0) {
|
|
1370
|
+
let data24 = data23.interface;
|
|
1371
|
+
if (typeof data24 !== "string") {
|
|
1372
|
+
const err66 = { instancePath: instancePath + "/profiles/compute/" + key8.replace(/~/g, "~0").replace(/\//g, "~1") + "/resources/gpu/attributes/vendor/nvidia/" + i1 + "/interface", schemaPath: "#/properties/profiles/properties/compute/additionalProperties/properties/resources/properties/gpu/properties/attributes/properties/vendor/properties/nvidia/oneOf/0/items/properties/interface/type", keyword: "type", params: { type: "string" }, message: "must be string" };
|
|
930
1373
|
if (vErrors === null) {
|
|
931
|
-
vErrors = [
|
|
1374
|
+
vErrors = [err66];
|
|
932
1375
|
} else {
|
|
933
|
-
vErrors.push(
|
|
1376
|
+
vErrors.push(err66);
|
|
934
1377
|
}
|
|
935
1378
|
errors++;
|
|
936
1379
|
}
|
|
937
|
-
if (!(
|
|
938
|
-
const
|
|
1380
|
+
if (!(data24 === "pcie" || data24 === "sxm")) {
|
|
1381
|
+
const err67 = { instancePath: instancePath + "/profiles/compute/" + key8.replace(/~/g, "~0").replace(/\//g, "~1") + "/resources/gpu/attributes/vendor/nvidia/" + i1 + "/interface", schemaPath: "#/properties/profiles/properties/compute/additionalProperties/properties/resources/properties/gpu/properties/attributes/properties/vendor/properties/nvidia/oneOf/0/items/properties/interface/enum", keyword: "enum", params: { allowedValues: schema12.properties.profiles.properties.compute.additionalProperties.properties.resources.properties.gpu.properties.attributes.properties.vendor.properties.nvidia.oneOf[0].items.properties.interface.enum }, message: "must be equal to one of the allowed values" };
|
|
939
1382
|
if (vErrors === null) {
|
|
940
|
-
vErrors = [
|
|
1383
|
+
vErrors = [err67];
|
|
941
1384
|
} else {
|
|
942
|
-
vErrors.push(
|
|
1385
|
+
vErrors.push(err67);
|
|
943
1386
|
}
|
|
944
1387
|
errors++;
|
|
945
1388
|
}
|
|
946
1389
|
}
|
|
947
|
-
if (
|
|
948
|
-
if (typeof
|
|
949
|
-
const
|
|
1390
|
+
if (data23.model !== void 0) {
|
|
1391
|
+
if (typeof data23.model !== "string") {
|
|
1392
|
+
const err68 = { instancePath: instancePath + "/profiles/compute/" + key8.replace(/~/g, "~0").replace(/\//g, "~1") + "/resources/gpu/attributes/vendor/nvidia/" + i1 + "/model", schemaPath: "#/properties/profiles/properties/compute/additionalProperties/properties/resources/properties/gpu/properties/attributes/properties/vendor/properties/nvidia/oneOf/0/items/properties/model/type", keyword: "type", params: { type: "string" }, message: "must be string" };
|
|
950
1393
|
if (vErrors === null) {
|
|
951
|
-
vErrors = [
|
|
1394
|
+
vErrors = [err68];
|
|
952
1395
|
} else {
|
|
953
|
-
vErrors.push(
|
|
1396
|
+
vErrors.push(err68);
|
|
954
1397
|
}
|
|
955
1398
|
errors++;
|
|
956
1399
|
}
|
|
957
1400
|
}
|
|
958
|
-
if (
|
|
959
|
-
if (typeof
|
|
960
|
-
const
|
|
1401
|
+
if (data23.ram !== void 0) {
|
|
1402
|
+
if (typeof data23.ram !== "string") {
|
|
1403
|
+
const err69 = { instancePath: instancePath + "/profiles/compute/" + key8.replace(/~/g, "~0").replace(/\//g, "~1") + "/resources/gpu/attributes/vendor/nvidia/" + i1 + "/ram", schemaPath: "#/properties/profiles/properties/compute/additionalProperties/properties/resources/properties/gpu/properties/attributes/properties/vendor/properties/nvidia/oneOf/0/items/properties/ram/type", keyword: "type", params: { type: "string" }, message: "must be string" };
|
|
961
1404
|
if (vErrors === null) {
|
|
962
|
-
vErrors = [
|
|
1405
|
+
vErrors = [err69];
|
|
963
1406
|
} else {
|
|
964
|
-
vErrors.push(
|
|
1407
|
+
vErrors.push(err69);
|
|
965
1408
|
}
|
|
966
1409
|
errors++;
|
|
967
1410
|
}
|
|
968
1411
|
}
|
|
969
1412
|
} else {
|
|
970
|
-
const
|
|
1413
|
+
const err70 = { instancePath: instancePath + "/profiles/compute/" + key8.replace(/~/g, "~0").replace(/\//g, "~1") + "/resources/gpu/attributes/vendor/nvidia/" + i1, schemaPath: "#/properties/profiles/properties/compute/additionalProperties/properties/resources/properties/gpu/properties/attributes/properties/vendor/properties/nvidia/oneOf/0/items/type", keyword: "type", params: { type: "object" }, message: "must be object" };
|
|
971
1414
|
if (vErrors === null) {
|
|
972
|
-
vErrors = [
|
|
1415
|
+
vErrors = [err70];
|
|
973
1416
|
} else {
|
|
974
|
-
vErrors.push(
|
|
1417
|
+
vErrors.push(err70);
|
|
975
1418
|
}
|
|
976
1419
|
errors++;
|
|
977
1420
|
}
|
|
978
1421
|
}
|
|
979
1422
|
} else {
|
|
980
|
-
const
|
|
1423
|
+
const err71 = { instancePath: instancePath + "/profiles/compute/" + key8.replace(/~/g, "~0").replace(/\//g, "~1") + "/resources/gpu/attributes/vendor/nvidia", schemaPath: "#/properties/profiles/properties/compute/additionalProperties/properties/resources/properties/gpu/properties/attributes/properties/vendor/properties/nvidia/oneOf/0/type", keyword: "type", params: { type: "array" }, message: "must be array" };
|
|
981
1424
|
if (vErrors === null) {
|
|
982
|
-
vErrors = [
|
|
1425
|
+
vErrors = [err71];
|
|
983
1426
|
} else {
|
|
984
|
-
vErrors.push(
|
|
1427
|
+
vErrors.push(err71);
|
|
985
1428
|
}
|
|
986
1429
|
errors++;
|
|
987
1430
|
}
|
|
988
|
-
var
|
|
989
|
-
if (
|
|
990
|
-
|
|
991
|
-
|
|
1431
|
+
var _valid5 = _errs89 === errors;
|
|
1432
|
+
if (_valid5) {
|
|
1433
|
+
valid29 = true;
|
|
1434
|
+
passing3 = 0;
|
|
992
1435
|
}
|
|
993
|
-
const
|
|
994
|
-
if (
|
|
995
|
-
const
|
|
1436
|
+
const _errs100 = errors;
|
|
1437
|
+
if (data22 !== null) {
|
|
1438
|
+
const err72 = { instancePath: instancePath + "/profiles/compute/" + key8.replace(/~/g, "~0").replace(/\//g, "~1") + "/resources/gpu/attributes/vendor/nvidia", schemaPath: "#/properties/profiles/properties/compute/additionalProperties/properties/resources/properties/gpu/properties/attributes/properties/vendor/properties/nvidia/oneOf/1/type", keyword: "type", params: { type: "null" }, message: "must be null" };
|
|
996
1439
|
if (vErrors === null) {
|
|
997
|
-
vErrors = [
|
|
1440
|
+
vErrors = [err72];
|
|
998
1441
|
} else {
|
|
999
|
-
vErrors.push(
|
|
1442
|
+
vErrors.push(err72);
|
|
1000
1443
|
}
|
|
1001
1444
|
errors++;
|
|
1002
1445
|
}
|
|
1003
|
-
var
|
|
1004
|
-
if (
|
|
1005
|
-
|
|
1006
|
-
|
|
1446
|
+
var _valid5 = _errs100 === errors;
|
|
1447
|
+
if (_valid5 && valid29) {
|
|
1448
|
+
valid29 = false;
|
|
1449
|
+
passing3 = [passing3, 1];
|
|
1007
1450
|
} else {
|
|
1008
|
-
if (
|
|
1009
|
-
|
|
1010
|
-
|
|
1451
|
+
if (_valid5) {
|
|
1452
|
+
valid29 = true;
|
|
1453
|
+
passing3 = 1;
|
|
1011
1454
|
}
|
|
1012
1455
|
}
|
|
1013
|
-
if (!
|
|
1014
|
-
const
|
|
1456
|
+
if (!valid29) {
|
|
1457
|
+
const err73 = { instancePath: instancePath + "/profiles/compute/" + key8.replace(/~/g, "~0").replace(/\//g, "~1") + "/resources/gpu/attributes/vendor/nvidia", schemaPath: "#/properties/profiles/properties/compute/additionalProperties/properties/resources/properties/gpu/properties/attributes/properties/vendor/properties/nvidia/oneOf", keyword: "oneOf", params: { passingSchemas: passing3 }, message: "must match exactly one schema in oneOf" };
|
|
1015
1458
|
if (vErrors === null) {
|
|
1016
|
-
vErrors = [
|
|
1459
|
+
vErrors = [err73];
|
|
1017
1460
|
} else {
|
|
1018
|
-
vErrors.push(
|
|
1461
|
+
vErrors.push(err73);
|
|
1019
1462
|
}
|
|
1020
1463
|
errors++;
|
|
1021
1464
|
} else {
|
|
1022
|
-
errors =
|
|
1465
|
+
errors = _errs88;
|
|
1023
1466
|
if (vErrors !== null) {
|
|
1024
|
-
if (
|
|
1025
|
-
vErrors.length =
|
|
1467
|
+
if (_errs88) {
|
|
1468
|
+
vErrors.length = _errs88;
|
|
1026
1469
|
} else {
|
|
1027
1470
|
vErrors = null;
|
|
1028
1471
|
}
|
|
@@ -1030,78 +1473,78 @@ function validate11(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
1030
1473
|
}
|
|
1031
1474
|
}
|
|
1032
1475
|
} else {
|
|
1033
|
-
const
|
|
1476
|
+
const err74 = { instancePath: instancePath + "/profiles/compute/" + key8.replace(/~/g, "~0").replace(/\//g, "~1") + "/resources/gpu/attributes/vendor", schemaPath: "#/properties/profiles/properties/compute/additionalProperties/properties/resources/properties/gpu/properties/attributes/properties/vendor/type", keyword: "type", params: { type: "object" }, message: "must be object" };
|
|
1034
1477
|
if (vErrors === null) {
|
|
1035
|
-
vErrors = [
|
|
1478
|
+
vErrors = [err74];
|
|
1036
1479
|
} else {
|
|
1037
|
-
vErrors.push(
|
|
1480
|
+
vErrors.push(err74);
|
|
1038
1481
|
}
|
|
1039
1482
|
errors++;
|
|
1040
1483
|
}
|
|
1041
1484
|
}
|
|
1042
1485
|
} else {
|
|
1043
|
-
const
|
|
1486
|
+
const err75 = { instancePath: instancePath + "/profiles/compute/" + key8.replace(/~/g, "~0").replace(/\//g, "~1") + "/resources/gpu/attributes", schemaPath: "#/properties/profiles/properties/compute/additionalProperties/properties/resources/properties/gpu/properties/attributes/type", keyword: "type", params: { type: "object" }, message: "must be object" };
|
|
1044
1487
|
if (vErrors === null) {
|
|
1045
|
-
vErrors = [
|
|
1488
|
+
vErrors = [err75];
|
|
1046
1489
|
} else {
|
|
1047
|
-
vErrors.push(
|
|
1490
|
+
vErrors.push(err75);
|
|
1048
1491
|
}
|
|
1049
1492
|
errors++;
|
|
1050
1493
|
}
|
|
1051
1494
|
}
|
|
1052
1495
|
if (data17.units !== void 0) {
|
|
1053
|
-
let
|
|
1054
|
-
const
|
|
1055
|
-
let
|
|
1056
|
-
let
|
|
1057
|
-
const
|
|
1058
|
-
if (typeof
|
|
1059
|
-
const
|
|
1496
|
+
let data27 = data17.units;
|
|
1497
|
+
const _errs103 = errors;
|
|
1498
|
+
let valid33 = false;
|
|
1499
|
+
let passing4 = null;
|
|
1500
|
+
const _errs104 = errors;
|
|
1501
|
+
if (typeof data27 !== "string") {
|
|
1502
|
+
const err76 = { instancePath: instancePath + "/profiles/compute/" + key8.replace(/~/g, "~0").replace(/\//g, "~1") + "/resources/gpu/units", schemaPath: "#/properties/profiles/properties/compute/additionalProperties/properties/resources/properties/gpu/properties/units/oneOf/0/type", keyword: "type", params: { type: "string" }, message: "must be string" };
|
|
1060
1503
|
if (vErrors === null) {
|
|
1061
|
-
vErrors = [
|
|
1504
|
+
vErrors = [err76];
|
|
1062
1505
|
} else {
|
|
1063
|
-
vErrors.push(
|
|
1506
|
+
vErrors.push(err76);
|
|
1064
1507
|
}
|
|
1065
1508
|
errors++;
|
|
1066
1509
|
}
|
|
1067
|
-
var
|
|
1068
|
-
if (
|
|
1069
|
-
|
|
1070
|
-
|
|
1510
|
+
var _valid6 = _errs104 === errors;
|
|
1511
|
+
if (_valid6) {
|
|
1512
|
+
valid33 = true;
|
|
1513
|
+
passing4 = 0;
|
|
1071
1514
|
}
|
|
1072
|
-
const
|
|
1073
|
-
if (!(typeof
|
|
1074
|
-
const
|
|
1515
|
+
const _errs106 = errors;
|
|
1516
|
+
if (!(typeof data27 == "number")) {
|
|
1517
|
+
const err77 = { instancePath: instancePath + "/profiles/compute/" + key8.replace(/~/g, "~0").replace(/\//g, "~1") + "/resources/gpu/units", schemaPath: "#/properties/profiles/properties/compute/additionalProperties/properties/resources/properties/gpu/properties/units/oneOf/1/type", keyword: "type", params: { type: "number" }, message: "must be number" };
|
|
1075
1518
|
if (vErrors === null) {
|
|
1076
|
-
vErrors = [
|
|
1519
|
+
vErrors = [err77];
|
|
1077
1520
|
} else {
|
|
1078
|
-
vErrors.push(
|
|
1521
|
+
vErrors.push(err77);
|
|
1079
1522
|
}
|
|
1080
1523
|
errors++;
|
|
1081
1524
|
}
|
|
1082
|
-
var
|
|
1083
|
-
if (
|
|
1084
|
-
|
|
1085
|
-
|
|
1525
|
+
var _valid6 = _errs106 === errors;
|
|
1526
|
+
if (_valid6 && valid33) {
|
|
1527
|
+
valid33 = false;
|
|
1528
|
+
passing4 = [passing4, 1];
|
|
1086
1529
|
} else {
|
|
1087
|
-
if (
|
|
1088
|
-
|
|
1089
|
-
|
|
1530
|
+
if (_valid6) {
|
|
1531
|
+
valid33 = true;
|
|
1532
|
+
passing4 = 1;
|
|
1090
1533
|
}
|
|
1091
1534
|
}
|
|
1092
|
-
if (!
|
|
1093
|
-
const
|
|
1535
|
+
if (!valid33) {
|
|
1536
|
+
const err78 = { instancePath: instancePath + "/profiles/compute/" + key8.replace(/~/g, "~0").replace(/\//g, "~1") + "/resources/gpu/units", schemaPath: "#/properties/profiles/properties/compute/additionalProperties/properties/resources/properties/gpu/properties/units/oneOf", keyword: "oneOf", params: { passingSchemas: passing4 }, message: "must match exactly one schema in oneOf" };
|
|
1094
1537
|
if (vErrors === null) {
|
|
1095
|
-
vErrors = [
|
|
1538
|
+
vErrors = [err78];
|
|
1096
1539
|
} else {
|
|
1097
|
-
vErrors.push(
|
|
1540
|
+
vErrors.push(err78);
|
|
1098
1541
|
}
|
|
1099
1542
|
errors++;
|
|
1100
1543
|
} else {
|
|
1101
|
-
errors =
|
|
1544
|
+
errors = _errs103;
|
|
1102
1545
|
if (vErrors !== null) {
|
|
1103
|
-
if (
|
|
1104
|
-
vErrors.length =
|
|
1546
|
+
if (_errs103) {
|
|
1547
|
+
vErrors.length = _errs103;
|
|
1105
1548
|
} else {
|
|
1106
1549
|
vErrors = null;
|
|
1107
1550
|
}
|
|
@@ -1109,115 +1552,115 @@ function validate11(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
1109
1552
|
}
|
|
1110
1553
|
}
|
|
1111
1554
|
} else {
|
|
1112
|
-
const
|
|
1555
|
+
const err79 = { instancePath: instancePath + "/profiles/compute/" + key8.replace(/~/g, "~0").replace(/\//g, "~1") + "/resources/gpu", schemaPath: "#/properties/profiles/properties/compute/additionalProperties/properties/resources/properties/gpu/type", keyword: "type", params: { type: "object" }, message: "must be object" };
|
|
1113
1556
|
if (vErrors === null) {
|
|
1114
|
-
vErrors = [
|
|
1557
|
+
vErrors = [err79];
|
|
1115
1558
|
} else {
|
|
1116
|
-
vErrors.push(
|
|
1559
|
+
vErrors.push(err79);
|
|
1117
1560
|
}
|
|
1118
1561
|
errors++;
|
|
1119
1562
|
}
|
|
1120
1563
|
}
|
|
1121
1564
|
if (data13.memory !== void 0) {
|
|
1122
|
-
let
|
|
1123
|
-
if (
|
|
1124
|
-
if (
|
|
1125
|
-
const
|
|
1565
|
+
let data28 = data13.memory;
|
|
1566
|
+
if (data28 && typeof data28 == "object" && !Array.isArray(data28)) {
|
|
1567
|
+
if (data28.size === void 0) {
|
|
1568
|
+
const err80 = { instancePath: instancePath + "/profiles/compute/" + key8.replace(/~/g, "~0").replace(/\//g, "~1") + "/resources/memory", schemaPath: "#/properties/profiles/properties/compute/additionalProperties/properties/resources/properties/memory/required", keyword: "required", params: { missingProperty: "size" }, message: "must have required property 'size'" };
|
|
1126
1569
|
if (vErrors === null) {
|
|
1127
|
-
vErrors = [
|
|
1570
|
+
vErrors = [err80];
|
|
1128
1571
|
} else {
|
|
1129
|
-
vErrors.push(
|
|
1572
|
+
vErrors.push(err80);
|
|
1130
1573
|
}
|
|
1131
1574
|
errors++;
|
|
1132
1575
|
}
|
|
1133
|
-
for (const key16 in
|
|
1576
|
+
for (const key16 in data28) {
|
|
1134
1577
|
if (!(key16 === "size")) {
|
|
1135
|
-
const
|
|
1578
|
+
const err81 = { instancePath: instancePath + "/profiles/compute/" + key8.replace(/~/g, "~0").replace(/\//g, "~1") + "/resources/memory", schemaPath: "#/properties/profiles/properties/compute/additionalProperties/properties/resources/properties/memory/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key16 }, message: "must NOT have additional properties" };
|
|
1136
1579
|
if (vErrors === null) {
|
|
1137
|
-
vErrors = [
|
|
1580
|
+
vErrors = [err81];
|
|
1138
1581
|
} else {
|
|
1139
|
-
vErrors.push(
|
|
1582
|
+
vErrors.push(err81);
|
|
1140
1583
|
}
|
|
1141
1584
|
errors++;
|
|
1142
1585
|
}
|
|
1143
1586
|
}
|
|
1144
|
-
if (
|
|
1145
|
-
if (typeof
|
|
1146
|
-
const
|
|
1587
|
+
if (data28.size !== void 0) {
|
|
1588
|
+
if (typeof data28.size !== "string") {
|
|
1589
|
+
const err82 = { instancePath: instancePath + "/profiles/compute/" + key8.replace(/~/g, "~0").replace(/\//g, "~1") + "/resources/memory/size", schemaPath: "#/properties/profiles/properties/compute/additionalProperties/properties/resources/properties/memory/properties/size/type", keyword: "type", params: { type: "string" }, message: "must be string" };
|
|
1147
1590
|
if (vErrors === null) {
|
|
1148
|
-
vErrors = [
|
|
1591
|
+
vErrors = [err82];
|
|
1149
1592
|
} else {
|
|
1150
|
-
vErrors.push(
|
|
1593
|
+
vErrors.push(err82);
|
|
1151
1594
|
}
|
|
1152
1595
|
errors++;
|
|
1153
1596
|
}
|
|
1154
1597
|
}
|
|
1155
1598
|
} else {
|
|
1156
|
-
const
|
|
1599
|
+
const err83 = { instancePath: instancePath + "/profiles/compute/" + key8.replace(/~/g, "~0").replace(/\//g, "~1") + "/resources/memory", schemaPath: "#/properties/profiles/properties/compute/additionalProperties/properties/resources/properties/memory/type", keyword: "type", params: { type: "object" }, message: "must be object" };
|
|
1157
1600
|
if (vErrors === null) {
|
|
1158
|
-
vErrors = [
|
|
1601
|
+
vErrors = [err83];
|
|
1159
1602
|
} else {
|
|
1160
|
-
vErrors.push(
|
|
1603
|
+
vErrors.push(err83);
|
|
1161
1604
|
}
|
|
1162
1605
|
errors++;
|
|
1163
1606
|
}
|
|
1164
1607
|
}
|
|
1165
1608
|
if (data13.storage !== void 0) {
|
|
1166
|
-
let
|
|
1167
|
-
const
|
|
1168
|
-
let
|
|
1169
|
-
let
|
|
1170
|
-
const
|
|
1171
|
-
if (!validate12(
|
|
1609
|
+
let data30 = data13.storage;
|
|
1610
|
+
const _errs114 = errors;
|
|
1611
|
+
let valid35 = false;
|
|
1612
|
+
let passing5 = null;
|
|
1613
|
+
const _errs115 = errors;
|
|
1614
|
+
if (!validate12(data30, { instancePath: instancePath + "/profiles/compute/" + key8.replace(/~/g, "~0").replace(/\//g, "~1") + "/resources/storage", parentData: data13, parentDataProperty: "storage", rootData })) {
|
|
1172
1615
|
vErrors = vErrors === null ? validate12.errors : vErrors.concat(validate12.errors);
|
|
1173
1616
|
errors = vErrors.length;
|
|
1174
1617
|
}
|
|
1175
|
-
var
|
|
1176
|
-
if (
|
|
1177
|
-
|
|
1178
|
-
|
|
1618
|
+
var _valid7 = _errs115 === errors;
|
|
1619
|
+
if (_valid7) {
|
|
1620
|
+
valid35 = true;
|
|
1621
|
+
passing5 = 0;
|
|
1179
1622
|
}
|
|
1180
|
-
const
|
|
1181
|
-
if (Array.isArray(
|
|
1182
|
-
const len2 =
|
|
1623
|
+
const _errs116 = errors;
|
|
1624
|
+
if (Array.isArray(data30)) {
|
|
1625
|
+
const len2 = data30.length;
|
|
1183
1626
|
for (let i2 = 0; i2 < len2; i2++) {
|
|
1184
|
-
if (!validate12(
|
|
1627
|
+
if (!validate12(data30[i2], { instancePath: instancePath + "/profiles/compute/" + key8.replace(/~/g, "~0").replace(/\//g, "~1") + "/resources/storage/" + i2, parentData: data30, parentDataProperty: i2, rootData })) {
|
|
1185
1628
|
vErrors = vErrors === null ? validate12.errors : vErrors.concat(validate12.errors);
|
|
1186
1629
|
errors = vErrors.length;
|
|
1187
1630
|
}
|
|
1188
1631
|
}
|
|
1189
1632
|
} else {
|
|
1190
|
-
const
|
|
1633
|
+
const err84 = { instancePath: instancePath + "/profiles/compute/" + key8.replace(/~/g, "~0").replace(/\//g, "~1") + "/resources/storage", schemaPath: "#/properties/profiles/properties/compute/additionalProperties/properties/resources/properties/storage/oneOf/1/type", keyword: "type", params: { type: "array" }, message: "must be array" };
|
|
1191
1634
|
if (vErrors === null) {
|
|
1192
|
-
vErrors = [
|
|
1635
|
+
vErrors = [err84];
|
|
1193
1636
|
} else {
|
|
1194
|
-
vErrors.push(
|
|
1637
|
+
vErrors.push(err84);
|
|
1195
1638
|
}
|
|
1196
1639
|
errors++;
|
|
1197
1640
|
}
|
|
1198
|
-
var
|
|
1199
|
-
if (
|
|
1200
|
-
|
|
1201
|
-
|
|
1641
|
+
var _valid7 = _errs116 === errors;
|
|
1642
|
+
if (_valid7 && valid35) {
|
|
1643
|
+
valid35 = false;
|
|
1644
|
+
passing5 = [passing5, 1];
|
|
1202
1645
|
} else {
|
|
1203
|
-
if (
|
|
1204
|
-
|
|
1205
|
-
|
|
1646
|
+
if (_valid7) {
|
|
1647
|
+
valid35 = true;
|
|
1648
|
+
passing5 = 1;
|
|
1206
1649
|
}
|
|
1207
1650
|
}
|
|
1208
|
-
if (!
|
|
1209
|
-
const
|
|
1651
|
+
if (!valid35) {
|
|
1652
|
+
const err85 = { instancePath: instancePath + "/profiles/compute/" + key8.replace(/~/g, "~0").replace(/\//g, "~1") + "/resources/storage", schemaPath: "#/properties/profiles/properties/compute/additionalProperties/properties/resources/properties/storage/oneOf", keyword: "oneOf", params: { passingSchemas: passing5 }, message: "must match exactly one schema in oneOf" };
|
|
1210
1653
|
if (vErrors === null) {
|
|
1211
|
-
vErrors = [
|
|
1654
|
+
vErrors = [err85];
|
|
1212
1655
|
} else {
|
|
1213
|
-
vErrors.push(
|
|
1656
|
+
vErrors.push(err85);
|
|
1214
1657
|
}
|
|
1215
1658
|
errors++;
|
|
1216
1659
|
} else {
|
|
1217
|
-
errors =
|
|
1660
|
+
errors = _errs114;
|
|
1218
1661
|
if (vErrors !== null) {
|
|
1219
|
-
if (
|
|
1220
|
-
vErrors.length =
|
|
1662
|
+
if (_errs114) {
|
|
1663
|
+
vErrors.length = _errs114;
|
|
1221
1664
|
} else {
|
|
1222
1665
|
vErrors = null;
|
|
1223
1666
|
}
|
|
@@ -1225,1324 +1668,1328 @@ function validate11(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
1225
1668
|
}
|
|
1226
1669
|
}
|
|
1227
1670
|
} else {
|
|
1228
|
-
const
|
|
1671
|
+
const err86 = { instancePath: instancePath + "/profiles/compute/" + key8.replace(/~/g, "~0").replace(/\//g, "~1") + "/resources", schemaPath: "#/properties/profiles/properties/compute/additionalProperties/properties/resources/type", keyword: "type", params: { type: "object" }, message: "must be object" };
|
|
1229
1672
|
if (vErrors === null) {
|
|
1230
|
-
vErrors = [
|
|
1673
|
+
vErrors = [err86];
|
|
1231
1674
|
} else {
|
|
1232
|
-
vErrors.push(
|
|
1675
|
+
vErrors.push(err86);
|
|
1233
1676
|
}
|
|
1234
1677
|
errors++;
|
|
1235
1678
|
}
|
|
1236
1679
|
}
|
|
1237
1680
|
} else {
|
|
1238
|
-
const
|
|
1681
|
+
const err87 = { instancePath: instancePath + "/profiles/compute/" + key8.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "#/properties/profiles/properties/compute/additionalProperties/type", keyword: "type", params: { type: "object" }, message: "must be object" };
|
|
1239
1682
|
if (vErrors === null) {
|
|
1240
|
-
vErrors = [
|
|
1683
|
+
vErrors = [err87];
|
|
1241
1684
|
} else {
|
|
1242
|
-
vErrors.push(
|
|
1685
|
+
vErrors.push(err87);
|
|
1243
1686
|
}
|
|
1244
1687
|
errors++;
|
|
1245
1688
|
}
|
|
1246
1689
|
}
|
|
1247
1690
|
} else {
|
|
1248
|
-
const
|
|
1691
|
+
const err88 = { instancePath: instancePath + "/profiles/compute", schemaPath: "#/properties/profiles/properties/compute/type", keyword: "type", params: { type: "object" }, message: "must be object" };
|
|
1249
1692
|
if (vErrors === null) {
|
|
1250
|
-
vErrors = [
|
|
1693
|
+
vErrors = [err88];
|
|
1251
1694
|
} else {
|
|
1252
|
-
vErrors.push(
|
|
1695
|
+
vErrors.push(err88);
|
|
1253
1696
|
}
|
|
1254
1697
|
errors++;
|
|
1255
1698
|
}
|
|
1256
1699
|
}
|
|
1257
1700
|
if (data10.placement !== void 0) {
|
|
1258
|
-
let
|
|
1259
|
-
if (
|
|
1260
|
-
for (const key17 in
|
|
1261
|
-
let
|
|
1262
|
-
if (
|
|
1263
|
-
if (
|
|
1264
|
-
const
|
|
1701
|
+
let data32 = data10.placement;
|
|
1702
|
+
if (data32 && typeof data32 == "object" && !Array.isArray(data32)) {
|
|
1703
|
+
for (const key17 in data32) {
|
|
1704
|
+
let data33 = data32[key17];
|
|
1705
|
+
if (data33 && typeof data33 == "object" && !Array.isArray(data33)) {
|
|
1706
|
+
if (data33.pricing === void 0) {
|
|
1707
|
+
const err89 = { instancePath: instancePath + "/profiles/placement/" + key17.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "#/properties/profiles/properties/placement/additionalProperties/required", keyword: "required", params: { missingProperty: "pricing" }, message: "must have required property 'pricing'" };
|
|
1265
1708
|
if (vErrors === null) {
|
|
1266
|
-
vErrors = [
|
|
1709
|
+
vErrors = [err89];
|
|
1267
1710
|
} else {
|
|
1268
|
-
vErrors.push(
|
|
1711
|
+
vErrors.push(err89);
|
|
1269
1712
|
}
|
|
1270
1713
|
errors++;
|
|
1271
1714
|
}
|
|
1272
|
-
for (const key18 in
|
|
1715
|
+
for (const key18 in data33) {
|
|
1273
1716
|
if (!(key18 === "attributes" || key18 === "pricing" || key18 === "signedBy")) {
|
|
1274
|
-
const
|
|
1717
|
+
const err90 = { instancePath: instancePath + "/profiles/placement/" + key17.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "#/properties/profiles/properties/placement/additionalProperties/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key18 }, message: "must NOT have additional properties" };
|
|
1275
1718
|
if (vErrors === null) {
|
|
1276
|
-
vErrors = [
|
|
1719
|
+
vErrors = [err90];
|
|
1277
1720
|
} else {
|
|
1278
|
-
vErrors.push(
|
|
1721
|
+
vErrors.push(err90);
|
|
1279
1722
|
}
|
|
1280
1723
|
errors++;
|
|
1281
1724
|
}
|
|
1282
1725
|
}
|
|
1283
|
-
if (
|
|
1284
|
-
let
|
|
1285
|
-
if (!(
|
|
1286
|
-
const
|
|
1726
|
+
if (data33.attributes !== void 0) {
|
|
1727
|
+
let data34 = data33.attributes;
|
|
1728
|
+
if (!(data34 && typeof data34 == "object" && !Array.isArray(data34))) {
|
|
1729
|
+
const err91 = { instancePath: instancePath + "/profiles/placement/" + key17.replace(/~/g, "~0").replace(/\//g, "~1") + "/attributes", schemaPath: "#/properties/profiles/properties/placement/additionalProperties/properties/attributes/type", keyword: "type", params: { type: "object" }, message: "must be object" };
|
|
1287
1730
|
if (vErrors === null) {
|
|
1288
|
-
vErrors = [
|
|
1731
|
+
vErrors = [err91];
|
|
1289
1732
|
} else {
|
|
1290
|
-
vErrors.push(
|
|
1733
|
+
vErrors.push(err91);
|
|
1291
1734
|
}
|
|
1292
1735
|
errors++;
|
|
1293
1736
|
}
|
|
1294
1737
|
}
|
|
1295
|
-
if (
|
|
1296
|
-
let
|
|
1297
|
-
if (
|
|
1298
|
-
for (const key19 in
|
|
1299
|
-
let
|
|
1300
|
-
if (
|
|
1301
|
-
if (
|
|
1302
|
-
const
|
|
1738
|
+
if (data33.pricing !== void 0) {
|
|
1739
|
+
let data35 = data33.pricing;
|
|
1740
|
+
if (data35 && typeof data35 == "object" && !Array.isArray(data35)) {
|
|
1741
|
+
for (const key19 in data35) {
|
|
1742
|
+
let data36 = data35[key19];
|
|
1743
|
+
if (data36 && typeof data36 == "object" && !Array.isArray(data36)) {
|
|
1744
|
+
if (data36.denom === void 0) {
|
|
1745
|
+
const err92 = { instancePath: instancePath + "/profiles/placement/" + key17.replace(/~/g, "~0").replace(/\//g, "~1") + "/pricing/" + key19.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "#/definitions/priceCoin/required", keyword: "required", params: { missingProperty: "denom" }, message: "must have required property 'denom'" };
|
|
1303
1746
|
if (vErrors === null) {
|
|
1304
|
-
vErrors = [
|
|
1747
|
+
vErrors = [err92];
|
|
1305
1748
|
} else {
|
|
1306
|
-
vErrors.push(
|
|
1749
|
+
vErrors.push(err92);
|
|
1307
1750
|
}
|
|
1308
1751
|
errors++;
|
|
1309
1752
|
}
|
|
1310
|
-
if (
|
|
1311
|
-
const
|
|
1753
|
+
if (data36.amount === void 0) {
|
|
1754
|
+
const err93 = { instancePath: instancePath + "/profiles/placement/" + key17.replace(/~/g, "~0").replace(/\//g, "~1") + "/pricing/" + key19.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "#/definitions/priceCoin/required", keyword: "required", params: { missingProperty: "amount" }, message: "must have required property 'amount'" };
|
|
1312
1755
|
if (vErrors === null) {
|
|
1313
|
-
vErrors = [
|
|
1756
|
+
vErrors = [err93];
|
|
1314
1757
|
} else {
|
|
1315
|
-
vErrors.push(
|
|
1758
|
+
vErrors.push(err93);
|
|
1316
1759
|
}
|
|
1317
1760
|
errors++;
|
|
1318
1761
|
}
|
|
1319
|
-
for (const key20 in
|
|
1762
|
+
for (const key20 in data36) {
|
|
1320
1763
|
if (!(key20 === "amount" || key20 === "denom")) {
|
|
1321
|
-
const
|
|
1764
|
+
const err94 = { instancePath: instancePath + "/profiles/placement/" + key17.replace(/~/g, "~0").replace(/\//g, "~1") + "/pricing/" + key19.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "#/definitions/priceCoin/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key20 }, message: "must NOT have additional properties" };
|
|
1322
1765
|
if (vErrors === null) {
|
|
1323
|
-
vErrors = [
|
|
1766
|
+
vErrors = [err94];
|
|
1324
1767
|
} else {
|
|
1325
|
-
vErrors.push(
|
|
1768
|
+
vErrors.push(err94);
|
|
1326
1769
|
}
|
|
1327
1770
|
errors++;
|
|
1328
1771
|
}
|
|
1329
1772
|
}
|
|
1330
|
-
if (
|
|
1331
|
-
let
|
|
1332
|
-
const
|
|
1333
|
-
let
|
|
1334
|
-
let
|
|
1335
|
-
const
|
|
1336
|
-
if (typeof
|
|
1337
|
-
if (!
|
|
1338
|
-
const
|
|
1773
|
+
if (data36.amount !== void 0) {
|
|
1774
|
+
let data37 = data36.amount;
|
|
1775
|
+
const _errs135 = errors;
|
|
1776
|
+
let valid43 = false;
|
|
1777
|
+
let passing6 = null;
|
|
1778
|
+
const _errs136 = errors;
|
|
1779
|
+
if (typeof data37 === "string") {
|
|
1780
|
+
if (!pattern8.test(data37)) {
|
|
1781
|
+
const err95 = { instancePath: instancePath + "/profiles/placement/" + key17.replace(/~/g, "~0").replace(/\//g, "~1") + "/pricing/" + key19.replace(/~/g, "~0").replace(/\//g, "~1") + "/amount", schemaPath: "#/definitions/priceCoin/properties/amount/oneOf/0/pattern", keyword: "pattern", params: { pattern: "^[0-9]+(\\.[0-9]+)?$" }, message: 'must match pattern "^[0-9]+(\\.[0-9]+)?$"' };
|
|
1339
1782
|
if (vErrors === null) {
|
|
1340
|
-
vErrors = [
|
|
1783
|
+
vErrors = [err95];
|
|
1341
1784
|
} else {
|
|
1342
|
-
vErrors.push(
|
|
1785
|
+
vErrors.push(err95);
|
|
1343
1786
|
}
|
|
1344
1787
|
errors++;
|
|
1345
1788
|
}
|
|
1346
1789
|
} else {
|
|
1347
|
-
const
|
|
1790
|
+
const err96 = { instancePath: instancePath + "/profiles/placement/" + key17.replace(/~/g, "~0").replace(/\//g, "~1") + "/pricing/" + key19.replace(/~/g, "~0").replace(/\//g, "~1") + "/amount", schemaPath: "#/definitions/priceCoin/properties/amount/oneOf/0/type", keyword: "type", params: { type: "string" }, message: "must be string" };
|
|
1348
1791
|
if (vErrors === null) {
|
|
1349
|
-
vErrors = [
|
|
1792
|
+
vErrors = [err96];
|
|
1350
1793
|
} else {
|
|
1351
|
-
vErrors.push(
|
|
1794
|
+
vErrors.push(err96);
|
|
1352
1795
|
}
|
|
1353
1796
|
errors++;
|
|
1354
1797
|
}
|
|
1355
|
-
var
|
|
1356
|
-
if (
|
|
1357
|
-
|
|
1358
|
-
|
|
1798
|
+
var _valid8 = _errs136 === errors;
|
|
1799
|
+
if (_valid8) {
|
|
1800
|
+
valid43 = true;
|
|
1801
|
+
passing6 = 0;
|
|
1359
1802
|
}
|
|
1360
|
-
const
|
|
1361
|
-
if (typeof
|
|
1362
|
-
if (
|
|
1363
|
-
const
|
|
1803
|
+
const _errs138 = errors;
|
|
1804
|
+
if (typeof data37 == "number") {
|
|
1805
|
+
if (data37 < 0 || isNaN(data37)) {
|
|
1806
|
+
const err97 = { instancePath: instancePath + "/profiles/placement/" + key17.replace(/~/g, "~0").replace(/\//g, "~1") + "/pricing/" + key19.replace(/~/g, "~0").replace(/\//g, "~1") + "/amount", schemaPath: "#/definitions/priceCoin/properties/amount/oneOf/1/minimum", keyword: "minimum", params: { comparison: ">=", limit: 0 }, message: "must be >= 0" };
|
|
1364
1807
|
if (vErrors === null) {
|
|
1365
|
-
vErrors = [
|
|
1808
|
+
vErrors = [err97];
|
|
1366
1809
|
} else {
|
|
1367
|
-
vErrors.push(
|
|
1810
|
+
vErrors.push(err97);
|
|
1368
1811
|
}
|
|
1369
1812
|
errors++;
|
|
1370
1813
|
}
|
|
1371
1814
|
} else {
|
|
1372
|
-
const
|
|
1815
|
+
const err98 = { instancePath: instancePath + "/profiles/placement/" + key17.replace(/~/g, "~0").replace(/\//g, "~1") + "/pricing/" + key19.replace(/~/g, "~0").replace(/\//g, "~1") + "/amount", schemaPath: "#/definitions/priceCoin/properties/amount/oneOf/1/type", keyword: "type", params: { type: "number" }, message: "must be number" };
|
|
1373
1816
|
if (vErrors === null) {
|
|
1374
|
-
vErrors = [
|
|
1817
|
+
vErrors = [err98];
|
|
1375
1818
|
} else {
|
|
1376
|
-
vErrors.push(
|
|
1819
|
+
vErrors.push(err98);
|
|
1377
1820
|
}
|
|
1378
1821
|
errors++;
|
|
1379
1822
|
}
|
|
1380
|
-
var
|
|
1381
|
-
if (
|
|
1382
|
-
|
|
1383
|
-
|
|
1823
|
+
var _valid8 = _errs138 === errors;
|
|
1824
|
+
if (_valid8 && valid43) {
|
|
1825
|
+
valid43 = false;
|
|
1826
|
+
passing6 = [passing6, 1];
|
|
1384
1827
|
} else {
|
|
1385
|
-
if (
|
|
1386
|
-
|
|
1387
|
-
|
|
1828
|
+
if (_valid8) {
|
|
1829
|
+
valid43 = true;
|
|
1830
|
+
passing6 = 1;
|
|
1388
1831
|
}
|
|
1389
1832
|
}
|
|
1390
|
-
if (!
|
|
1391
|
-
const
|
|
1833
|
+
if (!valid43) {
|
|
1834
|
+
const err99 = { instancePath: instancePath + "/profiles/placement/" + key17.replace(/~/g, "~0").replace(/\//g, "~1") + "/pricing/" + key19.replace(/~/g, "~0").replace(/\//g, "~1") + "/amount", schemaPath: "#/definitions/priceCoin/properties/amount/oneOf", keyword: "oneOf", params: { passingSchemas: passing6 }, message: "must match exactly one schema in oneOf" };
|
|
1392
1835
|
if (vErrors === null) {
|
|
1393
|
-
vErrors = [
|
|
1836
|
+
vErrors = [err99];
|
|
1394
1837
|
} else {
|
|
1395
|
-
vErrors.push(
|
|
1838
|
+
vErrors.push(err99);
|
|
1396
1839
|
}
|
|
1397
1840
|
errors++;
|
|
1398
1841
|
} else {
|
|
1399
|
-
errors =
|
|
1842
|
+
errors = _errs135;
|
|
1400
1843
|
if (vErrors !== null) {
|
|
1401
|
-
if (
|
|
1402
|
-
vErrors.length =
|
|
1844
|
+
if (_errs135) {
|
|
1845
|
+
vErrors.length = _errs135;
|
|
1403
1846
|
} else {
|
|
1404
1847
|
vErrors = null;
|
|
1405
1848
|
}
|
|
1406
1849
|
}
|
|
1407
1850
|
}
|
|
1408
1851
|
}
|
|
1409
|
-
if (
|
|
1410
|
-
let
|
|
1411
|
-
if (typeof
|
|
1412
|
-
if (!
|
|
1413
|
-
const
|
|
1852
|
+
if (data36.denom !== void 0) {
|
|
1853
|
+
let data38 = data36.denom;
|
|
1854
|
+
if (typeof data38 === "string") {
|
|
1855
|
+
if (!pattern9.test(data38)) {
|
|
1856
|
+
const err100 = { instancePath: instancePath + "/profiles/placement/" + key17.replace(/~/g, "~0").replace(/\//g, "~1") + "/pricing/" + key19.replace(/~/g, "~0").replace(/\//g, "~1") + "/denom", schemaPath: "#/definitions/priceCoin/properties/denom/pattern", keyword: "pattern", params: { pattern: "^(uakt|uact|ibc/.*)$" }, message: 'must match pattern "^(uakt|uact|ibc/.*)$"' };
|
|
1414
1857
|
if (vErrors === null) {
|
|
1415
|
-
vErrors = [
|
|
1858
|
+
vErrors = [err100];
|
|
1416
1859
|
} else {
|
|
1417
|
-
vErrors.push(
|
|
1860
|
+
vErrors.push(err100);
|
|
1418
1861
|
}
|
|
1419
1862
|
errors++;
|
|
1420
1863
|
}
|
|
1421
1864
|
} else {
|
|
1422
|
-
const
|
|
1865
|
+
const err101 = { instancePath: instancePath + "/profiles/placement/" + key17.replace(/~/g, "~0").replace(/\//g, "~1") + "/pricing/" + key19.replace(/~/g, "~0").replace(/\//g, "~1") + "/denom", schemaPath: "#/definitions/priceCoin/properties/denom/type", keyword: "type", params: { type: "string" }, message: "must be string" };
|
|
1423
1866
|
if (vErrors === null) {
|
|
1424
|
-
vErrors = [
|
|
1867
|
+
vErrors = [err101];
|
|
1425
1868
|
} else {
|
|
1426
|
-
vErrors.push(
|
|
1869
|
+
vErrors.push(err101);
|
|
1427
1870
|
}
|
|
1428
1871
|
errors++;
|
|
1429
1872
|
}
|
|
1430
1873
|
}
|
|
1431
1874
|
} else {
|
|
1432
|
-
const
|
|
1875
|
+
const err102 = { instancePath: instancePath + "/profiles/placement/" + key17.replace(/~/g, "~0").replace(/\//g, "~1") + "/pricing/" + key19.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "#/definitions/priceCoin/type", keyword: "type", params: { type: "object" }, message: "must be object" };
|
|
1433
1876
|
if (vErrors === null) {
|
|
1434
|
-
vErrors = [
|
|
1877
|
+
vErrors = [err102];
|
|
1435
1878
|
} else {
|
|
1436
|
-
vErrors.push(
|
|
1879
|
+
vErrors.push(err102);
|
|
1437
1880
|
}
|
|
1438
1881
|
errors++;
|
|
1439
1882
|
}
|
|
1440
1883
|
}
|
|
1441
1884
|
} else {
|
|
1442
|
-
const
|
|
1885
|
+
const err103 = { instancePath: instancePath + "/profiles/placement/" + key17.replace(/~/g, "~0").replace(/\//g, "~1") + "/pricing", schemaPath: "#/properties/profiles/properties/placement/additionalProperties/properties/pricing/type", keyword: "type", params: { type: "object" }, message: "must be object" };
|
|
1443
1886
|
if (vErrors === null) {
|
|
1444
|
-
vErrors = [
|
|
1887
|
+
vErrors = [err103];
|
|
1445
1888
|
} else {
|
|
1446
|
-
vErrors.push(
|
|
1889
|
+
vErrors.push(err103);
|
|
1447
1890
|
}
|
|
1448
1891
|
errors++;
|
|
1449
1892
|
}
|
|
1450
1893
|
}
|
|
1451
|
-
if (
|
|
1452
|
-
let
|
|
1453
|
-
if (
|
|
1454
|
-
for (const key21 in
|
|
1894
|
+
if (data33.signedBy !== void 0) {
|
|
1895
|
+
let data39 = data33.signedBy;
|
|
1896
|
+
if (data39 && typeof data39 == "object" && !Array.isArray(data39)) {
|
|
1897
|
+
for (const key21 in data39) {
|
|
1455
1898
|
if (!(key21 === "allOf" || key21 === "anyOf")) {
|
|
1456
|
-
const
|
|
1899
|
+
const err104 = { instancePath: instancePath + "/profiles/placement/" + key17.replace(/~/g, "~0").replace(/\//g, "~1") + "/signedBy", schemaPath: "#/properties/profiles/properties/placement/additionalProperties/properties/signedBy/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key21 }, message: "must NOT have additional properties" };
|
|
1457
1900
|
if (vErrors === null) {
|
|
1458
|
-
vErrors = [
|
|
1901
|
+
vErrors = [err104];
|
|
1459
1902
|
} else {
|
|
1460
|
-
vErrors.push(
|
|
1903
|
+
vErrors.push(err104);
|
|
1461
1904
|
}
|
|
1462
1905
|
errors++;
|
|
1463
1906
|
}
|
|
1464
1907
|
}
|
|
1465
|
-
if (
|
|
1466
|
-
let
|
|
1467
|
-
if (Array.isArray(
|
|
1468
|
-
const len3 =
|
|
1908
|
+
if (data39.allOf !== void 0) {
|
|
1909
|
+
let data40 = data39.allOf;
|
|
1910
|
+
if (Array.isArray(data40)) {
|
|
1911
|
+
const len3 = data40.length;
|
|
1469
1912
|
for (let i3 = 0; i3 < len3; i3++) {
|
|
1470
|
-
if (typeof
|
|
1471
|
-
const
|
|
1913
|
+
if (typeof data40[i3] !== "string") {
|
|
1914
|
+
const err105 = { instancePath: instancePath + "/profiles/placement/" + key17.replace(/~/g, "~0").replace(/\//g, "~1") + "/signedBy/allOf/" + i3, schemaPath: "#/properties/profiles/properties/placement/additionalProperties/properties/signedBy/properties/allOf/items/type", keyword: "type", params: { type: "string" }, message: "must be string" };
|
|
1472
1915
|
if (vErrors === null) {
|
|
1473
|
-
vErrors = [
|
|
1916
|
+
vErrors = [err105];
|
|
1474
1917
|
} else {
|
|
1475
|
-
vErrors.push(
|
|
1918
|
+
vErrors.push(err105);
|
|
1476
1919
|
}
|
|
1477
1920
|
errors++;
|
|
1478
1921
|
}
|
|
1479
1922
|
}
|
|
1480
1923
|
} else {
|
|
1481
|
-
const
|
|
1924
|
+
const err106 = { instancePath: instancePath + "/profiles/placement/" + key17.replace(/~/g, "~0").replace(/\//g, "~1") + "/signedBy/allOf", schemaPath: "#/properties/profiles/properties/placement/additionalProperties/properties/signedBy/properties/allOf/type", keyword: "type", params: { type: "array" }, message: "must be array" };
|
|
1482
1925
|
if (vErrors === null) {
|
|
1483
|
-
vErrors = [
|
|
1926
|
+
vErrors = [err106];
|
|
1484
1927
|
} else {
|
|
1485
|
-
vErrors.push(
|
|
1928
|
+
vErrors.push(err106);
|
|
1486
1929
|
}
|
|
1487
1930
|
errors++;
|
|
1488
1931
|
}
|
|
1489
1932
|
}
|
|
1490
|
-
if (
|
|
1491
|
-
let
|
|
1492
|
-
if (Array.isArray(
|
|
1493
|
-
const len4 =
|
|
1933
|
+
if (data39.anyOf !== void 0) {
|
|
1934
|
+
let data42 = data39.anyOf;
|
|
1935
|
+
if (Array.isArray(data42)) {
|
|
1936
|
+
const len4 = data42.length;
|
|
1494
1937
|
for (let i4 = 0; i4 < len4; i4++) {
|
|
1495
|
-
if (typeof
|
|
1496
|
-
const
|
|
1938
|
+
if (typeof data42[i4] !== "string") {
|
|
1939
|
+
const err107 = { instancePath: instancePath + "/profiles/placement/" + key17.replace(/~/g, "~0").replace(/\//g, "~1") + "/signedBy/anyOf/" + i4, schemaPath: "#/properties/profiles/properties/placement/additionalProperties/properties/signedBy/properties/anyOf/items/type", keyword: "type", params: { type: "string" }, message: "must be string" };
|
|
1497
1940
|
if (vErrors === null) {
|
|
1498
|
-
vErrors = [
|
|
1941
|
+
vErrors = [err107];
|
|
1499
1942
|
} else {
|
|
1500
|
-
vErrors.push(
|
|
1943
|
+
vErrors.push(err107);
|
|
1501
1944
|
}
|
|
1502
1945
|
errors++;
|
|
1503
1946
|
}
|
|
1504
1947
|
}
|
|
1505
1948
|
} else {
|
|
1506
|
-
const
|
|
1949
|
+
const err108 = { instancePath: instancePath + "/profiles/placement/" + key17.replace(/~/g, "~0").replace(/\//g, "~1") + "/signedBy/anyOf", schemaPath: "#/properties/profiles/properties/placement/additionalProperties/properties/signedBy/properties/anyOf/type", keyword: "type", params: { type: "array" }, message: "must be array" };
|
|
1507
1950
|
if (vErrors === null) {
|
|
1508
|
-
vErrors = [
|
|
1951
|
+
vErrors = [err108];
|
|
1509
1952
|
} else {
|
|
1510
|
-
vErrors.push(
|
|
1953
|
+
vErrors.push(err108);
|
|
1511
1954
|
}
|
|
1512
1955
|
errors++;
|
|
1513
1956
|
}
|
|
1514
1957
|
}
|
|
1515
1958
|
} else {
|
|
1516
|
-
const
|
|
1959
|
+
const err109 = { instancePath: instancePath + "/profiles/placement/" + key17.replace(/~/g, "~0").replace(/\//g, "~1") + "/signedBy", schemaPath: "#/properties/profiles/properties/placement/additionalProperties/properties/signedBy/type", keyword: "type", params: { type: "object" }, message: "must be object" };
|
|
1517
1960
|
if (vErrors === null) {
|
|
1518
|
-
vErrors = [
|
|
1961
|
+
vErrors = [err109];
|
|
1519
1962
|
} else {
|
|
1520
|
-
vErrors.push(
|
|
1963
|
+
vErrors.push(err109);
|
|
1521
1964
|
}
|
|
1522
1965
|
errors++;
|
|
1523
1966
|
}
|
|
1524
1967
|
}
|
|
1525
1968
|
} else {
|
|
1526
|
-
const
|
|
1969
|
+
const err110 = { instancePath: instancePath + "/profiles/placement/" + key17.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "#/properties/profiles/properties/placement/additionalProperties/type", keyword: "type", params: { type: "object" }, message: "must be object" };
|
|
1527
1970
|
if (vErrors === null) {
|
|
1528
|
-
vErrors = [
|
|
1971
|
+
vErrors = [err110];
|
|
1529
1972
|
} else {
|
|
1530
|
-
vErrors.push(
|
|
1973
|
+
vErrors.push(err110);
|
|
1531
1974
|
}
|
|
1532
1975
|
errors++;
|
|
1533
1976
|
}
|
|
1534
1977
|
}
|
|
1535
1978
|
} else {
|
|
1536
|
-
const
|
|
1979
|
+
const err111 = { instancePath: instancePath + "/profiles/placement", schemaPath: "#/properties/profiles/properties/placement/type", keyword: "type", params: { type: "object" }, message: "must be object" };
|
|
1537
1980
|
if (vErrors === null) {
|
|
1538
|
-
vErrors = [
|
|
1981
|
+
vErrors = [err111];
|
|
1539
1982
|
} else {
|
|
1540
|
-
vErrors.push(
|
|
1983
|
+
vErrors.push(err111);
|
|
1541
1984
|
}
|
|
1542
1985
|
errors++;
|
|
1543
1986
|
}
|
|
1544
1987
|
}
|
|
1545
1988
|
} else {
|
|
1546
|
-
const
|
|
1989
|
+
const err112 = { instancePath: instancePath + "/profiles", schemaPath: "#/properties/profiles/type", keyword: "type", params: { type: "object" }, message: "must be object" };
|
|
1547
1990
|
if (vErrors === null) {
|
|
1548
|
-
vErrors = [
|
|
1991
|
+
vErrors = [err112];
|
|
1549
1992
|
} else {
|
|
1550
|
-
vErrors.push(
|
|
1993
|
+
vErrors.push(err112);
|
|
1551
1994
|
}
|
|
1552
1995
|
errors++;
|
|
1553
1996
|
}
|
|
1554
1997
|
}
|
|
1555
1998
|
if (data.services !== void 0) {
|
|
1556
|
-
let
|
|
1557
|
-
if (
|
|
1558
|
-
for (const key22 in
|
|
1559
|
-
let
|
|
1560
|
-
if (
|
|
1561
|
-
if (
|
|
1562
|
-
const
|
|
1999
|
+
let data44 = data.services;
|
|
2000
|
+
if (data44 && typeof data44 == "object" && !Array.isArray(data44)) {
|
|
2001
|
+
for (const key22 in data44) {
|
|
2002
|
+
let data45 = data44[key22];
|
|
2003
|
+
if (data45 && typeof data45 == "object" && !Array.isArray(data45)) {
|
|
2004
|
+
if (data45.image === void 0) {
|
|
2005
|
+
const err113 = { instancePath: instancePath + "/services/" + key22.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "#/properties/services/additionalProperties/required", keyword: "required", params: { missingProperty: "image" }, message: "must have required property 'image'" };
|
|
1563
2006
|
if (vErrors === null) {
|
|
1564
|
-
vErrors = [
|
|
2007
|
+
vErrors = [err113];
|
|
1565
2008
|
} else {
|
|
1566
|
-
vErrors.push(
|
|
2009
|
+
vErrors.push(err113);
|
|
1567
2010
|
}
|
|
1568
2011
|
errors++;
|
|
1569
2012
|
}
|
|
1570
|
-
for (const key23 in
|
|
2013
|
+
for (const key23 in data45) {
|
|
1571
2014
|
if (!(key23 === "args" || key23 === "command" || key23 === "credentials" || key23 === "dependencies" || key23 === "env" || key23 === "expose" || key23 === "image" || key23 === "params")) {
|
|
1572
|
-
const
|
|
2015
|
+
const err114 = { instancePath: instancePath + "/services/" + key22.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "#/properties/services/additionalProperties/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key23 }, message: "must NOT have additional properties" };
|
|
1573
2016
|
if (vErrors === null) {
|
|
1574
|
-
vErrors = [
|
|
2017
|
+
vErrors = [err114];
|
|
1575
2018
|
} else {
|
|
1576
|
-
vErrors.push(
|
|
2019
|
+
vErrors.push(err114);
|
|
1577
2020
|
}
|
|
1578
2021
|
errors++;
|
|
1579
2022
|
}
|
|
1580
2023
|
}
|
|
1581
|
-
if (
|
|
1582
|
-
let
|
|
1583
|
-
const
|
|
1584
|
-
let
|
|
1585
|
-
let
|
|
1586
|
-
const
|
|
1587
|
-
if (Array.isArray(
|
|
1588
|
-
const len5 =
|
|
2024
|
+
if (data45.args !== void 0) {
|
|
2025
|
+
let data46 = data45.args;
|
|
2026
|
+
const _errs161 = errors;
|
|
2027
|
+
let valid52 = false;
|
|
2028
|
+
let passing7 = null;
|
|
2029
|
+
const _errs162 = errors;
|
|
2030
|
+
if (Array.isArray(data46)) {
|
|
2031
|
+
const len5 = data46.length;
|
|
1589
2032
|
for (let i5 = 0; i5 < len5; i5++) {
|
|
1590
|
-
if (typeof
|
|
1591
|
-
const
|
|
2033
|
+
if (typeof data46[i5] !== "string") {
|
|
2034
|
+
const err115 = { instancePath: instancePath + "/services/" + key22.replace(/~/g, "~0").replace(/\//g, "~1") + "/args/" + i5, schemaPath: "#/definitions/stringArrayOrNull/oneOf/0/items/type", keyword: "type", params: { type: "string" }, message: "must be string" };
|
|
1592
2035
|
if (vErrors === null) {
|
|
1593
|
-
vErrors = [
|
|
2036
|
+
vErrors = [err115];
|
|
1594
2037
|
} else {
|
|
1595
|
-
vErrors.push(
|
|
2038
|
+
vErrors.push(err115);
|
|
1596
2039
|
}
|
|
1597
2040
|
errors++;
|
|
1598
2041
|
}
|
|
1599
2042
|
}
|
|
1600
2043
|
} else {
|
|
1601
|
-
const
|
|
2044
|
+
const err116 = { instancePath: instancePath + "/services/" + key22.replace(/~/g, "~0").replace(/\//g, "~1") + "/args", schemaPath: "#/definitions/stringArrayOrNull/oneOf/0/type", keyword: "type", params: { type: "array" }, message: "must be array" };
|
|
1602
2045
|
if (vErrors === null) {
|
|
1603
|
-
vErrors = [
|
|
2046
|
+
vErrors = [err116];
|
|
1604
2047
|
} else {
|
|
1605
|
-
vErrors.push(
|
|
2048
|
+
vErrors.push(err116);
|
|
1606
2049
|
}
|
|
1607
2050
|
errors++;
|
|
1608
2051
|
}
|
|
1609
|
-
var
|
|
1610
|
-
if (
|
|
1611
|
-
|
|
1612
|
-
|
|
2052
|
+
var _valid9 = _errs162 === errors;
|
|
2053
|
+
if (_valid9) {
|
|
2054
|
+
valid52 = true;
|
|
2055
|
+
passing7 = 0;
|
|
1613
2056
|
}
|
|
1614
|
-
const
|
|
1615
|
-
if (
|
|
1616
|
-
const
|
|
2057
|
+
const _errs166 = errors;
|
|
2058
|
+
if (data46 !== null) {
|
|
2059
|
+
const err117 = { instancePath: instancePath + "/services/" + key22.replace(/~/g, "~0").replace(/\//g, "~1") + "/args", schemaPath: "#/definitions/stringArrayOrNull/oneOf/1/type", keyword: "type", params: { type: "null" }, message: "must be null" };
|
|
1617
2060
|
if (vErrors === null) {
|
|
1618
|
-
vErrors = [
|
|
2061
|
+
vErrors = [err117];
|
|
1619
2062
|
} else {
|
|
1620
|
-
vErrors.push(
|
|
2063
|
+
vErrors.push(err117);
|
|
1621
2064
|
}
|
|
1622
2065
|
errors++;
|
|
1623
2066
|
}
|
|
1624
|
-
var
|
|
1625
|
-
if (
|
|
1626
|
-
|
|
1627
|
-
|
|
2067
|
+
var _valid9 = _errs166 === errors;
|
|
2068
|
+
if (_valid9 && valid52) {
|
|
2069
|
+
valid52 = false;
|
|
2070
|
+
passing7 = [passing7, 1];
|
|
1628
2071
|
} else {
|
|
1629
|
-
if (
|
|
1630
|
-
|
|
1631
|
-
|
|
2072
|
+
if (_valid9) {
|
|
2073
|
+
valid52 = true;
|
|
2074
|
+
passing7 = 1;
|
|
1632
2075
|
}
|
|
1633
2076
|
}
|
|
1634
|
-
if (!
|
|
1635
|
-
const
|
|
2077
|
+
if (!valid52) {
|
|
2078
|
+
const err118 = { instancePath: instancePath + "/services/" + key22.replace(/~/g, "~0").replace(/\//g, "~1") + "/args", schemaPath: "#/definitions/stringArrayOrNull/oneOf", keyword: "oneOf", params: { passingSchemas: passing7 }, message: "must match exactly one schema in oneOf" };
|
|
1636
2079
|
if (vErrors === null) {
|
|
1637
|
-
vErrors = [
|
|
2080
|
+
vErrors = [err118];
|
|
1638
2081
|
} else {
|
|
1639
|
-
vErrors.push(
|
|
2082
|
+
vErrors.push(err118);
|
|
1640
2083
|
}
|
|
1641
2084
|
errors++;
|
|
1642
2085
|
} else {
|
|
1643
|
-
errors =
|
|
2086
|
+
errors = _errs161;
|
|
1644
2087
|
if (vErrors !== null) {
|
|
1645
|
-
if (
|
|
1646
|
-
vErrors.length =
|
|
2088
|
+
if (_errs161) {
|
|
2089
|
+
vErrors.length = _errs161;
|
|
1647
2090
|
} else {
|
|
1648
2091
|
vErrors = null;
|
|
1649
2092
|
}
|
|
1650
2093
|
}
|
|
1651
2094
|
}
|
|
1652
2095
|
}
|
|
1653
|
-
if (
|
|
1654
|
-
let
|
|
1655
|
-
const
|
|
1656
|
-
let
|
|
1657
|
-
let
|
|
1658
|
-
const
|
|
1659
|
-
if (Array.isArray(
|
|
1660
|
-
const len6 =
|
|
2096
|
+
if (data45.command !== void 0) {
|
|
2097
|
+
let data48 = data45.command;
|
|
2098
|
+
const _errs170 = errors;
|
|
2099
|
+
let valid56 = false;
|
|
2100
|
+
let passing8 = null;
|
|
2101
|
+
const _errs171 = errors;
|
|
2102
|
+
if (Array.isArray(data48)) {
|
|
2103
|
+
const len6 = data48.length;
|
|
1661
2104
|
for (let i6 = 0; i6 < len6; i6++) {
|
|
1662
|
-
if (typeof
|
|
1663
|
-
const
|
|
2105
|
+
if (typeof data48[i6] !== "string") {
|
|
2106
|
+
const err119 = { instancePath: instancePath + "/services/" + key22.replace(/~/g, "~0").replace(/\//g, "~1") + "/command/" + i6, schemaPath: "#/definitions/stringArrayOrNull/oneOf/0/items/type", keyword: "type", params: { type: "string" }, message: "must be string" };
|
|
1664
2107
|
if (vErrors === null) {
|
|
1665
|
-
vErrors = [
|
|
2108
|
+
vErrors = [err119];
|
|
1666
2109
|
} else {
|
|
1667
|
-
vErrors.push(
|
|
2110
|
+
vErrors.push(err119);
|
|
1668
2111
|
}
|
|
1669
2112
|
errors++;
|
|
1670
2113
|
}
|
|
1671
2114
|
}
|
|
1672
2115
|
} else {
|
|
1673
|
-
const
|
|
2116
|
+
const err120 = { instancePath: instancePath + "/services/" + key22.replace(/~/g, "~0").replace(/\//g, "~1") + "/command", schemaPath: "#/definitions/stringArrayOrNull/oneOf/0/type", keyword: "type", params: { type: "array" }, message: "must be array" };
|
|
1674
2117
|
if (vErrors === null) {
|
|
1675
|
-
vErrors = [
|
|
2118
|
+
vErrors = [err120];
|
|
1676
2119
|
} else {
|
|
1677
|
-
vErrors.push(
|
|
2120
|
+
vErrors.push(err120);
|
|
1678
2121
|
}
|
|
1679
2122
|
errors++;
|
|
1680
2123
|
}
|
|
1681
|
-
var
|
|
1682
|
-
if (
|
|
1683
|
-
|
|
1684
|
-
|
|
2124
|
+
var _valid10 = _errs171 === errors;
|
|
2125
|
+
if (_valid10) {
|
|
2126
|
+
valid56 = true;
|
|
2127
|
+
passing8 = 0;
|
|
1685
2128
|
}
|
|
1686
|
-
const
|
|
1687
|
-
if (
|
|
1688
|
-
const
|
|
2129
|
+
const _errs175 = errors;
|
|
2130
|
+
if (data48 !== null) {
|
|
2131
|
+
const err121 = { instancePath: instancePath + "/services/" + key22.replace(/~/g, "~0").replace(/\//g, "~1") + "/command", schemaPath: "#/definitions/stringArrayOrNull/oneOf/1/type", keyword: "type", params: { type: "null" }, message: "must be null" };
|
|
1689
2132
|
if (vErrors === null) {
|
|
1690
|
-
vErrors = [
|
|
2133
|
+
vErrors = [err121];
|
|
1691
2134
|
} else {
|
|
1692
|
-
vErrors.push(
|
|
2135
|
+
vErrors.push(err121);
|
|
1693
2136
|
}
|
|
1694
2137
|
errors++;
|
|
1695
2138
|
}
|
|
1696
|
-
var
|
|
1697
|
-
if (
|
|
1698
|
-
|
|
1699
|
-
|
|
2139
|
+
var _valid10 = _errs175 === errors;
|
|
2140
|
+
if (_valid10 && valid56) {
|
|
2141
|
+
valid56 = false;
|
|
2142
|
+
passing8 = [passing8, 1];
|
|
1700
2143
|
} else {
|
|
1701
|
-
if (
|
|
1702
|
-
|
|
1703
|
-
|
|
2144
|
+
if (_valid10) {
|
|
2145
|
+
valid56 = true;
|
|
2146
|
+
passing8 = 1;
|
|
1704
2147
|
}
|
|
1705
2148
|
}
|
|
1706
|
-
if (!
|
|
1707
|
-
const
|
|
2149
|
+
if (!valid56) {
|
|
2150
|
+
const err122 = { instancePath: instancePath + "/services/" + key22.replace(/~/g, "~0").replace(/\//g, "~1") + "/command", schemaPath: "#/definitions/stringArrayOrNull/oneOf", keyword: "oneOf", params: { passingSchemas: passing8 }, message: "must match exactly one schema in oneOf" };
|
|
1708
2151
|
if (vErrors === null) {
|
|
1709
|
-
vErrors = [
|
|
2152
|
+
vErrors = [err122];
|
|
1710
2153
|
} else {
|
|
1711
|
-
vErrors.push(
|
|
2154
|
+
vErrors.push(err122);
|
|
1712
2155
|
}
|
|
1713
2156
|
errors++;
|
|
1714
2157
|
} else {
|
|
1715
|
-
errors =
|
|
2158
|
+
errors = _errs170;
|
|
1716
2159
|
if (vErrors !== null) {
|
|
1717
|
-
if (
|
|
1718
|
-
vErrors.length =
|
|
2160
|
+
if (_errs170) {
|
|
2161
|
+
vErrors.length = _errs170;
|
|
1719
2162
|
} else {
|
|
1720
2163
|
vErrors = null;
|
|
1721
2164
|
}
|
|
1722
2165
|
}
|
|
1723
2166
|
}
|
|
1724
2167
|
}
|
|
1725
|
-
if (
|
|
1726
|
-
let
|
|
1727
|
-
if (
|
|
1728
|
-
if (
|
|
1729
|
-
const
|
|
2168
|
+
if (data45.credentials !== void 0) {
|
|
2169
|
+
let data50 = data45.credentials;
|
|
2170
|
+
if (data50 && typeof data50 == "object" && !Array.isArray(data50)) {
|
|
2171
|
+
if (data50.host === void 0) {
|
|
2172
|
+
const err123 = { instancePath: instancePath + "/services/" + key22.replace(/~/g, "~0").replace(/\//g, "~1") + "/credentials", schemaPath: "#/properties/services/additionalProperties/properties/credentials/required", keyword: "required", params: { missingProperty: "host" }, message: "must have required property 'host'" };
|
|
1730
2173
|
if (vErrors === null) {
|
|
1731
|
-
vErrors = [
|
|
2174
|
+
vErrors = [err123];
|
|
1732
2175
|
} else {
|
|
1733
|
-
vErrors.push(
|
|
2176
|
+
vErrors.push(err123);
|
|
1734
2177
|
}
|
|
1735
2178
|
errors++;
|
|
1736
2179
|
}
|
|
1737
|
-
if (
|
|
1738
|
-
const
|
|
2180
|
+
if (data50.username === void 0) {
|
|
2181
|
+
const err124 = { instancePath: instancePath + "/services/" + key22.replace(/~/g, "~0").replace(/\//g, "~1") + "/credentials", schemaPath: "#/properties/services/additionalProperties/properties/credentials/required", keyword: "required", params: { missingProperty: "username" }, message: "must have required property 'username'" };
|
|
1739
2182
|
if (vErrors === null) {
|
|
1740
|
-
vErrors = [
|
|
2183
|
+
vErrors = [err124];
|
|
1741
2184
|
} else {
|
|
1742
|
-
vErrors.push(
|
|
2185
|
+
vErrors.push(err124);
|
|
1743
2186
|
}
|
|
1744
2187
|
errors++;
|
|
1745
2188
|
}
|
|
1746
|
-
if (
|
|
1747
|
-
const
|
|
2189
|
+
if (data50.password === void 0) {
|
|
2190
|
+
const err125 = { instancePath: instancePath + "/services/" + key22.replace(/~/g, "~0").replace(/\//g, "~1") + "/credentials", schemaPath: "#/properties/services/additionalProperties/properties/credentials/required", keyword: "required", params: { missingProperty: "password" }, message: "must have required property 'password'" };
|
|
1748
2191
|
if (vErrors === null) {
|
|
1749
|
-
vErrors = [
|
|
2192
|
+
vErrors = [err125];
|
|
1750
2193
|
} else {
|
|
1751
|
-
vErrors.push(
|
|
2194
|
+
vErrors.push(err125);
|
|
1752
2195
|
}
|
|
1753
2196
|
errors++;
|
|
1754
2197
|
}
|
|
1755
|
-
for (const key24 in
|
|
2198
|
+
for (const key24 in data50) {
|
|
1756
2199
|
if (!(key24 === "email" || key24 === "host" || key24 === "password" || key24 === "username")) {
|
|
1757
|
-
const
|
|
2200
|
+
const err126 = { instancePath: instancePath + "/services/" + key22.replace(/~/g, "~0").replace(/\//g, "~1") + "/credentials", schemaPath: "#/properties/services/additionalProperties/properties/credentials/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key24 }, message: "must NOT have additional properties" };
|
|
1758
2201
|
if (vErrors === null) {
|
|
1759
|
-
vErrors = [
|
|
2202
|
+
vErrors = [err126];
|
|
1760
2203
|
} else {
|
|
1761
|
-
vErrors.push(
|
|
2204
|
+
vErrors.push(err126);
|
|
1762
2205
|
}
|
|
1763
2206
|
errors++;
|
|
1764
2207
|
}
|
|
1765
2208
|
}
|
|
1766
|
-
if (
|
|
1767
|
-
let
|
|
1768
|
-
if (typeof
|
|
1769
|
-
if (func2(
|
|
1770
|
-
const
|
|
2209
|
+
if (data50.email !== void 0) {
|
|
2210
|
+
let data51 = data50.email;
|
|
2211
|
+
if (typeof data51 === "string") {
|
|
2212
|
+
if (func2(data51) < 5) {
|
|
2213
|
+
const err127 = { instancePath: instancePath + "/services/" + key22.replace(/~/g, "~0").replace(/\//g, "~1") + "/credentials/email", schemaPath: "#/properties/services/additionalProperties/properties/credentials/properties/email/minLength", keyword: "minLength", params: { limit: 5 }, message: "must NOT have fewer than 5 characters" };
|
|
1771
2214
|
if (vErrors === null) {
|
|
1772
|
-
vErrors = [
|
|
2215
|
+
vErrors = [err127];
|
|
1773
2216
|
} else {
|
|
1774
|
-
vErrors.push(
|
|
2217
|
+
vErrors.push(err127);
|
|
1775
2218
|
}
|
|
1776
2219
|
errors++;
|
|
1777
2220
|
}
|
|
1778
2221
|
} else {
|
|
1779
|
-
const
|
|
2222
|
+
const err128 = { instancePath: instancePath + "/services/" + key22.replace(/~/g, "~0").replace(/\//g, "~1") + "/credentials/email", schemaPath: "#/properties/services/additionalProperties/properties/credentials/properties/email/type", keyword: "type", params: { type: "string" }, message: "must be string" };
|
|
1780
2223
|
if (vErrors === null) {
|
|
1781
|
-
vErrors = [
|
|
2224
|
+
vErrors = [err128];
|
|
1782
2225
|
} else {
|
|
1783
|
-
vErrors.push(
|
|
2226
|
+
vErrors.push(err128);
|
|
1784
2227
|
}
|
|
1785
2228
|
errors++;
|
|
1786
2229
|
}
|
|
1787
2230
|
}
|
|
1788
|
-
if (
|
|
1789
|
-
let
|
|
1790
|
-
if (typeof
|
|
1791
|
-
if (func2(
|
|
1792
|
-
const
|
|
2231
|
+
if (data50.host !== void 0) {
|
|
2232
|
+
let data52 = data50.host;
|
|
2233
|
+
if (typeof data52 === "string") {
|
|
2234
|
+
if (func2(data52) < 1) {
|
|
2235
|
+
const err129 = { instancePath: instancePath + "/services/" + key22.replace(/~/g, "~0").replace(/\//g, "~1") + "/credentials/host", schemaPath: "#/properties/services/additionalProperties/properties/credentials/properties/host/minLength", keyword: "minLength", params: { limit: 1 }, message: "must NOT have fewer than 1 characters" };
|
|
1793
2236
|
if (vErrors === null) {
|
|
1794
|
-
vErrors = [
|
|
2237
|
+
vErrors = [err129];
|
|
1795
2238
|
} else {
|
|
1796
|
-
vErrors.push(
|
|
2239
|
+
vErrors.push(err129);
|
|
1797
2240
|
}
|
|
1798
2241
|
errors++;
|
|
1799
2242
|
}
|
|
1800
2243
|
} else {
|
|
1801
|
-
const
|
|
2244
|
+
const err130 = { instancePath: instancePath + "/services/" + key22.replace(/~/g, "~0").replace(/\//g, "~1") + "/credentials/host", schemaPath: "#/properties/services/additionalProperties/properties/credentials/properties/host/type", keyword: "type", params: { type: "string" }, message: "must be string" };
|
|
1802
2245
|
if (vErrors === null) {
|
|
1803
|
-
vErrors = [
|
|
2246
|
+
vErrors = [err130];
|
|
1804
2247
|
} else {
|
|
1805
|
-
vErrors.push(
|
|
2248
|
+
vErrors.push(err130);
|
|
1806
2249
|
}
|
|
1807
2250
|
errors++;
|
|
1808
2251
|
}
|
|
1809
2252
|
}
|
|
1810
|
-
if (
|
|
1811
|
-
let
|
|
1812
|
-
if (typeof
|
|
1813
|
-
if (func2(
|
|
1814
|
-
const
|
|
2253
|
+
if (data50.password !== void 0) {
|
|
2254
|
+
let data53 = data50.password;
|
|
2255
|
+
if (typeof data53 === "string") {
|
|
2256
|
+
if (func2(data53) < 6) {
|
|
2257
|
+
const err131 = { instancePath: instancePath + "/services/" + key22.replace(/~/g, "~0").replace(/\//g, "~1") + "/credentials/password", schemaPath: "#/properties/services/additionalProperties/properties/credentials/properties/password/minLength", keyword: "minLength", params: { limit: 6 }, message: "must NOT have fewer than 6 characters" };
|
|
1815
2258
|
if (vErrors === null) {
|
|
1816
|
-
vErrors = [
|
|
2259
|
+
vErrors = [err131];
|
|
1817
2260
|
} else {
|
|
1818
|
-
vErrors.push(
|
|
2261
|
+
vErrors.push(err131);
|
|
1819
2262
|
}
|
|
1820
2263
|
errors++;
|
|
1821
2264
|
}
|
|
1822
2265
|
} else {
|
|
1823
|
-
const
|
|
2266
|
+
const err132 = { instancePath: instancePath + "/services/" + key22.replace(/~/g, "~0").replace(/\//g, "~1") + "/credentials/password", schemaPath: "#/properties/services/additionalProperties/properties/credentials/properties/password/type", keyword: "type", params: { type: "string" }, message: "must be string" };
|
|
1824
2267
|
if (vErrors === null) {
|
|
1825
|
-
vErrors = [
|
|
2268
|
+
vErrors = [err132];
|
|
1826
2269
|
} else {
|
|
1827
|
-
vErrors.push(
|
|
2270
|
+
vErrors.push(err132);
|
|
1828
2271
|
}
|
|
1829
2272
|
errors++;
|
|
1830
2273
|
}
|
|
1831
2274
|
}
|
|
1832
|
-
if (
|
|
1833
|
-
let
|
|
1834
|
-
if (typeof
|
|
1835
|
-
if (func2(
|
|
1836
|
-
const
|
|
2275
|
+
if (data50.username !== void 0) {
|
|
2276
|
+
let data54 = data50.username;
|
|
2277
|
+
if (typeof data54 === "string") {
|
|
2278
|
+
if (func2(data54) < 1) {
|
|
2279
|
+
const err133 = { instancePath: instancePath + "/services/" + key22.replace(/~/g, "~0").replace(/\//g, "~1") + "/credentials/username", schemaPath: "#/properties/services/additionalProperties/properties/credentials/properties/username/minLength", keyword: "minLength", params: { limit: 1 }, message: "must NOT have fewer than 1 characters" };
|
|
1837
2280
|
if (vErrors === null) {
|
|
1838
|
-
vErrors = [
|
|
2281
|
+
vErrors = [err133];
|
|
1839
2282
|
} else {
|
|
1840
|
-
vErrors.push(
|
|
2283
|
+
vErrors.push(err133);
|
|
1841
2284
|
}
|
|
1842
2285
|
errors++;
|
|
1843
2286
|
}
|
|
1844
2287
|
} else {
|
|
1845
|
-
const
|
|
2288
|
+
const err134 = { instancePath: instancePath + "/services/" + key22.replace(/~/g, "~0").replace(/\//g, "~1") + "/credentials/username", schemaPath: "#/properties/services/additionalProperties/properties/credentials/properties/username/type", keyword: "type", params: { type: "string" }, message: "must be string" };
|
|
1846
2289
|
if (vErrors === null) {
|
|
1847
|
-
vErrors = [
|
|
2290
|
+
vErrors = [err134];
|
|
1848
2291
|
} else {
|
|
1849
|
-
vErrors.push(
|
|
2292
|
+
vErrors.push(err134);
|
|
1850
2293
|
}
|
|
1851
2294
|
errors++;
|
|
1852
2295
|
}
|
|
1853
2296
|
}
|
|
1854
2297
|
} else {
|
|
1855
|
-
const
|
|
2298
|
+
const err135 = { instancePath: instancePath + "/services/" + key22.replace(/~/g, "~0").replace(/\//g, "~1") + "/credentials", schemaPath: "#/properties/services/additionalProperties/properties/credentials/type", keyword: "type", params: { type: "object" }, message: "must be object" };
|
|
1856
2299
|
if (vErrors === null) {
|
|
1857
|
-
vErrors = [
|
|
2300
|
+
vErrors = [err135];
|
|
1858
2301
|
} else {
|
|
1859
|
-
vErrors.push(
|
|
2302
|
+
vErrors.push(err135);
|
|
1860
2303
|
}
|
|
1861
2304
|
errors++;
|
|
1862
2305
|
}
|
|
1863
2306
|
}
|
|
1864
|
-
if (
|
|
1865
|
-
let
|
|
1866
|
-
if (Array.isArray(
|
|
1867
|
-
const len7 =
|
|
2307
|
+
if (data45.dependencies !== void 0) {
|
|
2308
|
+
let data55 = data45.dependencies;
|
|
2309
|
+
if (Array.isArray(data55)) {
|
|
2310
|
+
const len7 = data55.length;
|
|
1868
2311
|
for (let i7 = 0; i7 < len7; i7++) {
|
|
1869
|
-
let
|
|
1870
|
-
if (
|
|
1871
|
-
for (const key25 in
|
|
2312
|
+
let data56 = data55[i7];
|
|
2313
|
+
if (data56 && typeof data56 == "object" && !Array.isArray(data56)) {
|
|
2314
|
+
for (const key25 in data56) {
|
|
1872
2315
|
if (!(key25 === "service")) {
|
|
1873
|
-
const
|
|
2316
|
+
const err136 = { instancePath: instancePath + "/services/" + key22.replace(/~/g, "~0").replace(/\//g, "~1") + "/dependencies/" + i7, schemaPath: "#/properties/services/additionalProperties/properties/dependencies/items/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key25 }, message: "must NOT have additional properties" };
|
|
1874
2317
|
if (vErrors === null) {
|
|
1875
|
-
vErrors = [
|
|
2318
|
+
vErrors = [err136];
|
|
1876
2319
|
} else {
|
|
1877
|
-
vErrors.push(
|
|
2320
|
+
vErrors.push(err136);
|
|
1878
2321
|
}
|
|
1879
2322
|
errors++;
|
|
1880
2323
|
}
|
|
1881
2324
|
}
|
|
1882
|
-
if (
|
|
1883
|
-
if (typeof
|
|
1884
|
-
const
|
|
2325
|
+
if (data56.service !== void 0) {
|
|
2326
|
+
if (typeof data56.service !== "string") {
|
|
2327
|
+
const err137 = { instancePath: instancePath + "/services/" + key22.replace(/~/g, "~0").replace(/\//g, "~1") + "/dependencies/" + i7 + "/service", schemaPath: "#/properties/services/additionalProperties/properties/dependencies/items/properties/service/type", keyword: "type", params: { type: "string" }, message: "must be string" };
|
|
1885
2328
|
if (vErrors === null) {
|
|
1886
|
-
vErrors = [
|
|
2329
|
+
vErrors = [err137];
|
|
1887
2330
|
} else {
|
|
1888
|
-
vErrors.push(
|
|
2331
|
+
vErrors.push(err137);
|
|
1889
2332
|
}
|
|
1890
2333
|
errors++;
|
|
1891
2334
|
}
|
|
1892
2335
|
}
|
|
1893
2336
|
} else {
|
|
1894
|
-
const
|
|
2337
|
+
const err138 = { instancePath: instancePath + "/services/" + key22.replace(/~/g, "~0").replace(/\//g, "~1") + "/dependencies/" + i7, schemaPath: "#/properties/services/additionalProperties/properties/dependencies/items/type", keyword: "type", params: { type: "object" }, message: "must be object" };
|
|
1895
2338
|
if (vErrors === null) {
|
|
1896
|
-
vErrors = [
|
|
2339
|
+
vErrors = [err138];
|
|
1897
2340
|
} else {
|
|
1898
|
-
vErrors.push(
|
|
2341
|
+
vErrors.push(err138);
|
|
1899
2342
|
}
|
|
1900
2343
|
errors++;
|
|
1901
2344
|
}
|
|
1902
2345
|
}
|
|
1903
2346
|
} else {
|
|
1904
|
-
const
|
|
2347
|
+
const err139 = { instancePath: instancePath + "/services/" + key22.replace(/~/g, "~0").replace(/\//g, "~1") + "/dependencies", schemaPath: "#/properties/services/additionalProperties/properties/dependencies/type", keyword: "type", params: { type: "array" }, message: "must be array" };
|
|
1905
2348
|
if (vErrors === null) {
|
|
1906
|
-
vErrors = [
|
|
2349
|
+
vErrors = [err139];
|
|
1907
2350
|
} else {
|
|
1908
|
-
vErrors.push(
|
|
2351
|
+
vErrors.push(err139);
|
|
1909
2352
|
}
|
|
1910
2353
|
errors++;
|
|
1911
2354
|
}
|
|
1912
2355
|
}
|
|
1913
|
-
if (
|
|
1914
|
-
let
|
|
1915
|
-
const
|
|
1916
|
-
let
|
|
1917
|
-
let
|
|
1918
|
-
const
|
|
1919
|
-
if (Array.isArray(
|
|
1920
|
-
const len8 =
|
|
2356
|
+
if (data45.env !== void 0) {
|
|
2357
|
+
let data58 = data45.env;
|
|
2358
|
+
const _errs197 = errors;
|
|
2359
|
+
let valid64 = false;
|
|
2360
|
+
let passing9 = null;
|
|
2361
|
+
const _errs198 = errors;
|
|
2362
|
+
if (Array.isArray(data58)) {
|
|
2363
|
+
const len8 = data58.length;
|
|
1921
2364
|
for (let i8 = 0; i8 < len8; i8++) {
|
|
1922
|
-
if (typeof
|
|
1923
|
-
const
|
|
2365
|
+
if (typeof data58[i8] !== "string") {
|
|
2366
|
+
const err140 = { instancePath: instancePath + "/services/" + key22.replace(/~/g, "~0").replace(/\//g, "~1") + "/env/" + i8, schemaPath: "#/definitions/stringArrayOrNull/oneOf/0/items/type", keyword: "type", params: { type: "string" }, message: "must be string" };
|
|
1924
2367
|
if (vErrors === null) {
|
|
1925
|
-
vErrors = [
|
|
2368
|
+
vErrors = [err140];
|
|
1926
2369
|
} else {
|
|
1927
|
-
vErrors.push(
|
|
2370
|
+
vErrors.push(err140);
|
|
1928
2371
|
}
|
|
1929
2372
|
errors++;
|
|
1930
2373
|
}
|
|
1931
2374
|
}
|
|
1932
2375
|
} else {
|
|
1933
|
-
const
|
|
2376
|
+
const err141 = { instancePath: instancePath + "/services/" + key22.replace(/~/g, "~0").replace(/\//g, "~1") + "/env", schemaPath: "#/definitions/stringArrayOrNull/oneOf/0/type", keyword: "type", params: { type: "array" }, message: "must be array" };
|
|
1934
2377
|
if (vErrors === null) {
|
|
1935
|
-
vErrors = [
|
|
2378
|
+
vErrors = [err141];
|
|
1936
2379
|
} else {
|
|
1937
|
-
vErrors.push(
|
|
2380
|
+
vErrors.push(err141);
|
|
1938
2381
|
}
|
|
1939
2382
|
errors++;
|
|
1940
2383
|
}
|
|
1941
|
-
var
|
|
1942
|
-
if (
|
|
1943
|
-
|
|
1944
|
-
|
|
2384
|
+
var _valid11 = _errs198 === errors;
|
|
2385
|
+
if (_valid11) {
|
|
2386
|
+
valid64 = true;
|
|
2387
|
+
passing9 = 0;
|
|
1945
2388
|
}
|
|
1946
|
-
const
|
|
1947
|
-
if (
|
|
1948
|
-
const
|
|
2389
|
+
const _errs202 = errors;
|
|
2390
|
+
if (data58 !== null) {
|
|
2391
|
+
const err142 = { instancePath: instancePath + "/services/" + key22.replace(/~/g, "~0").replace(/\//g, "~1") + "/env", schemaPath: "#/definitions/stringArrayOrNull/oneOf/1/type", keyword: "type", params: { type: "null" }, message: "must be null" };
|
|
1949
2392
|
if (vErrors === null) {
|
|
1950
|
-
vErrors = [
|
|
2393
|
+
vErrors = [err142];
|
|
1951
2394
|
} else {
|
|
1952
|
-
vErrors.push(
|
|
2395
|
+
vErrors.push(err142);
|
|
1953
2396
|
}
|
|
1954
2397
|
errors++;
|
|
1955
2398
|
}
|
|
1956
|
-
var
|
|
1957
|
-
if (
|
|
1958
|
-
|
|
1959
|
-
|
|
2399
|
+
var _valid11 = _errs202 === errors;
|
|
2400
|
+
if (_valid11 && valid64) {
|
|
2401
|
+
valid64 = false;
|
|
2402
|
+
passing9 = [passing9, 1];
|
|
1960
2403
|
} else {
|
|
1961
|
-
if (
|
|
1962
|
-
|
|
1963
|
-
|
|
2404
|
+
if (_valid11) {
|
|
2405
|
+
valid64 = true;
|
|
2406
|
+
passing9 = 1;
|
|
1964
2407
|
}
|
|
1965
2408
|
}
|
|
1966
|
-
if (!
|
|
1967
|
-
const
|
|
2409
|
+
if (!valid64) {
|
|
2410
|
+
const err143 = { instancePath: instancePath + "/services/" + key22.replace(/~/g, "~0").replace(/\//g, "~1") + "/env", schemaPath: "#/definitions/stringArrayOrNull/oneOf", keyword: "oneOf", params: { passingSchemas: passing9 }, message: "must match exactly one schema in oneOf" };
|
|
1968
2411
|
if (vErrors === null) {
|
|
1969
|
-
vErrors = [
|
|
2412
|
+
vErrors = [err143];
|
|
1970
2413
|
} else {
|
|
1971
|
-
vErrors.push(
|
|
2414
|
+
vErrors.push(err143);
|
|
1972
2415
|
}
|
|
1973
2416
|
errors++;
|
|
1974
2417
|
} else {
|
|
1975
|
-
errors =
|
|
2418
|
+
errors = _errs197;
|
|
1976
2419
|
if (vErrors !== null) {
|
|
1977
|
-
if (
|
|
1978
|
-
vErrors.length =
|
|
2420
|
+
if (_errs197) {
|
|
2421
|
+
vErrors.length = _errs197;
|
|
1979
2422
|
} else {
|
|
1980
2423
|
vErrors = null;
|
|
1981
2424
|
}
|
|
1982
2425
|
}
|
|
1983
2426
|
}
|
|
1984
2427
|
}
|
|
1985
|
-
if (
|
|
1986
|
-
let
|
|
1987
|
-
|
|
1988
|
-
|
|
2428
|
+
if (data45.expose !== void 0) {
|
|
2429
|
+
let data60 = data45.expose;
|
|
2430
|
+
const _errs205 = errors;
|
|
2431
|
+
let valid67 = false;
|
|
2432
|
+
let passing10 = null;
|
|
2433
|
+
const _errs206 = errors;
|
|
2434
|
+
if (Array.isArray(data60)) {
|
|
2435
|
+
const len9 = data60.length;
|
|
1989
2436
|
for (let i9 = 0; i9 < len9; i9++) {
|
|
1990
|
-
let
|
|
1991
|
-
if (
|
|
1992
|
-
if (
|
|
1993
|
-
const
|
|
2437
|
+
let data61 = data60[i9];
|
|
2438
|
+
if (data61 && typeof data61 == "object" && !Array.isArray(data61)) {
|
|
2439
|
+
if (data61.port === void 0) {
|
|
2440
|
+
const err144 = { instancePath: instancePath + "/services/" + key22.replace(/~/g, "~0").replace(/\//g, "~1") + "/expose/" + i9, schemaPath: "#/properties/services/additionalProperties/properties/expose/oneOf/0/items/required", keyword: "required", params: { missingProperty: "port" }, message: "must have required property 'port'" };
|
|
1994
2441
|
if (vErrors === null) {
|
|
1995
|
-
vErrors = [
|
|
2442
|
+
vErrors = [err144];
|
|
1996
2443
|
} else {
|
|
1997
|
-
vErrors.push(
|
|
2444
|
+
vErrors.push(err144);
|
|
1998
2445
|
}
|
|
1999
2446
|
errors++;
|
|
2000
2447
|
}
|
|
2001
|
-
for (const key26 in
|
|
2448
|
+
for (const key26 in data61) {
|
|
2002
2449
|
if (!(key26 === "accept" || key26 === "as" || key26 === "http_options" || key26 === "port" || key26 === "proto" || key26 === "to")) {
|
|
2003
|
-
const
|
|
2450
|
+
const err145 = { instancePath: instancePath + "/services/" + key22.replace(/~/g, "~0").replace(/\//g, "~1") + "/expose/" + i9, schemaPath: "#/properties/services/additionalProperties/properties/expose/oneOf/0/items/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key26 }, message: "must NOT have additional properties" };
|
|
2004
2451
|
if (vErrors === null) {
|
|
2005
|
-
vErrors = [
|
|
2452
|
+
vErrors = [err145];
|
|
2006
2453
|
} else {
|
|
2007
|
-
vErrors.push(
|
|
2454
|
+
vErrors.push(err145);
|
|
2008
2455
|
}
|
|
2009
2456
|
errors++;
|
|
2010
2457
|
}
|
|
2011
2458
|
}
|
|
2012
|
-
if (
|
|
2013
|
-
let
|
|
2014
|
-
if (Array.isArray(
|
|
2015
|
-
const len10 =
|
|
2459
|
+
if (data61.accept !== void 0) {
|
|
2460
|
+
let data62 = data61.accept;
|
|
2461
|
+
if (Array.isArray(data62)) {
|
|
2462
|
+
const len10 = data62.length;
|
|
2016
2463
|
for (let i10 = 0; i10 < len10; i10++) {
|
|
2017
|
-
if (typeof
|
|
2018
|
-
const
|
|
2464
|
+
if (typeof data62[i10] !== "string") {
|
|
2465
|
+
const err146 = { instancePath: instancePath + "/services/" + key22.replace(/~/g, "~0").replace(/\//g, "~1") + "/expose/" + i9 + "/accept/" + i10, schemaPath: "#/properties/services/additionalProperties/properties/expose/oneOf/0/items/properties/accept/items/type", keyword: "type", params: { type: "string" }, message: "must be string" };
|
|
2019
2466
|
if (vErrors === null) {
|
|
2020
|
-
vErrors = [
|
|
2467
|
+
vErrors = [err146];
|
|
2021
2468
|
} else {
|
|
2022
|
-
vErrors.push(
|
|
2469
|
+
vErrors.push(err146);
|
|
2023
2470
|
}
|
|
2024
2471
|
errors++;
|
|
2025
2472
|
}
|
|
2026
2473
|
}
|
|
2027
2474
|
} else {
|
|
2028
|
-
const
|
|
2475
|
+
const err147 = { instancePath: instancePath + "/services/" + key22.replace(/~/g, "~0").replace(/\//g, "~1") + "/expose/" + i9 + "/accept", schemaPath: "#/properties/services/additionalProperties/properties/expose/oneOf/0/items/properties/accept/type", keyword: "type", params: { type: "array" }, message: "must be array" };
|
|
2029
2476
|
if (vErrors === null) {
|
|
2030
|
-
vErrors = [
|
|
2477
|
+
vErrors = [err147];
|
|
2031
2478
|
} else {
|
|
2032
|
-
vErrors.push(
|
|
2479
|
+
vErrors.push(err147);
|
|
2033
2480
|
}
|
|
2034
2481
|
errors++;
|
|
2035
2482
|
}
|
|
2036
2483
|
}
|
|
2037
|
-
if (
|
|
2038
|
-
let
|
|
2039
|
-
if (!(typeof
|
|
2040
|
-
const
|
|
2484
|
+
if (data61.as !== void 0) {
|
|
2485
|
+
let data64 = data61.as;
|
|
2486
|
+
if (!(typeof data64 == "number" && (!(data64 % 1) && !isNaN(data64)))) {
|
|
2487
|
+
const err148 = { instancePath: instancePath + "/services/" + key22.replace(/~/g, "~0").replace(/\//g, "~1") + "/expose/" + i9 + "/as", schemaPath: "#/definitions/portNumber/type", keyword: "type", params: { type: "integer" }, message: "must be integer" };
|
|
2041
2488
|
if (vErrors === null) {
|
|
2042
|
-
vErrors = [
|
|
2489
|
+
vErrors = [err148];
|
|
2043
2490
|
} else {
|
|
2044
|
-
vErrors.push(
|
|
2491
|
+
vErrors.push(err148);
|
|
2045
2492
|
}
|
|
2046
2493
|
errors++;
|
|
2047
2494
|
}
|
|
2048
|
-
if (typeof
|
|
2049
|
-
if (
|
|
2050
|
-
const
|
|
2495
|
+
if (typeof data64 == "number") {
|
|
2496
|
+
if (data64 > 65535 || isNaN(data64)) {
|
|
2497
|
+
const err149 = { instancePath: instancePath + "/services/" + key22.replace(/~/g, "~0").replace(/\//g, "~1") + "/expose/" + i9 + "/as", schemaPath: "#/definitions/portNumber/maximum", keyword: "maximum", params: { comparison: "<=", limit: 65535 }, message: "must be <= 65535" };
|
|
2051
2498
|
if (vErrors === null) {
|
|
2052
|
-
vErrors = [
|
|
2499
|
+
vErrors = [err149];
|
|
2053
2500
|
} else {
|
|
2054
|
-
vErrors.push(
|
|
2501
|
+
vErrors.push(err149);
|
|
2055
2502
|
}
|
|
2056
2503
|
errors++;
|
|
2057
2504
|
}
|
|
2058
|
-
if (
|
|
2059
|
-
const
|
|
2505
|
+
if (data64 < 1 || isNaN(data64)) {
|
|
2506
|
+
const err150 = { instancePath: instancePath + "/services/" + key22.replace(/~/g, "~0").replace(/\//g, "~1") + "/expose/" + i9 + "/as", schemaPath: "#/definitions/portNumber/minimum", keyword: "minimum", params: { comparison: ">=", limit: 1 }, message: "must be >= 1" };
|
|
2060
2507
|
if (vErrors === null) {
|
|
2061
|
-
vErrors = [
|
|
2508
|
+
vErrors = [err150];
|
|
2062
2509
|
} else {
|
|
2063
|
-
vErrors.push(
|
|
2510
|
+
vErrors.push(err150);
|
|
2064
2511
|
}
|
|
2065
2512
|
errors++;
|
|
2066
2513
|
}
|
|
2067
2514
|
}
|
|
2068
2515
|
}
|
|
2069
|
-
if (
|
|
2070
|
-
let
|
|
2071
|
-
if (
|
|
2072
|
-
for (const key27 in
|
|
2516
|
+
if (data61.http_options !== void 0) {
|
|
2517
|
+
let data65 = data61.http_options;
|
|
2518
|
+
if (data65 && typeof data65 == "object" && !Array.isArray(data65)) {
|
|
2519
|
+
for (const key27 in data65) {
|
|
2073
2520
|
if (!(key27 === "max_body_size" || key27 === "next_cases" || key27 === "next_timeout" || key27 === "next_tries" || key27 === "read_timeout" || key27 === "send_timeout")) {
|
|
2074
|
-
const
|
|
2521
|
+
const err151 = { instancePath: instancePath + "/services/" + key22.replace(/~/g, "~0").replace(/\//g, "~1") + "/expose/" + i9 + "/http_options", schemaPath: "#/properties/services/additionalProperties/properties/expose/oneOf/0/items/properties/http_options/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key27 }, message: "must NOT have additional properties" };
|
|
2075
2522
|
if (vErrors === null) {
|
|
2076
|
-
vErrors = [
|
|
2523
|
+
vErrors = [err151];
|
|
2077
2524
|
} else {
|
|
2078
|
-
vErrors.push(
|
|
2525
|
+
vErrors.push(err151);
|
|
2079
2526
|
}
|
|
2080
2527
|
errors++;
|
|
2081
2528
|
}
|
|
2082
2529
|
}
|
|
2083
|
-
if (
|
|
2084
|
-
let
|
|
2085
|
-
if (!(typeof
|
|
2086
|
-
const
|
|
2530
|
+
if (data65.max_body_size !== void 0) {
|
|
2531
|
+
let data66 = data65.max_body_size;
|
|
2532
|
+
if (!(typeof data66 == "number" && (!(data66 % 1) && !isNaN(data66)))) {
|
|
2533
|
+
const err152 = { instancePath: instancePath + "/services/" + key22.replace(/~/g, "~0").replace(/\//g, "~1") + "/expose/" + i9 + "/http_options/max_body_size", schemaPath: "#/properties/services/additionalProperties/properties/expose/oneOf/0/items/properties/http_options/properties/max_body_size/type", keyword: "type", params: { type: "integer" }, message: "must be integer" };
|
|
2087
2534
|
if (vErrors === null) {
|
|
2088
|
-
vErrors = [
|
|
2535
|
+
vErrors = [err152];
|
|
2089
2536
|
} else {
|
|
2090
|
-
vErrors.push(
|
|
2537
|
+
vErrors.push(err152);
|
|
2091
2538
|
}
|
|
2092
2539
|
errors++;
|
|
2093
2540
|
}
|
|
2094
|
-
if (typeof
|
|
2095
|
-
if (
|
|
2096
|
-
const
|
|
2541
|
+
if (typeof data66 == "number") {
|
|
2542
|
+
if (data66 > 104857600 || isNaN(data66)) {
|
|
2543
|
+
const err153 = { instancePath: instancePath + "/services/" + key22.replace(/~/g, "~0").replace(/\//g, "~1") + "/expose/" + i9 + "/http_options/max_body_size", schemaPath: "#/properties/services/additionalProperties/properties/expose/oneOf/0/items/properties/http_options/properties/max_body_size/maximum", keyword: "maximum", params: { comparison: "<=", limit: 104857600 }, message: "must be <= 104857600" };
|
|
2097
2544
|
if (vErrors === null) {
|
|
2098
|
-
vErrors = [
|
|
2545
|
+
vErrors = [err153];
|
|
2099
2546
|
} else {
|
|
2100
|
-
vErrors.push(
|
|
2547
|
+
vErrors.push(err153);
|
|
2101
2548
|
}
|
|
2102
2549
|
errors++;
|
|
2103
2550
|
}
|
|
2104
|
-
if (
|
|
2105
|
-
const
|
|
2551
|
+
if (data66 < 0 || isNaN(data66)) {
|
|
2552
|
+
const err154 = { instancePath: instancePath + "/services/" + key22.replace(/~/g, "~0").replace(/\//g, "~1") + "/expose/" + i9 + "/http_options/max_body_size", schemaPath: "#/properties/services/additionalProperties/properties/expose/oneOf/0/items/properties/http_options/properties/max_body_size/minimum", keyword: "minimum", params: { comparison: ">=", limit: 0 }, message: "must be >= 0" };
|
|
2106
2553
|
if (vErrors === null) {
|
|
2107
|
-
vErrors = [
|
|
2554
|
+
vErrors = [err154];
|
|
2108
2555
|
} else {
|
|
2109
|
-
vErrors.push(
|
|
2556
|
+
vErrors.push(err154);
|
|
2110
2557
|
}
|
|
2111
2558
|
errors++;
|
|
2112
2559
|
}
|
|
2113
2560
|
}
|
|
2114
2561
|
}
|
|
2115
|
-
if (
|
|
2116
|
-
let
|
|
2117
|
-
const
|
|
2118
|
-
let
|
|
2119
|
-
let
|
|
2120
|
-
const
|
|
2121
|
-
if (Array.isArray(
|
|
2122
|
-
if (
|
|
2123
|
-
const
|
|
2562
|
+
if (data65.next_cases !== void 0) {
|
|
2563
|
+
let data67 = data65.next_cases;
|
|
2564
|
+
const _errs224 = errors;
|
|
2565
|
+
let valid75 = false;
|
|
2566
|
+
let passing11 = null;
|
|
2567
|
+
const _errs225 = errors;
|
|
2568
|
+
if (Array.isArray(data67)) {
|
|
2569
|
+
if (data67.length > 1) {
|
|
2570
|
+
const err155 = { instancePath: instancePath + "/services/" + key22.replace(/~/g, "~0").replace(/\//g, "~1") + "/expose/" + i9 + "/http_options/next_cases", schemaPath: "#/properties/services/additionalProperties/properties/expose/oneOf/0/items/properties/http_options/properties/next_cases/oneOf/0/maxItems", keyword: "maxItems", params: { limit: 1 }, message: "must NOT have more than 1 items" };
|
|
2124
2571
|
if (vErrors === null) {
|
|
2125
|
-
vErrors = [
|
|
2572
|
+
vErrors = [err155];
|
|
2126
2573
|
} else {
|
|
2127
|
-
vErrors.push(
|
|
2574
|
+
vErrors.push(err155);
|
|
2128
2575
|
}
|
|
2129
2576
|
errors++;
|
|
2130
2577
|
}
|
|
2131
|
-
if (
|
|
2132
|
-
const
|
|
2578
|
+
if (data67.length < 1) {
|
|
2579
|
+
const err156 = { instancePath: instancePath + "/services/" + key22.replace(/~/g, "~0").replace(/\//g, "~1") + "/expose/" + i9 + "/http_options/next_cases", schemaPath: "#/properties/services/additionalProperties/properties/expose/oneOf/0/items/properties/http_options/properties/next_cases/oneOf/0/minItems", keyword: "minItems", params: { limit: 1 }, message: "must NOT have fewer than 1 items" };
|
|
2133
2580
|
if (vErrors === null) {
|
|
2134
|
-
vErrors = [
|
|
2581
|
+
vErrors = [err156];
|
|
2135
2582
|
} else {
|
|
2136
|
-
vErrors.push(
|
|
2583
|
+
vErrors.push(err156);
|
|
2137
2584
|
}
|
|
2138
2585
|
errors++;
|
|
2139
2586
|
}
|
|
2140
|
-
const len11 =
|
|
2587
|
+
const len11 = data67.length;
|
|
2141
2588
|
for (let i11 = 0; i11 < len11; i11++) {
|
|
2142
|
-
let
|
|
2143
|
-
if (typeof
|
|
2144
|
-
const
|
|
2589
|
+
let data68 = data67[i11];
|
|
2590
|
+
if (typeof data68 !== "string") {
|
|
2591
|
+
const err157 = { instancePath: instancePath + "/services/" + key22.replace(/~/g, "~0").replace(/\//g, "~1") + "/expose/" + i9 + "/http_options/next_cases/" + i11, schemaPath: "#/definitions/httpErrorCode/type", keyword: "type", params: { type: "string" }, message: "must be string" };
|
|
2145
2592
|
if (vErrors === null) {
|
|
2146
|
-
vErrors = [
|
|
2593
|
+
vErrors = [err157];
|
|
2147
2594
|
} else {
|
|
2148
|
-
vErrors.push(
|
|
2595
|
+
vErrors.push(err157);
|
|
2149
2596
|
}
|
|
2150
2597
|
errors++;
|
|
2151
2598
|
}
|
|
2152
|
-
if (!(
|
|
2153
|
-
const
|
|
2599
|
+
if (!(data68 === "error" || data68 === "timeout" || data68 === "500" || data68 === "502" || data68 === "503" || data68 === "504" || data68 === "403" || data68 === "404" || data68 === "429" || data68 === "off")) {
|
|
2600
|
+
const err158 = { instancePath: instancePath + "/services/" + key22.replace(/~/g, "~0").replace(/\//g, "~1") + "/expose/" + i9 + "/http_options/next_cases/" + i11, schemaPath: "#/definitions/httpErrorCode/enum", keyword: "enum", params: { allowedValues: schema24.enum }, message: "must be equal to one of the allowed values" };
|
|
2154
2601
|
if (vErrors === null) {
|
|
2155
|
-
vErrors = [
|
|
2602
|
+
vErrors = [err158];
|
|
2156
2603
|
} else {
|
|
2157
|
-
vErrors.push(
|
|
2604
|
+
vErrors.push(err158);
|
|
2158
2605
|
}
|
|
2159
2606
|
errors++;
|
|
2160
2607
|
}
|
|
2161
2608
|
}
|
|
2162
|
-
const
|
|
2163
|
-
const len12 =
|
|
2609
|
+
const _errs230 = errors;
|
|
2610
|
+
const len12 = data67.length;
|
|
2164
2611
|
for (let i12 = 0; i12 < len12; i12++) {
|
|
2165
|
-
const
|
|
2166
|
-
if ("off" !==
|
|
2167
|
-
const
|
|
2612
|
+
const _errs231 = errors;
|
|
2613
|
+
if ("off" !== data67[i12]) {
|
|
2614
|
+
const err159 = { instancePath: instancePath + "/services/" + key22.replace(/~/g, "~0").replace(/\//g, "~1") + "/expose/" + i9 + "/http_options/next_cases/" + i12, schemaPath: "#/properties/services/additionalProperties/properties/expose/oneOf/0/items/properties/http_options/properties/next_cases/oneOf/0/contains/const", keyword: "const", params: { allowedValue: "off" }, message: "must be equal to constant" };
|
|
2168
2615
|
if (vErrors === null) {
|
|
2169
|
-
vErrors = [
|
|
2616
|
+
vErrors = [err159];
|
|
2170
2617
|
} else {
|
|
2171
|
-
vErrors.push(
|
|
2618
|
+
vErrors.push(err159);
|
|
2172
2619
|
}
|
|
2173
2620
|
errors++;
|
|
2174
2621
|
}
|
|
2175
|
-
var
|
|
2176
|
-
if (
|
|
2622
|
+
var valid79 = _errs231 === errors;
|
|
2623
|
+
if (valid79) {
|
|
2177
2624
|
break;
|
|
2178
2625
|
}
|
|
2179
2626
|
}
|
|
2180
|
-
if (!
|
|
2181
|
-
const
|
|
2627
|
+
if (!valid79) {
|
|
2628
|
+
const err160 = { instancePath: instancePath + "/services/" + key22.replace(/~/g, "~0").replace(/\//g, "~1") + "/expose/" + i9 + "/http_options/next_cases", schemaPath: "#/properties/services/additionalProperties/properties/expose/oneOf/0/items/properties/http_options/properties/next_cases/oneOf/0/contains", keyword: "contains", params: { minContains: 1 }, message: "must contain at least 1 valid item(s)" };
|
|
2182
2629
|
if (vErrors === null) {
|
|
2183
|
-
vErrors = [
|
|
2630
|
+
vErrors = [err160];
|
|
2184
2631
|
} else {
|
|
2185
|
-
vErrors.push(
|
|
2632
|
+
vErrors.push(err160);
|
|
2186
2633
|
}
|
|
2187
2634
|
errors++;
|
|
2188
2635
|
} else {
|
|
2189
|
-
errors =
|
|
2636
|
+
errors = _errs230;
|
|
2190
2637
|
if (vErrors !== null) {
|
|
2191
|
-
if (
|
|
2192
|
-
vErrors.length =
|
|
2638
|
+
if (_errs230) {
|
|
2639
|
+
vErrors.length = _errs230;
|
|
2193
2640
|
} else {
|
|
2194
2641
|
vErrors = null;
|
|
2195
2642
|
}
|
|
2196
2643
|
}
|
|
2197
2644
|
}
|
|
2198
2645
|
} else {
|
|
2199
|
-
const
|
|
2646
|
+
const err161 = { instancePath: instancePath + "/services/" + key22.replace(/~/g, "~0").replace(/\//g, "~1") + "/expose/" + i9 + "/http_options/next_cases", schemaPath: "#/properties/services/additionalProperties/properties/expose/oneOf/0/items/properties/http_options/properties/next_cases/oneOf/0/type", keyword: "type", params: { type: "array" }, message: "must be array" };
|
|
2200
2647
|
if (vErrors === null) {
|
|
2201
|
-
vErrors = [
|
|
2648
|
+
vErrors = [err161];
|
|
2202
2649
|
} else {
|
|
2203
|
-
vErrors.push(
|
|
2650
|
+
vErrors.push(err161);
|
|
2204
2651
|
}
|
|
2205
2652
|
errors++;
|
|
2206
2653
|
}
|
|
2207
|
-
var
|
|
2208
|
-
if (
|
|
2209
|
-
|
|
2210
|
-
|
|
2211
|
-
}
|
|
2212
|
-
const
|
|
2213
|
-
const
|
|
2214
|
-
const
|
|
2215
|
-
if (Array.isArray(
|
|
2216
|
-
const
|
|
2217
|
-
const len13 =
|
|
2654
|
+
var _valid13 = _errs225 === errors;
|
|
2655
|
+
if (_valid13) {
|
|
2656
|
+
valid75 = true;
|
|
2657
|
+
passing11 = 0;
|
|
2658
|
+
}
|
|
2659
|
+
const _errs232 = errors;
|
|
2660
|
+
const _errs234 = errors;
|
|
2661
|
+
const _errs235 = errors;
|
|
2662
|
+
if (Array.isArray(data67)) {
|
|
2663
|
+
const _errs236 = errors;
|
|
2664
|
+
const len13 = data67.length;
|
|
2218
2665
|
for (let i13 = 0; i13 < len13; i13++) {
|
|
2219
|
-
const
|
|
2220
|
-
if ("off" !==
|
|
2221
|
-
const
|
|
2666
|
+
const _errs237 = errors;
|
|
2667
|
+
if ("off" !== data67[i13]) {
|
|
2668
|
+
const err162 = {};
|
|
2222
2669
|
if (vErrors === null) {
|
|
2223
|
-
vErrors = [
|
|
2670
|
+
vErrors = [err162];
|
|
2224
2671
|
} else {
|
|
2225
|
-
vErrors.push(
|
|
2672
|
+
vErrors.push(err162);
|
|
2226
2673
|
}
|
|
2227
2674
|
errors++;
|
|
2228
2675
|
}
|
|
2229
|
-
var
|
|
2230
|
-
if (
|
|
2676
|
+
var valid81 = _errs237 === errors;
|
|
2677
|
+
if (valid81) {
|
|
2231
2678
|
break;
|
|
2232
2679
|
}
|
|
2233
2680
|
}
|
|
2234
|
-
if (!
|
|
2235
|
-
const
|
|
2681
|
+
if (!valid81) {
|
|
2682
|
+
const err163 = {};
|
|
2236
2683
|
if (vErrors === null) {
|
|
2237
|
-
vErrors = [
|
|
2684
|
+
vErrors = [err163];
|
|
2238
2685
|
} else {
|
|
2239
|
-
vErrors.push(
|
|
2686
|
+
vErrors.push(err163);
|
|
2240
2687
|
}
|
|
2241
2688
|
errors++;
|
|
2242
2689
|
} else {
|
|
2243
|
-
errors =
|
|
2690
|
+
errors = _errs236;
|
|
2244
2691
|
if (vErrors !== null) {
|
|
2245
|
-
if (
|
|
2246
|
-
vErrors.length =
|
|
2692
|
+
if (_errs236) {
|
|
2693
|
+
vErrors.length = _errs236;
|
|
2247
2694
|
} else {
|
|
2248
2695
|
vErrors = null;
|
|
2249
2696
|
}
|
|
2250
2697
|
}
|
|
2251
2698
|
}
|
|
2252
2699
|
}
|
|
2253
|
-
var
|
|
2254
|
-
if (
|
|
2255
|
-
const
|
|
2700
|
+
var valid80 = _errs235 === errors;
|
|
2701
|
+
if (valid80) {
|
|
2702
|
+
const err164 = { instancePath: instancePath + "/services/" + key22.replace(/~/g, "~0").replace(/\//g, "~1") + "/expose/" + i9 + "/http_options/next_cases", schemaPath: "#/properties/services/additionalProperties/properties/expose/oneOf/0/items/properties/http_options/properties/next_cases/oneOf/1/not", keyword: "not", params: {}, message: "must NOT be valid" };
|
|
2256
2703
|
if (vErrors === null) {
|
|
2257
|
-
vErrors = [
|
|
2704
|
+
vErrors = [err164];
|
|
2258
2705
|
} else {
|
|
2259
|
-
vErrors.push(
|
|
2706
|
+
vErrors.push(err164);
|
|
2260
2707
|
}
|
|
2261
2708
|
errors++;
|
|
2262
2709
|
} else {
|
|
2263
|
-
errors =
|
|
2710
|
+
errors = _errs234;
|
|
2264
2711
|
if (vErrors !== null) {
|
|
2265
|
-
if (
|
|
2266
|
-
vErrors.length =
|
|
2712
|
+
if (_errs234) {
|
|
2713
|
+
vErrors.length = _errs234;
|
|
2267
2714
|
} else {
|
|
2268
2715
|
vErrors = null;
|
|
2269
2716
|
}
|
|
2270
2717
|
}
|
|
2271
2718
|
}
|
|
2272
|
-
if (Array.isArray(
|
|
2273
|
-
const len14 =
|
|
2719
|
+
if (Array.isArray(data67)) {
|
|
2720
|
+
const len14 = data67.length;
|
|
2274
2721
|
for (let i14 = 0; i14 < len14; i14++) {
|
|
2275
|
-
let
|
|
2276
|
-
if (typeof
|
|
2277
|
-
const
|
|
2722
|
+
let data71 = data67[i14];
|
|
2723
|
+
if (typeof data71 !== "string") {
|
|
2724
|
+
const err165 = { instancePath: instancePath + "/services/" + key22.replace(/~/g, "~0").replace(/\//g, "~1") + "/expose/" + i9 + "/http_options/next_cases/" + i14, schemaPath: "#/definitions/httpErrorCode/type", keyword: "type", params: { type: "string" }, message: "must be string" };
|
|
2278
2725
|
if (vErrors === null) {
|
|
2279
|
-
vErrors = [
|
|
2726
|
+
vErrors = [err165];
|
|
2280
2727
|
} else {
|
|
2281
|
-
vErrors.push(
|
|
2728
|
+
vErrors.push(err165);
|
|
2282
2729
|
}
|
|
2283
2730
|
errors++;
|
|
2284
2731
|
}
|
|
2285
|
-
if (!(
|
|
2286
|
-
const
|
|
2732
|
+
if (!(data71 === "error" || data71 === "timeout" || data71 === "500" || data71 === "502" || data71 === "503" || data71 === "504" || data71 === "403" || data71 === "404" || data71 === "429" || data71 === "off")) {
|
|
2733
|
+
const err166 = { instancePath: instancePath + "/services/" + key22.replace(/~/g, "~0").replace(/\//g, "~1") + "/expose/" + i9 + "/http_options/next_cases/" + i14, schemaPath: "#/definitions/httpErrorCode/enum", keyword: "enum", params: { allowedValues: schema24.enum }, message: "must be equal to one of the allowed values" };
|
|
2287
2734
|
if (vErrors === null) {
|
|
2288
|
-
vErrors = [
|
|
2735
|
+
vErrors = [err166];
|
|
2289
2736
|
} else {
|
|
2290
|
-
vErrors.push(
|
|
2737
|
+
vErrors.push(err166);
|
|
2291
2738
|
}
|
|
2292
2739
|
errors++;
|
|
2293
2740
|
}
|
|
2294
2741
|
}
|
|
2295
2742
|
} else {
|
|
2296
|
-
const
|
|
2743
|
+
const err167 = { instancePath: instancePath + "/services/" + key22.replace(/~/g, "~0").replace(/\//g, "~1") + "/expose/" + i9 + "/http_options/next_cases", schemaPath: "#/properties/services/additionalProperties/properties/expose/oneOf/0/items/properties/http_options/properties/next_cases/oneOf/1/type", keyword: "type", params: { type: "array" }, message: "must be array" };
|
|
2297
2744
|
if (vErrors === null) {
|
|
2298
|
-
vErrors = [
|
|
2745
|
+
vErrors = [err167];
|
|
2299
2746
|
} else {
|
|
2300
|
-
vErrors.push(
|
|
2747
|
+
vErrors.push(err167);
|
|
2301
2748
|
}
|
|
2302
2749
|
errors++;
|
|
2303
2750
|
}
|
|
2304
|
-
var
|
|
2305
|
-
if (
|
|
2306
|
-
|
|
2307
|
-
|
|
2751
|
+
var _valid13 = _errs232 === errors;
|
|
2752
|
+
if (_valid13 && valid75) {
|
|
2753
|
+
valid75 = false;
|
|
2754
|
+
passing11 = [passing11, 1];
|
|
2308
2755
|
} else {
|
|
2309
|
-
if (
|
|
2310
|
-
|
|
2311
|
-
|
|
2756
|
+
if (_valid13) {
|
|
2757
|
+
valid75 = true;
|
|
2758
|
+
passing11 = 1;
|
|
2312
2759
|
}
|
|
2313
2760
|
}
|
|
2314
|
-
if (!
|
|
2315
|
-
const
|
|
2761
|
+
if (!valid75) {
|
|
2762
|
+
const err168 = { instancePath: instancePath + "/services/" + key22.replace(/~/g, "~0").replace(/\//g, "~1") + "/expose/" + i9 + "/http_options/next_cases", schemaPath: "#/properties/services/additionalProperties/properties/expose/oneOf/0/items/properties/http_options/properties/next_cases/oneOf", keyword: "oneOf", params: { passingSchemas: passing11 }, message: "must match exactly one schema in oneOf" };
|
|
2316
2763
|
if (vErrors === null) {
|
|
2317
|
-
vErrors = [
|
|
2764
|
+
vErrors = [err168];
|
|
2318
2765
|
} else {
|
|
2319
|
-
vErrors.push(
|
|
2766
|
+
vErrors.push(err168);
|
|
2320
2767
|
}
|
|
2321
2768
|
errors++;
|
|
2322
2769
|
} else {
|
|
2323
|
-
errors =
|
|
2770
|
+
errors = _errs224;
|
|
2324
2771
|
if (vErrors !== null) {
|
|
2325
|
-
if (
|
|
2326
|
-
vErrors.length =
|
|
2772
|
+
if (_errs224) {
|
|
2773
|
+
vErrors.length = _errs224;
|
|
2327
2774
|
} else {
|
|
2328
2775
|
vErrors = null;
|
|
2329
2776
|
}
|
|
2330
2777
|
}
|
|
2331
2778
|
}
|
|
2332
2779
|
}
|
|
2333
|
-
if (
|
|
2334
|
-
let
|
|
2335
|
-
if (!(typeof
|
|
2336
|
-
const
|
|
2780
|
+
if (data65.next_timeout !== void 0) {
|
|
2781
|
+
let data72 = data65.next_timeout;
|
|
2782
|
+
if (!(typeof data72 == "number" && (!(data72 % 1) && !isNaN(data72)))) {
|
|
2783
|
+
const err169 = { instancePath: instancePath + "/services/" + key22.replace(/~/g, "~0").replace(/\//g, "~1") + "/expose/" + i9 + "/http_options/next_timeout", schemaPath: "#/properties/services/additionalProperties/properties/expose/oneOf/0/items/properties/http_options/properties/next_timeout/type", keyword: "type", params: { type: "integer" }, message: "must be integer" };
|
|
2337
2784
|
if (vErrors === null) {
|
|
2338
|
-
vErrors = [
|
|
2785
|
+
vErrors = [err169];
|
|
2339
2786
|
} else {
|
|
2340
|
-
vErrors.push(
|
|
2787
|
+
vErrors.push(err169);
|
|
2341
2788
|
}
|
|
2342
2789
|
errors++;
|
|
2343
2790
|
}
|
|
2344
|
-
if (typeof
|
|
2345
|
-
if (
|
|
2346
|
-
const
|
|
2791
|
+
if (typeof data72 == "number") {
|
|
2792
|
+
if (data72 < 0 || isNaN(data72)) {
|
|
2793
|
+
const err170 = { instancePath: instancePath + "/services/" + key22.replace(/~/g, "~0").replace(/\//g, "~1") + "/expose/" + i9 + "/http_options/next_timeout", schemaPath: "#/properties/services/additionalProperties/properties/expose/oneOf/0/items/properties/http_options/properties/next_timeout/minimum", keyword: "minimum", params: { comparison: ">=", limit: 0 }, message: "must be >= 0" };
|
|
2347
2794
|
if (vErrors === null) {
|
|
2348
|
-
vErrors = [
|
|
2795
|
+
vErrors = [err170];
|
|
2349
2796
|
} else {
|
|
2350
|
-
vErrors.push(
|
|
2797
|
+
vErrors.push(err170);
|
|
2351
2798
|
}
|
|
2352
2799
|
errors++;
|
|
2353
2800
|
}
|
|
2354
2801
|
}
|
|
2355
2802
|
}
|
|
2356
|
-
if (
|
|
2357
|
-
let
|
|
2358
|
-
if (!(typeof
|
|
2359
|
-
const
|
|
2803
|
+
if (data65.next_tries !== void 0) {
|
|
2804
|
+
let data73 = data65.next_tries;
|
|
2805
|
+
if (!(typeof data73 == "number" && (!(data73 % 1) && !isNaN(data73)))) {
|
|
2806
|
+
const err171 = { instancePath: instancePath + "/services/" + key22.replace(/~/g, "~0").replace(/\//g, "~1") + "/expose/" + i9 + "/http_options/next_tries", schemaPath: "#/properties/services/additionalProperties/properties/expose/oneOf/0/items/properties/http_options/properties/next_tries/type", keyword: "type", params: { type: "integer" }, message: "must be integer" };
|
|
2360
2807
|
if (vErrors === null) {
|
|
2361
|
-
vErrors = [
|
|
2808
|
+
vErrors = [err171];
|
|
2362
2809
|
} else {
|
|
2363
|
-
vErrors.push(
|
|
2810
|
+
vErrors.push(err171);
|
|
2364
2811
|
}
|
|
2365
2812
|
errors++;
|
|
2366
2813
|
}
|
|
2367
|
-
if (typeof
|
|
2368
|
-
if (
|
|
2369
|
-
const
|
|
2814
|
+
if (typeof data73 == "number") {
|
|
2815
|
+
if (data73 < 0 || isNaN(data73)) {
|
|
2816
|
+
const err172 = { instancePath: instancePath + "/services/" + key22.replace(/~/g, "~0").replace(/\//g, "~1") + "/expose/" + i9 + "/http_options/next_tries", schemaPath: "#/properties/services/additionalProperties/properties/expose/oneOf/0/items/properties/http_options/properties/next_tries/minimum", keyword: "minimum", params: { comparison: ">=", limit: 0 }, message: "must be >= 0" };
|
|
2370
2817
|
if (vErrors === null) {
|
|
2371
|
-
vErrors = [
|
|
2818
|
+
vErrors = [err172];
|
|
2372
2819
|
} else {
|
|
2373
|
-
vErrors.push(
|
|
2820
|
+
vErrors.push(err172);
|
|
2374
2821
|
}
|
|
2375
2822
|
errors++;
|
|
2376
2823
|
}
|
|
2377
2824
|
}
|
|
2378
2825
|
}
|
|
2379
|
-
if (
|
|
2380
|
-
let
|
|
2381
|
-
if (!(typeof
|
|
2382
|
-
const
|
|
2826
|
+
if (data65.read_timeout !== void 0) {
|
|
2827
|
+
let data74 = data65.read_timeout;
|
|
2828
|
+
if (!(typeof data74 == "number" && (!(data74 % 1) && !isNaN(data74)))) {
|
|
2829
|
+
const err173 = { instancePath: instancePath + "/services/" + key22.replace(/~/g, "~0").replace(/\//g, "~1") + "/expose/" + i9 + "/http_options/read_timeout", schemaPath: "#/properties/services/additionalProperties/properties/expose/oneOf/0/items/properties/http_options/properties/read_timeout/type", keyword: "type", params: { type: "integer" }, message: "must be integer" };
|
|
2383
2830
|
if (vErrors === null) {
|
|
2384
|
-
vErrors = [
|
|
2831
|
+
vErrors = [err173];
|
|
2385
2832
|
} else {
|
|
2386
|
-
vErrors.push(
|
|
2833
|
+
vErrors.push(err173);
|
|
2387
2834
|
}
|
|
2388
2835
|
errors++;
|
|
2389
2836
|
}
|
|
2390
|
-
if (typeof
|
|
2391
|
-
if (
|
|
2392
|
-
const
|
|
2837
|
+
if (typeof data74 == "number") {
|
|
2838
|
+
if (data74 > 6e4 || isNaN(data74)) {
|
|
2839
|
+
const err174 = { instancePath: instancePath + "/services/" + key22.replace(/~/g, "~0").replace(/\//g, "~1") + "/expose/" + i9 + "/http_options/read_timeout", schemaPath: "#/properties/services/additionalProperties/properties/expose/oneOf/0/items/properties/http_options/properties/read_timeout/maximum", keyword: "maximum", params: { comparison: "<=", limit: 6e4 }, message: "must be <= 60000" };
|
|
2393
2840
|
if (vErrors === null) {
|
|
2394
|
-
vErrors = [
|
|
2841
|
+
vErrors = [err174];
|
|
2395
2842
|
} else {
|
|
2396
|
-
vErrors.push(
|
|
2843
|
+
vErrors.push(err174);
|
|
2397
2844
|
}
|
|
2398
2845
|
errors++;
|
|
2399
2846
|
}
|
|
2400
|
-
if (
|
|
2401
|
-
const
|
|
2847
|
+
if (data74 < 0 || isNaN(data74)) {
|
|
2848
|
+
const err175 = { instancePath: instancePath + "/services/" + key22.replace(/~/g, "~0").replace(/\//g, "~1") + "/expose/" + i9 + "/http_options/read_timeout", schemaPath: "#/properties/services/additionalProperties/properties/expose/oneOf/0/items/properties/http_options/properties/read_timeout/minimum", keyword: "minimum", params: { comparison: ">=", limit: 0 }, message: "must be >= 0" };
|
|
2402
2849
|
if (vErrors === null) {
|
|
2403
|
-
vErrors = [
|
|
2850
|
+
vErrors = [err175];
|
|
2404
2851
|
} else {
|
|
2405
|
-
vErrors.push(
|
|
2852
|
+
vErrors.push(err175);
|
|
2406
2853
|
}
|
|
2407
2854
|
errors++;
|
|
2408
2855
|
}
|
|
2409
2856
|
}
|
|
2410
2857
|
}
|
|
2411
|
-
if (
|
|
2412
|
-
let
|
|
2413
|
-
if (!(typeof
|
|
2414
|
-
const
|
|
2858
|
+
if (data65.send_timeout !== void 0) {
|
|
2859
|
+
let data75 = data65.send_timeout;
|
|
2860
|
+
if (!(typeof data75 == "number" && (!(data75 % 1) && !isNaN(data75)))) {
|
|
2861
|
+
const err176 = { instancePath: instancePath + "/services/" + key22.replace(/~/g, "~0").replace(/\//g, "~1") + "/expose/" + i9 + "/http_options/send_timeout", schemaPath: "#/properties/services/additionalProperties/properties/expose/oneOf/0/items/properties/http_options/properties/send_timeout/type", keyword: "type", params: { type: "integer" }, message: "must be integer" };
|
|
2415
2862
|
if (vErrors === null) {
|
|
2416
|
-
vErrors = [
|
|
2863
|
+
vErrors = [err176];
|
|
2417
2864
|
} else {
|
|
2418
|
-
vErrors.push(
|
|
2865
|
+
vErrors.push(err176);
|
|
2419
2866
|
}
|
|
2420
2867
|
errors++;
|
|
2421
2868
|
}
|
|
2422
|
-
if (typeof
|
|
2423
|
-
if (
|
|
2424
|
-
const
|
|
2869
|
+
if (typeof data75 == "number") {
|
|
2870
|
+
if (data75 > 6e4 || isNaN(data75)) {
|
|
2871
|
+
const err177 = { instancePath: instancePath + "/services/" + key22.replace(/~/g, "~0").replace(/\//g, "~1") + "/expose/" + i9 + "/http_options/send_timeout", schemaPath: "#/properties/services/additionalProperties/properties/expose/oneOf/0/items/properties/http_options/properties/send_timeout/maximum", keyword: "maximum", params: { comparison: "<=", limit: 6e4 }, message: "must be <= 60000" };
|
|
2425
2872
|
if (vErrors === null) {
|
|
2426
|
-
vErrors = [
|
|
2873
|
+
vErrors = [err177];
|
|
2427
2874
|
} else {
|
|
2428
|
-
vErrors.push(
|
|
2875
|
+
vErrors.push(err177);
|
|
2429
2876
|
}
|
|
2430
2877
|
errors++;
|
|
2431
2878
|
}
|
|
2432
|
-
if (
|
|
2433
|
-
const
|
|
2879
|
+
if (data75 < 0 || isNaN(data75)) {
|
|
2880
|
+
const err178 = { instancePath: instancePath + "/services/" + key22.replace(/~/g, "~0").replace(/\//g, "~1") + "/expose/" + i9 + "/http_options/send_timeout", schemaPath: "#/properties/services/additionalProperties/properties/expose/oneOf/0/items/properties/http_options/properties/send_timeout/minimum", keyword: "minimum", params: { comparison: ">=", limit: 0 }, message: "must be >= 0" };
|
|
2434
2881
|
if (vErrors === null) {
|
|
2435
|
-
vErrors = [
|
|
2882
|
+
vErrors = [err178];
|
|
2436
2883
|
} else {
|
|
2437
|
-
vErrors.push(
|
|
2884
|
+
vErrors.push(err178);
|
|
2438
2885
|
}
|
|
2439
2886
|
errors++;
|
|
2440
2887
|
}
|
|
2441
2888
|
}
|
|
2442
2889
|
}
|
|
2443
2890
|
} else {
|
|
2444
|
-
const
|
|
2891
|
+
const err179 = { instancePath: instancePath + "/services/" + key22.replace(/~/g, "~0").replace(/\//g, "~1") + "/expose/" + i9 + "/http_options", schemaPath: "#/properties/services/additionalProperties/properties/expose/oneOf/0/items/properties/http_options/type", keyword: "type", params: { type: "object" }, message: "must be object" };
|
|
2445
2892
|
if (vErrors === null) {
|
|
2446
|
-
vErrors = [
|
|
2893
|
+
vErrors = [err179];
|
|
2447
2894
|
} else {
|
|
2448
|
-
vErrors.push(
|
|
2895
|
+
vErrors.push(err179);
|
|
2449
2896
|
}
|
|
2450
2897
|
errors++;
|
|
2451
2898
|
}
|
|
2452
2899
|
}
|
|
2453
|
-
if (
|
|
2454
|
-
let
|
|
2455
|
-
if (!(typeof
|
|
2456
|
-
const
|
|
2900
|
+
if (data61.port !== void 0) {
|
|
2901
|
+
let data76 = data61.port;
|
|
2902
|
+
if (!(typeof data76 == "number" && (!(data76 % 1) && !isNaN(data76)))) {
|
|
2903
|
+
const err180 = { instancePath: instancePath + "/services/" + key22.replace(/~/g, "~0").replace(/\//g, "~1") + "/expose/" + i9 + "/port", schemaPath: "#/definitions/portNumber/type", keyword: "type", params: { type: "integer" }, message: "must be integer" };
|
|
2457
2904
|
if (vErrors === null) {
|
|
2458
|
-
vErrors = [
|
|
2905
|
+
vErrors = [err180];
|
|
2459
2906
|
} else {
|
|
2460
|
-
vErrors.push(
|
|
2907
|
+
vErrors.push(err180);
|
|
2461
2908
|
}
|
|
2462
2909
|
errors++;
|
|
2463
2910
|
}
|
|
2464
|
-
if (typeof
|
|
2465
|
-
if (
|
|
2466
|
-
const
|
|
2911
|
+
if (typeof data76 == "number") {
|
|
2912
|
+
if (data76 > 65535 || isNaN(data76)) {
|
|
2913
|
+
const err181 = { instancePath: instancePath + "/services/" + key22.replace(/~/g, "~0").replace(/\//g, "~1") + "/expose/" + i9 + "/port", schemaPath: "#/definitions/portNumber/maximum", keyword: "maximum", params: { comparison: "<=", limit: 65535 }, message: "must be <= 65535" };
|
|
2467
2914
|
if (vErrors === null) {
|
|
2468
|
-
vErrors = [
|
|
2915
|
+
vErrors = [err181];
|
|
2469
2916
|
} else {
|
|
2470
|
-
vErrors.push(
|
|
2917
|
+
vErrors.push(err181);
|
|
2471
2918
|
}
|
|
2472
2919
|
errors++;
|
|
2473
2920
|
}
|
|
2474
|
-
if (
|
|
2475
|
-
const
|
|
2921
|
+
if (data76 < 1 || isNaN(data76)) {
|
|
2922
|
+
const err182 = { instancePath: instancePath + "/services/" + key22.replace(/~/g, "~0").replace(/\//g, "~1") + "/expose/" + i9 + "/port", schemaPath: "#/definitions/portNumber/minimum", keyword: "minimum", params: { comparison: ">=", limit: 1 }, message: "must be >= 1" };
|
|
2476
2923
|
if (vErrors === null) {
|
|
2477
|
-
vErrors = [
|
|
2924
|
+
vErrors = [err182];
|
|
2478
2925
|
} else {
|
|
2479
|
-
vErrors.push(
|
|
2926
|
+
vErrors.push(err182);
|
|
2480
2927
|
}
|
|
2481
2928
|
errors++;
|
|
2482
2929
|
}
|
|
2483
2930
|
}
|
|
2484
2931
|
}
|
|
2485
|
-
if (
|
|
2486
|
-
let
|
|
2487
|
-
if (typeof
|
|
2488
|
-
const
|
|
2932
|
+
if (data61.proto !== void 0) {
|
|
2933
|
+
let data77 = data61.proto;
|
|
2934
|
+
if (typeof data77 !== "string") {
|
|
2935
|
+
const err183 = { instancePath: instancePath + "/services/" + key22.replace(/~/g, "~0").replace(/\//g, "~1") + "/expose/" + i9 + "/proto", schemaPath: "#/properties/services/additionalProperties/properties/expose/oneOf/0/items/properties/proto/type", keyword: "type", params: { type: "string" }, message: "must be string" };
|
|
2489
2936
|
if (vErrors === null) {
|
|
2490
|
-
vErrors = [
|
|
2937
|
+
vErrors = [err183];
|
|
2491
2938
|
} else {
|
|
2492
|
-
vErrors.push(
|
|
2939
|
+
vErrors.push(err183);
|
|
2493
2940
|
}
|
|
2494
2941
|
errors++;
|
|
2495
2942
|
}
|
|
2496
|
-
if (!(
|
|
2497
|
-
const
|
|
2943
|
+
if (!(data77 === "TCP" || data77 === "UDP" || data77 === "tcp" || data77 === "udp")) {
|
|
2944
|
+
const err184 = { instancePath: instancePath + "/services/" + key22.replace(/~/g, "~0").replace(/\//g, "~1") + "/expose/" + i9 + "/proto", schemaPath: "#/properties/services/additionalProperties/properties/expose/oneOf/0/items/properties/proto/enum", keyword: "enum", params: { allowedValues: schema12.properties.services.additionalProperties.properties.expose.oneOf[0].items.properties.proto.enum }, message: "must be equal to one of the allowed values" };
|
|
2498
2945
|
if (vErrors === null) {
|
|
2499
|
-
vErrors = [
|
|
2946
|
+
vErrors = [err184];
|
|
2500
2947
|
} else {
|
|
2501
|
-
vErrors.push(
|
|
2948
|
+
vErrors.push(err184);
|
|
2502
2949
|
}
|
|
2503
2950
|
errors++;
|
|
2504
2951
|
}
|
|
2505
2952
|
}
|
|
2506
|
-
if (
|
|
2507
|
-
let
|
|
2508
|
-
if (Array.isArray(
|
|
2509
|
-
const len15 =
|
|
2953
|
+
if (data61.to !== void 0) {
|
|
2954
|
+
let data78 = data61.to;
|
|
2955
|
+
if (Array.isArray(data78)) {
|
|
2956
|
+
const len15 = data78.length;
|
|
2510
2957
|
for (let i15 = 0; i15 < len15; i15++) {
|
|
2511
|
-
let
|
|
2512
|
-
const
|
|
2513
|
-
let
|
|
2514
|
-
const
|
|
2515
|
-
if (
|
|
2516
|
-
let
|
|
2517
|
-
if (
|
|
2518
|
-
const
|
|
2958
|
+
let data79 = data78[i15];
|
|
2959
|
+
const _errs260 = errors;
|
|
2960
|
+
let valid90 = true;
|
|
2961
|
+
const _errs261 = errors;
|
|
2962
|
+
if (data79 && typeof data79 == "object" && !Array.isArray(data79)) {
|
|
2963
|
+
let missing2;
|
|
2964
|
+
if (data79.ip === void 0 && (missing2 = "ip")) {
|
|
2965
|
+
const err185 = {};
|
|
2519
2966
|
if (vErrors === null) {
|
|
2520
|
-
vErrors = [
|
|
2967
|
+
vErrors = [err185];
|
|
2521
2968
|
} else {
|
|
2522
|
-
vErrors.push(
|
|
2969
|
+
vErrors.push(err185);
|
|
2523
2970
|
}
|
|
2524
2971
|
errors++;
|
|
2525
2972
|
} else {
|
|
2526
|
-
if (
|
|
2527
|
-
let
|
|
2528
|
-
const
|
|
2529
|
-
if (errors ===
|
|
2530
|
-
if (typeof
|
|
2531
|
-
if (func2(
|
|
2532
|
-
const
|
|
2973
|
+
if (data79.ip !== void 0) {
|
|
2974
|
+
let data80 = data79.ip;
|
|
2975
|
+
const _errs262 = errors;
|
|
2976
|
+
if (errors === _errs262) {
|
|
2977
|
+
if (typeof data80 === "string") {
|
|
2978
|
+
if (func2(data80) < 1) {
|
|
2979
|
+
const err186 = {};
|
|
2533
2980
|
if (vErrors === null) {
|
|
2534
|
-
vErrors = [
|
|
2981
|
+
vErrors = [err186];
|
|
2535
2982
|
} else {
|
|
2536
|
-
vErrors.push(
|
|
2983
|
+
vErrors.push(err186);
|
|
2537
2984
|
}
|
|
2538
2985
|
errors++;
|
|
2539
2986
|
}
|
|
2540
2987
|
} else {
|
|
2541
|
-
const
|
|
2988
|
+
const err187 = {};
|
|
2542
2989
|
if (vErrors === null) {
|
|
2543
|
-
vErrors = [
|
|
2990
|
+
vErrors = [err187];
|
|
2544
2991
|
} else {
|
|
2545
|
-
vErrors.push(
|
|
2992
|
+
vErrors.push(err187);
|
|
2546
2993
|
}
|
|
2547
2994
|
errors++;
|
|
2548
2995
|
}
|
|
@@ -2550,378 +2997,421 @@ function validate11(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
2550
2997
|
}
|
|
2551
2998
|
}
|
|
2552
2999
|
}
|
|
2553
|
-
var
|
|
2554
|
-
errors =
|
|
3000
|
+
var _valid14 = _errs261 === errors;
|
|
3001
|
+
errors = _errs260;
|
|
2555
3002
|
if (vErrors !== null) {
|
|
2556
|
-
if (
|
|
2557
|
-
vErrors.length =
|
|
3003
|
+
if (_errs260) {
|
|
3004
|
+
vErrors.length = _errs260;
|
|
2558
3005
|
} else {
|
|
2559
3006
|
vErrors = null;
|
|
2560
3007
|
}
|
|
2561
3008
|
}
|
|
2562
|
-
if (
|
|
2563
|
-
const
|
|
2564
|
-
if (
|
|
2565
|
-
if (
|
|
2566
|
-
const
|
|
3009
|
+
if (_valid14) {
|
|
3010
|
+
const _errs264 = errors;
|
|
3011
|
+
if (data79 && typeof data79 == "object" && !Array.isArray(data79)) {
|
|
3012
|
+
if (data79.global === void 0) {
|
|
3013
|
+
const err188 = { instancePath: instancePath + "/services/" + key22.replace(/~/g, "~0").replace(/\//g, "~1") + "/expose/" + i9 + "/to/" + i15, schemaPath: "#/definitions/exposeToWithIpEnforcesGlobal/then/required", keyword: "required", params: { missingProperty: "global" }, message: "must have required property 'global'" };
|
|
2567
3014
|
if (vErrors === null) {
|
|
2568
|
-
vErrors = [
|
|
3015
|
+
vErrors = [err188];
|
|
2569
3016
|
} else {
|
|
2570
|
-
vErrors.push(
|
|
3017
|
+
vErrors.push(err188);
|
|
2571
3018
|
}
|
|
2572
3019
|
errors++;
|
|
2573
3020
|
}
|
|
2574
|
-
if (
|
|
2575
|
-
if (true !==
|
|
2576
|
-
const
|
|
3021
|
+
if (data79.global !== void 0) {
|
|
3022
|
+
if (true !== data79.global) {
|
|
3023
|
+
const err189 = { instancePath: instancePath + "/services/" + key22.replace(/~/g, "~0").replace(/\//g, "~1") + "/expose/" + i9 + "/to/" + i15 + "/global", schemaPath: "#/definitions/exposeToWithIpEnforcesGlobal/then/properties/global/const", keyword: "const", params: { allowedValue: true }, message: "must be equal to constant" };
|
|
2577
3024
|
if (vErrors === null) {
|
|
2578
|
-
vErrors = [
|
|
3025
|
+
vErrors = [err189];
|
|
2579
3026
|
} else {
|
|
2580
|
-
vErrors.push(
|
|
3027
|
+
vErrors.push(err189);
|
|
2581
3028
|
}
|
|
2582
3029
|
errors++;
|
|
2583
3030
|
}
|
|
2584
3031
|
}
|
|
2585
3032
|
}
|
|
2586
|
-
var
|
|
2587
|
-
|
|
3033
|
+
var _valid14 = _errs264 === errors;
|
|
3034
|
+
valid90 = _valid14;
|
|
2588
3035
|
}
|
|
2589
|
-
if (!
|
|
2590
|
-
const
|
|
3036
|
+
if (!valid90) {
|
|
3037
|
+
const err190 = { instancePath: instancePath + "/services/" + key22.replace(/~/g, "~0").replace(/\//g, "~1") + "/expose/" + i9 + "/to/" + i15, schemaPath: "#/definitions/exposeToWithIpEnforcesGlobal/if", keyword: "if", params: { failingKeyword: "then" }, message: 'must match "then" schema' };
|
|
2591
3038
|
if (vErrors === null) {
|
|
2592
|
-
vErrors = [
|
|
3039
|
+
vErrors = [err190];
|
|
2593
3040
|
} else {
|
|
2594
|
-
vErrors.push(
|
|
3041
|
+
vErrors.push(err190);
|
|
2595
3042
|
}
|
|
2596
3043
|
errors++;
|
|
2597
3044
|
}
|
|
2598
|
-
if (
|
|
2599
|
-
for (const key28 in
|
|
3045
|
+
if (data79 && typeof data79 == "object" && !Array.isArray(data79)) {
|
|
3046
|
+
for (const key28 in data79) {
|
|
2600
3047
|
if (!(key28 === "global" || key28 === "ip" || key28 === "service")) {
|
|
2601
|
-
const
|
|
3048
|
+
const err191 = { instancePath: instancePath + "/services/" + key22.replace(/~/g, "~0").replace(/\//g, "~1") + "/expose/" + i9 + "/to/" + i15, schemaPath: "#/properties/services/additionalProperties/properties/expose/oneOf/0/items/properties/to/items/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key28 }, message: "must NOT have additional properties" };
|
|
2602
3049
|
if (vErrors === null) {
|
|
2603
|
-
vErrors = [
|
|
3050
|
+
vErrors = [err191];
|
|
2604
3051
|
} else {
|
|
2605
|
-
vErrors.push(
|
|
3052
|
+
vErrors.push(err191);
|
|
2606
3053
|
}
|
|
2607
3054
|
errors++;
|
|
2608
3055
|
}
|
|
2609
3056
|
}
|
|
2610
|
-
if (
|
|
2611
|
-
if (typeof
|
|
2612
|
-
const
|
|
3057
|
+
if (data79.global !== void 0) {
|
|
3058
|
+
if (typeof data79.global !== "boolean") {
|
|
3059
|
+
const err192 = { instancePath: instancePath + "/services/" + key22.replace(/~/g, "~0").replace(/\//g, "~1") + "/expose/" + i9 + "/to/" + i15 + "/global", schemaPath: "#/properties/services/additionalProperties/properties/expose/oneOf/0/items/properties/to/items/properties/global/type", keyword: "type", params: { type: "boolean" }, message: "must be boolean" };
|
|
2613
3060
|
if (vErrors === null) {
|
|
2614
|
-
vErrors = [
|
|
3061
|
+
vErrors = [err192];
|
|
2615
3062
|
} else {
|
|
2616
|
-
vErrors.push(
|
|
3063
|
+
vErrors.push(err192);
|
|
2617
3064
|
}
|
|
2618
3065
|
errors++;
|
|
2619
3066
|
}
|
|
2620
3067
|
}
|
|
2621
|
-
if (
|
|
2622
|
-
let
|
|
2623
|
-
if (typeof
|
|
2624
|
-
if (func2(
|
|
2625
|
-
const
|
|
3068
|
+
if (data79.ip !== void 0) {
|
|
3069
|
+
let data83 = data79.ip;
|
|
3070
|
+
if (typeof data83 === "string") {
|
|
3071
|
+
if (func2(data83) < 1) {
|
|
3072
|
+
const err193 = { instancePath: instancePath + "/services/" + key22.replace(/~/g, "~0").replace(/\//g, "~1") + "/expose/" + i9 + "/to/" + i15 + "/ip", schemaPath: "#/properties/services/additionalProperties/properties/expose/oneOf/0/items/properties/to/items/properties/ip/minLength", keyword: "minLength", params: { limit: 1 }, message: "must NOT have fewer than 1 characters" };
|
|
2626
3073
|
if (vErrors === null) {
|
|
2627
|
-
vErrors = [
|
|
3074
|
+
vErrors = [err193];
|
|
2628
3075
|
} else {
|
|
2629
|
-
vErrors.push(
|
|
3076
|
+
vErrors.push(err193);
|
|
2630
3077
|
}
|
|
2631
3078
|
errors++;
|
|
2632
3079
|
}
|
|
2633
3080
|
} else {
|
|
2634
|
-
const
|
|
3081
|
+
const err194 = { instancePath: instancePath + "/services/" + key22.replace(/~/g, "~0").replace(/\//g, "~1") + "/expose/" + i9 + "/to/" + i15 + "/ip", schemaPath: "#/properties/services/additionalProperties/properties/expose/oneOf/0/items/properties/to/items/properties/ip/type", keyword: "type", params: { type: "string" }, message: "must be string" };
|
|
2635
3082
|
if (vErrors === null) {
|
|
2636
|
-
vErrors = [
|
|
3083
|
+
vErrors = [err194];
|
|
2637
3084
|
} else {
|
|
2638
|
-
vErrors.push(
|
|
3085
|
+
vErrors.push(err194);
|
|
2639
3086
|
}
|
|
2640
3087
|
errors++;
|
|
2641
3088
|
}
|
|
2642
3089
|
}
|
|
2643
|
-
if (
|
|
2644
|
-
if (typeof
|
|
2645
|
-
const
|
|
3090
|
+
if (data79.service !== void 0) {
|
|
3091
|
+
if (typeof data79.service !== "string") {
|
|
3092
|
+
const err195 = { instancePath: instancePath + "/services/" + key22.replace(/~/g, "~0").replace(/\//g, "~1") + "/expose/" + i9 + "/to/" + i15 + "/service", schemaPath: "#/properties/services/additionalProperties/properties/expose/oneOf/0/items/properties/to/items/properties/service/type", keyword: "type", params: { type: "string" }, message: "must be string" };
|
|
2646
3093
|
if (vErrors === null) {
|
|
2647
|
-
vErrors = [
|
|
3094
|
+
vErrors = [err195];
|
|
2648
3095
|
} else {
|
|
2649
|
-
vErrors.push(
|
|
3096
|
+
vErrors.push(err195);
|
|
2650
3097
|
}
|
|
2651
3098
|
errors++;
|
|
2652
3099
|
}
|
|
2653
3100
|
}
|
|
2654
3101
|
} else {
|
|
2655
|
-
const
|
|
3102
|
+
const err196 = { instancePath: instancePath + "/services/" + key22.replace(/~/g, "~0").replace(/\//g, "~1") + "/expose/" + i9 + "/to/" + i15, schemaPath: "#/properties/services/additionalProperties/properties/expose/oneOf/0/items/properties/to/items/type", keyword: "type", params: { type: "object" }, message: "must be object" };
|
|
2656
3103
|
if (vErrors === null) {
|
|
2657
|
-
vErrors = [
|
|
3104
|
+
vErrors = [err196];
|
|
2658
3105
|
} else {
|
|
2659
|
-
vErrors.push(
|
|
3106
|
+
vErrors.push(err196);
|
|
2660
3107
|
}
|
|
2661
3108
|
errors++;
|
|
2662
3109
|
}
|
|
2663
3110
|
}
|
|
2664
3111
|
} else {
|
|
2665
|
-
const
|
|
3112
|
+
const err197 = { instancePath: instancePath + "/services/" + key22.replace(/~/g, "~0").replace(/\//g, "~1") + "/expose/" + i9 + "/to", schemaPath: "#/properties/services/additionalProperties/properties/expose/oneOf/0/items/properties/to/type", keyword: "type", params: { type: "array" }, message: "must be array" };
|
|
2666
3113
|
if (vErrors === null) {
|
|
2667
|
-
vErrors = [
|
|
3114
|
+
vErrors = [err197];
|
|
2668
3115
|
} else {
|
|
2669
|
-
vErrors.push(
|
|
3116
|
+
vErrors.push(err197);
|
|
2670
3117
|
}
|
|
2671
3118
|
errors++;
|
|
2672
3119
|
}
|
|
2673
3120
|
}
|
|
2674
3121
|
} else {
|
|
2675
|
-
const
|
|
3122
|
+
const err198 = { instancePath: instancePath + "/services/" + key22.replace(/~/g, "~0").replace(/\//g, "~1") + "/expose/" + i9, schemaPath: "#/properties/services/additionalProperties/properties/expose/oneOf/0/items/type", keyword: "type", params: { type: "object" }, message: "must be object" };
|
|
2676
3123
|
if (vErrors === null) {
|
|
2677
|
-
vErrors = [
|
|
3124
|
+
vErrors = [err198];
|
|
2678
3125
|
} else {
|
|
2679
|
-
vErrors.push(
|
|
3126
|
+
vErrors.push(err198);
|
|
2680
3127
|
}
|
|
2681
3128
|
errors++;
|
|
2682
3129
|
}
|
|
2683
3130
|
}
|
|
2684
3131
|
} else {
|
|
2685
|
-
const
|
|
3132
|
+
const err199 = { instancePath: instancePath + "/services/" + key22.replace(/~/g, "~0").replace(/\//g, "~1") + "/expose", schemaPath: "#/properties/services/additionalProperties/properties/expose/oneOf/0/type", keyword: "type", params: { type: "array" }, message: "must be array" };
|
|
3133
|
+
if (vErrors === null) {
|
|
3134
|
+
vErrors = [err199];
|
|
3135
|
+
} else {
|
|
3136
|
+
vErrors.push(err199);
|
|
3137
|
+
}
|
|
3138
|
+
errors++;
|
|
3139
|
+
}
|
|
3140
|
+
var _valid12 = _errs206 === errors;
|
|
3141
|
+
if (_valid12) {
|
|
3142
|
+
valid67 = true;
|
|
3143
|
+
passing10 = 0;
|
|
3144
|
+
}
|
|
3145
|
+
const _errs273 = errors;
|
|
3146
|
+
if (data60 !== null) {
|
|
3147
|
+
const err200 = { instancePath: instancePath + "/services/" + key22.replace(/~/g, "~0").replace(/\//g, "~1") + "/expose", schemaPath: "#/properties/services/additionalProperties/properties/expose/oneOf/1/type", keyword: "type", params: { type: "null" }, message: "must be null" };
|
|
3148
|
+
if (vErrors === null) {
|
|
3149
|
+
vErrors = [err200];
|
|
3150
|
+
} else {
|
|
3151
|
+
vErrors.push(err200);
|
|
3152
|
+
}
|
|
3153
|
+
errors++;
|
|
3154
|
+
}
|
|
3155
|
+
var _valid12 = _errs273 === errors;
|
|
3156
|
+
if (_valid12 && valid67) {
|
|
3157
|
+
valid67 = false;
|
|
3158
|
+
passing10 = [passing10, 1];
|
|
3159
|
+
} else {
|
|
3160
|
+
if (_valid12) {
|
|
3161
|
+
valid67 = true;
|
|
3162
|
+
passing10 = 1;
|
|
3163
|
+
}
|
|
3164
|
+
}
|
|
3165
|
+
if (!valid67) {
|
|
3166
|
+
const err201 = { instancePath: instancePath + "/services/" + key22.replace(/~/g, "~0").replace(/\//g, "~1") + "/expose", schemaPath: "#/properties/services/additionalProperties/properties/expose/oneOf", keyword: "oneOf", params: { passingSchemas: passing10 }, message: "must match exactly one schema in oneOf" };
|
|
2686
3167
|
if (vErrors === null) {
|
|
2687
|
-
vErrors = [
|
|
3168
|
+
vErrors = [err201];
|
|
2688
3169
|
} else {
|
|
2689
|
-
vErrors.push(
|
|
3170
|
+
vErrors.push(err201);
|
|
2690
3171
|
}
|
|
2691
3172
|
errors++;
|
|
3173
|
+
} else {
|
|
3174
|
+
errors = _errs205;
|
|
3175
|
+
if (vErrors !== null) {
|
|
3176
|
+
if (_errs205) {
|
|
3177
|
+
vErrors.length = _errs205;
|
|
3178
|
+
} else {
|
|
3179
|
+
vErrors = null;
|
|
3180
|
+
}
|
|
3181
|
+
}
|
|
2692
3182
|
}
|
|
2693
3183
|
}
|
|
2694
|
-
if (
|
|
2695
|
-
let
|
|
2696
|
-
if (typeof
|
|
2697
|
-
if (func2(
|
|
2698
|
-
const
|
|
3184
|
+
if (data45.image !== void 0) {
|
|
3185
|
+
let data85 = data45.image;
|
|
3186
|
+
if (typeof data85 === "string") {
|
|
3187
|
+
if (func2(data85) < 1) {
|
|
3188
|
+
const err202 = { instancePath: instancePath + "/services/" + key22.replace(/~/g, "~0").replace(/\//g, "~1") + "/image", schemaPath: "#/properties/services/additionalProperties/properties/image/minLength", keyword: "minLength", params: { limit: 1 }, message: "must NOT have fewer than 1 characters" };
|
|
2699
3189
|
if (vErrors === null) {
|
|
2700
|
-
vErrors = [
|
|
3190
|
+
vErrors = [err202];
|
|
2701
3191
|
} else {
|
|
2702
|
-
vErrors.push(
|
|
3192
|
+
vErrors.push(err202);
|
|
2703
3193
|
}
|
|
2704
3194
|
errors++;
|
|
2705
3195
|
}
|
|
2706
3196
|
} else {
|
|
2707
|
-
const
|
|
3197
|
+
const err203 = { instancePath: instancePath + "/services/" + key22.replace(/~/g, "~0").replace(/\//g, "~1") + "/image", schemaPath: "#/properties/services/additionalProperties/properties/image/type", keyword: "type", params: { type: "string" }, message: "must be string" };
|
|
2708
3198
|
if (vErrors === null) {
|
|
2709
|
-
vErrors = [
|
|
3199
|
+
vErrors = [err203];
|
|
2710
3200
|
} else {
|
|
2711
|
-
vErrors.push(
|
|
3201
|
+
vErrors.push(err203);
|
|
2712
3202
|
}
|
|
2713
3203
|
errors++;
|
|
2714
3204
|
}
|
|
2715
3205
|
}
|
|
2716
|
-
if (
|
|
2717
|
-
let
|
|
2718
|
-
if (
|
|
2719
|
-
for (const key29 in
|
|
3206
|
+
if (data45.params !== void 0) {
|
|
3207
|
+
let data86 = data45.params;
|
|
3208
|
+
if (data86 && typeof data86 == "object" && !Array.isArray(data86)) {
|
|
3209
|
+
for (const key29 in data86) {
|
|
2720
3210
|
if (!(key29 === "storage" || key29 === "permissions")) {
|
|
2721
|
-
const
|
|
3211
|
+
const err204 = { instancePath: instancePath + "/services/" + key22.replace(/~/g, "~0").replace(/\//g, "~1") + "/params", schemaPath: "#/properties/services/additionalProperties/properties/params/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key29 }, message: "must NOT have additional properties" };
|
|
2722
3212
|
if (vErrors === null) {
|
|
2723
|
-
vErrors = [
|
|
3213
|
+
vErrors = [err204];
|
|
2724
3214
|
} else {
|
|
2725
|
-
vErrors.push(
|
|
3215
|
+
vErrors.push(err204);
|
|
2726
3216
|
}
|
|
2727
3217
|
errors++;
|
|
2728
3218
|
}
|
|
2729
3219
|
}
|
|
2730
|
-
if (
|
|
2731
|
-
let
|
|
2732
|
-
if (
|
|
2733
|
-
for (const key30 in
|
|
2734
|
-
let
|
|
2735
|
-
if (
|
|
2736
|
-
for (const key31 in
|
|
3220
|
+
if (data86.storage !== void 0) {
|
|
3221
|
+
let data87 = data86.storage;
|
|
3222
|
+
if (data87 && typeof data87 == "object" && !Array.isArray(data87)) {
|
|
3223
|
+
for (const key30 in data87) {
|
|
3224
|
+
let data88 = data87[key30];
|
|
3225
|
+
if (data88 && typeof data88 == "object" && !Array.isArray(data88)) {
|
|
3226
|
+
for (const key31 in data88) {
|
|
2737
3227
|
if (!(key31 === "mount" || key31 === "readOnly")) {
|
|
2738
|
-
const
|
|
3228
|
+
const err205 = { instancePath: instancePath + "/services/" + key22.replace(/~/g, "~0").replace(/\//g, "~1") + "/params/storage/" + key30.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "#/properties/services/additionalProperties/properties/params/properties/storage/additionalProperties/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key31 }, message: "must NOT have additional properties" };
|
|
2739
3229
|
if (vErrors === null) {
|
|
2740
|
-
vErrors = [
|
|
3230
|
+
vErrors = [err205];
|
|
2741
3231
|
} else {
|
|
2742
|
-
vErrors.push(
|
|
3232
|
+
vErrors.push(err205);
|
|
2743
3233
|
}
|
|
2744
3234
|
errors++;
|
|
2745
3235
|
}
|
|
2746
3236
|
}
|
|
2747
|
-
if (
|
|
2748
|
-
let
|
|
2749
|
-
if (typeof
|
|
2750
|
-
if (func2(
|
|
2751
|
-
const
|
|
3237
|
+
if (data88.mount !== void 0) {
|
|
3238
|
+
let data89 = data88.mount;
|
|
3239
|
+
if (typeof data89 === "string") {
|
|
3240
|
+
if (func2(data89) < 1) {
|
|
3241
|
+
const err206 = { instancePath: instancePath + "/services/" + key22.replace(/~/g, "~0").replace(/\//g, "~1") + "/params/storage/" + key30.replace(/~/g, "~0").replace(/\//g, "~1") + "/mount", schemaPath: "#/definitions/absolutePath/minLength", keyword: "minLength", params: { limit: 1 }, message: "must NOT have fewer than 1 characters" };
|
|
2752
3242
|
if (vErrors === null) {
|
|
2753
|
-
vErrors = [
|
|
3243
|
+
vErrors = [err206];
|
|
2754
3244
|
} else {
|
|
2755
|
-
vErrors.push(
|
|
3245
|
+
vErrors.push(err206);
|
|
2756
3246
|
}
|
|
2757
3247
|
errors++;
|
|
2758
3248
|
}
|
|
2759
|
-
if (!
|
|
2760
|
-
const
|
|
3249
|
+
if (!pattern10.test(data89)) {
|
|
3250
|
+
const err207 = { instancePath: instancePath + "/services/" + key22.replace(/~/g, "~0").replace(/\//g, "~1") + "/params/storage/" + key30.replace(/~/g, "~0").replace(/\//g, "~1") + "/mount", schemaPath: "#/definitions/absolutePath/pattern", keyword: "pattern", params: { pattern: "^/" }, message: 'must match pattern "^/"' };
|
|
2761
3251
|
if (vErrors === null) {
|
|
2762
|
-
vErrors = [
|
|
3252
|
+
vErrors = [err207];
|
|
2763
3253
|
} else {
|
|
2764
|
-
vErrors.push(
|
|
3254
|
+
vErrors.push(err207);
|
|
2765
3255
|
}
|
|
2766
3256
|
errors++;
|
|
2767
3257
|
}
|
|
2768
3258
|
} else {
|
|
2769
|
-
const
|
|
3259
|
+
const err208 = { instancePath: instancePath + "/services/" + key22.replace(/~/g, "~0").replace(/\//g, "~1") + "/params/storage/" + key30.replace(/~/g, "~0").replace(/\//g, "~1") + "/mount", schemaPath: "#/definitions/absolutePath/type", keyword: "type", params: { type: "string" }, message: "must be string" };
|
|
2770
3260
|
if (vErrors === null) {
|
|
2771
|
-
vErrors = [
|
|
3261
|
+
vErrors = [err208];
|
|
2772
3262
|
} else {
|
|
2773
|
-
vErrors.push(
|
|
3263
|
+
vErrors.push(err208);
|
|
2774
3264
|
}
|
|
2775
3265
|
errors++;
|
|
2776
3266
|
}
|
|
2777
3267
|
}
|
|
2778
|
-
if (
|
|
2779
|
-
if (typeof
|
|
2780
|
-
const
|
|
3268
|
+
if (data88.readOnly !== void 0) {
|
|
3269
|
+
if (typeof data88.readOnly !== "boolean") {
|
|
3270
|
+
const err209 = { instancePath: instancePath + "/services/" + key22.replace(/~/g, "~0").replace(/\//g, "~1") + "/params/storage/" + key30.replace(/~/g, "~0").replace(/\//g, "~1") + "/readOnly", schemaPath: "#/properties/services/additionalProperties/properties/params/properties/storage/additionalProperties/properties/readOnly/type", keyword: "type", params: { type: "boolean" }, message: "must be boolean" };
|
|
2781
3271
|
if (vErrors === null) {
|
|
2782
|
-
vErrors = [
|
|
3272
|
+
vErrors = [err209];
|
|
2783
3273
|
} else {
|
|
2784
|
-
vErrors.push(
|
|
3274
|
+
vErrors.push(err209);
|
|
2785
3275
|
}
|
|
2786
3276
|
errors++;
|
|
2787
3277
|
}
|
|
2788
3278
|
}
|
|
2789
3279
|
} else {
|
|
2790
|
-
const
|
|
3280
|
+
const err210 = { instancePath: instancePath + "/services/" + key22.replace(/~/g, "~0").replace(/\//g, "~1") + "/params/storage/" + key30.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "#/properties/services/additionalProperties/properties/params/properties/storage/additionalProperties/type", keyword: "type", params: { type: "object" }, message: "must be object" };
|
|
2791
3281
|
if (vErrors === null) {
|
|
2792
|
-
vErrors = [
|
|
3282
|
+
vErrors = [err210];
|
|
2793
3283
|
} else {
|
|
2794
|
-
vErrors.push(
|
|
3284
|
+
vErrors.push(err210);
|
|
2795
3285
|
}
|
|
2796
3286
|
errors++;
|
|
2797
3287
|
}
|
|
2798
3288
|
}
|
|
2799
3289
|
} else {
|
|
2800
|
-
const
|
|
3290
|
+
const err211 = { instancePath: instancePath + "/services/" + key22.replace(/~/g, "~0").replace(/\//g, "~1") + "/params/storage", schemaPath: "#/properties/services/additionalProperties/properties/params/properties/storage/type", keyword: "type", params: { type: "object" }, message: "must be object" };
|
|
2801
3291
|
if (vErrors === null) {
|
|
2802
|
-
vErrors = [
|
|
3292
|
+
vErrors = [err211];
|
|
2803
3293
|
} else {
|
|
2804
|
-
vErrors.push(
|
|
3294
|
+
vErrors.push(err211);
|
|
2805
3295
|
}
|
|
2806
3296
|
errors++;
|
|
2807
3297
|
}
|
|
2808
3298
|
}
|
|
2809
|
-
if (
|
|
2810
|
-
let
|
|
2811
|
-
if (
|
|
2812
|
-
for (const key32 in
|
|
3299
|
+
if (data86.permissions !== void 0) {
|
|
3300
|
+
let data91 = data86.permissions;
|
|
3301
|
+
if (data91 && typeof data91 == "object" && !Array.isArray(data91)) {
|
|
3302
|
+
for (const key32 in data91) {
|
|
2813
3303
|
if (!(key32 === "read")) {
|
|
2814
|
-
const
|
|
3304
|
+
const err212 = { instancePath: instancePath + "/services/" + key22.replace(/~/g, "~0").replace(/\//g, "~1") + "/params/permissions", schemaPath: "#/properties/services/additionalProperties/properties/params/properties/permissions/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key32 }, message: "must NOT have additional properties" };
|
|
2815
3305
|
if (vErrors === null) {
|
|
2816
|
-
vErrors = [
|
|
3306
|
+
vErrors = [err212];
|
|
2817
3307
|
} else {
|
|
2818
|
-
vErrors.push(
|
|
3308
|
+
vErrors.push(err212);
|
|
2819
3309
|
}
|
|
2820
3310
|
errors++;
|
|
2821
3311
|
}
|
|
2822
3312
|
}
|
|
2823
|
-
if (
|
|
2824
|
-
let
|
|
2825
|
-
if (Array.isArray(
|
|
2826
|
-
const len16 =
|
|
3313
|
+
if (data91.read !== void 0) {
|
|
3314
|
+
let data92 = data91.read;
|
|
3315
|
+
if (Array.isArray(data92)) {
|
|
3316
|
+
const len16 = data92.length;
|
|
2827
3317
|
for (let i16 = 0; i16 < len16; i16++) {
|
|
2828
|
-
let
|
|
2829
|
-
if (typeof
|
|
2830
|
-
const
|
|
3318
|
+
let data93 = data92[i16];
|
|
3319
|
+
if (typeof data93 !== "string") {
|
|
3320
|
+
const err213 = { instancePath: instancePath + "/services/" + key22.replace(/~/g, "~0").replace(/\//g, "~1") + "/params/permissions/read/" + i16, schemaPath: "#/properties/services/additionalProperties/properties/params/properties/permissions/properties/read/items/type", keyword: "type", params: { type: "string" }, message: "must be string" };
|
|
2831
3321
|
if (vErrors === null) {
|
|
2832
|
-
vErrors = [
|
|
3322
|
+
vErrors = [err213];
|
|
2833
3323
|
} else {
|
|
2834
|
-
vErrors.push(
|
|
3324
|
+
vErrors.push(err213);
|
|
2835
3325
|
}
|
|
2836
3326
|
errors++;
|
|
2837
3327
|
}
|
|
2838
|
-
if (!(
|
|
2839
|
-
const
|
|
3328
|
+
if (!(data93 === "deployment" || data93 === "logs")) {
|
|
3329
|
+
const err214 = { instancePath: instancePath + "/services/" + key22.replace(/~/g, "~0").replace(/\//g, "~1") + "/params/permissions/read/" + i16, schemaPath: "#/properties/services/additionalProperties/properties/params/properties/permissions/properties/read/items/enum", keyword: "enum", params: { allowedValues: schema12.properties.services.additionalProperties.properties.params.properties.permissions.properties.read.items.enum }, message: "must be equal to one of the allowed values" };
|
|
2840
3330
|
if (vErrors === null) {
|
|
2841
|
-
vErrors = [
|
|
3331
|
+
vErrors = [err214];
|
|
2842
3332
|
} else {
|
|
2843
|
-
vErrors.push(
|
|
3333
|
+
vErrors.push(err214);
|
|
2844
3334
|
}
|
|
2845
3335
|
errors++;
|
|
2846
3336
|
}
|
|
2847
3337
|
}
|
|
2848
3338
|
} else {
|
|
2849
|
-
const
|
|
3339
|
+
const err215 = { instancePath: instancePath + "/services/" + key22.replace(/~/g, "~0").replace(/\//g, "~1") + "/params/permissions/read", schemaPath: "#/properties/services/additionalProperties/properties/params/properties/permissions/properties/read/type", keyword: "type", params: { type: "array" }, message: "must be array" };
|
|
2850
3340
|
if (vErrors === null) {
|
|
2851
|
-
vErrors = [
|
|
3341
|
+
vErrors = [err215];
|
|
2852
3342
|
} else {
|
|
2853
|
-
vErrors.push(
|
|
3343
|
+
vErrors.push(err215);
|
|
2854
3344
|
}
|
|
2855
3345
|
errors++;
|
|
2856
3346
|
}
|
|
2857
3347
|
}
|
|
2858
3348
|
} else {
|
|
2859
|
-
const
|
|
3349
|
+
const err216 = { instancePath: instancePath + "/services/" + key22.replace(/~/g, "~0").replace(/\//g, "~1") + "/params/permissions", schemaPath: "#/properties/services/additionalProperties/properties/params/properties/permissions/type", keyword: "type", params: { type: "object" }, message: "must be object" };
|
|
2860
3350
|
if (vErrors === null) {
|
|
2861
|
-
vErrors = [
|
|
3351
|
+
vErrors = [err216];
|
|
2862
3352
|
} else {
|
|
2863
|
-
vErrors.push(
|
|
3353
|
+
vErrors.push(err216);
|
|
2864
3354
|
}
|
|
2865
3355
|
errors++;
|
|
2866
3356
|
}
|
|
2867
3357
|
}
|
|
2868
3358
|
} else {
|
|
2869
|
-
const
|
|
3359
|
+
const err217 = { instancePath: instancePath + "/services/" + key22.replace(/~/g, "~0").replace(/\//g, "~1") + "/params", schemaPath: "#/properties/services/additionalProperties/properties/params/type", keyword: "type", params: { type: "object" }, message: "must be object" };
|
|
2870
3360
|
if (vErrors === null) {
|
|
2871
|
-
vErrors = [
|
|
3361
|
+
vErrors = [err217];
|
|
2872
3362
|
} else {
|
|
2873
|
-
vErrors.push(
|
|
3363
|
+
vErrors.push(err217);
|
|
2874
3364
|
}
|
|
2875
3365
|
errors++;
|
|
2876
3366
|
}
|
|
2877
3367
|
}
|
|
2878
3368
|
} else {
|
|
2879
|
-
const
|
|
3369
|
+
const err218 = { instancePath: instancePath + "/services/" + key22.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "#/properties/services/additionalProperties/type", keyword: "type", params: { type: "object" }, message: "must be object" };
|
|
2880
3370
|
if (vErrors === null) {
|
|
2881
|
-
vErrors = [
|
|
3371
|
+
vErrors = [err218];
|
|
2882
3372
|
} else {
|
|
2883
|
-
vErrors.push(
|
|
3373
|
+
vErrors.push(err218);
|
|
2884
3374
|
}
|
|
2885
3375
|
errors++;
|
|
2886
3376
|
}
|
|
2887
3377
|
}
|
|
2888
3378
|
} else {
|
|
2889
|
-
const
|
|
3379
|
+
const err219 = { instancePath: instancePath + "/services", schemaPath: "#/properties/services/type", keyword: "type", params: { type: "object" }, message: "must be object" };
|
|
2890
3380
|
if (vErrors === null) {
|
|
2891
|
-
vErrors = [
|
|
3381
|
+
vErrors = [err219];
|
|
2892
3382
|
} else {
|
|
2893
|
-
vErrors.push(
|
|
3383
|
+
vErrors.push(err219);
|
|
2894
3384
|
}
|
|
2895
3385
|
errors++;
|
|
2896
3386
|
}
|
|
2897
3387
|
}
|
|
2898
3388
|
if (data.version !== void 0) {
|
|
2899
|
-
let
|
|
2900
|
-
if (typeof
|
|
2901
|
-
const
|
|
3389
|
+
let data94 = data.version;
|
|
3390
|
+
if (typeof data94 !== "string") {
|
|
3391
|
+
const err220 = { instancePath: instancePath + "/version", schemaPath: "#/properties/version/type", keyword: "type", params: { type: "string" }, message: "must be string" };
|
|
2902
3392
|
if (vErrors === null) {
|
|
2903
|
-
vErrors = [
|
|
3393
|
+
vErrors = [err220];
|
|
2904
3394
|
} else {
|
|
2905
|
-
vErrors.push(
|
|
3395
|
+
vErrors.push(err220);
|
|
2906
3396
|
}
|
|
2907
3397
|
errors++;
|
|
2908
3398
|
}
|
|
2909
|
-
if (!(
|
|
2910
|
-
const
|
|
3399
|
+
if (!(data94 === "2.0" || data94 === "2.1")) {
|
|
3400
|
+
const err221 = { instancePath: instancePath + "/version", schemaPath: "#/properties/version/enum", keyword: "enum", params: { allowedValues: schema12.properties.version.enum }, message: "must be equal to one of the allowed values" };
|
|
2911
3401
|
if (vErrors === null) {
|
|
2912
|
-
vErrors = [
|
|
3402
|
+
vErrors = [err221];
|
|
2913
3403
|
} else {
|
|
2914
|
-
vErrors.push(
|
|
3404
|
+
vErrors.push(err221);
|
|
2915
3405
|
}
|
|
2916
3406
|
errors++;
|
|
2917
3407
|
}
|
|
2918
3408
|
}
|
|
2919
3409
|
} else {
|
|
2920
|
-
const
|
|
3410
|
+
const err222 = { instancePath, schemaPath: "#/type", keyword: "type", params: { type: "object" }, message: "must be object" };
|
|
2921
3411
|
if (vErrors === null) {
|
|
2922
|
-
vErrors = [
|
|
3412
|
+
vErrors = [err222];
|
|
2923
3413
|
} else {
|
|
2924
|
-
vErrors.push(
|
|
3414
|
+
vErrors.push(err222);
|
|
2925
3415
|
}
|
|
2926
3416
|
errors++;
|
|
2927
3417
|
}
|