@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
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
} from "./chunk-M2ZK7HEC.js";
|
|
10
10
|
import {
|
|
11
11
|
TxRaw
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-UKRRRF5V.js";
|
|
13
13
|
import {
|
|
14
14
|
GroupSpec,
|
|
15
15
|
ResourceUnit
|
|
@@ -75,274 +75,423 @@ var require_ucs2length = __commonJS({
|
|
|
75
75
|
}
|
|
76
76
|
});
|
|
77
77
|
var validate = validate11;
|
|
78
|
-
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" };
|
|
79
|
-
var
|
|
78
|
+
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" };
|
|
79
|
+
var schema24 = { "description": "HTTP error codes for proxy retry logic", "enum": ["error", "timeout", "500", "502", "503", "504", "403", "404", "429", "off"], "type": "string" };
|
|
80
80
|
var pattern2 = new RegExp("^[a-z]+[-_0-9a-z]+$", "u");
|
|
81
81
|
var pattern4 = new RegExp("^0+(\\.0+)?m?$", "u");
|
|
82
82
|
var pattern5 = new RegExp("^[0-9]+(\\.[0-9]+)?[a-zA-Z]*$", "u");
|
|
83
|
-
var pattern6 = new RegExp("^
|
|
84
|
-
var
|
|
85
|
-
var
|
|
86
|
-
|
|
83
|
+
var pattern6 = new RegExp("^0+(\\.0+)?$", "u");
|
|
84
|
+
var pattern8 = new RegExp("^[0-9]+(\\.[0-9]+)?$", "u");
|
|
85
|
+
var pattern9 = new RegExp("^(uakt|uact|ibc/.*)$", "u");
|
|
86
|
+
var pattern10 = new RegExp("^/", "u");
|
|
87
|
+
function validate13(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
|
|
87
88
|
let vErrors = null;
|
|
88
89
|
let errors = 0;
|
|
90
|
+
const _errs3 = errors;
|
|
91
|
+
const _errs4 = errors;
|
|
89
92
|
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
90
|
-
|
|
91
|
-
|
|
93
|
+
let missing0;
|
|
94
|
+
if (data.class === void 0 && (missing0 = "class") || data.persistent === void 0 && (missing0 = "persistent")) {
|
|
95
|
+
const err0 = {};
|
|
92
96
|
if (vErrors === null) {
|
|
93
97
|
vErrors = [err0];
|
|
94
98
|
} else {
|
|
95
99
|
vErrors.push(err0);
|
|
96
100
|
}
|
|
97
101
|
errors++;
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
vErrors = [err1];
|
|
104
|
-
} else {
|
|
105
|
-
vErrors.push(err1);
|
|
106
|
-
}
|
|
107
|
-
errors++;
|
|
108
|
-
}
|
|
109
|
-
}
|
|
110
|
-
if (data.attributes !== void 0) {
|
|
111
|
-
let data0 = data.attributes;
|
|
112
|
-
const _errs5 = errors;
|
|
113
|
-
const _errs6 = errors;
|
|
114
|
-
if (data0 && typeof data0 == "object" && !Array.isArray(data0)) {
|
|
115
|
-
let missing0;
|
|
116
|
-
if (data0.class === void 0 && (missing0 = "class") || data0.persistent === void 0 && (missing0 = "persistent")) {
|
|
117
|
-
const err2 = {};
|
|
102
|
+
} else {
|
|
103
|
+
if (data.class !== void 0) {
|
|
104
|
+
const _errs5 = errors;
|
|
105
|
+
if ("ram" !== data.class) {
|
|
106
|
+
const err1 = {};
|
|
118
107
|
if (vErrors === null) {
|
|
119
|
-
vErrors = [
|
|
108
|
+
vErrors = [err1];
|
|
120
109
|
} else {
|
|
121
|
-
vErrors.push(
|
|
110
|
+
vErrors.push(err1);
|
|
122
111
|
}
|
|
123
112
|
errors++;
|
|
124
|
-
} else {
|
|
125
|
-
if (data0.class !== void 0) {
|
|
126
|
-
const _errs7 = errors;
|
|
127
|
-
if ("ram" !== data0.class) {
|
|
128
|
-
const err3 = {};
|
|
129
|
-
if (vErrors === null) {
|
|
130
|
-
vErrors = [err3];
|
|
131
|
-
} else {
|
|
132
|
-
vErrors.push(err3);
|
|
133
|
-
}
|
|
134
|
-
errors++;
|
|
135
|
-
}
|
|
136
|
-
var valid3 = _errs7 === errors;
|
|
137
|
-
} else {
|
|
138
|
-
var valid3 = true;
|
|
139
|
-
}
|
|
140
|
-
if (valid3) {
|
|
141
|
-
if (data0.persistent !== void 0) {
|
|
142
|
-
let data2 = data0.persistent;
|
|
143
|
-
const _errs8 = errors;
|
|
144
|
-
const _errs9 = errors;
|
|
145
|
-
let valid4 = false;
|
|
146
|
-
let passing0 = null;
|
|
147
|
-
const _errs10 = errors;
|
|
148
|
-
if (true !== data2) {
|
|
149
|
-
const err4 = {};
|
|
150
|
-
if (vErrors === null) {
|
|
151
|
-
vErrors = [err4];
|
|
152
|
-
} else {
|
|
153
|
-
vErrors.push(err4);
|
|
154
|
-
}
|
|
155
|
-
errors++;
|
|
156
|
-
}
|
|
157
|
-
var _valid0 = _errs10 === errors;
|
|
158
|
-
if (_valid0) {
|
|
159
|
-
valid4 = true;
|
|
160
|
-
passing0 = 0;
|
|
161
|
-
}
|
|
162
|
-
const _errs11 = errors;
|
|
163
|
-
if ("true" !== data2) {
|
|
164
|
-
const err5 = {};
|
|
165
|
-
if (vErrors === null) {
|
|
166
|
-
vErrors = [err5];
|
|
167
|
-
} else {
|
|
168
|
-
vErrors.push(err5);
|
|
169
|
-
}
|
|
170
|
-
errors++;
|
|
171
|
-
}
|
|
172
|
-
var _valid0 = _errs11 === errors;
|
|
173
|
-
if (_valid0 && valid4) {
|
|
174
|
-
valid4 = false;
|
|
175
|
-
passing0 = [passing0, 1];
|
|
176
|
-
} else {
|
|
177
|
-
if (_valid0) {
|
|
178
|
-
valid4 = true;
|
|
179
|
-
passing0 = 1;
|
|
180
|
-
}
|
|
181
|
-
}
|
|
182
|
-
if (!valid4) {
|
|
183
|
-
const err6 = {};
|
|
184
|
-
if (vErrors === null) {
|
|
185
|
-
vErrors = [err6];
|
|
186
|
-
} else {
|
|
187
|
-
vErrors.push(err6);
|
|
188
|
-
}
|
|
189
|
-
errors++;
|
|
190
|
-
} else {
|
|
191
|
-
errors = _errs9;
|
|
192
|
-
if (vErrors !== null) {
|
|
193
|
-
if (_errs9) {
|
|
194
|
-
vErrors.length = _errs9;
|
|
195
|
-
} else {
|
|
196
|
-
vErrors = null;
|
|
197
|
-
}
|
|
198
|
-
}
|
|
199
|
-
}
|
|
200
|
-
var valid3 = _errs8 === errors;
|
|
201
|
-
} else {
|
|
202
|
-
var valid3 = true;
|
|
203
|
-
}
|
|
204
|
-
}
|
|
205
113
|
}
|
|
206
|
-
|
|
207
|
-
var valid2 = _errs6 === errors;
|
|
208
|
-
if (valid2) {
|
|
209
|
-
const err7 = { instancePath: instancePath + "/attributes", schemaPath: "#/definitions/storageAttributesValidation/not", keyword: "not", params: {}, message: "must NOT be valid" };
|
|
210
|
-
if (vErrors === null) {
|
|
211
|
-
vErrors = [err7];
|
|
212
|
-
} else {
|
|
213
|
-
vErrors.push(err7);
|
|
214
|
-
}
|
|
215
|
-
errors++;
|
|
114
|
+
var valid3 = _errs5 === errors;
|
|
216
115
|
} else {
|
|
217
|
-
|
|
218
|
-
if (vErrors !== null) {
|
|
219
|
-
if (_errs5) {
|
|
220
|
-
vErrors.length = _errs5;
|
|
221
|
-
} else {
|
|
222
|
-
vErrors = null;
|
|
223
|
-
}
|
|
224
|
-
}
|
|
116
|
+
var valid3 = true;
|
|
225
117
|
}
|
|
226
|
-
if (
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
}
|
|
237
|
-
}
|
|
238
|
-
if (data0.class !== void 0) {
|
|
239
|
-
if (typeof data0.class !== "string") {
|
|
240
|
-
const err9 = { instancePath: instancePath + "/attributes/class", schemaPath: "#/definitions/storageAttributesValidation/properties/class/type", keyword: "type", params: { type: "string" }, message: "must be string" };
|
|
241
|
-
if (vErrors === null) {
|
|
242
|
-
vErrors = [err9];
|
|
243
|
-
} else {
|
|
244
|
-
vErrors.push(err9);
|
|
245
|
-
}
|
|
246
|
-
errors++;
|
|
247
|
-
}
|
|
248
|
-
}
|
|
249
|
-
if (data0.persistent !== void 0) {
|
|
250
|
-
let data4 = data0.persistent;
|
|
251
|
-
const _errs16 = errors;
|
|
252
|
-
let valid6 = false;
|
|
253
|
-
let passing1 = null;
|
|
254
|
-
const _errs17 = errors;
|
|
255
|
-
if (typeof data4 !== "boolean") {
|
|
256
|
-
const err10 = { instancePath: instancePath + "/attributes/persistent", schemaPath: "#/definitions/storageAttributesValidation/properties/persistent/oneOf/0/type", keyword: "type", params: { type: "boolean" }, message: "must be boolean" };
|
|
118
|
+
if (valid3) {
|
|
119
|
+
if (data.persistent !== void 0) {
|
|
120
|
+
let data1 = data.persistent;
|
|
121
|
+
const _errs6 = errors;
|
|
122
|
+
const _errs7 = errors;
|
|
123
|
+
let valid4 = false;
|
|
124
|
+
let passing0 = null;
|
|
125
|
+
const _errs8 = errors;
|
|
126
|
+
if (true !== data1) {
|
|
127
|
+
const err2 = {};
|
|
257
128
|
if (vErrors === null) {
|
|
258
|
-
vErrors = [
|
|
129
|
+
vErrors = [err2];
|
|
259
130
|
} else {
|
|
260
|
-
vErrors.push(
|
|
131
|
+
vErrors.push(err2);
|
|
261
132
|
}
|
|
262
133
|
errors++;
|
|
263
134
|
}
|
|
264
|
-
var
|
|
265
|
-
if (
|
|
266
|
-
|
|
267
|
-
|
|
135
|
+
var _valid0 = _errs8 === errors;
|
|
136
|
+
if (_valid0) {
|
|
137
|
+
valid4 = true;
|
|
138
|
+
passing0 = 0;
|
|
268
139
|
}
|
|
269
|
-
const
|
|
270
|
-
if (
|
|
271
|
-
const
|
|
140
|
+
const _errs9 = errors;
|
|
141
|
+
if ("true" !== data1) {
|
|
142
|
+
const err3 = {};
|
|
272
143
|
if (vErrors === null) {
|
|
273
|
-
vErrors = [
|
|
144
|
+
vErrors = [err3];
|
|
274
145
|
} else {
|
|
275
|
-
vErrors.push(
|
|
146
|
+
vErrors.push(err3);
|
|
276
147
|
}
|
|
277
148
|
errors++;
|
|
278
149
|
}
|
|
279
|
-
var
|
|
280
|
-
if (
|
|
281
|
-
|
|
282
|
-
|
|
150
|
+
var _valid0 = _errs9 === errors;
|
|
151
|
+
if (_valid0 && valid4) {
|
|
152
|
+
valid4 = false;
|
|
153
|
+
passing0 = [passing0, 1];
|
|
283
154
|
} else {
|
|
284
|
-
if (
|
|
285
|
-
|
|
286
|
-
|
|
155
|
+
if (_valid0) {
|
|
156
|
+
valid4 = true;
|
|
157
|
+
passing0 = 1;
|
|
287
158
|
}
|
|
288
159
|
}
|
|
289
|
-
if (!
|
|
290
|
-
const
|
|
160
|
+
if (!valid4) {
|
|
161
|
+
const err4 = {};
|
|
291
162
|
if (vErrors === null) {
|
|
292
|
-
vErrors = [
|
|
163
|
+
vErrors = [err4];
|
|
293
164
|
} else {
|
|
294
|
-
vErrors.push(
|
|
165
|
+
vErrors.push(err4);
|
|
295
166
|
}
|
|
296
167
|
errors++;
|
|
297
168
|
} else {
|
|
298
|
-
errors =
|
|
169
|
+
errors = _errs7;
|
|
299
170
|
if (vErrors !== null) {
|
|
300
|
-
if (
|
|
301
|
-
vErrors.length =
|
|
171
|
+
if (_errs7) {
|
|
172
|
+
vErrors.length = _errs7;
|
|
302
173
|
} else {
|
|
303
174
|
vErrors = null;
|
|
304
175
|
}
|
|
305
176
|
}
|
|
306
177
|
}
|
|
178
|
+
var valid3 = _errs6 === errors;
|
|
179
|
+
} else {
|
|
180
|
+
var valid3 = true;
|
|
307
181
|
}
|
|
182
|
+
}
|
|
183
|
+
}
|
|
184
|
+
}
|
|
185
|
+
var valid2 = _errs4 === errors;
|
|
186
|
+
if (valid2) {
|
|
187
|
+
const err5 = { instancePath, schemaPath: "#/definitions/storageRamClassMustNotBePersistent/not", keyword: "not", params: {}, message: "must NOT be valid" };
|
|
188
|
+
if (vErrors === null) {
|
|
189
|
+
vErrors = [err5];
|
|
190
|
+
} else {
|
|
191
|
+
vErrors.push(err5);
|
|
192
|
+
}
|
|
193
|
+
errors++;
|
|
194
|
+
} else {
|
|
195
|
+
errors = _errs3;
|
|
196
|
+
if (vErrors !== null) {
|
|
197
|
+
if (_errs3) {
|
|
198
|
+
vErrors.length = _errs3;
|
|
308
199
|
} else {
|
|
309
|
-
|
|
200
|
+
vErrors = null;
|
|
201
|
+
}
|
|
202
|
+
}
|
|
203
|
+
}
|
|
204
|
+
const _errs12 = errors;
|
|
205
|
+
let valid6 = true;
|
|
206
|
+
const _errs13 = errors;
|
|
207
|
+
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
208
|
+
let missing1;
|
|
209
|
+
if (data.class === void 0 && (missing1 = "class")) {
|
|
210
|
+
const err6 = {};
|
|
211
|
+
if (vErrors === null) {
|
|
212
|
+
vErrors = [err6];
|
|
213
|
+
} else {
|
|
214
|
+
vErrors.push(err6);
|
|
215
|
+
}
|
|
216
|
+
errors++;
|
|
217
|
+
} else {
|
|
218
|
+
if (data.class !== void 0) {
|
|
219
|
+
let data2 = data.class;
|
|
220
|
+
if (!(data2 === "beta1" || data2 === "beta2" || data2 === "beta3" || data2 === "default")) {
|
|
221
|
+
const err7 = {};
|
|
222
|
+
if (vErrors === null) {
|
|
223
|
+
vErrors = [err7];
|
|
224
|
+
} else {
|
|
225
|
+
vErrors.push(err7);
|
|
226
|
+
}
|
|
227
|
+
errors++;
|
|
228
|
+
}
|
|
229
|
+
}
|
|
230
|
+
}
|
|
231
|
+
}
|
|
232
|
+
var _valid1 = _errs13 === errors;
|
|
233
|
+
errors = _errs12;
|
|
234
|
+
if (vErrors !== null) {
|
|
235
|
+
if (_errs12) {
|
|
236
|
+
vErrors.length = _errs12;
|
|
237
|
+
} else {
|
|
238
|
+
vErrors = null;
|
|
239
|
+
}
|
|
240
|
+
}
|
|
241
|
+
if (_valid1) {
|
|
242
|
+
const _errs15 = errors;
|
|
243
|
+
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
244
|
+
if (data.persistent === void 0) {
|
|
245
|
+
const err8 = { instancePath, schemaPath: "#/definitions/storageNonRamClassRequiresPersistent/then/required", keyword: "required", params: { missingProperty: "persistent" }, message: "must have required property 'persistent'" };
|
|
310
246
|
if (vErrors === null) {
|
|
311
|
-
vErrors = [
|
|
247
|
+
vErrors = [err8];
|
|
312
248
|
} else {
|
|
313
|
-
vErrors.push(
|
|
249
|
+
vErrors.push(err8);
|
|
314
250
|
}
|
|
315
251
|
errors++;
|
|
316
252
|
}
|
|
253
|
+
if (data.persistent !== void 0) {
|
|
254
|
+
let data3 = data.persistent;
|
|
255
|
+
const _errs17 = errors;
|
|
256
|
+
let valid9 = false;
|
|
257
|
+
let passing1 = null;
|
|
258
|
+
const _errs18 = errors;
|
|
259
|
+
if (true !== data3) {
|
|
260
|
+
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" };
|
|
261
|
+
if (vErrors === null) {
|
|
262
|
+
vErrors = [err9];
|
|
263
|
+
} else {
|
|
264
|
+
vErrors.push(err9);
|
|
265
|
+
}
|
|
266
|
+
errors++;
|
|
267
|
+
}
|
|
268
|
+
var _valid2 = _errs18 === errors;
|
|
269
|
+
if (_valid2) {
|
|
270
|
+
valid9 = true;
|
|
271
|
+
passing1 = 0;
|
|
272
|
+
}
|
|
273
|
+
const _errs19 = errors;
|
|
274
|
+
if ("true" !== data3) {
|
|
275
|
+
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" };
|
|
276
|
+
if (vErrors === null) {
|
|
277
|
+
vErrors = [err10];
|
|
278
|
+
} else {
|
|
279
|
+
vErrors.push(err10);
|
|
280
|
+
}
|
|
281
|
+
errors++;
|
|
282
|
+
}
|
|
283
|
+
var _valid2 = _errs19 === errors;
|
|
284
|
+
if (_valid2 && valid9) {
|
|
285
|
+
valid9 = false;
|
|
286
|
+
passing1 = [passing1, 1];
|
|
287
|
+
} else {
|
|
288
|
+
if (_valid2) {
|
|
289
|
+
valid9 = true;
|
|
290
|
+
passing1 = 1;
|
|
291
|
+
}
|
|
292
|
+
}
|
|
293
|
+
if (!valid9) {
|
|
294
|
+
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" };
|
|
295
|
+
if (vErrors === null) {
|
|
296
|
+
vErrors = [err11];
|
|
297
|
+
} else {
|
|
298
|
+
vErrors.push(err11);
|
|
299
|
+
}
|
|
300
|
+
errors++;
|
|
301
|
+
} else {
|
|
302
|
+
errors = _errs17;
|
|
303
|
+
if (vErrors !== null) {
|
|
304
|
+
if (_errs17) {
|
|
305
|
+
vErrors.length = _errs17;
|
|
306
|
+
} else {
|
|
307
|
+
vErrors = null;
|
|
308
|
+
}
|
|
309
|
+
}
|
|
310
|
+
}
|
|
311
|
+
}
|
|
312
|
+
}
|
|
313
|
+
var _valid1 = _errs15 === errors;
|
|
314
|
+
valid6 = _valid1;
|
|
315
|
+
}
|
|
316
|
+
if (!valid6) {
|
|
317
|
+
const err12 = { instancePath, schemaPath: "#/definitions/storageNonRamClassRequiresPersistent/if", keyword: "if", params: { failingKeyword: "then" }, message: 'must match "then" schema' };
|
|
318
|
+
if (vErrors === null) {
|
|
319
|
+
vErrors = [err12];
|
|
320
|
+
} else {
|
|
321
|
+
vErrors.push(err12);
|
|
322
|
+
}
|
|
323
|
+
errors++;
|
|
324
|
+
}
|
|
325
|
+
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
326
|
+
if (data.class === void 0) {
|
|
327
|
+
const err13 = { instancePath, schemaPath: "#/required", keyword: "required", params: { missingProperty: "class" }, message: "must have required property 'class'" };
|
|
328
|
+
if (vErrors === null) {
|
|
329
|
+
vErrors = [err13];
|
|
330
|
+
} else {
|
|
331
|
+
vErrors.push(err13);
|
|
332
|
+
}
|
|
333
|
+
errors++;
|
|
334
|
+
}
|
|
335
|
+
if (data.persistent === void 0) {
|
|
336
|
+
const err14 = { instancePath, schemaPath: "#/required", keyword: "required", params: { missingProperty: "persistent" }, message: "must have required property 'persistent'" };
|
|
337
|
+
if (vErrors === null) {
|
|
338
|
+
vErrors = [err14];
|
|
339
|
+
} else {
|
|
340
|
+
vErrors.push(err14);
|
|
341
|
+
}
|
|
342
|
+
errors++;
|
|
343
|
+
}
|
|
344
|
+
for (const key0 in data) {
|
|
345
|
+
if (!(key0 === "class" || key0 === "persistent")) {
|
|
346
|
+
const err15 = { instancePath, schemaPath: "#/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key0 }, message: "must NOT have additional properties" };
|
|
347
|
+
if (vErrors === null) {
|
|
348
|
+
vErrors = [err15];
|
|
349
|
+
} else {
|
|
350
|
+
vErrors.push(err15);
|
|
351
|
+
}
|
|
352
|
+
errors++;
|
|
353
|
+
}
|
|
354
|
+
}
|
|
355
|
+
if (data.class !== void 0) {
|
|
356
|
+
if (typeof data.class !== "string") {
|
|
357
|
+
const err16 = { instancePath: instancePath + "/class", schemaPath: "#/properties/class/type", keyword: "type", params: { type: "string" }, message: "must be string" };
|
|
358
|
+
if (vErrors === null) {
|
|
359
|
+
vErrors = [err16];
|
|
360
|
+
} else {
|
|
361
|
+
vErrors.push(err16);
|
|
362
|
+
}
|
|
363
|
+
errors++;
|
|
364
|
+
}
|
|
365
|
+
}
|
|
366
|
+
if (data.persistent !== void 0) {
|
|
367
|
+
let data5 = data.persistent;
|
|
368
|
+
const _errs24 = errors;
|
|
369
|
+
let valid11 = false;
|
|
370
|
+
let passing2 = null;
|
|
371
|
+
const _errs25 = errors;
|
|
372
|
+
if (typeof data5 !== "boolean") {
|
|
373
|
+
const err17 = { instancePath: instancePath + "/persistent", schemaPath: "#/properties/persistent/oneOf/0/type", keyword: "type", params: { type: "boolean" }, message: "must be boolean" };
|
|
374
|
+
if (vErrors === null) {
|
|
375
|
+
vErrors = [err17];
|
|
376
|
+
} else {
|
|
377
|
+
vErrors.push(err17);
|
|
378
|
+
}
|
|
379
|
+
errors++;
|
|
380
|
+
}
|
|
381
|
+
var _valid3 = _errs25 === errors;
|
|
382
|
+
if (_valid3) {
|
|
383
|
+
valid11 = true;
|
|
384
|
+
passing2 = 0;
|
|
385
|
+
}
|
|
386
|
+
const _errs27 = errors;
|
|
387
|
+
if (typeof data5 !== "string") {
|
|
388
|
+
const err18 = { instancePath: instancePath + "/persistent", schemaPath: "#/properties/persistent/oneOf/1/type", keyword: "type", params: { type: "string" }, message: "must be string" };
|
|
389
|
+
if (vErrors === null) {
|
|
390
|
+
vErrors = [err18];
|
|
391
|
+
} else {
|
|
392
|
+
vErrors.push(err18);
|
|
393
|
+
}
|
|
394
|
+
errors++;
|
|
395
|
+
}
|
|
396
|
+
var _valid3 = _errs27 === errors;
|
|
397
|
+
if (_valid3 && valid11) {
|
|
398
|
+
valid11 = false;
|
|
399
|
+
passing2 = [passing2, 1];
|
|
400
|
+
} else {
|
|
401
|
+
if (_valid3) {
|
|
402
|
+
valid11 = true;
|
|
403
|
+
passing2 = 1;
|
|
404
|
+
}
|
|
405
|
+
}
|
|
406
|
+
if (!valid11) {
|
|
407
|
+
const err19 = { instancePath: instancePath + "/persistent", schemaPath: "#/properties/persistent/oneOf", keyword: "oneOf", params: { passingSchemas: passing2 }, message: "must match exactly one schema in oneOf" };
|
|
408
|
+
if (vErrors === null) {
|
|
409
|
+
vErrors = [err19];
|
|
410
|
+
} else {
|
|
411
|
+
vErrors.push(err19);
|
|
412
|
+
}
|
|
413
|
+
errors++;
|
|
414
|
+
} else {
|
|
415
|
+
errors = _errs24;
|
|
416
|
+
if (vErrors !== null) {
|
|
417
|
+
if (_errs24) {
|
|
418
|
+
vErrors.length = _errs24;
|
|
419
|
+
} else {
|
|
420
|
+
vErrors = null;
|
|
421
|
+
}
|
|
422
|
+
}
|
|
423
|
+
}
|
|
424
|
+
}
|
|
425
|
+
} else {
|
|
426
|
+
const err20 = { instancePath, schemaPath: "#/type", keyword: "type", params: { type: "object" }, message: "must be object" };
|
|
427
|
+
if (vErrors === null) {
|
|
428
|
+
vErrors = [err20];
|
|
429
|
+
} else {
|
|
430
|
+
vErrors.push(err20);
|
|
431
|
+
}
|
|
432
|
+
errors++;
|
|
433
|
+
}
|
|
434
|
+
validate13.errors = vErrors;
|
|
435
|
+
return errors === 0;
|
|
436
|
+
}
|
|
437
|
+
function validate12(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
|
|
438
|
+
let vErrors = null;
|
|
439
|
+
let errors = 0;
|
|
440
|
+
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
441
|
+
if (data.size === void 0) {
|
|
442
|
+
const err0 = { instancePath, schemaPath: "#/required", keyword: "required", params: { missingProperty: "size" }, message: "must have required property 'size'" };
|
|
443
|
+
if (vErrors === null) {
|
|
444
|
+
vErrors = [err0];
|
|
445
|
+
} else {
|
|
446
|
+
vErrors.push(err0);
|
|
447
|
+
}
|
|
448
|
+
errors++;
|
|
449
|
+
}
|
|
450
|
+
for (const key0 in data) {
|
|
451
|
+
if (!(key0 === "attributes" || key0 === "name" || key0 === "size")) {
|
|
452
|
+
const err1 = { instancePath, schemaPath: "#/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key0 }, message: "must NOT have additional properties" };
|
|
453
|
+
if (vErrors === null) {
|
|
454
|
+
vErrors = [err1];
|
|
455
|
+
} else {
|
|
456
|
+
vErrors.push(err1);
|
|
457
|
+
}
|
|
458
|
+
errors++;
|
|
459
|
+
}
|
|
460
|
+
}
|
|
461
|
+
if (data.attributes !== void 0) {
|
|
462
|
+
if (!validate13(data.attributes, { instancePath: instancePath + "/attributes", parentData: data, parentDataProperty: "attributes", rootData })) {
|
|
463
|
+
vErrors = vErrors === null ? validate13.errors : vErrors.concat(validate13.errors);
|
|
464
|
+
errors = vErrors.length;
|
|
465
|
+
}
|
|
317
466
|
}
|
|
318
467
|
if (data.name !== void 0) {
|
|
319
468
|
if (typeof data.name !== "string") {
|
|
320
|
-
const
|
|
469
|
+
const err2 = { instancePath: instancePath + "/name", schemaPath: "#/properties/name/type", keyword: "type", params: { type: "string" }, message: "must be string" };
|
|
321
470
|
if (vErrors === null) {
|
|
322
|
-
vErrors = [
|
|
471
|
+
vErrors = [err2];
|
|
323
472
|
} else {
|
|
324
|
-
vErrors.push(
|
|
473
|
+
vErrors.push(err2);
|
|
325
474
|
}
|
|
326
475
|
errors++;
|
|
327
476
|
}
|
|
328
477
|
}
|
|
329
478
|
if (data.size !== void 0) {
|
|
330
479
|
if (typeof data.size !== "string") {
|
|
331
|
-
const
|
|
480
|
+
const err3 = { instancePath: instancePath + "/size", schemaPath: "#/properties/size/type", keyword: "type", params: { type: "string" }, message: "must be string" };
|
|
332
481
|
if (vErrors === null) {
|
|
333
|
-
vErrors = [
|
|
482
|
+
vErrors = [err3];
|
|
334
483
|
} else {
|
|
335
|
-
vErrors.push(
|
|
484
|
+
vErrors.push(err3);
|
|
336
485
|
}
|
|
337
486
|
errors++;
|
|
338
487
|
}
|
|
339
488
|
}
|
|
340
489
|
} else {
|
|
341
|
-
const
|
|
490
|
+
const err4 = { instancePath, schemaPath: "#/type", keyword: "type", params: { type: "object" }, message: "must be object" };
|
|
342
491
|
if (vErrors === null) {
|
|
343
|
-
vErrors = [
|
|
492
|
+
vErrors = [err4];
|
|
344
493
|
} else {
|
|
345
|
-
vErrors.push(
|
|
494
|
+
vErrors.push(err4);
|
|
346
495
|
}
|
|
347
496
|
errors++;
|
|
348
497
|
}
|
|
@@ -853,198 +1002,492 @@ function validate11(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
853
1002
|
}
|
|
854
1003
|
}
|
|
855
1004
|
}
|
|
856
|
-
} else {
|
|
857
|
-
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" };
|
|
1005
|
+
} else {
|
|
1006
|
+
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" };
|
|
1007
|
+
if (vErrors === null) {
|
|
1008
|
+
vErrors = [err42];
|
|
1009
|
+
} else {
|
|
1010
|
+
vErrors.push(err42);
|
|
1011
|
+
}
|
|
1012
|
+
errors++;
|
|
1013
|
+
}
|
|
1014
|
+
}
|
|
1015
|
+
if (data13.gpu !== void 0) {
|
|
1016
|
+
let data17 = data13.gpu;
|
|
1017
|
+
const _errs56 = errors;
|
|
1018
|
+
let valid17 = true;
|
|
1019
|
+
const _errs57 = errors;
|
|
1020
|
+
if (data17 && typeof data17 == "object" && !Array.isArray(data17)) {
|
|
1021
|
+
let missing0;
|
|
1022
|
+
if (data17.units === void 0 && (missing0 = "units")) {
|
|
1023
|
+
const err43 = {};
|
|
1024
|
+
if (vErrors === null) {
|
|
1025
|
+
vErrors = [err43];
|
|
1026
|
+
} else {
|
|
1027
|
+
vErrors.push(err43);
|
|
1028
|
+
}
|
|
1029
|
+
errors++;
|
|
1030
|
+
} else {
|
|
1031
|
+
if (data17.units !== void 0) {
|
|
1032
|
+
let data18 = data17.units;
|
|
1033
|
+
const _errs59 = errors;
|
|
1034
|
+
let valid19 = false;
|
|
1035
|
+
let passing1 = null;
|
|
1036
|
+
const _errs60 = errors;
|
|
1037
|
+
if (errors === _errs60) {
|
|
1038
|
+
if (typeof data18 == "number") {
|
|
1039
|
+
if (data18 <= 0 || isNaN(data18)) {
|
|
1040
|
+
const err44 = {};
|
|
1041
|
+
if (vErrors === null) {
|
|
1042
|
+
vErrors = [err44];
|
|
1043
|
+
} else {
|
|
1044
|
+
vErrors.push(err44);
|
|
1045
|
+
}
|
|
1046
|
+
errors++;
|
|
1047
|
+
}
|
|
1048
|
+
} else {
|
|
1049
|
+
const err45 = {};
|
|
1050
|
+
if (vErrors === null) {
|
|
1051
|
+
vErrors = [err45];
|
|
1052
|
+
} else {
|
|
1053
|
+
vErrors.push(err45);
|
|
1054
|
+
}
|
|
1055
|
+
errors++;
|
|
1056
|
+
}
|
|
1057
|
+
}
|
|
1058
|
+
var _valid2 = _errs60 === errors;
|
|
1059
|
+
if (_valid2) {
|
|
1060
|
+
valid19 = true;
|
|
1061
|
+
passing1 = 0;
|
|
1062
|
+
}
|
|
1063
|
+
const _errs62 = errors;
|
|
1064
|
+
if (typeof data18 !== "string") {
|
|
1065
|
+
const err46 = {};
|
|
1066
|
+
if (vErrors === null) {
|
|
1067
|
+
vErrors = [err46];
|
|
1068
|
+
} else {
|
|
1069
|
+
vErrors.push(err46);
|
|
1070
|
+
}
|
|
1071
|
+
errors++;
|
|
1072
|
+
}
|
|
1073
|
+
const _errs64 = errors;
|
|
1074
|
+
const _errs65 = errors;
|
|
1075
|
+
if (typeof data18 === "string") {
|
|
1076
|
+
if (!pattern6.test(data18)) {
|
|
1077
|
+
const err47 = {};
|
|
1078
|
+
if (vErrors === null) {
|
|
1079
|
+
vErrors = [err47];
|
|
1080
|
+
} else {
|
|
1081
|
+
vErrors.push(err47);
|
|
1082
|
+
}
|
|
1083
|
+
errors++;
|
|
1084
|
+
}
|
|
1085
|
+
}
|
|
1086
|
+
var valid20 = _errs65 === errors;
|
|
1087
|
+
if (valid20) {
|
|
1088
|
+
const err48 = {};
|
|
1089
|
+
if (vErrors === null) {
|
|
1090
|
+
vErrors = [err48];
|
|
1091
|
+
} else {
|
|
1092
|
+
vErrors.push(err48);
|
|
1093
|
+
}
|
|
1094
|
+
errors++;
|
|
1095
|
+
} else {
|
|
1096
|
+
errors = _errs64;
|
|
1097
|
+
if (vErrors !== null) {
|
|
1098
|
+
if (_errs64) {
|
|
1099
|
+
vErrors.length = _errs64;
|
|
1100
|
+
} else {
|
|
1101
|
+
vErrors = null;
|
|
1102
|
+
}
|
|
1103
|
+
}
|
|
1104
|
+
}
|
|
1105
|
+
var _valid2 = _errs62 === errors;
|
|
1106
|
+
if (_valid2 && valid19) {
|
|
1107
|
+
valid19 = false;
|
|
1108
|
+
passing1 = [passing1, 1];
|
|
1109
|
+
} else {
|
|
1110
|
+
if (_valid2) {
|
|
1111
|
+
valid19 = true;
|
|
1112
|
+
passing1 = 1;
|
|
1113
|
+
}
|
|
1114
|
+
}
|
|
1115
|
+
if (!valid19) {
|
|
1116
|
+
const err49 = {};
|
|
1117
|
+
if (vErrors === null) {
|
|
1118
|
+
vErrors = [err49];
|
|
1119
|
+
} else {
|
|
1120
|
+
vErrors.push(err49);
|
|
1121
|
+
}
|
|
1122
|
+
errors++;
|
|
1123
|
+
} else {
|
|
1124
|
+
errors = _errs59;
|
|
1125
|
+
if (vErrors !== null) {
|
|
1126
|
+
if (_errs59) {
|
|
1127
|
+
vErrors.length = _errs59;
|
|
1128
|
+
} else {
|
|
1129
|
+
vErrors = null;
|
|
1130
|
+
}
|
|
1131
|
+
}
|
|
1132
|
+
}
|
|
1133
|
+
}
|
|
1134
|
+
}
|
|
1135
|
+
}
|
|
1136
|
+
var _valid1 = _errs57 === errors;
|
|
1137
|
+
errors = _errs56;
|
|
1138
|
+
if (vErrors !== null) {
|
|
1139
|
+
if (_errs56) {
|
|
1140
|
+
vErrors.length = _errs56;
|
|
1141
|
+
} else {
|
|
1142
|
+
vErrors = null;
|
|
1143
|
+
}
|
|
1144
|
+
}
|
|
1145
|
+
if (_valid1) {
|
|
1146
|
+
const _errs66 = errors;
|
|
1147
|
+
if (data17 && typeof data17 == "object" && !Array.isArray(data17)) {
|
|
1148
|
+
if (data17.attributes === void 0) {
|
|
1149
|
+
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'" };
|
|
1150
|
+
if (vErrors === null) {
|
|
1151
|
+
vErrors = [err50];
|
|
1152
|
+
} else {
|
|
1153
|
+
vErrors.push(err50);
|
|
1154
|
+
}
|
|
1155
|
+
errors++;
|
|
1156
|
+
}
|
|
1157
|
+
}
|
|
1158
|
+
var _valid1 = _errs66 === errors;
|
|
1159
|
+
valid17 = _valid1;
|
|
1160
|
+
}
|
|
1161
|
+
if (!valid17) {
|
|
1162
|
+
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' };
|
|
1163
|
+
if (vErrors === null) {
|
|
1164
|
+
vErrors = [err51];
|
|
1165
|
+
} else {
|
|
1166
|
+
vErrors.push(err51);
|
|
1167
|
+
}
|
|
1168
|
+
errors++;
|
|
1169
|
+
}
|
|
1170
|
+
const _errs69 = errors;
|
|
1171
|
+
let valid22 = true;
|
|
1172
|
+
const _errs70 = errors;
|
|
1173
|
+
if (data17 && typeof data17 == "object" && !Array.isArray(data17)) {
|
|
1174
|
+
let missing1;
|
|
1175
|
+
if (data17.attributes === void 0 && (missing1 = "attributes")) {
|
|
1176
|
+
const err52 = {};
|
|
1177
|
+
if (vErrors === null) {
|
|
1178
|
+
vErrors = [err52];
|
|
1179
|
+
} else {
|
|
1180
|
+
vErrors.push(err52);
|
|
1181
|
+
}
|
|
1182
|
+
errors++;
|
|
1183
|
+
}
|
|
1184
|
+
}
|
|
1185
|
+
var _valid3 = _errs70 === errors;
|
|
1186
|
+
errors = _errs69;
|
|
1187
|
+
if (vErrors !== null) {
|
|
1188
|
+
if (_errs69) {
|
|
1189
|
+
vErrors.length = _errs69;
|
|
1190
|
+
} else {
|
|
1191
|
+
vErrors = null;
|
|
1192
|
+
}
|
|
1193
|
+
}
|
|
1194
|
+
if (_valid3) {
|
|
1195
|
+
const _errs71 = errors;
|
|
1196
|
+
if (data17 && typeof data17 == "object" && !Array.isArray(data17)) {
|
|
1197
|
+
if (data17.units === void 0) {
|
|
1198
|
+
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'" };
|
|
1199
|
+
if (vErrors === null) {
|
|
1200
|
+
vErrors = [err53];
|
|
1201
|
+
} else {
|
|
1202
|
+
vErrors.push(err53);
|
|
1203
|
+
}
|
|
1204
|
+
errors++;
|
|
1205
|
+
}
|
|
1206
|
+
if (data17.units !== void 0) {
|
|
1207
|
+
let data19 = data17.units;
|
|
1208
|
+
const _errs73 = errors;
|
|
1209
|
+
let valid24 = false;
|
|
1210
|
+
let passing2 = null;
|
|
1211
|
+
const _errs74 = errors;
|
|
1212
|
+
if (typeof data19 == "number") {
|
|
1213
|
+
if (data19 <= 0 || isNaN(data19)) {
|
|
1214
|
+
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" };
|
|
1215
|
+
if (vErrors === null) {
|
|
1216
|
+
vErrors = [err54];
|
|
1217
|
+
} else {
|
|
1218
|
+
vErrors.push(err54);
|
|
1219
|
+
}
|
|
1220
|
+
errors++;
|
|
1221
|
+
}
|
|
1222
|
+
} else {
|
|
1223
|
+
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" };
|
|
1224
|
+
if (vErrors === null) {
|
|
1225
|
+
vErrors = [err55];
|
|
1226
|
+
} else {
|
|
1227
|
+
vErrors.push(err55);
|
|
1228
|
+
}
|
|
1229
|
+
errors++;
|
|
1230
|
+
}
|
|
1231
|
+
var _valid4 = _errs74 === errors;
|
|
1232
|
+
if (_valid4) {
|
|
1233
|
+
valid24 = true;
|
|
1234
|
+
passing2 = 0;
|
|
1235
|
+
}
|
|
1236
|
+
const _errs76 = errors;
|
|
1237
|
+
if (typeof data19 !== "string") {
|
|
1238
|
+
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" };
|
|
1239
|
+
if (vErrors === null) {
|
|
1240
|
+
vErrors = [err56];
|
|
1241
|
+
} else {
|
|
1242
|
+
vErrors.push(err56);
|
|
1243
|
+
}
|
|
1244
|
+
errors++;
|
|
1245
|
+
}
|
|
1246
|
+
const _errs78 = errors;
|
|
1247
|
+
const _errs79 = errors;
|
|
1248
|
+
if (typeof data19 === "string") {
|
|
1249
|
+
if (!pattern6.test(data19)) {
|
|
1250
|
+
const err57 = {};
|
|
1251
|
+
if (vErrors === null) {
|
|
1252
|
+
vErrors = [err57];
|
|
1253
|
+
} else {
|
|
1254
|
+
vErrors.push(err57);
|
|
1255
|
+
}
|
|
1256
|
+
errors++;
|
|
1257
|
+
}
|
|
1258
|
+
}
|
|
1259
|
+
var valid25 = _errs79 === errors;
|
|
1260
|
+
if (valid25) {
|
|
1261
|
+
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" };
|
|
1262
|
+
if (vErrors === null) {
|
|
1263
|
+
vErrors = [err58];
|
|
1264
|
+
} else {
|
|
1265
|
+
vErrors.push(err58);
|
|
1266
|
+
}
|
|
1267
|
+
errors++;
|
|
1268
|
+
} else {
|
|
1269
|
+
errors = _errs78;
|
|
1270
|
+
if (vErrors !== null) {
|
|
1271
|
+
if (_errs78) {
|
|
1272
|
+
vErrors.length = _errs78;
|
|
1273
|
+
} else {
|
|
1274
|
+
vErrors = null;
|
|
1275
|
+
}
|
|
1276
|
+
}
|
|
1277
|
+
}
|
|
1278
|
+
var _valid4 = _errs76 === errors;
|
|
1279
|
+
if (_valid4 && valid24) {
|
|
1280
|
+
valid24 = false;
|
|
1281
|
+
passing2 = [passing2, 1];
|
|
1282
|
+
} else {
|
|
1283
|
+
if (_valid4) {
|
|
1284
|
+
valid24 = true;
|
|
1285
|
+
passing2 = 1;
|
|
1286
|
+
}
|
|
1287
|
+
}
|
|
1288
|
+
if (!valid24) {
|
|
1289
|
+
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" };
|
|
1290
|
+
if (vErrors === null) {
|
|
1291
|
+
vErrors = [err59];
|
|
1292
|
+
} else {
|
|
1293
|
+
vErrors.push(err59);
|
|
1294
|
+
}
|
|
1295
|
+
errors++;
|
|
1296
|
+
} else {
|
|
1297
|
+
errors = _errs73;
|
|
1298
|
+
if (vErrors !== null) {
|
|
1299
|
+
if (_errs73) {
|
|
1300
|
+
vErrors.length = _errs73;
|
|
1301
|
+
} else {
|
|
1302
|
+
vErrors = null;
|
|
1303
|
+
}
|
|
1304
|
+
}
|
|
1305
|
+
}
|
|
1306
|
+
}
|
|
1307
|
+
}
|
|
1308
|
+
var _valid3 = _errs71 === errors;
|
|
1309
|
+
valid22 = _valid3;
|
|
1310
|
+
}
|
|
1311
|
+
if (!valid22) {
|
|
1312
|
+
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' };
|
|
858
1313
|
if (vErrors === null) {
|
|
859
|
-
vErrors = [
|
|
1314
|
+
vErrors = [err60];
|
|
860
1315
|
} else {
|
|
861
|
-
vErrors.push(
|
|
1316
|
+
vErrors.push(err60);
|
|
862
1317
|
}
|
|
863
1318
|
errors++;
|
|
864
1319
|
}
|
|
865
|
-
}
|
|
866
|
-
if (data13.gpu !== void 0) {
|
|
867
|
-
let data17 = data13.gpu;
|
|
868
1320
|
if (data17 && typeof data17 == "object" && !Array.isArray(data17)) {
|
|
869
|
-
if (data17.units === void 0) {
|
|
870
|
-
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'" };
|
|
871
|
-
if (vErrors === null) {
|
|
872
|
-
vErrors = [err43];
|
|
873
|
-
} else {
|
|
874
|
-
vErrors.push(err43);
|
|
875
|
-
}
|
|
876
|
-
errors++;
|
|
877
|
-
}
|
|
878
1321
|
for (const key12 in data17) {
|
|
879
1322
|
if (!(key12 === "attributes" || key12 === "units")) {
|
|
880
|
-
const
|
|
1323
|
+
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" };
|
|
881
1324
|
if (vErrors === null) {
|
|
882
|
-
vErrors = [
|
|
1325
|
+
vErrors = [err61];
|
|
883
1326
|
} else {
|
|
884
|
-
vErrors.push(
|
|
1327
|
+
vErrors.push(err61);
|
|
885
1328
|
}
|
|
886
1329
|
errors++;
|
|
887
1330
|
}
|
|
888
1331
|
}
|
|
889
1332
|
if (data17.attributes !== void 0) {
|
|
890
|
-
let
|
|
891
|
-
if (
|
|
892
|
-
for (const key13 in
|
|
1333
|
+
let data20 = data17.attributes;
|
|
1334
|
+
if (data20 && typeof data20 == "object" && !Array.isArray(data20)) {
|
|
1335
|
+
for (const key13 in data20) {
|
|
893
1336
|
if (!(key13 === "vendor")) {
|
|
894
|
-
const
|
|
1337
|
+
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" };
|
|
895
1338
|
if (vErrors === null) {
|
|
896
|
-
vErrors = [
|
|
1339
|
+
vErrors = [err62];
|
|
897
1340
|
} else {
|
|
898
|
-
vErrors.push(
|
|
1341
|
+
vErrors.push(err62);
|
|
899
1342
|
}
|
|
900
1343
|
errors++;
|
|
901
1344
|
}
|
|
902
1345
|
}
|
|
903
|
-
if (
|
|
904
|
-
let
|
|
905
|
-
if (
|
|
906
|
-
if (Object.keys(
|
|
907
|
-
const
|
|
1346
|
+
if (data20.vendor !== void 0) {
|
|
1347
|
+
let data21 = data20.vendor;
|
|
1348
|
+
if (data21 && typeof data21 == "object" && !Array.isArray(data21)) {
|
|
1349
|
+
if (Object.keys(data21).length < 1) {
|
|
1350
|
+
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" };
|
|
908
1351
|
if (vErrors === null) {
|
|
909
|
-
vErrors = [
|
|
1352
|
+
vErrors = [err63];
|
|
910
1353
|
} else {
|
|
911
|
-
vErrors.push(
|
|
1354
|
+
vErrors.push(err63);
|
|
912
1355
|
}
|
|
913
1356
|
errors++;
|
|
914
1357
|
}
|
|
915
|
-
for (const key14 in
|
|
1358
|
+
for (const key14 in data21) {
|
|
916
1359
|
if (!(key14 === "nvidia")) {
|
|
917
|
-
const
|
|
1360
|
+
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" };
|
|
918
1361
|
if (vErrors === null) {
|
|
919
|
-
vErrors = [
|
|
1362
|
+
vErrors = [err64];
|
|
920
1363
|
} else {
|
|
921
|
-
vErrors.push(
|
|
1364
|
+
vErrors.push(err64);
|
|
922
1365
|
}
|
|
923
1366
|
errors++;
|
|
924
1367
|
}
|
|
925
1368
|
}
|
|
926
|
-
if (
|
|
927
|
-
let
|
|
928
|
-
const
|
|
929
|
-
let
|
|
930
|
-
let
|
|
931
|
-
const
|
|
932
|
-
if (Array.isArray(
|
|
933
|
-
const len1 =
|
|
1369
|
+
if (data21.nvidia !== void 0) {
|
|
1370
|
+
let data22 = data21.nvidia;
|
|
1371
|
+
const _errs88 = errors;
|
|
1372
|
+
let valid29 = false;
|
|
1373
|
+
let passing3 = null;
|
|
1374
|
+
const _errs89 = errors;
|
|
1375
|
+
if (Array.isArray(data22)) {
|
|
1376
|
+
const len1 = data22.length;
|
|
934
1377
|
for (let i1 = 0; i1 < len1; i1++) {
|
|
935
|
-
let
|
|
936
|
-
if (
|
|
937
|
-
for (const key15 in
|
|
1378
|
+
let data23 = data22[i1];
|
|
1379
|
+
if (data23 && typeof data23 == "object" && !Array.isArray(data23)) {
|
|
1380
|
+
for (const key15 in data23) {
|
|
938
1381
|
if (!(key15 === "interface" || key15 === "model" || key15 === "ram")) {
|
|
939
|
-
const
|
|
1382
|
+
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" };
|
|
940
1383
|
if (vErrors === null) {
|
|
941
|
-
vErrors = [
|
|
1384
|
+
vErrors = [err65];
|
|
942
1385
|
} else {
|
|
943
|
-
vErrors.push(
|
|
1386
|
+
vErrors.push(err65);
|
|
944
1387
|
}
|
|
945
1388
|
errors++;
|
|
946
1389
|
}
|
|
947
1390
|
}
|
|
948
|
-
if (
|
|
949
|
-
let
|
|
950
|
-
if (typeof
|
|
951
|
-
const
|
|
1391
|
+
if (data23.interface !== void 0) {
|
|
1392
|
+
let data24 = data23.interface;
|
|
1393
|
+
if (typeof data24 !== "string") {
|
|
1394
|
+
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" };
|
|
952
1395
|
if (vErrors === null) {
|
|
953
|
-
vErrors = [
|
|
1396
|
+
vErrors = [err66];
|
|
954
1397
|
} else {
|
|
955
|
-
vErrors.push(
|
|
1398
|
+
vErrors.push(err66);
|
|
956
1399
|
}
|
|
957
1400
|
errors++;
|
|
958
1401
|
}
|
|
959
|
-
if (!(
|
|
960
|
-
const
|
|
1402
|
+
if (!(data24 === "pcie" || data24 === "sxm")) {
|
|
1403
|
+
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" };
|
|
961
1404
|
if (vErrors === null) {
|
|
962
|
-
vErrors = [
|
|
1405
|
+
vErrors = [err67];
|
|
963
1406
|
} else {
|
|
964
|
-
vErrors.push(
|
|
1407
|
+
vErrors.push(err67);
|
|
965
1408
|
}
|
|
966
1409
|
errors++;
|
|
967
1410
|
}
|
|
968
1411
|
}
|
|
969
|
-
if (
|
|
970
|
-
if (typeof
|
|
971
|
-
const
|
|
1412
|
+
if (data23.model !== void 0) {
|
|
1413
|
+
if (typeof data23.model !== "string") {
|
|
1414
|
+
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" };
|
|
972
1415
|
if (vErrors === null) {
|
|
973
|
-
vErrors = [
|
|
1416
|
+
vErrors = [err68];
|
|
974
1417
|
} else {
|
|
975
|
-
vErrors.push(
|
|
1418
|
+
vErrors.push(err68);
|
|
976
1419
|
}
|
|
977
1420
|
errors++;
|
|
978
1421
|
}
|
|
979
1422
|
}
|
|
980
|
-
if (
|
|
981
|
-
if (typeof
|
|
982
|
-
const
|
|
1423
|
+
if (data23.ram !== void 0) {
|
|
1424
|
+
if (typeof data23.ram !== "string") {
|
|
1425
|
+
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" };
|
|
983
1426
|
if (vErrors === null) {
|
|
984
|
-
vErrors = [
|
|
1427
|
+
vErrors = [err69];
|
|
985
1428
|
} else {
|
|
986
|
-
vErrors.push(
|
|
1429
|
+
vErrors.push(err69);
|
|
987
1430
|
}
|
|
988
1431
|
errors++;
|
|
989
1432
|
}
|
|
990
1433
|
}
|
|
991
1434
|
} else {
|
|
992
|
-
const
|
|
1435
|
+
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" };
|
|
993
1436
|
if (vErrors === null) {
|
|
994
|
-
vErrors = [
|
|
1437
|
+
vErrors = [err70];
|
|
995
1438
|
} else {
|
|
996
|
-
vErrors.push(
|
|
1439
|
+
vErrors.push(err70);
|
|
997
1440
|
}
|
|
998
1441
|
errors++;
|
|
999
1442
|
}
|
|
1000
1443
|
}
|
|
1001
1444
|
} else {
|
|
1002
|
-
const
|
|
1445
|
+
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" };
|
|
1003
1446
|
if (vErrors === null) {
|
|
1004
|
-
vErrors = [
|
|
1447
|
+
vErrors = [err71];
|
|
1005
1448
|
} else {
|
|
1006
|
-
vErrors.push(
|
|
1449
|
+
vErrors.push(err71);
|
|
1007
1450
|
}
|
|
1008
1451
|
errors++;
|
|
1009
1452
|
}
|
|
1010
|
-
var
|
|
1011
|
-
if (
|
|
1012
|
-
|
|
1013
|
-
|
|
1453
|
+
var _valid5 = _errs89 === errors;
|
|
1454
|
+
if (_valid5) {
|
|
1455
|
+
valid29 = true;
|
|
1456
|
+
passing3 = 0;
|
|
1014
1457
|
}
|
|
1015
|
-
const
|
|
1016
|
-
if (
|
|
1017
|
-
const
|
|
1458
|
+
const _errs100 = errors;
|
|
1459
|
+
if (data22 !== null) {
|
|
1460
|
+
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" };
|
|
1018
1461
|
if (vErrors === null) {
|
|
1019
|
-
vErrors = [
|
|
1462
|
+
vErrors = [err72];
|
|
1020
1463
|
} else {
|
|
1021
|
-
vErrors.push(
|
|
1464
|
+
vErrors.push(err72);
|
|
1022
1465
|
}
|
|
1023
1466
|
errors++;
|
|
1024
1467
|
}
|
|
1025
|
-
var
|
|
1026
|
-
if (
|
|
1027
|
-
|
|
1028
|
-
|
|
1468
|
+
var _valid5 = _errs100 === errors;
|
|
1469
|
+
if (_valid5 && valid29) {
|
|
1470
|
+
valid29 = false;
|
|
1471
|
+
passing3 = [passing3, 1];
|
|
1029
1472
|
} else {
|
|
1030
|
-
if (
|
|
1031
|
-
|
|
1032
|
-
|
|
1473
|
+
if (_valid5) {
|
|
1474
|
+
valid29 = true;
|
|
1475
|
+
passing3 = 1;
|
|
1033
1476
|
}
|
|
1034
1477
|
}
|
|
1035
|
-
if (!
|
|
1036
|
-
const
|
|
1478
|
+
if (!valid29) {
|
|
1479
|
+
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" };
|
|
1037
1480
|
if (vErrors === null) {
|
|
1038
|
-
vErrors = [
|
|
1481
|
+
vErrors = [err73];
|
|
1039
1482
|
} else {
|
|
1040
|
-
vErrors.push(
|
|
1483
|
+
vErrors.push(err73);
|
|
1041
1484
|
}
|
|
1042
1485
|
errors++;
|
|
1043
1486
|
} else {
|
|
1044
|
-
errors =
|
|
1487
|
+
errors = _errs88;
|
|
1045
1488
|
if (vErrors !== null) {
|
|
1046
|
-
if (
|
|
1047
|
-
vErrors.length =
|
|
1489
|
+
if (_errs88) {
|
|
1490
|
+
vErrors.length = _errs88;
|
|
1048
1491
|
} else {
|
|
1049
1492
|
vErrors = null;
|
|
1050
1493
|
}
|
|
@@ -1052,78 +1495,78 @@ function validate11(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
1052
1495
|
}
|
|
1053
1496
|
}
|
|
1054
1497
|
} else {
|
|
1055
|
-
const
|
|
1498
|
+
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" };
|
|
1056
1499
|
if (vErrors === null) {
|
|
1057
|
-
vErrors = [
|
|
1500
|
+
vErrors = [err74];
|
|
1058
1501
|
} else {
|
|
1059
|
-
vErrors.push(
|
|
1502
|
+
vErrors.push(err74);
|
|
1060
1503
|
}
|
|
1061
1504
|
errors++;
|
|
1062
1505
|
}
|
|
1063
1506
|
}
|
|
1064
1507
|
} else {
|
|
1065
|
-
const
|
|
1508
|
+
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" };
|
|
1066
1509
|
if (vErrors === null) {
|
|
1067
|
-
vErrors = [
|
|
1510
|
+
vErrors = [err75];
|
|
1068
1511
|
} else {
|
|
1069
|
-
vErrors.push(
|
|
1512
|
+
vErrors.push(err75);
|
|
1070
1513
|
}
|
|
1071
1514
|
errors++;
|
|
1072
1515
|
}
|
|
1073
1516
|
}
|
|
1074
1517
|
if (data17.units !== void 0) {
|
|
1075
|
-
let
|
|
1076
|
-
const
|
|
1077
|
-
let
|
|
1078
|
-
let
|
|
1079
|
-
const
|
|
1080
|
-
if (typeof
|
|
1081
|
-
const
|
|
1518
|
+
let data27 = data17.units;
|
|
1519
|
+
const _errs103 = errors;
|
|
1520
|
+
let valid33 = false;
|
|
1521
|
+
let passing4 = null;
|
|
1522
|
+
const _errs104 = errors;
|
|
1523
|
+
if (typeof data27 !== "string") {
|
|
1524
|
+
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" };
|
|
1082
1525
|
if (vErrors === null) {
|
|
1083
|
-
vErrors = [
|
|
1526
|
+
vErrors = [err76];
|
|
1084
1527
|
} else {
|
|
1085
|
-
vErrors.push(
|
|
1528
|
+
vErrors.push(err76);
|
|
1086
1529
|
}
|
|
1087
1530
|
errors++;
|
|
1088
1531
|
}
|
|
1089
|
-
var
|
|
1090
|
-
if (
|
|
1091
|
-
|
|
1092
|
-
|
|
1532
|
+
var _valid6 = _errs104 === errors;
|
|
1533
|
+
if (_valid6) {
|
|
1534
|
+
valid33 = true;
|
|
1535
|
+
passing4 = 0;
|
|
1093
1536
|
}
|
|
1094
|
-
const
|
|
1095
|
-
if (!(typeof
|
|
1096
|
-
const
|
|
1537
|
+
const _errs106 = errors;
|
|
1538
|
+
if (!(typeof data27 == "number")) {
|
|
1539
|
+
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" };
|
|
1097
1540
|
if (vErrors === null) {
|
|
1098
|
-
vErrors = [
|
|
1541
|
+
vErrors = [err77];
|
|
1099
1542
|
} else {
|
|
1100
|
-
vErrors.push(
|
|
1543
|
+
vErrors.push(err77);
|
|
1101
1544
|
}
|
|
1102
1545
|
errors++;
|
|
1103
1546
|
}
|
|
1104
|
-
var
|
|
1105
|
-
if (
|
|
1106
|
-
|
|
1107
|
-
|
|
1547
|
+
var _valid6 = _errs106 === errors;
|
|
1548
|
+
if (_valid6 && valid33) {
|
|
1549
|
+
valid33 = false;
|
|
1550
|
+
passing4 = [passing4, 1];
|
|
1108
1551
|
} else {
|
|
1109
|
-
if (
|
|
1110
|
-
|
|
1111
|
-
|
|
1552
|
+
if (_valid6) {
|
|
1553
|
+
valid33 = true;
|
|
1554
|
+
passing4 = 1;
|
|
1112
1555
|
}
|
|
1113
1556
|
}
|
|
1114
|
-
if (!
|
|
1115
|
-
const
|
|
1557
|
+
if (!valid33) {
|
|
1558
|
+
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" };
|
|
1116
1559
|
if (vErrors === null) {
|
|
1117
|
-
vErrors = [
|
|
1560
|
+
vErrors = [err78];
|
|
1118
1561
|
} else {
|
|
1119
|
-
vErrors.push(
|
|
1562
|
+
vErrors.push(err78);
|
|
1120
1563
|
}
|
|
1121
1564
|
errors++;
|
|
1122
1565
|
} else {
|
|
1123
|
-
errors =
|
|
1566
|
+
errors = _errs103;
|
|
1124
1567
|
if (vErrors !== null) {
|
|
1125
|
-
if (
|
|
1126
|
-
vErrors.length =
|
|
1568
|
+
if (_errs103) {
|
|
1569
|
+
vErrors.length = _errs103;
|
|
1127
1570
|
} else {
|
|
1128
1571
|
vErrors = null;
|
|
1129
1572
|
}
|
|
@@ -1131,115 +1574,115 @@ function validate11(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
1131
1574
|
}
|
|
1132
1575
|
}
|
|
1133
1576
|
} else {
|
|
1134
|
-
const
|
|
1577
|
+
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" };
|
|
1135
1578
|
if (vErrors === null) {
|
|
1136
|
-
vErrors = [
|
|
1579
|
+
vErrors = [err79];
|
|
1137
1580
|
} else {
|
|
1138
|
-
vErrors.push(
|
|
1581
|
+
vErrors.push(err79);
|
|
1139
1582
|
}
|
|
1140
1583
|
errors++;
|
|
1141
1584
|
}
|
|
1142
1585
|
}
|
|
1143
1586
|
if (data13.memory !== void 0) {
|
|
1144
|
-
let
|
|
1145
|
-
if (
|
|
1146
|
-
if (
|
|
1147
|
-
const
|
|
1587
|
+
let data28 = data13.memory;
|
|
1588
|
+
if (data28 && typeof data28 == "object" && !Array.isArray(data28)) {
|
|
1589
|
+
if (data28.size === void 0) {
|
|
1590
|
+
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'" };
|
|
1148
1591
|
if (vErrors === null) {
|
|
1149
|
-
vErrors = [
|
|
1592
|
+
vErrors = [err80];
|
|
1150
1593
|
} else {
|
|
1151
|
-
vErrors.push(
|
|
1594
|
+
vErrors.push(err80);
|
|
1152
1595
|
}
|
|
1153
1596
|
errors++;
|
|
1154
1597
|
}
|
|
1155
|
-
for (const key16 in
|
|
1598
|
+
for (const key16 in data28) {
|
|
1156
1599
|
if (!(key16 === "size")) {
|
|
1157
|
-
const
|
|
1600
|
+
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" };
|
|
1158
1601
|
if (vErrors === null) {
|
|
1159
|
-
vErrors = [
|
|
1602
|
+
vErrors = [err81];
|
|
1160
1603
|
} else {
|
|
1161
|
-
vErrors.push(
|
|
1604
|
+
vErrors.push(err81);
|
|
1162
1605
|
}
|
|
1163
1606
|
errors++;
|
|
1164
1607
|
}
|
|
1165
1608
|
}
|
|
1166
|
-
if (
|
|
1167
|
-
if (typeof
|
|
1168
|
-
const
|
|
1609
|
+
if (data28.size !== void 0) {
|
|
1610
|
+
if (typeof data28.size !== "string") {
|
|
1611
|
+
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" };
|
|
1169
1612
|
if (vErrors === null) {
|
|
1170
|
-
vErrors = [
|
|
1613
|
+
vErrors = [err82];
|
|
1171
1614
|
} else {
|
|
1172
|
-
vErrors.push(
|
|
1615
|
+
vErrors.push(err82);
|
|
1173
1616
|
}
|
|
1174
1617
|
errors++;
|
|
1175
1618
|
}
|
|
1176
1619
|
}
|
|
1177
1620
|
} else {
|
|
1178
|
-
const
|
|
1621
|
+
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" };
|
|
1179
1622
|
if (vErrors === null) {
|
|
1180
|
-
vErrors = [
|
|
1623
|
+
vErrors = [err83];
|
|
1181
1624
|
} else {
|
|
1182
|
-
vErrors.push(
|
|
1625
|
+
vErrors.push(err83);
|
|
1183
1626
|
}
|
|
1184
1627
|
errors++;
|
|
1185
1628
|
}
|
|
1186
1629
|
}
|
|
1187
1630
|
if (data13.storage !== void 0) {
|
|
1188
|
-
let
|
|
1189
|
-
const
|
|
1190
|
-
let
|
|
1191
|
-
let
|
|
1192
|
-
const
|
|
1193
|
-
if (!validate12(
|
|
1631
|
+
let data30 = data13.storage;
|
|
1632
|
+
const _errs114 = errors;
|
|
1633
|
+
let valid35 = false;
|
|
1634
|
+
let passing5 = null;
|
|
1635
|
+
const _errs115 = errors;
|
|
1636
|
+
if (!validate12(data30, { instancePath: instancePath + "/profiles/compute/" + key8.replace(/~/g, "~0").replace(/\//g, "~1") + "/resources/storage", parentData: data13, parentDataProperty: "storage", rootData })) {
|
|
1194
1637
|
vErrors = vErrors === null ? validate12.errors : vErrors.concat(validate12.errors);
|
|
1195
1638
|
errors = vErrors.length;
|
|
1196
1639
|
}
|
|
1197
|
-
var
|
|
1198
|
-
if (
|
|
1199
|
-
|
|
1200
|
-
|
|
1640
|
+
var _valid7 = _errs115 === errors;
|
|
1641
|
+
if (_valid7) {
|
|
1642
|
+
valid35 = true;
|
|
1643
|
+
passing5 = 0;
|
|
1201
1644
|
}
|
|
1202
|
-
const
|
|
1203
|
-
if (Array.isArray(
|
|
1204
|
-
const len2 =
|
|
1645
|
+
const _errs116 = errors;
|
|
1646
|
+
if (Array.isArray(data30)) {
|
|
1647
|
+
const len2 = data30.length;
|
|
1205
1648
|
for (let i2 = 0; i2 < len2; i2++) {
|
|
1206
|
-
if (!validate12(
|
|
1649
|
+
if (!validate12(data30[i2], { instancePath: instancePath + "/profiles/compute/" + key8.replace(/~/g, "~0").replace(/\//g, "~1") + "/resources/storage/" + i2, parentData: data30, parentDataProperty: i2, rootData })) {
|
|
1207
1650
|
vErrors = vErrors === null ? validate12.errors : vErrors.concat(validate12.errors);
|
|
1208
1651
|
errors = vErrors.length;
|
|
1209
1652
|
}
|
|
1210
1653
|
}
|
|
1211
1654
|
} else {
|
|
1212
|
-
const
|
|
1655
|
+
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" };
|
|
1213
1656
|
if (vErrors === null) {
|
|
1214
|
-
vErrors = [
|
|
1657
|
+
vErrors = [err84];
|
|
1215
1658
|
} else {
|
|
1216
|
-
vErrors.push(
|
|
1659
|
+
vErrors.push(err84);
|
|
1217
1660
|
}
|
|
1218
1661
|
errors++;
|
|
1219
1662
|
}
|
|
1220
|
-
var
|
|
1221
|
-
if (
|
|
1222
|
-
|
|
1223
|
-
|
|
1663
|
+
var _valid7 = _errs116 === errors;
|
|
1664
|
+
if (_valid7 && valid35) {
|
|
1665
|
+
valid35 = false;
|
|
1666
|
+
passing5 = [passing5, 1];
|
|
1224
1667
|
} else {
|
|
1225
|
-
if (
|
|
1226
|
-
|
|
1227
|
-
|
|
1668
|
+
if (_valid7) {
|
|
1669
|
+
valid35 = true;
|
|
1670
|
+
passing5 = 1;
|
|
1228
1671
|
}
|
|
1229
1672
|
}
|
|
1230
|
-
if (!
|
|
1231
|
-
const
|
|
1673
|
+
if (!valid35) {
|
|
1674
|
+
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" };
|
|
1232
1675
|
if (vErrors === null) {
|
|
1233
|
-
vErrors = [
|
|
1676
|
+
vErrors = [err85];
|
|
1234
1677
|
} else {
|
|
1235
|
-
vErrors.push(
|
|
1678
|
+
vErrors.push(err85);
|
|
1236
1679
|
}
|
|
1237
1680
|
errors++;
|
|
1238
1681
|
} else {
|
|
1239
|
-
errors =
|
|
1682
|
+
errors = _errs114;
|
|
1240
1683
|
if (vErrors !== null) {
|
|
1241
|
-
if (
|
|
1242
|
-
vErrors.length =
|
|
1684
|
+
if (_errs114) {
|
|
1685
|
+
vErrors.length = _errs114;
|
|
1243
1686
|
} else {
|
|
1244
1687
|
vErrors = null;
|
|
1245
1688
|
}
|
|
@@ -1247,1324 +1690,1328 @@ function validate11(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
1247
1690
|
}
|
|
1248
1691
|
}
|
|
1249
1692
|
} else {
|
|
1250
|
-
const
|
|
1693
|
+
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" };
|
|
1251
1694
|
if (vErrors === null) {
|
|
1252
|
-
vErrors = [
|
|
1695
|
+
vErrors = [err86];
|
|
1253
1696
|
} else {
|
|
1254
|
-
vErrors.push(
|
|
1697
|
+
vErrors.push(err86);
|
|
1255
1698
|
}
|
|
1256
1699
|
errors++;
|
|
1257
1700
|
}
|
|
1258
1701
|
}
|
|
1259
1702
|
} else {
|
|
1260
|
-
const
|
|
1703
|
+
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" };
|
|
1261
1704
|
if (vErrors === null) {
|
|
1262
|
-
vErrors = [
|
|
1705
|
+
vErrors = [err87];
|
|
1263
1706
|
} else {
|
|
1264
|
-
vErrors.push(
|
|
1707
|
+
vErrors.push(err87);
|
|
1265
1708
|
}
|
|
1266
1709
|
errors++;
|
|
1267
1710
|
}
|
|
1268
1711
|
}
|
|
1269
1712
|
} else {
|
|
1270
|
-
const
|
|
1713
|
+
const err88 = { instancePath: instancePath + "/profiles/compute", schemaPath: "#/properties/profiles/properties/compute/type", keyword: "type", params: { type: "object" }, message: "must be object" };
|
|
1271
1714
|
if (vErrors === null) {
|
|
1272
|
-
vErrors = [
|
|
1715
|
+
vErrors = [err88];
|
|
1273
1716
|
} else {
|
|
1274
|
-
vErrors.push(
|
|
1717
|
+
vErrors.push(err88);
|
|
1275
1718
|
}
|
|
1276
1719
|
errors++;
|
|
1277
1720
|
}
|
|
1278
1721
|
}
|
|
1279
1722
|
if (data10.placement !== void 0) {
|
|
1280
|
-
let
|
|
1281
|
-
if (
|
|
1282
|
-
for (const key17 in
|
|
1283
|
-
let
|
|
1284
|
-
if (
|
|
1285
|
-
if (
|
|
1286
|
-
const
|
|
1723
|
+
let data32 = data10.placement;
|
|
1724
|
+
if (data32 && typeof data32 == "object" && !Array.isArray(data32)) {
|
|
1725
|
+
for (const key17 in data32) {
|
|
1726
|
+
let data33 = data32[key17];
|
|
1727
|
+
if (data33 && typeof data33 == "object" && !Array.isArray(data33)) {
|
|
1728
|
+
if (data33.pricing === void 0) {
|
|
1729
|
+
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'" };
|
|
1287
1730
|
if (vErrors === null) {
|
|
1288
|
-
vErrors = [
|
|
1731
|
+
vErrors = [err89];
|
|
1289
1732
|
} else {
|
|
1290
|
-
vErrors.push(
|
|
1733
|
+
vErrors.push(err89);
|
|
1291
1734
|
}
|
|
1292
1735
|
errors++;
|
|
1293
1736
|
}
|
|
1294
|
-
for (const key18 in
|
|
1737
|
+
for (const key18 in data33) {
|
|
1295
1738
|
if (!(key18 === "attributes" || key18 === "pricing" || key18 === "signedBy")) {
|
|
1296
|
-
const
|
|
1739
|
+
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" };
|
|
1297
1740
|
if (vErrors === null) {
|
|
1298
|
-
vErrors = [
|
|
1741
|
+
vErrors = [err90];
|
|
1299
1742
|
} else {
|
|
1300
|
-
vErrors.push(
|
|
1743
|
+
vErrors.push(err90);
|
|
1301
1744
|
}
|
|
1302
1745
|
errors++;
|
|
1303
1746
|
}
|
|
1304
1747
|
}
|
|
1305
|
-
if (
|
|
1306
|
-
let
|
|
1307
|
-
if (!(
|
|
1308
|
-
const
|
|
1748
|
+
if (data33.attributes !== void 0) {
|
|
1749
|
+
let data34 = data33.attributes;
|
|
1750
|
+
if (!(data34 && typeof data34 == "object" && !Array.isArray(data34))) {
|
|
1751
|
+
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" };
|
|
1309
1752
|
if (vErrors === null) {
|
|
1310
|
-
vErrors = [
|
|
1753
|
+
vErrors = [err91];
|
|
1311
1754
|
} else {
|
|
1312
|
-
vErrors.push(
|
|
1755
|
+
vErrors.push(err91);
|
|
1313
1756
|
}
|
|
1314
1757
|
errors++;
|
|
1315
1758
|
}
|
|
1316
1759
|
}
|
|
1317
|
-
if (
|
|
1318
|
-
let
|
|
1319
|
-
if (
|
|
1320
|
-
for (const key19 in
|
|
1321
|
-
let
|
|
1322
|
-
if (
|
|
1323
|
-
if (
|
|
1324
|
-
const
|
|
1760
|
+
if (data33.pricing !== void 0) {
|
|
1761
|
+
let data35 = data33.pricing;
|
|
1762
|
+
if (data35 && typeof data35 == "object" && !Array.isArray(data35)) {
|
|
1763
|
+
for (const key19 in data35) {
|
|
1764
|
+
let data36 = data35[key19];
|
|
1765
|
+
if (data36 && typeof data36 == "object" && !Array.isArray(data36)) {
|
|
1766
|
+
if (data36.denom === void 0) {
|
|
1767
|
+
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'" };
|
|
1325
1768
|
if (vErrors === null) {
|
|
1326
|
-
vErrors = [
|
|
1769
|
+
vErrors = [err92];
|
|
1327
1770
|
} else {
|
|
1328
|
-
vErrors.push(
|
|
1771
|
+
vErrors.push(err92);
|
|
1329
1772
|
}
|
|
1330
1773
|
errors++;
|
|
1331
1774
|
}
|
|
1332
|
-
if (
|
|
1333
|
-
const
|
|
1775
|
+
if (data36.amount === void 0) {
|
|
1776
|
+
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'" };
|
|
1334
1777
|
if (vErrors === null) {
|
|
1335
|
-
vErrors = [
|
|
1778
|
+
vErrors = [err93];
|
|
1336
1779
|
} else {
|
|
1337
|
-
vErrors.push(
|
|
1780
|
+
vErrors.push(err93);
|
|
1338
1781
|
}
|
|
1339
1782
|
errors++;
|
|
1340
1783
|
}
|
|
1341
|
-
for (const key20 in
|
|
1784
|
+
for (const key20 in data36) {
|
|
1342
1785
|
if (!(key20 === "amount" || key20 === "denom")) {
|
|
1343
|
-
const
|
|
1786
|
+
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" };
|
|
1344
1787
|
if (vErrors === null) {
|
|
1345
|
-
vErrors = [
|
|
1788
|
+
vErrors = [err94];
|
|
1346
1789
|
} else {
|
|
1347
|
-
vErrors.push(
|
|
1790
|
+
vErrors.push(err94);
|
|
1348
1791
|
}
|
|
1349
1792
|
errors++;
|
|
1350
1793
|
}
|
|
1351
1794
|
}
|
|
1352
|
-
if (
|
|
1353
|
-
let
|
|
1354
|
-
const
|
|
1355
|
-
let
|
|
1356
|
-
let
|
|
1357
|
-
const
|
|
1358
|
-
if (typeof
|
|
1359
|
-
if (!
|
|
1360
|
-
const
|
|
1795
|
+
if (data36.amount !== void 0) {
|
|
1796
|
+
let data37 = data36.amount;
|
|
1797
|
+
const _errs135 = errors;
|
|
1798
|
+
let valid43 = false;
|
|
1799
|
+
let passing6 = null;
|
|
1800
|
+
const _errs136 = errors;
|
|
1801
|
+
if (typeof data37 === "string") {
|
|
1802
|
+
if (!pattern8.test(data37)) {
|
|
1803
|
+
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]+)?$"' };
|
|
1361
1804
|
if (vErrors === null) {
|
|
1362
|
-
vErrors = [
|
|
1805
|
+
vErrors = [err95];
|
|
1363
1806
|
} else {
|
|
1364
|
-
vErrors.push(
|
|
1807
|
+
vErrors.push(err95);
|
|
1365
1808
|
}
|
|
1366
1809
|
errors++;
|
|
1367
1810
|
}
|
|
1368
1811
|
} else {
|
|
1369
|
-
const
|
|
1812
|
+
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" };
|
|
1370
1813
|
if (vErrors === null) {
|
|
1371
|
-
vErrors = [
|
|
1814
|
+
vErrors = [err96];
|
|
1372
1815
|
} else {
|
|
1373
|
-
vErrors.push(
|
|
1816
|
+
vErrors.push(err96);
|
|
1374
1817
|
}
|
|
1375
1818
|
errors++;
|
|
1376
1819
|
}
|
|
1377
|
-
var
|
|
1378
|
-
if (
|
|
1379
|
-
|
|
1380
|
-
|
|
1820
|
+
var _valid8 = _errs136 === errors;
|
|
1821
|
+
if (_valid8) {
|
|
1822
|
+
valid43 = true;
|
|
1823
|
+
passing6 = 0;
|
|
1381
1824
|
}
|
|
1382
|
-
const
|
|
1383
|
-
if (typeof
|
|
1384
|
-
if (
|
|
1385
|
-
const
|
|
1825
|
+
const _errs138 = errors;
|
|
1826
|
+
if (typeof data37 == "number") {
|
|
1827
|
+
if (data37 < 0 || isNaN(data37)) {
|
|
1828
|
+
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" };
|
|
1386
1829
|
if (vErrors === null) {
|
|
1387
|
-
vErrors = [
|
|
1830
|
+
vErrors = [err97];
|
|
1388
1831
|
} else {
|
|
1389
|
-
vErrors.push(
|
|
1832
|
+
vErrors.push(err97);
|
|
1390
1833
|
}
|
|
1391
1834
|
errors++;
|
|
1392
1835
|
}
|
|
1393
1836
|
} else {
|
|
1394
|
-
const
|
|
1837
|
+
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" };
|
|
1395
1838
|
if (vErrors === null) {
|
|
1396
|
-
vErrors = [
|
|
1839
|
+
vErrors = [err98];
|
|
1397
1840
|
} else {
|
|
1398
|
-
vErrors.push(
|
|
1841
|
+
vErrors.push(err98);
|
|
1399
1842
|
}
|
|
1400
1843
|
errors++;
|
|
1401
1844
|
}
|
|
1402
|
-
var
|
|
1403
|
-
if (
|
|
1404
|
-
|
|
1405
|
-
|
|
1845
|
+
var _valid8 = _errs138 === errors;
|
|
1846
|
+
if (_valid8 && valid43) {
|
|
1847
|
+
valid43 = false;
|
|
1848
|
+
passing6 = [passing6, 1];
|
|
1406
1849
|
} else {
|
|
1407
|
-
if (
|
|
1408
|
-
|
|
1409
|
-
|
|
1850
|
+
if (_valid8) {
|
|
1851
|
+
valid43 = true;
|
|
1852
|
+
passing6 = 1;
|
|
1410
1853
|
}
|
|
1411
1854
|
}
|
|
1412
|
-
if (!
|
|
1413
|
-
const
|
|
1855
|
+
if (!valid43) {
|
|
1856
|
+
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" };
|
|
1414
1857
|
if (vErrors === null) {
|
|
1415
|
-
vErrors = [
|
|
1858
|
+
vErrors = [err99];
|
|
1416
1859
|
} else {
|
|
1417
|
-
vErrors.push(
|
|
1860
|
+
vErrors.push(err99);
|
|
1418
1861
|
}
|
|
1419
1862
|
errors++;
|
|
1420
1863
|
} else {
|
|
1421
|
-
errors =
|
|
1864
|
+
errors = _errs135;
|
|
1422
1865
|
if (vErrors !== null) {
|
|
1423
|
-
if (
|
|
1424
|
-
vErrors.length =
|
|
1866
|
+
if (_errs135) {
|
|
1867
|
+
vErrors.length = _errs135;
|
|
1425
1868
|
} else {
|
|
1426
1869
|
vErrors = null;
|
|
1427
1870
|
}
|
|
1428
1871
|
}
|
|
1429
1872
|
}
|
|
1430
1873
|
}
|
|
1431
|
-
if (
|
|
1432
|
-
let
|
|
1433
|
-
if (typeof
|
|
1434
|
-
if (!
|
|
1435
|
-
const
|
|
1874
|
+
if (data36.denom !== void 0) {
|
|
1875
|
+
let data38 = data36.denom;
|
|
1876
|
+
if (typeof data38 === "string") {
|
|
1877
|
+
if (!pattern9.test(data38)) {
|
|
1878
|
+
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/.*)$"' };
|
|
1436
1879
|
if (vErrors === null) {
|
|
1437
|
-
vErrors = [
|
|
1880
|
+
vErrors = [err100];
|
|
1438
1881
|
} else {
|
|
1439
|
-
vErrors.push(
|
|
1882
|
+
vErrors.push(err100);
|
|
1440
1883
|
}
|
|
1441
1884
|
errors++;
|
|
1442
1885
|
}
|
|
1443
1886
|
} else {
|
|
1444
|
-
const
|
|
1887
|
+
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" };
|
|
1445
1888
|
if (vErrors === null) {
|
|
1446
|
-
vErrors = [
|
|
1889
|
+
vErrors = [err101];
|
|
1447
1890
|
} else {
|
|
1448
|
-
vErrors.push(
|
|
1891
|
+
vErrors.push(err101);
|
|
1449
1892
|
}
|
|
1450
1893
|
errors++;
|
|
1451
1894
|
}
|
|
1452
1895
|
}
|
|
1453
1896
|
} else {
|
|
1454
|
-
const
|
|
1897
|
+
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" };
|
|
1455
1898
|
if (vErrors === null) {
|
|
1456
|
-
vErrors = [
|
|
1899
|
+
vErrors = [err102];
|
|
1457
1900
|
} else {
|
|
1458
|
-
vErrors.push(
|
|
1901
|
+
vErrors.push(err102);
|
|
1459
1902
|
}
|
|
1460
1903
|
errors++;
|
|
1461
1904
|
}
|
|
1462
1905
|
}
|
|
1463
1906
|
} else {
|
|
1464
|
-
const
|
|
1907
|
+
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" };
|
|
1465
1908
|
if (vErrors === null) {
|
|
1466
|
-
vErrors = [
|
|
1909
|
+
vErrors = [err103];
|
|
1467
1910
|
} else {
|
|
1468
|
-
vErrors.push(
|
|
1911
|
+
vErrors.push(err103);
|
|
1469
1912
|
}
|
|
1470
1913
|
errors++;
|
|
1471
1914
|
}
|
|
1472
1915
|
}
|
|
1473
|
-
if (
|
|
1474
|
-
let
|
|
1475
|
-
if (
|
|
1476
|
-
for (const key21 in
|
|
1916
|
+
if (data33.signedBy !== void 0) {
|
|
1917
|
+
let data39 = data33.signedBy;
|
|
1918
|
+
if (data39 && typeof data39 == "object" && !Array.isArray(data39)) {
|
|
1919
|
+
for (const key21 in data39) {
|
|
1477
1920
|
if (!(key21 === "allOf" || key21 === "anyOf")) {
|
|
1478
|
-
const
|
|
1921
|
+
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" };
|
|
1479
1922
|
if (vErrors === null) {
|
|
1480
|
-
vErrors = [
|
|
1923
|
+
vErrors = [err104];
|
|
1481
1924
|
} else {
|
|
1482
|
-
vErrors.push(
|
|
1925
|
+
vErrors.push(err104);
|
|
1483
1926
|
}
|
|
1484
1927
|
errors++;
|
|
1485
1928
|
}
|
|
1486
1929
|
}
|
|
1487
|
-
if (
|
|
1488
|
-
let
|
|
1489
|
-
if (Array.isArray(
|
|
1490
|
-
const len3 =
|
|
1930
|
+
if (data39.allOf !== void 0) {
|
|
1931
|
+
let data40 = data39.allOf;
|
|
1932
|
+
if (Array.isArray(data40)) {
|
|
1933
|
+
const len3 = data40.length;
|
|
1491
1934
|
for (let i3 = 0; i3 < len3; i3++) {
|
|
1492
|
-
if (typeof
|
|
1493
|
-
const
|
|
1935
|
+
if (typeof data40[i3] !== "string") {
|
|
1936
|
+
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" };
|
|
1494
1937
|
if (vErrors === null) {
|
|
1495
|
-
vErrors = [
|
|
1938
|
+
vErrors = [err105];
|
|
1496
1939
|
} else {
|
|
1497
|
-
vErrors.push(
|
|
1940
|
+
vErrors.push(err105);
|
|
1498
1941
|
}
|
|
1499
1942
|
errors++;
|
|
1500
1943
|
}
|
|
1501
1944
|
}
|
|
1502
1945
|
} else {
|
|
1503
|
-
const
|
|
1946
|
+
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" };
|
|
1504
1947
|
if (vErrors === null) {
|
|
1505
|
-
vErrors = [
|
|
1948
|
+
vErrors = [err106];
|
|
1506
1949
|
} else {
|
|
1507
|
-
vErrors.push(
|
|
1950
|
+
vErrors.push(err106);
|
|
1508
1951
|
}
|
|
1509
1952
|
errors++;
|
|
1510
1953
|
}
|
|
1511
1954
|
}
|
|
1512
|
-
if (
|
|
1513
|
-
let
|
|
1514
|
-
if (Array.isArray(
|
|
1515
|
-
const len4 =
|
|
1955
|
+
if (data39.anyOf !== void 0) {
|
|
1956
|
+
let data42 = data39.anyOf;
|
|
1957
|
+
if (Array.isArray(data42)) {
|
|
1958
|
+
const len4 = data42.length;
|
|
1516
1959
|
for (let i4 = 0; i4 < len4; i4++) {
|
|
1517
|
-
if (typeof
|
|
1518
|
-
const
|
|
1960
|
+
if (typeof data42[i4] !== "string") {
|
|
1961
|
+
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" };
|
|
1519
1962
|
if (vErrors === null) {
|
|
1520
|
-
vErrors = [
|
|
1963
|
+
vErrors = [err107];
|
|
1521
1964
|
} else {
|
|
1522
|
-
vErrors.push(
|
|
1965
|
+
vErrors.push(err107);
|
|
1523
1966
|
}
|
|
1524
1967
|
errors++;
|
|
1525
1968
|
}
|
|
1526
1969
|
}
|
|
1527
1970
|
} else {
|
|
1528
|
-
const
|
|
1971
|
+
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" };
|
|
1529
1972
|
if (vErrors === null) {
|
|
1530
|
-
vErrors = [
|
|
1973
|
+
vErrors = [err108];
|
|
1531
1974
|
} else {
|
|
1532
|
-
vErrors.push(
|
|
1975
|
+
vErrors.push(err108);
|
|
1533
1976
|
}
|
|
1534
1977
|
errors++;
|
|
1535
1978
|
}
|
|
1536
1979
|
}
|
|
1537
1980
|
} else {
|
|
1538
|
-
const
|
|
1981
|
+
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" };
|
|
1539
1982
|
if (vErrors === null) {
|
|
1540
|
-
vErrors = [
|
|
1983
|
+
vErrors = [err109];
|
|
1541
1984
|
} else {
|
|
1542
|
-
vErrors.push(
|
|
1985
|
+
vErrors.push(err109);
|
|
1543
1986
|
}
|
|
1544
1987
|
errors++;
|
|
1545
1988
|
}
|
|
1546
1989
|
}
|
|
1547
1990
|
} else {
|
|
1548
|
-
const
|
|
1991
|
+
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" };
|
|
1549
1992
|
if (vErrors === null) {
|
|
1550
|
-
vErrors = [
|
|
1993
|
+
vErrors = [err110];
|
|
1551
1994
|
} else {
|
|
1552
|
-
vErrors.push(
|
|
1995
|
+
vErrors.push(err110);
|
|
1553
1996
|
}
|
|
1554
1997
|
errors++;
|
|
1555
1998
|
}
|
|
1556
1999
|
}
|
|
1557
2000
|
} else {
|
|
1558
|
-
const
|
|
2001
|
+
const err111 = { instancePath: instancePath + "/profiles/placement", schemaPath: "#/properties/profiles/properties/placement/type", keyword: "type", params: { type: "object" }, message: "must be object" };
|
|
1559
2002
|
if (vErrors === null) {
|
|
1560
|
-
vErrors = [
|
|
2003
|
+
vErrors = [err111];
|
|
1561
2004
|
} else {
|
|
1562
|
-
vErrors.push(
|
|
2005
|
+
vErrors.push(err111);
|
|
1563
2006
|
}
|
|
1564
2007
|
errors++;
|
|
1565
2008
|
}
|
|
1566
2009
|
}
|
|
1567
2010
|
} else {
|
|
1568
|
-
const
|
|
2011
|
+
const err112 = { instancePath: instancePath + "/profiles", schemaPath: "#/properties/profiles/type", keyword: "type", params: { type: "object" }, message: "must be object" };
|
|
1569
2012
|
if (vErrors === null) {
|
|
1570
|
-
vErrors = [
|
|
2013
|
+
vErrors = [err112];
|
|
1571
2014
|
} else {
|
|
1572
|
-
vErrors.push(
|
|
2015
|
+
vErrors.push(err112);
|
|
1573
2016
|
}
|
|
1574
2017
|
errors++;
|
|
1575
2018
|
}
|
|
1576
2019
|
}
|
|
1577
2020
|
if (data.services !== void 0) {
|
|
1578
|
-
let
|
|
1579
|
-
if (
|
|
1580
|
-
for (const key22 in
|
|
1581
|
-
let
|
|
1582
|
-
if (
|
|
1583
|
-
if (
|
|
1584
|
-
const
|
|
2021
|
+
let data44 = data.services;
|
|
2022
|
+
if (data44 && typeof data44 == "object" && !Array.isArray(data44)) {
|
|
2023
|
+
for (const key22 in data44) {
|
|
2024
|
+
let data45 = data44[key22];
|
|
2025
|
+
if (data45 && typeof data45 == "object" && !Array.isArray(data45)) {
|
|
2026
|
+
if (data45.image === void 0) {
|
|
2027
|
+
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'" };
|
|
1585
2028
|
if (vErrors === null) {
|
|
1586
|
-
vErrors = [
|
|
2029
|
+
vErrors = [err113];
|
|
1587
2030
|
} else {
|
|
1588
|
-
vErrors.push(
|
|
2031
|
+
vErrors.push(err113);
|
|
1589
2032
|
}
|
|
1590
2033
|
errors++;
|
|
1591
2034
|
}
|
|
1592
|
-
for (const key23 in
|
|
2035
|
+
for (const key23 in data45) {
|
|
1593
2036
|
if (!(key23 === "args" || key23 === "command" || key23 === "credentials" || key23 === "dependencies" || key23 === "env" || key23 === "expose" || key23 === "image" || key23 === "params")) {
|
|
1594
|
-
const
|
|
2037
|
+
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" };
|
|
1595
2038
|
if (vErrors === null) {
|
|
1596
|
-
vErrors = [
|
|
2039
|
+
vErrors = [err114];
|
|
1597
2040
|
} else {
|
|
1598
|
-
vErrors.push(
|
|
2041
|
+
vErrors.push(err114);
|
|
1599
2042
|
}
|
|
1600
2043
|
errors++;
|
|
1601
2044
|
}
|
|
1602
2045
|
}
|
|
1603
|
-
if (
|
|
1604
|
-
let
|
|
1605
|
-
const
|
|
1606
|
-
let
|
|
1607
|
-
let
|
|
1608
|
-
const
|
|
1609
|
-
if (Array.isArray(
|
|
1610
|
-
const len5 =
|
|
2046
|
+
if (data45.args !== void 0) {
|
|
2047
|
+
let data46 = data45.args;
|
|
2048
|
+
const _errs161 = errors;
|
|
2049
|
+
let valid52 = false;
|
|
2050
|
+
let passing7 = null;
|
|
2051
|
+
const _errs162 = errors;
|
|
2052
|
+
if (Array.isArray(data46)) {
|
|
2053
|
+
const len5 = data46.length;
|
|
1611
2054
|
for (let i5 = 0; i5 < len5; i5++) {
|
|
1612
|
-
if (typeof
|
|
1613
|
-
const
|
|
2055
|
+
if (typeof data46[i5] !== "string") {
|
|
2056
|
+
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" };
|
|
1614
2057
|
if (vErrors === null) {
|
|
1615
|
-
vErrors = [
|
|
2058
|
+
vErrors = [err115];
|
|
1616
2059
|
} else {
|
|
1617
|
-
vErrors.push(
|
|
2060
|
+
vErrors.push(err115);
|
|
1618
2061
|
}
|
|
1619
2062
|
errors++;
|
|
1620
2063
|
}
|
|
1621
2064
|
}
|
|
1622
2065
|
} else {
|
|
1623
|
-
const
|
|
2066
|
+
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" };
|
|
1624
2067
|
if (vErrors === null) {
|
|
1625
|
-
vErrors = [
|
|
2068
|
+
vErrors = [err116];
|
|
1626
2069
|
} else {
|
|
1627
|
-
vErrors.push(
|
|
2070
|
+
vErrors.push(err116);
|
|
1628
2071
|
}
|
|
1629
2072
|
errors++;
|
|
1630
2073
|
}
|
|
1631
|
-
var
|
|
1632
|
-
if (
|
|
1633
|
-
|
|
1634
|
-
|
|
2074
|
+
var _valid9 = _errs162 === errors;
|
|
2075
|
+
if (_valid9) {
|
|
2076
|
+
valid52 = true;
|
|
2077
|
+
passing7 = 0;
|
|
1635
2078
|
}
|
|
1636
|
-
const
|
|
1637
|
-
if (
|
|
1638
|
-
const
|
|
2079
|
+
const _errs166 = errors;
|
|
2080
|
+
if (data46 !== null) {
|
|
2081
|
+
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" };
|
|
1639
2082
|
if (vErrors === null) {
|
|
1640
|
-
vErrors = [
|
|
2083
|
+
vErrors = [err117];
|
|
1641
2084
|
} else {
|
|
1642
|
-
vErrors.push(
|
|
2085
|
+
vErrors.push(err117);
|
|
1643
2086
|
}
|
|
1644
2087
|
errors++;
|
|
1645
2088
|
}
|
|
1646
|
-
var
|
|
1647
|
-
if (
|
|
1648
|
-
|
|
1649
|
-
|
|
2089
|
+
var _valid9 = _errs166 === errors;
|
|
2090
|
+
if (_valid9 && valid52) {
|
|
2091
|
+
valid52 = false;
|
|
2092
|
+
passing7 = [passing7, 1];
|
|
1650
2093
|
} else {
|
|
1651
|
-
if (
|
|
1652
|
-
|
|
1653
|
-
|
|
2094
|
+
if (_valid9) {
|
|
2095
|
+
valid52 = true;
|
|
2096
|
+
passing7 = 1;
|
|
1654
2097
|
}
|
|
1655
2098
|
}
|
|
1656
|
-
if (!
|
|
1657
|
-
const
|
|
2099
|
+
if (!valid52) {
|
|
2100
|
+
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" };
|
|
1658
2101
|
if (vErrors === null) {
|
|
1659
|
-
vErrors = [
|
|
2102
|
+
vErrors = [err118];
|
|
1660
2103
|
} else {
|
|
1661
|
-
vErrors.push(
|
|
2104
|
+
vErrors.push(err118);
|
|
1662
2105
|
}
|
|
1663
2106
|
errors++;
|
|
1664
2107
|
} else {
|
|
1665
|
-
errors =
|
|
2108
|
+
errors = _errs161;
|
|
1666
2109
|
if (vErrors !== null) {
|
|
1667
|
-
if (
|
|
1668
|
-
vErrors.length =
|
|
2110
|
+
if (_errs161) {
|
|
2111
|
+
vErrors.length = _errs161;
|
|
1669
2112
|
} else {
|
|
1670
2113
|
vErrors = null;
|
|
1671
2114
|
}
|
|
1672
2115
|
}
|
|
1673
2116
|
}
|
|
1674
2117
|
}
|
|
1675
|
-
if (
|
|
1676
|
-
let
|
|
1677
|
-
const
|
|
1678
|
-
let
|
|
1679
|
-
let
|
|
1680
|
-
const
|
|
1681
|
-
if (Array.isArray(
|
|
1682
|
-
const len6 =
|
|
2118
|
+
if (data45.command !== void 0) {
|
|
2119
|
+
let data48 = data45.command;
|
|
2120
|
+
const _errs170 = errors;
|
|
2121
|
+
let valid56 = false;
|
|
2122
|
+
let passing8 = null;
|
|
2123
|
+
const _errs171 = errors;
|
|
2124
|
+
if (Array.isArray(data48)) {
|
|
2125
|
+
const len6 = data48.length;
|
|
1683
2126
|
for (let i6 = 0; i6 < len6; i6++) {
|
|
1684
|
-
if (typeof
|
|
1685
|
-
const
|
|
2127
|
+
if (typeof data48[i6] !== "string") {
|
|
2128
|
+
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" };
|
|
1686
2129
|
if (vErrors === null) {
|
|
1687
|
-
vErrors = [
|
|
2130
|
+
vErrors = [err119];
|
|
1688
2131
|
} else {
|
|
1689
|
-
vErrors.push(
|
|
2132
|
+
vErrors.push(err119);
|
|
1690
2133
|
}
|
|
1691
2134
|
errors++;
|
|
1692
2135
|
}
|
|
1693
2136
|
}
|
|
1694
2137
|
} else {
|
|
1695
|
-
const
|
|
2138
|
+
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" };
|
|
1696
2139
|
if (vErrors === null) {
|
|
1697
|
-
vErrors = [
|
|
2140
|
+
vErrors = [err120];
|
|
1698
2141
|
} else {
|
|
1699
|
-
vErrors.push(
|
|
2142
|
+
vErrors.push(err120);
|
|
1700
2143
|
}
|
|
1701
2144
|
errors++;
|
|
1702
2145
|
}
|
|
1703
|
-
var
|
|
1704
|
-
if (
|
|
1705
|
-
|
|
1706
|
-
|
|
2146
|
+
var _valid10 = _errs171 === errors;
|
|
2147
|
+
if (_valid10) {
|
|
2148
|
+
valid56 = true;
|
|
2149
|
+
passing8 = 0;
|
|
1707
2150
|
}
|
|
1708
|
-
const
|
|
1709
|
-
if (
|
|
1710
|
-
const
|
|
2151
|
+
const _errs175 = errors;
|
|
2152
|
+
if (data48 !== null) {
|
|
2153
|
+
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" };
|
|
1711
2154
|
if (vErrors === null) {
|
|
1712
|
-
vErrors = [
|
|
2155
|
+
vErrors = [err121];
|
|
1713
2156
|
} else {
|
|
1714
|
-
vErrors.push(
|
|
2157
|
+
vErrors.push(err121);
|
|
1715
2158
|
}
|
|
1716
2159
|
errors++;
|
|
1717
2160
|
}
|
|
1718
|
-
var
|
|
1719
|
-
if (
|
|
1720
|
-
|
|
1721
|
-
|
|
2161
|
+
var _valid10 = _errs175 === errors;
|
|
2162
|
+
if (_valid10 && valid56) {
|
|
2163
|
+
valid56 = false;
|
|
2164
|
+
passing8 = [passing8, 1];
|
|
1722
2165
|
} else {
|
|
1723
|
-
if (
|
|
1724
|
-
|
|
1725
|
-
|
|
2166
|
+
if (_valid10) {
|
|
2167
|
+
valid56 = true;
|
|
2168
|
+
passing8 = 1;
|
|
1726
2169
|
}
|
|
1727
2170
|
}
|
|
1728
|
-
if (!
|
|
1729
|
-
const
|
|
2171
|
+
if (!valid56) {
|
|
2172
|
+
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" };
|
|
1730
2173
|
if (vErrors === null) {
|
|
1731
|
-
vErrors = [
|
|
2174
|
+
vErrors = [err122];
|
|
1732
2175
|
} else {
|
|
1733
|
-
vErrors.push(
|
|
2176
|
+
vErrors.push(err122);
|
|
1734
2177
|
}
|
|
1735
2178
|
errors++;
|
|
1736
2179
|
} else {
|
|
1737
|
-
errors =
|
|
2180
|
+
errors = _errs170;
|
|
1738
2181
|
if (vErrors !== null) {
|
|
1739
|
-
if (
|
|
1740
|
-
vErrors.length =
|
|
2182
|
+
if (_errs170) {
|
|
2183
|
+
vErrors.length = _errs170;
|
|
1741
2184
|
} else {
|
|
1742
2185
|
vErrors = null;
|
|
1743
2186
|
}
|
|
1744
2187
|
}
|
|
1745
2188
|
}
|
|
1746
2189
|
}
|
|
1747
|
-
if (
|
|
1748
|
-
let
|
|
1749
|
-
if (
|
|
1750
|
-
if (
|
|
1751
|
-
const
|
|
2190
|
+
if (data45.credentials !== void 0) {
|
|
2191
|
+
let data50 = data45.credentials;
|
|
2192
|
+
if (data50 && typeof data50 == "object" && !Array.isArray(data50)) {
|
|
2193
|
+
if (data50.host === void 0) {
|
|
2194
|
+
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'" };
|
|
1752
2195
|
if (vErrors === null) {
|
|
1753
|
-
vErrors = [
|
|
2196
|
+
vErrors = [err123];
|
|
1754
2197
|
} else {
|
|
1755
|
-
vErrors.push(
|
|
2198
|
+
vErrors.push(err123);
|
|
1756
2199
|
}
|
|
1757
2200
|
errors++;
|
|
1758
2201
|
}
|
|
1759
|
-
if (
|
|
1760
|
-
const
|
|
2202
|
+
if (data50.username === void 0) {
|
|
2203
|
+
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'" };
|
|
1761
2204
|
if (vErrors === null) {
|
|
1762
|
-
vErrors = [
|
|
2205
|
+
vErrors = [err124];
|
|
1763
2206
|
} else {
|
|
1764
|
-
vErrors.push(
|
|
2207
|
+
vErrors.push(err124);
|
|
1765
2208
|
}
|
|
1766
2209
|
errors++;
|
|
1767
2210
|
}
|
|
1768
|
-
if (
|
|
1769
|
-
const
|
|
2211
|
+
if (data50.password === void 0) {
|
|
2212
|
+
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'" };
|
|
1770
2213
|
if (vErrors === null) {
|
|
1771
|
-
vErrors = [
|
|
2214
|
+
vErrors = [err125];
|
|
1772
2215
|
} else {
|
|
1773
|
-
vErrors.push(
|
|
2216
|
+
vErrors.push(err125);
|
|
1774
2217
|
}
|
|
1775
2218
|
errors++;
|
|
1776
2219
|
}
|
|
1777
|
-
for (const key24 in
|
|
2220
|
+
for (const key24 in data50) {
|
|
1778
2221
|
if (!(key24 === "email" || key24 === "host" || key24 === "password" || key24 === "username")) {
|
|
1779
|
-
const
|
|
2222
|
+
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" };
|
|
1780
2223
|
if (vErrors === null) {
|
|
1781
|
-
vErrors = [
|
|
2224
|
+
vErrors = [err126];
|
|
1782
2225
|
} else {
|
|
1783
|
-
vErrors.push(
|
|
2226
|
+
vErrors.push(err126);
|
|
1784
2227
|
}
|
|
1785
2228
|
errors++;
|
|
1786
2229
|
}
|
|
1787
2230
|
}
|
|
1788
|
-
if (
|
|
1789
|
-
let
|
|
1790
|
-
if (typeof
|
|
1791
|
-
if (func2(
|
|
1792
|
-
const
|
|
2231
|
+
if (data50.email !== void 0) {
|
|
2232
|
+
let data51 = data50.email;
|
|
2233
|
+
if (typeof data51 === "string") {
|
|
2234
|
+
if (func2(data51) < 5) {
|
|
2235
|
+
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" };
|
|
1793
2236
|
if (vErrors === null) {
|
|
1794
|
-
vErrors = [
|
|
2237
|
+
vErrors = [err127];
|
|
1795
2238
|
} else {
|
|
1796
|
-
vErrors.push(
|
|
2239
|
+
vErrors.push(err127);
|
|
1797
2240
|
}
|
|
1798
2241
|
errors++;
|
|
1799
2242
|
}
|
|
1800
2243
|
} else {
|
|
1801
|
-
const
|
|
2244
|
+
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" };
|
|
1802
2245
|
if (vErrors === null) {
|
|
1803
|
-
vErrors = [
|
|
2246
|
+
vErrors = [err128];
|
|
1804
2247
|
} else {
|
|
1805
|
-
vErrors.push(
|
|
2248
|
+
vErrors.push(err128);
|
|
1806
2249
|
}
|
|
1807
2250
|
errors++;
|
|
1808
2251
|
}
|
|
1809
2252
|
}
|
|
1810
|
-
if (
|
|
1811
|
-
let
|
|
1812
|
-
if (typeof
|
|
1813
|
-
if (func2(
|
|
1814
|
-
const
|
|
2253
|
+
if (data50.host !== void 0) {
|
|
2254
|
+
let data52 = data50.host;
|
|
2255
|
+
if (typeof data52 === "string") {
|
|
2256
|
+
if (func2(data52) < 1) {
|
|
2257
|
+
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" };
|
|
1815
2258
|
if (vErrors === null) {
|
|
1816
|
-
vErrors = [
|
|
2259
|
+
vErrors = [err129];
|
|
1817
2260
|
} else {
|
|
1818
|
-
vErrors.push(
|
|
2261
|
+
vErrors.push(err129);
|
|
1819
2262
|
}
|
|
1820
2263
|
errors++;
|
|
1821
2264
|
}
|
|
1822
2265
|
} else {
|
|
1823
|
-
const
|
|
2266
|
+
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" };
|
|
1824
2267
|
if (vErrors === null) {
|
|
1825
|
-
vErrors = [
|
|
2268
|
+
vErrors = [err130];
|
|
1826
2269
|
} else {
|
|
1827
|
-
vErrors.push(
|
|
2270
|
+
vErrors.push(err130);
|
|
1828
2271
|
}
|
|
1829
2272
|
errors++;
|
|
1830
2273
|
}
|
|
1831
2274
|
}
|
|
1832
|
-
if (
|
|
1833
|
-
let
|
|
1834
|
-
if (typeof
|
|
1835
|
-
if (func2(
|
|
1836
|
-
const
|
|
2275
|
+
if (data50.password !== void 0) {
|
|
2276
|
+
let data53 = data50.password;
|
|
2277
|
+
if (typeof data53 === "string") {
|
|
2278
|
+
if (func2(data53) < 6) {
|
|
2279
|
+
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" };
|
|
1837
2280
|
if (vErrors === null) {
|
|
1838
|
-
vErrors = [
|
|
2281
|
+
vErrors = [err131];
|
|
1839
2282
|
} else {
|
|
1840
|
-
vErrors.push(
|
|
2283
|
+
vErrors.push(err131);
|
|
1841
2284
|
}
|
|
1842
2285
|
errors++;
|
|
1843
2286
|
}
|
|
1844
2287
|
} else {
|
|
1845
|
-
const
|
|
2288
|
+
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" };
|
|
1846
2289
|
if (vErrors === null) {
|
|
1847
|
-
vErrors = [
|
|
2290
|
+
vErrors = [err132];
|
|
1848
2291
|
} else {
|
|
1849
|
-
vErrors.push(
|
|
2292
|
+
vErrors.push(err132);
|
|
1850
2293
|
}
|
|
1851
2294
|
errors++;
|
|
1852
2295
|
}
|
|
1853
2296
|
}
|
|
1854
|
-
if (
|
|
1855
|
-
let
|
|
1856
|
-
if (typeof
|
|
1857
|
-
if (func2(
|
|
1858
|
-
const
|
|
2297
|
+
if (data50.username !== void 0) {
|
|
2298
|
+
let data54 = data50.username;
|
|
2299
|
+
if (typeof data54 === "string") {
|
|
2300
|
+
if (func2(data54) < 1) {
|
|
2301
|
+
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" };
|
|
1859
2302
|
if (vErrors === null) {
|
|
1860
|
-
vErrors = [
|
|
2303
|
+
vErrors = [err133];
|
|
1861
2304
|
} else {
|
|
1862
|
-
vErrors.push(
|
|
2305
|
+
vErrors.push(err133);
|
|
1863
2306
|
}
|
|
1864
2307
|
errors++;
|
|
1865
2308
|
}
|
|
1866
2309
|
} else {
|
|
1867
|
-
const
|
|
2310
|
+
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" };
|
|
1868
2311
|
if (vErrors === null) {
|
|
1869
|
-
vErrors = [
|
|
2312
|
+
vErrors = [err134];
|
|
1870
2313
|
} else {
|
|
1871
|
-
vErrors.push(
|
|
2314
|
+
vErrors.push(err134);
|
|
1872
2315
|
}
|
|
1873
2316
|
errors++;
|
|
1874
2317
|
}
|
|
1875
2318
|
}
|
|
1876
2319
|
} else {
|
|
1877
|
-
const
|
|
2320
|
+
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" };
|
|
1878
2321
|
if (vErrors === null) {
|
|
1879
|
-
vErrors = [
|
|
2322
|
+
vErrors = [err135];
|
|
1880
2323
|
} else {
|
|
1881
|
-
vErrors.push(
|
|
2324
|
+
vErrors.push(err135);
|
|
1882
2325
|
}
|
|
1883
2326
|
errors++;
|
|
1884
2327
|
}
|
|
1885
2328
|
}
|
|
1886
|
-
if (
|
|
1887
|
-
let
|
|
1888
|
-
if (Array.isArray(
|
|
1889
|
-
const len7 =
|
|
2329
|
+
if (data45.dependencies !== void 0) {
|
|
2330
|
+
let data55 = data45.dependencies;
|
|
2331
|
+
if (Array.isArray(data55)) {
|
|
2332
|
+
const len7 = data55.length;
|
|
1890
2333
|
for (let i7 = 0; i7 < len7; i7++) {
|
|
1891
|
-
let
|
|
1892
|
-
if (
|
|
1893
|
-
for (const key25 in
|
|
2334
|
+
let data56 = data55[i7];
|
|
2335
|
+
if (data56 && typeof data56 == "object" && !Array.isArray(data56)) {
|
|
2336
|
+
for (const key25 in data56) {
|
|
1894
2337
|
if (!(key25 === "service")) {
|
|
1895
|
-
const
|
|
2338
|
+
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" };
|
|
1896
2339
|
if (vErrors === null) {
|
|
1897
|
-
vErrors = [
|
|
2340
|
+
vErrors = [err136];
|
|
1898
2341
|
} else {
|
|
1899
|
-
vErrors.push(
|
|
2342
|
+
vErrors.push(err136);
|
|
1900
2343
|
}
|
|
1901
2344
|
errors++;
|
|
1902
2345
|
}
|
|
1903
2346
|
}
|
|
1904
|
-
if (
|
|
1905
|
-
if (typeof
|
|
1906
|
-
const
|
|
2347
|
+
if (data56.service !== void 0) {
|
|
2348
|
+
if (typeof data56.service !== "string") {
|
|
2349
|
+
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" };
|
|
1907
2350
|
if (vErrors === null) {
|
|
1908
|
-
vErrors = [
|
|
2351
|
+
vErrors = [err137];
|
|
1909
2352
|
} else {
|
|
1910
|
-
vErrors.push(
|
|
2353
|
+
vErrors.push(err137);
|
|
1911
2354
|
}
|
|
1912
2355
|
errors++;
|
|
1913
2356
|
}
|
|
1914
2357
|
}
|
|
1915
2358
|
} else {
|
|
1916
|
-
const
|
|
2359
|
+
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" };
|
|
1917
2360
|
if (vErrors === null) {
|
|
1918
|
-
vErrors = [
|
|
2361
|
+
vErrors = [err138];
|
|
1919
2362
|
} else {
|
|
1920
|
-
vErrors.push(
|
|
2363
|
+
vErrors.push(err138);
|
|
1921
2364
|
}
|
|
1922
2365
|
errors++;
|
|
1923
2366
|
}
|
|
1924
2367
|
}
|
|
1925
2368
|
} else {
|
|
1926
|
-
const
|
|
2369
|
+
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" };
|
|
1927
2370
|
if (vErrors === null) {
|
|
1928
|
-
vErrors = [
|
|
2371
|
+
vErrors = [err139];
|
|
1929
2372
|
} else {
|
|
1930
|
-
vErrors.push(
|
|
2373
|
+
vErrors.push(err139);
|
|
1931
2374
|
}
|
|
1932
2375
|
errors++;
|
|
1933
2376
|
}
|
|
1934
2377
|
}
|
|
1935
|
-
if (
|
|
1936
|
-
let
|
|
1937
|
-
const
|
|
1938
|
-
let
|
|
1939
|
-
let
|
|
1940
|
-
const
|
|
1941
|
-
if (Array.isArray(
|
|
1942
|
-
const len8 =
|
|
2378
|
+
if (data45.env !== void 0) {
|
|
2379
|
+
let data58 = data45.env;
|
|
2380
|
+
const _errs197 = errors;
|
|
2381
|
+
let valid64 = false;
|
|
2382
|
+
let passing9 = null;
|
|
2383
|
+
const _errs198 = errors;
|
|
2384
|
+
if (Array.isArray(data58)) {
|
|
2385
|
+
const len8 = data58.length;
|
|
1943
2386
|
for (let i8 = 0; i8 < len8; i8++) {
|
|
1944
|
-
if (typeof
|
|
1945
|
-
const
|
|
2387
|
+
if (typeof data58[i8] !== "string") {
|
|
2388
|
+
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" };
|
|
1946
2389
|
if (vErrors === null) {
|
|
1947
|
-
vErrors = [
|
|
2390
|
+
vErrors = [err140];
|
|
1948
2391
|
} else {
|
|
1949
|
-
vErrors.push(
|
|
2392
|
+
vErrors.push(err140);
|
|
1950
2393
|
}
|
|
1951
2394
|
errors++;
|
|
1952
2395
|
}
|
|
1953
2396
|
}
|
|
1954
2397
|
} else {
|
|
1955
|
-
const
|
|
2398
|
+
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" };
|
|
1956
2399
|
if (vErrors === null) {
|
|
1957
|
-
vErrors = [
|
|
2400
|
+
vErrors = [err141];
|
|
1958
2401
|
} else {
|
|
1959
|
-
vErrors.push(
|
|
2402
|
+
vErrors.push(err141);
|
|
1960
2403
|
}
|
|
1961
2404
|
errors++;
|
|
1962
2405
|
}
|
|
1963
|
-
var
|
|
1964
|
-
if (
|
|
1965
|
-
|
|
1966
|
-
|
|
2406
|
+
var _valid11 = _errs198 === errors;
|
|
2407
|
+
if (_valid11) {
|
|
2408
|
+
valid64 = true;
|
|
2409
|
+
passing9 = 0;
|
|
1967
2410
|
}
|
|
1968
|
-
const
|
|
1969
|
-
if (
|
|
1970
|
-
const
|
|
2411
|
+
const _errs202 = errors;
|
|
2412
|
+
if (data58 !== null) {
|
|
2413
|
+
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" };
|
|
1971
2414
|
if (vErrors === null) {
|
|
1972
|
-
vErrors = [
|
|
2415
|
+
vErrors = [err142];
|
|
1973
2416
|
} else {
|
|
1974
|
-
vErrors.push(
|
|
2417
|
+
vErrors.push(err142);
|
|
1975
2418
|
}
|
|
1976
2419
|
errors++;
|
|
1977
2420
|
}
|
|
1978
|
-
var
|
|
1979
|
-
if (
|
|
1980
|
-
|
|
1981
|
-
|
|
2421
|
+
var _valid11 = _errs202 === errors;
|
|
2422
|
+
if (_valid11 && valid64) {
|
|
2423
|
+
valid64 = false;
|
|
2424
|
+
passing9 = [passing9, 1];
|
|
1982
2425
|
} else {
|
|
1983
|
-
if (
|
|
1984
|
-
|
|
1985
|
-
|
|
2426
|
+
if (_valid11) {
|
|
2427
|
+
valid64 = true;
|
|
2428
|
+
passing9 = 1;
|
|
1986
2429
|
}
|
|
1987
2430
|
}
|
|
1988
|
-
if (!
|
|
1989
|
-
const
|
|
2431
|
+
if (!valid64) {
|
|
2432
|
+
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" };
|
|
1990
2433
|
if (vErrors === null) {
|
|
1991
|
-
vErrors = [
|
|
2434
|
+
vErrors = [err143];
|
|
1992
2435
|
} else {
|
|
1993
|
-
vErrors.push(
|
|
2436
|
+
vErrors.push(err143);
|
|
1994
2437
|
}
|
|
1995
2438
|
errors++;
|
|
1996
2439
|
} else {
|
|
1997
|
-
errors =
|
|
2440
|
+
errors = _errs197;
|
|
1998
2441
|
if (vErrors !== null) {
|
|
1999
|
-
if (
|
|
2000
|
-
vErrors.length =
|
|
2442
|
+
if (_errs197) {
|
|
2443
|
+
vErrors.length = _errs197;
|
|
2001
2444
|
} else {
|
|
2002
2445
|
vErrors = null;
|
|
2003
2446
|
}
|
|
2004
2447
|
}
|
|
2005
2448
|
}
|
|
2006
2449
|
}
|
|
2007
|
-
if (
|
|
2008
|
-
let
|
|
2009
|
-
|
|
2010
|
-
|
|
2450
|
+
if (data45.expose !== void 0) {
|
|
2451
|
+
let data60 = data45.expose;
|
|
2452
|
+
const _errs205 = errors;
|
|
2453
|
+
let valid67 = false;
|
|
2454
|
+
let passing10 = null;
|
|
2455
|
+
const _errs206 = errors;
|
|
2456
|
+
if (Array.isArray(data60)) {
|
|
2457
|
+
const len9 = data60.length;
|
|
2011
2458
|
for (let i9 = 0; i9 < len9; i9++) {
|
|
2012
|
-
let
|
|
2013
|
-
if (
|
|
2014
|
-
if (
|
|
2015
|
-
const
|
|
2459
|
+
let data61 = data60[i9];
|
|
2460
|
+
if (data61 && typeof data61 == "object" && !Array.isArray(data61)) {
|
|
2461
|
+
if (data61.port === void 0) {
|
|
2462
|
+
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'" };
|
|
2016
2463
|
if (vErrors === null) {
|
|
2017
|
-
vErrors = [
|
|
2464
|
+
vErrors = [err144];
|
|
2018
2465
|
} else {
|
|
2019
|
-
vErrors.push(
|
|
2466
|
+
vErrors.push(err144);
|
|
2020
2467
|
}
|
|
2021
2468
|
errors++;
|
|
2022
2469
|
}
|
|
2023
|
-
for (const key26 in
|
|
2470
|
+
for (const key26 in data61) {
|
|
2024
2471
|
if (!(key26 === "accept" || key26 === "as" || key26 === "http_options" || key26 === "port" || key26 === "proto" || key26 === "to")) {
|
|
2025
|
-
const
|
|
2472
|
+
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" };
|
|
2026
2473
|
if (vErrors === null) {
|
|
2027
|
-
vErrors = [
|
|
2474
|
+
vErrors = [err145];
|
|
2028
2475
|
} else {
|
|
2029
|
-
vErrors.push(
|
|
2476
|
+
vErrors.push(err145);
|
|
2030
2477
|
}
|
|
2031
2478
|
errors++;
|
|
2032
2479
|
}
|
|
2033
2480
|
}
|
|
2034
|
-
if (
|
|
2035
|
-
let
|
|
2036
|
-
if (Array.isArray(
|
|
2037
|
-
const len10 =
|
|
2481
|
+
if (data61.accept !== void 0) {
|
|
2482
|
+
let data62 = data61.accept;
|
|
2483
|
+
if (Array.isArray(data62)) {
|
|
2484
|
+
const len10 = data62.length;
|
|
2038
2485
|
for (let i10 = 0; i10 < len10; i10++) {
|
|
2039
|
-
if (typeof
|
|
2040
|
-
const
|
|
2486
|
+
if (typeof data62[i10] !== "string") {
|
|
2487
|
+
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" };
|
|
2041
2488
|
if (vErrors === null) {
|
|
2042
|
-
vErrors = [
|
|
2489
|
+
vErrors = [err146];
|
|
2043
2490
|
} else {
|
|
2044
|
-
vErrors.push(
|
|
2491
|
+
vErrors.push(err146);
|
|
2045
2492
|
}
|
|
2046
2493
|
errors++;
|
|
2047
2494
|
}
|
|
2048
2495
|
}
|
|
2049
2496
|
} else {
|
|
2050
|
-
const
|
|
2497
|
+
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" };
|
|
2051
2498
|
if (vErrors === null) {
|
|
2052
|
-
vErrors = [
|
|
2499
|
+
vErrors = [err147];
|
|
2053
2500
|
} else {
|
|
2054
|
-
vErrors.push(
|
|
2501
|
+
vErrors.push(err147);
|
|
2055
2502
|
}
|
|
2056
2503
|
errors++;
|
|
2057
2504
|
}
|
|
2058
2505
|
}
|
|
2059
|
-
if (
|
|
2060
|
-
let
|
|
2061
|
-
if (!(typeof
|
|
2062
|
-
const
|
|
2506
|
+
if (data61.as !== void 0) {
|
|
2507
|
+
let data64 = data61.as;
|
|
2508
|
+
if (!(typeof data64 == "number" && (!(data64 % 1) && !isNaN(data64)))) {
|
|
2509
|
+
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" };
|
|
2063
2510
|
if (vErrors === null) {
|
|
2064
|
-
vErrors = [
|
|
2511
|
+
vErrors = [err148];
|
|
2065
2512
|
} else {
|
|
2066
|
-
vErrors.push(
|
|
2513
|
+
vErrors.push(err148);
|
|
2067
2514
|
}
|
|
2068
2515
|
errors++;
|
|
2069
2516
|
}
|
|
2070
|
-
if (typeof
|
|
2071
|
-
if (
|
|
2072
|
-
const
|
|
2517
|
+
if (typeof data64 == "number") {
|
|
2518
|
+
if (data64 > 65535 || isNaN(data64)) {
|
|
2519
|
+
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" };
|
|
2073
2520
|
if (vErrors === null) {
|
|
2074
|
-
vErrors = [
|
|
2521
|
+
vErrors = [err149];
|
|
2075
2522
|
} else {
|
|
2076
|
-
vErrors.push(
|
|
2523
|
+
vErrors.push(err149);
|
|
2077
2524
|
}
|
|
2078
2525
|
errors++;
|
|
2079
2526
|
}
|
|
2080
|
-
if (
|
|
2081
|
-
const
|
|
2527
|
+
if (data64 < 1 || isNaN(data64)) {
|
|
2528
|
+
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" };
|
|
2082
2529
|
if (vErrors === null) {
|
|
2083
|
-
vErrors = [
|
|
2530
|
+
vErrors = [err150];
|
|
2084
2531
|
} else {
|
|
2085
|
-
vErrors.push(
|
|
2532
|
+
vErrors.push(err150);
|
|
2086
2533
|
}
|
|
2087
2534
|
errors++;
|
|
2088
2535
|
}
|
|
2089
2536
|
}
|
|
2090
2537
|
}
|
|
2091
|
-
if (
|
|
2092
|
-
let
|
|
2093
|
-
if (
|
|
2094
|
-
for (const key27 in
|
|
2538
|
+
if (data61.http_options !== void 0) {
|
|
2539
|
+
let data65 = data61.http_options;
|
|
2540
|
+
if (data65 && typeof data65 == "object" && !Array.isArray(data65)) {
|
|
2541
|
+
for (const key27 in data65) {
|
|
2095
2542
|
if (!(key27 === "max_body_size" || key27 === "next_cases" || key27 === "next_timeout" || key27 === "next_tries" || key27 === "read_timeout" || key27 === "send_timeout")) {
|
|
2096
|
-
const
|
|
2543
|
+
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" };
|
|
2097
2544
|
if (vErrors === null) {
|
|
2098
|
-
vErrors = [
|
|
2545
|
+
vErrors = [err151];
|
|
2099
2546
|
} else {
|
|
2100
|
-
vErrors.push(
|
|
2547
|
+
vErrors.push(err151);
|
|
2101
2548
|
}
|
|
2102
2549
|
errors++;
|
|
2103
2550
|
}
|
|
2104
2551
|
}
|
|
2105
|
-
if (
|
|
2106
|
-
let
|
|
2107
|
-
if (!(typeof
|
|
2108
|
-
const
|
|
2552
|
+
if (data65.max_body_size !== void 0) {
|
|
2553
|
+
let data66 = data65.max_body_size;
|
|
2554
|
+
if (!(typeof data66 == "number" && (!(data66 % 1) && !isNaN(data66)))) {
|
|
2555
|
+
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" };
|
|
2109
2556
|
if (vErrors === null) {
|
|
2110
|
-
vErrors = [
|
|
2557
|
+
vErrors = [err152];
|
|
2111
2558
|
} else {
|
|
2112
|
-
vErrors.push(
|
|
2559
|
+
vErrors.push(err152);
|
|
2113
2560
|
}
|
|
2114
2561
|
errors++;
|
|
2115
2562
|
}
|
|
2116
|
-
if (typeof
|
|
2117
|
-
if (
|
|
2118
|
-
const
|
|
2563
|
+
if (typeof data66 == "number") {
|
|
2564
|
+
if (data66 > 104857600 || isNaN(data66)) {
|
|
2565
|
+
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" };
|
|
2119
2566
|
if (vErrors === null) {
|
|
2120
|
-
vErrors = [
|
|
2567
|
+
vErrors = [err153];
|
|
2121
2568
|
} else {
|
|
2122
|
-
vErrors.push(
|
|
2569
|
+
vErrors.push(err153);
|
|
2123
2570
|
}
|
|
2124
2571
|
errors++;
|
|
2125
2572
|
}
|
|
2126
|
-
if (
|
|
2127
|
-
const
|
|
2573
|
+
if (data66 < 0 || isNaN(data66)) {
|
|
2574
|
+
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" };
|
|
2128
2575
|
if (vErrors === null) {
|
|
2129
|
-
vErrors = [
|
|
2576
|
+
vErrors = [err154];
|
|
2130
2577
|
} else {
|
|
2131
|
-
vErrors.push(
|
|
2578
|
+
vErrors.push(err154);
|
|
2132
2579
|
}
|
|
2133
2580
|
errors++;
|
|
2134
2581
|
}
|
|
2135
2582
|
}
|
|
2136
2583
|
}
|
|
2137
|
-
if (
|
|
2138
|
-
let
|
|
2139
|
-
const
|
|
2140
|
-
let
|
|
2141
|
-
let
|
|
2142
|
-
const
|
|
2143
|
-
if (Array.isArray(
|
|
2144
|
-
if (
|
|
2145
|
-
const
|
|
2584
|
+
if (data65.next_cases !== void 0) {
|
|
2585
|
+
let data67 = data65.next_cases;
|
|
2586
|
+
const _errs224 = errors;
|
|
2587
|
+
let valid75 = false;
|
|
2588
|
+
let passing11 = null;
|
|
2589
|
+
const _errs225 = errors;
|
|
2590
|
+
if (Array.isArray(data67)) {
|
|
2591
|
+
if (data67.length > 1) {
|
|
2592
|
+
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" };
|
|
2146
2593
|
if (vErrors === null) {
|
|
2147
|
-
vErrors = [
|
|
2594
|
+
vErrors = [err155];
|
|
2148
2595
|
} else {
|
|
2149
|
-
vErrors.push(
|
|
2596
|
+
vErrors.push(err155);
|
|
2150
2597
|
}
|
|
2151
2598
|
errors++;
|
|
2152
2599
|
}
|
|
2153
|
-
if (
|
|
2154
|
-
const
|
|
2600
|
+
if (data67.length < 1) {
|
|
2601
|
+
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" };
|
|
2155
2602
|
if (vErrors === null) {
|
|
2156
|
-
vErrors = [
|
|
2603
|
+
vErrors = [err156];
|
|
2157
2604
|
} else {
|
|
2158
|
-
vErrors.push(
|
|
2605
|
+
vErrors.push(err156);
|
|
2159
2606
|
}
|
|
2160
2607
|
errors++;
|
|
2161
2608
|
}
|
|
2162
|
-
const len11 =
|
|
2609
|
+
const len11 = data67.length;
|
|
2163
2610
|
for (let i11 = 0; i11 < len11; i11++) {
|
|
2164
|
-
let
|
|
2165
|
-
if (typeof
|
|
2166
|
-
const
|
|
2611
|
+
let data68 = data67[i11];
|
|
2612
|
+
if (typeof data68 !== "string") {
|
|
2613
|
+
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" };
|
|
2167
2614
|
if (vErrors === null) {
|
|
2168
|
-
vErrors = [
|
|
2615
|
+
vErrors = [err157];
|
|
2169
2616
|
} else {
|
|
2170
|
-
vErrors.push(
|
|
2617
|
+
vErrors.push(err157);
|
|
2171
2618
|
}
|
|
2172
2619
|
errors++;
|
|
2173
2620
|
}
|
|
2174
|
-
if (!(
|
|
2175
|
-
const
|
|
2621
|
+
if (!(data68 === "error" || data68 === "timeout" || data68 === "500" || data68 === "502" || data68 === "503" || data68 === "504" || data68 === "403" || data68 === "404" || data68 === "429" || data68 === "off")) {
|
|
2622
|
+
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" };
|
|
2176
2623
|
if (vErrors === null) {
|
|
2177
|
-
vErrors = [
|
|
2624
|
+
vErrors = [err158];
|
|
2178
2625
|
} else {
|
|
2179
|
-
vErrors.push(
|
|
2626
|
+
vErrors.push(err158);
|
|
2180
2627
|
}
|
|
2181
2628
|
errors++;
|
|
2182
2629
|
}
|
|
2183
2630
|
}
|
|
2184
|
-
const
|
|
2185
|
-
const len12 =
|
|
2631
|
+
const _errs230 = errors;
|
|
2632
|
+
const len12 = data67.length;
|
|
2186
2633
|
for (let i12 = 0; i12 < len12; i12++) {
|
|
2187
|
-
const
|
|
2188
|
-
if ("off" !==
|
|
2189
|
-
const
|
|
2634
|
+
const _errs231 = errors;
|
|
2635
|
+
if ("off" !== data67[i12]) {
|
|
2636
|
+
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" };
|
|
2190
2637
|
if (vErrors === null) {
|
|
2191
|
-
vErrors = [
|
|
2638
|
+
vErrors = [err159];
|
|
2192
2639
|
} else {
|
|
2193
|
-
vErrors.push(
|
|
2640
|
+
vErrors.push(err159);
|
|
2194
2641
|
}
|
|
2195
2642
|
errors++;
|
|
2196
2643
|
}
|
|
2197
|
-
var
|
|
2198
|
-
if (
|
|
2644
|
+
var valid79 = _errs231 === errors;
|
|
2645
|
+
if (valid79) {
|
|
2199
2646
|
break;
|
|
2200
2647
|
}
|
|
2201
2648
|
}
|
|
2202
|
-
if (!
|
|
2203
|
-
const
|
|
2649
|
+
if (!valid79) {
|
|
2650
|
+
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)" };
|
|
2204
2651
|
if (vErrors === null) {
|
|
2205
|
-
vErrors = [
|
|
2652
|
+
vErrors = [err160];
|
|
2206
2653
|
} else {
|
|
2207
|
-
vErrors.push(
|
|
2654
|
+
vErrors.push(err160);
|
|
2208
2655
|
}
|
|
2209
2656
|
errors++;
|
|
2210
2657
|
} else {
|
|
2211
|
-
errors =
|
|
2658
|
+
errors = _errs230;
|
|
2212
2659
|
if (vErrors !== null) {
|
|
2213
|
-
if (
|
|
2214
|
-
vErrors.length =
|
|
2660
|
+
if (_errs230) {
|
|
2661
|
+
vErrors.length = _errs230;
|
|
2215
2662
|
} else {
|
|
2216
2663
|
vErrors = null;
|
|
2217
2664
|
}
|
|
2218
2665
|
}
|
|
2219
2666
|
}
|
|
2220
2667
|
} else {
|
|
2221
|
-
const
|
|
2668
|
+
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" };
|
|
2222
2669
|
if (vErrors === null) {
|
|
2223
|
-
vErrors = [
|
|
2670
|
+
vErrors = [err161];
|
|
2224
2671
|
} else {
|
|
2225
|
-
vErrors.push(
|
|
2672
|
+
vErrors.push(err161);
|
|
2226
2673
|
}
|
|
2227
2674
|
errors++;
|
|
2228
2675
|
}
|
|
2229
|
-
var
|
|
2230
|
-
if (
|
|
2231
|
-
|
|
2232
|
-
|
|
2676
|
+
var _valid13 = _errs225 === errors;
|
|
2677
|
+
if (_valid13) {
|
|
2678
|
+
valid75 = true;
|
|
2679
|
+
passing11 = 0;
|
|
2233
2680
|
}
|
|
2234
|
-
const
|
|
2235
|
-
const
|
|
2236
|
-
const
|
|
2237
|
-
if (Array.isArray(
|
|
2238
|
-
const
|
|
2239
|
-
const len13 =
|
|
2681
|
+
const _errs232 = errors;
|
|
2682
|
+
const _errs234 = errors;
|
|
2683
|
+
const _errs235 = errors;
|
|
2684
|
+
if (Array.isArray(data67)) {
|
|
2685
|
+
const _errs236 = errors;
|
|
2686
|
+
const len13 = data67.length;
|
|
2240
2687
|
for (let i13 = 0; i13 < len13; i13++) {
|
|
2241
|
-
const
|
|
2242
|
-
if ("off" !==
|
|
2243
|
-
const
|
|
2688
|
+
const _errs237 = errors;
|
|
2689
|
+
if ("off" !== data67[i13]) {
|
|
2690
|
+
const err162 = {};
|
|
2244
2691
|
if (vErrors === null) {
|
|
2245
|
-
vErrors = [
|
|
2692
|
+
vErrors = [err162];
|
|
2246
2693
|
} else {
|
|
2247
|
-
vErrors.push(
|
|
2694
|
+
vErrors.push(err162);
|
|
2248
2695
|
}
|
|
2249
2696
|
errors++;
|
|
2250
2697
|
}
|
|
2251
|
-
var
|
|
2252
|
-
if (
|
|
2698
|
+
var valid81 = _errs237 === errors;
|
|
2699
|
+
if (valid81) {
|
|
2253
2700
|
break;
|
|
2254
2701
|
}
|
|
2255
2702
|
}
|
|
2256
|
-
if (!
|
|
2257
|
-
const
|
|
2703
|
+
if (!valid81) {
|
|
2704
|
+
const err163 = {};
|
|
2258
2705
|
if (vErrors === null) {
|
|
2259
|
-
vErrors = [
|
|
2706
|
+
vErrors = [err163];
|
|
2260
2707
|
} else {
|
|
2261
|
-
vErrors.push(
|
|
2708
|
+
vErrors.push(err163);
|
|
2262
2709
|
}
|
|
2263
2710
|
errors++;
|
|
2264
2711
|
} else {
|
|
2265
|
-
errors =
|
|
2712
|
+
errors = _errs236;
|
|
2266
2713
|
if (vErrors !== null) {
|
|
2267
|
-
if (
|
|
2268
|
-
vErrors.length =
|
|
2714
|
+
if (_errs236) {
|
|
2715
|
+
vErrors.length = _errs236;
|
|
2269
2716
|
} else {
|
|
2270
2717
|
vErrors = null;
|
|
2271
2718
|
}
|
|
2272
2719
|
}
|
|
2273
2720
|
}
|
|
2274
2721
|
}
|
|
2275
|
-
var
|
|
2276
|
-
if (
|
|
2277
|
-
const
|
|
2722
|
+
var valid80 = _errs235 === errors;
|
|
2723
|
+
if (valid80) {
|
|
2724
|
+
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" };
|
|
2278
2725
|
if (vErrors === null) {
|
|
2279
|
-
vErrors = [
|
|
2726
|
+
vErrors = [err164];
|
|
2280
2727
|
} else {
|
|
2281
|
-
vErrors.push(
|
|
2728
|
+
vErrors.push(err164);
|
|
2282
2729
|
}
|
|
2283
2730
|
errors++;
|
|
2284
2731
|
} else {
|
|
2285
|
-
errors =
|
|
2732
|
+
errors = _errs234;
|
|
2286
2733
|
if (vErrors !== null) {
|
|
2287
|
-
if (
|
|
2288
|
-
vErrors.length =
|
|
2734
|
+
if (_errs234) {
|
|
2735
|
+
vErrors.length = _errs234;
|
|
2289
2736
|
} else {
|
|
2290
2737
|
vErrors = null;
|
|
2291
2738
|
}
|
|
2292
2739
|
}
|
|
2293
2740
|
}
|
|
2294
|
-
if (Array.isArray(
|
|
2295
|
-
const len14 =
|
|
2741
|
+
if (Array.isArray(data67)) {
|
|
2742
|
+
const len14 = data67.length;
|
|
2296
2743
|
for (let i14 = 0; i14 < len14; i14++) {
|
|
2297
|
-
let
|
|
2298
|
-
if (typeof
|
|
2299
|
-
const
|
|
2744
|
+
let data71 = data67[i14];
|
|
2745
|
+
if (typeof data71 !== "string") {
|
|
2746
|
+
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" };
|
|
2300
2747
|
if (vErrors === null) {
|
|
2301
|
-
vErrors = [
|
|
2748
|
+
vErrors = [err165];
|
|
2302
2749
|
} else {
|
|
2303
|
-
vErrors.push(
|
|
2750
|
+
vErrors.push(err165);
|
|
2304
2751
|
}
|
|
2305
2752
|
errors++;
|
|
2306
2753
|
}
|
|
2307
|
-
if (!(
|
|
2308
|
-
const
|
|
2754
|
+
if (!(data71 === "error" || data71 === "timeout" || data71 === "500" || data71 === "502" || data71 === "503" || data71 === "504" || data71 === "403" || data71 === "404" || data71 === "429" || data71 === "off")) {
|
|
2755
|
+
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" };
|
|
2309
2756
|
if (vErrors === null) {
|
|
2310
|
-
vErrors = [
|
|
2757
|
+
vErrors = [err166];
|
|
2311
2758
|
} else {
|
|
2312
|
-
vErrors.push(
|
|
2759
|
+
vErrors.push(err166);
|
|
2313
2760
|
}
|
|
2314
2761
|
errors++;
|
|
2315
2762
|
}
|
|
2316
2763
|
}
|
|
2317
2764
|
} else {
|
|
2318
|
-
const
|
|
2765
|
+
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" };
|
|
2319
2766
|
if (vErrors === null) {
|
|
2320
|
-
vErrors = [
|
|
2767
|
+
vErrors = [err167];
|
|
2321
2768
|
} else {
|
|
2322
|
-
vErrors.push(
|
|
2769
|
+
vErrors.push(err167);
|
|
2323
2770
|
}
|
|
2324
2771
|
errors++;
|
|
2325
2772
|
}
|
|
2326
|
-
var
|
|
2327
|
-
if (
|
|
2328
|
-
|
|
2329
|
-
|
|
2773
|
+
var _valid13 = _errs232 === errors;
|
|
2774
|
+
if (_valid13 && valid75) {
|
|
2775
|
+
valid75 = false;
|
|
2776
|
+
passing11 = [passing11, 1];
|
|
2330
2777
|
} else {
|
|
2331
|
-
if (
|
|
2332
|
-
|
|
2333
|
-
|
|
2778
|
+
if (_valid13) {
|
|
2779
|
+
valid75 = true;
|
|
2780
|
+
passing11 = 1;
|
|
2334
2781
|
}
|
|
2335
2782
|
}
|
|
2336
|
-
if (!
|
|
2337
|
-
const
|
|
2783
|
+
if (!valid75) {
|
|
2784
|
+
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" };
|
|
2338
2785
|
if (vErrors === null) {
|
|
2339
|
-
vErrors = [
|
|
2786
|
+
vErrors = [err168];
|
|
2340
2787
|
} else {
|
|
2341
|
-
vErrors.push(
|
|
2788
|
+
vErrors.push(err168);
|
|
2342
2789
|
}
|
|
2343
2790
|
errors++;
|
|
2344
2791
|
} else {
|
|
2345
|
-
errors =
|
|
2792
|
+
errors = _errs224;
|
|
2346
2793
|
if (vErrors !== null) {
|
|
2347
|
-
if (
|
|
2348
|
-
vErrors.length =
|
|
2794
|
+
if (_errs224) {
|
|
2795
|
+
vErrors.length = _errs224;
|
|
2349
2796
|
} else {
|
|
2350
2797
|
vErrors = null;
|
|
2351
2798
|
}
|
|
2352
2799
|
}
|
|
2353
2800
|
}
|
|
2354
2801
|
}
|
|
2355
|
-
if (
|
|
2356
|
-
let
|
|
2357
|
-
if (!(typeof
|
|
2358
|
-
const
|
|
2802
|
+
if (data65.next_timeout !== void 0) {
|
|
2803
|
+
let data72 = data65.next_timeout;
|
|
2804
|
+
if (!(typeof data72 == "number" && (!(data72 % 1) && !isNaN(data72)))) {
|
|
2805
|
+
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" };
|
|
2359
2806
|
if (vErrors === null) {
|
|
2360
|
-
vErrors = [
|
|
2807
|
+
vErrors = [err169];
|
|
2361
2808
|
} else {
|
|
2362
|
-
vErrors.push(
|
|
2809
|
+
vErrors.push(err169);
|
|
2363
2810
|
}
|
|
2364
2811
|
errors++;
|
|
2365
2812
|
}
|
|
2366
|
-
if (typeof
|
|
2367
|
-
if (
|
|
2368
|
-
const
|
|
2813
|
+
if (typeof data72 == "number") {
|
|
2814
|
+
if (data72 < 0 || isNaN(data72)) {
|
|
2815
|
+
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" };
|
|
2369
2816
|
if (vErrors === null) {
|
|
2370
|
-
vErrors = [
|
|
2817
|
+
vErrors = [err170];
|
|
2371
2818
|
} else {
|
|
2372
|
-
vErrors.push(
|
|
2819
|
+
vErrors.push(err170);
|
|
2373
2820
|
}
|
|
2374
2821
|
errors++;
|
|
2375
2822
|
}
|
|
2376
2823
|
}
|
|
2377
2824
|
}
|
|
2378
|
-
if (
|
|
2379
|
-
let
|
|
2380
|
-
if (!(typeof
|
|
2381
|
-
const
|
|
2825
|
+
if (data65.next_tries !== void 0) {
|
|
2826
|
+
let data73 = data65.next_tries;
|
|
2827
|
+
if (!(typeof data73 == "number" && (!(data73 % 1) && !isNaN(data73)))) {
|
|
2828
|
+
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" };
|
|
2382
2829
|
if (vErrors === null) {
|
|
2383
|
-
vErrors = [
|
|
2830
|
+
vErrors = [err171];
|
|
2384
2831
|
} else {
|
|
2385
|
-
vErrors.push(
|
|
2832
|
+
vErrors.push(err171);
|
|
2386
2833
|
}
|
|
2387
2834
|
errors++;
|
|
2388
2835
|
}
|
|
2389
|
-
if (typeof
|
|
2390
|
-
if (
|
|
2391
|
-
const
|
|
2836
|
+
if (typeof data73 == "number") {
|
|
2837
|
+
if (data73 < 0 || isNaN(data73)) {
|
|
2838
|
+
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" };
|
|
2392
2839
|
if (vErrors === null) {
|
|
2393
|
-
vErrors = [
|
|
2840
|
+
vErrors = [err172];
|
|
2394
2841
|
} else {
|
|
2395
|
-
vErrors.push(
|
|
2842
|
+
vErrors.push(err172);
|
|
2396
2843
|
}
|
|
2397
2844
|
errors++;
|
|
2398
2845
|
}
|
|
2399
2846
|
}
|
|
2400
2847
|
}
|
|
2401
|
-
if (
|
|
2402
|
-
let
|
|
2403
|
-
if (!(typeof
|
|
2404
|
-
const
|
|
2848
|
+
if (data65.read_timeout !== void 0) {
|
|
2849
|
+
let data74 = data65.read_timeout;
|
|
2850
|
+
if (!(typeof data74 == "number" && (!(data74 % 1) && !isNaN(data74)))) {
|
|
2851
|
+
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" };
|
|
2405
2852
|
if (vErrors === null) {
|
|
2406
|
-
vErrors = [
|
|
2853
|
+
vErrors = [err173];
|
|
2407
2854
|
} else {
|
|
2408
|
-
vErrors.push(
|
|
2855
|
+
vErrors.push(err173);
|
|
2409
2856
|
}
|
|
2410
2857
|
errors++;
|
|
2411
2858
|
}
|
|
2412
|
-
if (typeof
|
|
2413
|
-
if (
|
|
2414
|
-
const
|
|
2859
|
+
if (typeof data74 == "number") {
|
|
2860
|
+
if (data74 > 6e4 || isNaN(data74)) {
|
|
2861
|
+
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" };
|
|
2415
2862
|
if (vErrors === null) {
|
|
2416
|
-
vErrors = [
|
|
2863
|
+
vErrors = [err174];
|
|
2417
2864
|
} else {
|
|
2418
|
-
vErrors.push(
|
|
2865
|
+
vErrors.push(err174);
|
|
2419
2866
|
}
|
|
2420
2867
|
errors++;
|
|
2421
2868
|
}
|
|
2422
|
-
if (
|
|
2423
|
-
const
|
|
2869
|
+
if (data74 < 0 || isNaN(data74)) {
|
|
2870
|
+
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" };
|
|
2424
2871
|
if (vErrors === null) {
|
|
2425
|
-
vErrors = [
|
|
2872
|
+
vErrors = [err175];
|
|
2426
2873
|
} else {
|
|
2427
|
-
vErrors.push(
|
|
2874
|
+
vErrors.push(err175);
|
|
2428
2875
|
}
|
|
2429
2876
|
errors++;
|
|
2430
2877
|
}
|
|
2431
2878
|
}
|
|
2432
2879
|
}
|
|
2433
|
-
if (
|
|
2434
|
-
let
|
|
2435
|
-
if (!(typeof
|
|
2436
|
-
const
|
|
2880
|
+
if (data65.send_timeout !== void 0) {
|
|
2881
|
+
let data75 = data65.send_timeout;
|
|
2882
|
+
if (!(typeof data75 == "number" && (!(data75 % 1) && !isNaN(data75)))) {
|
|
2883
|
+
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" };
|
|
2437
2884
|
if (vErrors === null) {
|
|
2438
|
-
vErrors = [
|
|
2885
|
+
vErrors = [err176];
|
|
2439
2886
|
} else {
|
|
2440
|
-
vErrors.push(
|
|
2887
|
+
vErrors.push(err176);
|
|
2441
2888
|
}
|
|
2442
2889
|
errors++;
|
|
2443
2890
|
}
|
|
2444
|
-
if (typeof
|
|
2445
|
-
if (
|
|
2446
|
-
const
|
|
2891
|
+
if (typeof data75 == "number") {
|
|
2892
|
+
if (data75 > 6e4 || isNaN(data75)) {
|
|
2893
|
+
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" };
|
|
2447
2894
|
if (vErrors === null) {
|
|
2448
|
-
vErrors = [
|
|
2895
|
+
vErrors = [err177];
|
|
2449
2896
|
} else {
|
|
2450
|
-
vErrors.push(
|
|
2897
|
+
vErrors.push(err177);
|
|
2451
2898
|
}
|
|
2452
2899
|
errors++;
|
|
2453
2900
|
}
|
|
2454
|
-
if (
|
|
2455
|
-
const
|
|
2901
|
+
if (data75 < 0 || isNaN(data75)) {
|
|
2902
|
+
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" };
|
|
2456
2903
|
if (vErrors === null) {
|
|
2457
|
-
vErrors = [
|
|
2904
|
+
vErrors = [err178];
|
|
2458
2905
|
} else {
|
|
2459
|
-
vErrors.push(
|
|
2906
|
+
vErrors.push(err178);
|
|
2460
2907
|
}
|
|
2461
2908
|
errors++;
|
|
2462
2909
|
}
|
|
2463
2910
|
}
|
|
2464
2911
|
}
|
|
2465
2912
|
} else {
|
|
2466
|
-
const
|
|
2913
|
+
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" };
|
|
2467
2914
|
if (vErrors === null) {
|
|
2468
|
-
vErrors = [
|
|
2915
|
+
vErrors = [err179];
|
|
2469
2916
|
} else {
|
|
2470
|
-
vErrors.push(
|
|
2917
|
+
vErrors.push(err179);
|
|
2471
2918
|
}
|
|
2472
2919
|
errors++;
|
|
2473
2920
|
}
|
|
2474
2921
|
}
|
|
2475
|
-
if (
|
|
2476
|
-
let
|
|
2477
|
-
if (!(typeof
|
|
2478
|
-
const
|
|
2922
|
+
if (data61.port !== void 0) {
|
|
2923
|
+
let data76 = data61.port;
|
|
2924
|
+
if (!(typeof data76 == "number" && (!(data76 % 1) && !isNaN(data76)))) {
|
|
2925
|
+
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" };
|
|
2479
2926
|
if (vErrors === null) {
|
|
2480
|
-
vErrors = [
|
|
2927
|
+
vErrors = [err180];
|
|
2481
2928
|
} else {
|
|
2482
|
-
vErrors.push(
|
|
2929
|
+
vErrors.push(err180);
|
|
2483
2930
|
}
|
|
2484
2931
|
errors++;
|
|
2485
2932
|
}
|
|
2486
|
-
if (typeof
|
|
2487
|
-
if (
|
|
2488
|
-
const
|
|
2933
|
+
if (typeof data76 == "number") {
|
|
2934
|
+
if (data76 > 65535 || isNaN(data76)) {
|
|
2935
|
+
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" };
|
|
2489
2936
|
if (vErrors === null) {
|
|
2490
|
-
vErrors = [
|
|
2937
|
+
vErrors = [err181];
|
|
2491
2938
|
} else {
|
|
2492
|
-
vErrors.push(
|
|
2939
|
+
vErrors.push(err181);
|
|
2493
2940
|
}
|
|
2494
2941
|
errors++;
|
|
2495
2942
|
}
|
|
2496
|
-
if (
|
|
2497
|
-
const
|
|
2943
|
+
if (data76 < 1 || isNaN(data76)) {
|
|
2944
|
+
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" };
|
|
2498
2945
|
if (vErrors === null) {
|
|
2499
|
-
vErrors = [
|
|
2946
|
+
vErrors = [err182];
|
|
2500
2947
|
} else {
|
|
2501
|
-
vErrors.push(
|
|
2948
|
+
vErrors.push(err182);
|
|
2502
2949
|
}
|
|
2503
2950
|
errors++;
|
|
2504
2951
|
}
|
|
2505
2952
|
}
|
|
2506
2953
|
}
|
|
2507
|
-
if (
|
|
2508
|
-
let
|
|
2509
|
-
if (typeof
|
|
2510
|
-
const
|
|
2954
|
+
if (data61.proto !== void 0) {
|
|
2955
|
+
let data77 = data61.proto;
|
|
2956
|
+
if (typeof data77 !== "string") {
|
|
2957
|
+
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" };
|
|
2511
2958
|
if (vErrors === null) {
|
|
2512
|
-
vErrors = [
|
|
2959
|
+
vErrors = [err183];
|
|
2513
2960
|
} else {
|
|
2514
|
-
vErrors.push(
|
|
2961
|
+
vErrors.push(err183);
|
|
2515
2962
|
}
|
|
2516
2963
|
errors++;
|
|
2517
2964
|
}
|
|
2518
|
-
if (!(
|
|
2519
|
-
const
|
|
2965
|
+
if (!(data77 === "TCP" || data77 === "UDP" || data77 === "tcp" || data77 === "udp")) {
|
|
2966
|
+
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" };
|
|
2520
2967
|
if (vErrors === null) {
|
|
2521
|
-
vErrors = [
|
|
2968
|
+
vErrors = [err184];
|
|
2522
2969
|
} else {
|
|
2523
|
-
vErrors.push(
|
|
2970
|
+
vErrors.push(err184);
|
|
2524
2971
|
}
|
|
2525
2972
|
errors++;
|
|
2526
2973
|
}
|
|
2527
2974
|
}
|
|
2528
|
-
if (
|
|
2529
|
-
let
|
|
2530
|
-
if (Array.isArray(
|
|
2531
|
-
const len15 =
|
|
2975
|
+
if (data61.to !== void 0) {
|
|
2976
|
+
let data78 = data61.to;
|
|
2977
|
+
if (Array.isArray(data78)) {
|
|
2978
|
+
const len15 = data78.length;
|
|
2532
2979
|
for (let i15 = 0; i15 < len15; i15++) {
|
|
2533
|
-
let
|
|
2534
|
-
const
|
|
2535
|
-
let
|
|
2536
|
-
const
|
|
2537
|
-
if (
|
|
2538
|
-
let
|
|
2539
|
-
if (
|
|
2540
|
-
const
|
|
2980
|
+
let data79 = data78[i15];
|
|
2981
|
+
const _errs260 = errors;
|
|
2982
|
+
let valid90 = true;
|
|
2983
|
+
const _errs261 = errors;
|
|
2984
|
+
if (data79 && typeof data79 == "object" && !Array.isArray(data79)) {
|
|
2985
|
+
let missing2;
|
|
2986
|
+
if (data79.ip === void 0 && (missing2 = "ip")) {
|
|
2987
|
+
const err185 = {};
|
|
2541
2988
|
if (vErrors === null) {
|
|
2542
|
-
vErrors = [
|
|
2989
|
+
vErrors = [err185];
|
|
2543
2990
|
} else {
|
|
2544
|
-
vErrors.push(
|
|
2991
|
+
vErrors.push(err185);
|
|
2545
2992
|
}
|
|
2546
2993
|
errors++;
|
|
2547
2994
|
} else {
|
|
2548
|
-
if (
|
|
2549
|
-
let
|
|
2550
|
-
const
|
|
2551
|
-
if (errors ===
|
|
2552
|
-
if (typeof
|
|
2553
|
-
if (func2(
|
|
2554
|
-
const
|
|
2995
|
+
if (data79.ip !== void 0) {
|
|
2996
|
+
let data80 = data79.ip;
|
|
2997
|
+
const _errs262 = errors;
|
|
2998
|
+
if (errors === _errs262) {
|
|
2999
|
+
if (typeof data80 === "string") {
|
|
3000
|
+
if (func2(data80) < 1) {
|
|
3001
|
+
const err186 = {};
|
|
2555
3002
|
if (vErrors === null) {
|
|
2556
|
-
vErrors = [
|
|
3003
|
+
vErrors = [err186];
|
|
2557
3004
|
} else {
|
|
2558
|
-
vErrors.push(
|
|
3005
|
+
vErrors.push(err186);
|
|
2559
3006
|
}
|
|
2560
3007
|
errors++;
|
|
2561
3008
|
}
|
|
2562
3009
|
} else {
|
|
2563
|
-
const
|
|
3010
|
+
const err187 = {};
|
|
2564
3011
|
if (vErrors === null) {
|
|
2565
|
-
vErrors = [
|
|
3012
|
+
vErrors = [err187];
|
|
2566
3013
|
} else {
|
|
2567
|
-
vErrors.push(
|
|
3014
|
+
vErrors.push(err187);
|
|
2568
3015
|
}
|
|
2569
3016
|
errors++;
|
|
2570
3017
|
}
|
|
@@ -2572,378 +3019,421 @@ function validate11(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
2572
3019
|
}
|
|
2573
3020
|
}
|
|
2574
3021
|
}
|
|
2575
|
-
var
|
|
2576
|
-
errors =
|
|
3022
|
+
var _valid14 = _errs261 === errors;
|
|
3023
|
+
errors = _errs260;
|
|
2577
3024
|
if (vErrors !== null) {
|
|
2578
|
-
if (
|
|
2579
|
-
vErrors.length =
|
|
3025
|
+
if (_errs260) {
|
|
3026
|
+
vErrors.length = _errs260;
|
|
2580
3027
|
} else {
|
|
2581
3028
|
vErrors = null;
|
|
2582
3029
|
}
|
|
2583
3030
|
}
|
|
2584
|
-
if (
|
|
2585
|
-
const
|
|
2586
|
-
if (
|
|
2587
|
-
if (
|
|
2588
|
-
const
|
|
3031
|
+
if (_valid14) {
|
|
3032
|
+
const _errs264 = errors;
|
|
3033
|
+
if (data79 && typeof data79 == "object" && !Array.isArray(data79)) {
|
|
3034
|
+
if (data79.global === void 0) {
|
|
3035
|
+
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'" };
|
|
2589
3036
|
if (vErrors === null) {
|
|
2590
|
-
vErrors = [
|
|
3037
|
+
vErrors = [err188];
|
|
2591
3038
|
} else {
|
|
2592
|
-
vErrors.push(
|
|
3039
|
+
vErrors.push(err188);
|
|
2593
3040
|
}
|
|
2594
3041
|
errors++;
|
|
2595
3042
|
}
|
|
2596
|
-
if (
|
|
2597
|
-
if (true !==
|
|
2598
|
-
const
|
|
3043
|
+
if (data79.global !== void 0) {
|
|
3044
|
+
if (true !== data79.global) {
|
|
3045
|
+
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" };
|
|
2599
3046
|
if (vErrors === null) {
|
|
2600
|
-
vErrors = [
|
|
3047
|
+
vErrors = [err189];
|
|
2601
3048
|
} else {
|
|
2602
|
-
vErrors.push(
|
|
3049
|
+
vErrors.push(err189);
|
|
2603
3050
|
}
|
|
2604
3051
|
errors++;
|
|
2605
3052
|
}
|
|
2606
3053
|
}
|
|
2607
3054
|
}
|
|
2608
|
-
var
|
|
2609
|
-
|
|
3055
|
+
var _valid14 = _errs264 === errors;
|
|
3056
|
+
valid90 = _valid14;
|
|
2610
3057
|
}
|
|
2611
|
-
if (!
|
|
2612
|
-
const
|
|
3058
|
+
if (!valid90) {
|
|
3059
|
+
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' };
|
|
2613
3060
|
if (vErrors === null) {
|
|
2614
|
-
vErrors = [
|
|
3061
|
+
vErrors = [err190];
|
|
2615
3062
|
} else {
|
|
2616
|
-
vErrors.push(
|
|
3063
|
+
vErrors.push(err190);
|
|
2617
3064
|
}
|
|
2618
3065
|
errors++;
|
|
2619
3066
|
}
|
|
2620
|
-
if (
|
|
2621
|
-
for (const key28 in
|
|
3067
|
+
if (data79 && typeof data79 == "object" && !Array.isArray(data79)) {
|
|
3068
|
+
for (const key28 in data79) {
|
|
2622
3069
|
if (!(key28 === "global" || key28 === "ip" || key28 === "service")) {
|
|
2623
|
-
const
|
|
3070
|
+
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" };
|
|
2624
3071
|
if (vErrors === null) {
|
|
2625
|
-
vErrors = [
|
|
3072
|
+
vErrors = [err191];
|
|
2626
3073
|
} else {
|
|
2627
|
-
vErrors.push(
|
|
3074
|
+
vErrors.push(err191);
|
|
2628
3075
|
}
|
|
2629
3076
|
errors++;
|
|
2630
3077
|
}
|
|
2631
3078
|
}
|
|
2632
|
-
if (
|
|
2633
|
-
if (typeof
|
|
2634
|
-
const
|
|
3079
|
+
if (data79.global !== void 0) {
|
|
3080
|
+
if (typeof data79.global !== "boolean") {
|
|
3081
|
+
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" };
|
|
2635
3082
|
if (vErrors === null) {
|
|
2636
|
-
vErrors = [
|
|
3083
|
+
vErrors = [err192];
|
|
2637
3084
|
} else {
|
|
2638
|
-
vErrors.push(
|
|
3085
|
+
vErrors.push(err192);
|
|
2639
3086
|
}
|
|
2640
3087
|
errors++;
|
|
2641
3088
|
}
|
|
2642
3089
|
}
|
|
2643
|
-
if (
|
|
2644
|
-
let
|
|
2645
|
-
if (typeof
|
|
2646
|
-
if (func2(
|
|
2647
|
-
const
|
|
3090
|
+
if (data79.ip !== void 0) {
|
|
3091
|
+
let data83 = data79.ip;
|
|
3092
|
+
if (typeof data83 === "string") {
|
|
3093
|
+
if (func2(data83) < 1) {
|
|
3094
|
+
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" };
|
|
2648
3095
|
if (vErrors === null) {
|
|
2649
|
-
vErrors = [
|
|
3096
|
+
vErrors = [err193];
|
|
2650
3097
|
} else {
|
|
2651
|
-
vErrors.push(
|
|
3098
|
+
vErrors.push(err193);
|
|
2652
3099
|
}
|
|
2653
3100
|
errors++;
|
|
2654
3101
|
}
|
|
2655
3102
|
} else {
|
|
2656
|
-
const
|
|
3103
|
+
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" };
|
|
2657
3104
|
if (vErrors === null) {
|
|
2658
|
-
vErrors = [
|
|
3105
|
+
vErrors = [err194];
|
|
2659
3106
|
} else {
|
|
2660
|
-
vErrors.push(
|
|
3107
|
+
vErrors.push(err194);
|
|
2661
3108
|
}
|
|
2662
3109
|
errors++;
|
|
2663
3110
|
}
|
|
2664
3111
|
}
|
|
2665
|
-
if (
|
|
2666
|
-
if (typeof
|
|
2667
|
-
const
|
|
3112
|
+
if (data79.service !== void 0) {
|
|
3113
|
+
if (typeof data79.service !== "string") {
|
|
3114
|
+
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" };
|
|
2668
3115
|
if (vErrors === null) {
|
|
2669
|
-
vErrors = [
|
|
3116
|
+
vErrors = [err195];
|
|
2670
3117
|
} else {
|
|
2671
|
-
vErrors.push(
|
|
3118
|
+
vErrors.push(err195);
|
|
2672
3119
|
}
|
|
2673
3120
|
errors++;
|
|
2674
3121
|
}
|
|
2675
3122
|
}
|
|
2676
3123
|
} else {
|
|
2677
|
-
const
|
|
3124
|
+
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" };
|
|
2678
3125
|
if (vErrors === null) {
|
|
2679
|
-
vErrors = [
|
|
3126
|
+
vErrors = [err196];
|
|
2680
3127
|
} else {
|
|
2681
|
-
vErrors.push(
|
|
3128
|
+
vErrors.push(err196);
|
|
2682
3129
|
}
|
|
2683
3130
|
errors++;
|
|
2684
3131
|
}
|
|
2685
3132
|
}
|
|
2686
3133
|
} else {
|
|
2687
|
-
const
|
|
3134
|
+
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" };
|
|
2688
3135
|
if (vErrors === null) {
|
|
2689
|
-
vErrors = [
|
|
3136
|
+
vErrors = [err197];
|
|
2690
3137
|
} else {
|
|
2691
|
-
vErrors.push(
|
|
3138
|
+
vErrors.push(err197);
|
|
2692
3139
|
}
|
|
2693
3140
|
errors++;
|
|
2694
3141
|
}
|
|
2695
3142
|
}
|
|
2696
3143
|
} else {
|
|
2697
|
-
const
|
|
3144
|
+
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" };
|
|
2698
3145
|
if (vErrors === null) {
|
|
2699
|
-
vErrors = [
|
|
3146
|
+
vErrors = [err198];
|
|
2700
3147
|
} else {
|
|
2701
|
-
vErrors.push(
|
|
3148
|
+
vErrors.push(err198);
|
|
2702
3149
|
}
|
|
2703
3150
|
errors++;
|
|
2704
3151
|
}
|
|
2705
3152
|
}
|
|
2706
3153
|
} else {
|
|
2707
|
-
const
|
|
3154
|
+
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" };
|
|
3155
|
+
if (vErrors === null) {
|
|
3156
|
+
vErrors = [err199];
|
|
3157
|
+
} else {
|
|
3158
|
+
vErrors.push(err199);
|
|
3159
|
+
}
|
|
3160
|
+
errors++;
|
|
3161
|
+
}
|
|
3162
|
+
var _valid12 = _errs206 === errors;
|
|
3163
|
+
if (_valid12) {
|
|
3164
|
+
valid67 = true;
|
|
3165
|
+
passing10 = 0;
|
|
3166
|
+
}
|
|
3167
|
+
const _errs273 = errors;
|
|
3168
|
+
if (data60 !== null) {
|
|
3169
|
+
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" };
|
|
3170
|
+
if (vErrors === null) {
|
|
3171
|
+
vErrors = [err200];
|
|
3172
|
+
} else {
|
|
3173
|
+
vErrors.push(err200);
|
|
3174
|
+
}
|
|
3175
|
+
errors++;
|
|
3176
|
+
}
|
|
3177
|
+
var _valid12 = _errs273 === errors;
|
|
3178
|
+
if (_valid12 && valid67) {
|
|
3179
|
+
valid67 = false;
|
|
3180
|
+
passing10 = [passing10, 1];
|
|
3181
|
+
} else {
|
|
3182
|
+
if (_valid12) {
|
|
3183
|
+
valid67 = true;
|
|
3184
|
+
passing10 = 1;
|
|
3185
|
+
}
|
|
3186
|
+
}
|
|
3187
|
+
if (!valid67) {
|
|
3188
|
+
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" };
|
|
2708
3189
|
if (vErrors === null) {
|
|
2709
|
-
vErrors = [
|
|
3190
|
+
vErrors = [err201];
|
|
2710
3191
|
} else {
|
|
2711
|
-
vErrors.push(
|
|
3192
|
+
vErrors.push(err201);
|
|
2712
3193
|
}
|
|
2713
3194
|
errors++;
|
|
3195
|
+
} else {
|
|
3196
|
+
errors = _errs205;
|
|
3197
|
+
if (vErrors !== null) {
|
|
3198
|
+
if (_errs205) {
|
|
3199
|
+
vErrors.length = _errs205;
|
|
3200
|
+
} else {
|
|
3201
|
+
vErrors = null;
|
|
3202
|
+
}
|
|
3203
|
+
}
|
|
2714
3204
|
}
|
|
2715
3205
|
}
|
|
2716
|
-
if (
|
|
2717
|
-
let
|
|
2718
|
-
if (typeof
|
|
2719
|
-
if (func2(
|
|
2720
|
-
const
|
|
3206
|
+
if (data45.image !== void 0) {
|
|
3207
|
+
let data85 = data45.image;
|
|
3208
|
+
if (typeof data85 === "string") {
|
|
3209
|
+
if (func2(data85) < 1) {
|
|
3210
|
+
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" };
|
|
2721
3211
|
if (vErrors === null) {
|
|
2722
|
-
vErrors = [
|
|
3212
|
+
vErrors = [err202];
|
|
2723
3213
|
} else {
|
|
2724
|
-
vErrors.push(
|
|
3214
|
+
vErrors.push(err202);
|
|
2725
3215
|
}
|
|
2726
3216
|
errors++;
|
|
2727
3217
|
}
|
|
2728
3218
|
} else {
|
|
2729
|
-
const
|
|
3219
|
+
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" };
|
|
2730
3220
|
if (vErrors === null) {
|
|
2731
|
-
vErrors = [
|
|
3221
|
+
vErrors = [err203];
|
|
2732
3222
|
} else {
|
|
2733
|
-
vErrors.push(
|
|
3223
|
+
vErrors.push(err203);
|
|
2734
3224
|
}
|
|
2735
3225
|
errors++;
|
|
2736
3226
|
}
|
|
2737
3227
|
}
|
|
2738
|
-
if (
|
|
2739
|
-
let
|
|
2740
|
-
if (
|
|
2741
|
-
for (const key29 in
|
|
3228
|
+
if (data45.params !== void 0) {
|
|
3229
|
+
let data86 = data45.params;
|
|
3230
|
+
if (data86 && typeof data86 == "object" && !Array.isArray(data86)) {
|
|
3231
|
+
for (const key29 in data86) {
|
|
2742
3232
|
if (!(key29 === "storage" || key29 === "permissions")) {
|
|
2743
|
-
const
|
|
3233
|
+
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" };
|
|
2744
3234
|
if (vErrors === null) {
|
|
2745
|
-
vErrors = [
|
|
3235
|
+
vErrors = [err204];
|
|
2746
3236
|
} else {
|
|
2747
|
-
vErrors.push(
|
|
3237
|
+
vErrors.push(err204);
|
|
2748
3238
|
}
|
|
2749
3239
|
errors++;
|
|
2750
3240
|
}
|
|
2751
3241
|
}
|
|
2752
|
-
if (
|
|
2753
|
-
let
|
|
2754
|
-
if (
|
|
2755
|
-
for (const key30 in
|
|
2756
|
-
let
|
|
2757
|
-
if (
|
|
2758
|
-
for (const key31 in
|
|
3242
|
+
if (data86.storage !== void 0) {
|
|
3243
|
+
let data87 = data86.storage;
|
|
3244
|
+
if (data87 && typeof data87 == "object" && !Array.isArray(data87)) {
|
|
3245
|
+
for (const key30 in data87) {
|
|
3246
|
+
let data88 = data87[key30];
|
|
3247
|
+
if (data88 && typeof data88 == "object" && !Array.isArray(data88)) {
|
|
3248
|
+
for (const key31 in data88) {
|
|
2759
3249
|
if (!(key31 === "mount" || key31 === "readOnly")) {
|
|
2760
|
-
const
|
|
3250
|
+
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" };
|
|
2761
3251
|
if (vErrors === null) {
|
|
2762
|
-
vErrors = [
|
|
3252
|
+
vErrors = [err205];
|
|
2763
3253
|
} else {
|
|
2764
|
-
vErrors.push(
|
|
3254
|
+
vErrors.push(err205);
|
|
2765
3255
|
}
|
|
2766
3256
|
errors++;
|
|
2767
3257
|
}
|
|
2768
3258
|
}
|
|
2769
|
-
if (
|
|
2770
|
-
let
|
|
2771
|
-
if (typeof
|
|
2772
|
-
if (func2(
|
|
2773
|
-
const
|
|
3259
|
+
if (data88.mount !== void 0) {
|
|
3260
|
+
let data89 = data88.mount;
|
|
3261
|
+
if (typeof data89 === "string") {
|
|
3262
|
+
if (func2(data89) < 1) {
|
|
3263
|
+
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" };
|
|
2774
3264
|
if (vErrors === null) {
|
|
2775
|
-
vErrors = [
|
|
3265
|
+
vErrors = [err206];
|
|
2776
3266
|
} else {
|
|
2777
|
-
vErrors.push(
|
|
3267
|
+
vErrors.push(err206);
|
|
2778
3268
|
}
|
|
2779
3269
|
errors++;
|
|
2780
3270
|
}
|
|
2781
|
-
if (!
|
|
2782
|
-
const
|
|
3271
|
+
if (!pattern10.test(data89)) {
|
|
3272
|
+
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 "^/"' };
|
|
2783
3273
|
if (vErrors === null) {
|
|
2784
|
-
vErrors = [
|
|
3274
|
+
vErrors = [err207];
|
|
2785
3275
|
} else {
|
|
2786
|
-
vErrors.push(
|
|
3276
|
+
vErrors.push(err207);
|
|
2787
3277
|
}
|
|
2788
3278
|
errors++;
|
|
2789
3279
|
}
|
|
2790
3280
|
} else {
|
|
2791
|
-
const
|
|
3281
|
+
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" };
|
|
2792
3282
|
if (vErrors === null) {
|
|
2793
|
-
vErrors = [
|
|
3283
|
+
vErrors = [err208];
|
|
2794
3284
|
} else {
|
|
2795
|
-
vErrors.push(
|
|
3285
|
+
vErrors.push(err208);
|
|
2796
3286
|
}
|
|
2797
3287
|
errors++;
|
|
2798
3288
|
}
|
|
2799
3289
|
}
|
|
2800
|
-
if (
|
|
2801
|
-
if (typeof
|
|
2802
|
-
const
|
|
3290
|
+
if (data88.readOnly !== void 0) {
|
|
3291
|
+
if (typeof data88.readOnly !== "boolean") {
|
|
3292
|
+
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" };
|
|
2803
3293
|
if (vErrors === null) {
|
|
2804
|
-
vErrors = [
|
|
3294
|
+
vErrors = [err209];
|
|
2805
3295
|
} else {
|
|
2806
|
-
vErrors.push(
|
|
3296
|
+
vErrors.push(err209);
|
|
2807
3297
|
}
|
|
2808
3298
|
errors++;
|
|
2809
3299
|
}
|
|
2810
3300
|
}
|
|
2811
3301
|
} else {
|
|
2812
|
-
const
|
|
3302
|
+
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" };
|
|
2813
3303
|
if (vErrors === null) {
|
|
2814
|
-
vErrors = [
|
|
3304
|
+
vErrors = [err210];
|
|
2815
3305
|
} else {
|
|
2816
|
-
vErrors.push(
|
|
3306
|
+
vErrors.push(err210);
|
|
2817
3307
|
}
|
|
2818
3308
|
errors++;
|
|
2819
3309
|
}
|
|
2820
3310
|
}
|
|
2821
3311
|
} else {
|
|
2822
|
-
const
|
|
3312
|
+
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" };
|
|
2823
3313
|
if (vErrors === null) {
|
|
2824
|
-
vErrors = [
|
|
3314
|
+
vErrors = [err211];
|
|
2825
3315
|
} else {
|
|
2826
|
-
vErrors.push(
|
|
3316
|
+
vErrors.push(err211);
|
|
2827
3317
|
}
|
|
2828
3318
|
errors++;
|
|
2829
3319
|
}
|
|
2830
3320
|
}
|
|
2831
|
-
if (
|
|
2832
|
-
let
|
|
2833
|
-
if (
|
|
2834
|
-
for (const key32 in
|
|
3321
|
+
if (data86.permissions !== void 0) {
|
|
3322
|
+
let data91 = data86.permissions;
|
|
3323
|
+
if (data91 && typeof data91 == "object" && !Array.isArray(data91)) {
|
|
3324
|
+
for (const key32 in data91) {
|
|
2835
3325
|
if (!(key32 === "read")) {
|
|
2836
|
-
const
|
|
3326
|
+
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" };
|
|
2837
3327
|
if (vErrors === null) {
|
|
2838
|
-
vErrors = [
|
|
3328
|
+
vErrors = [err212];
|
|
2839
3329
|
} else {
|
|
2840
|
-
vErrors.push(
|
|
3330
|
+
vErrors.push(err212);
|
|
2841
3331
|
}
|
|
2842
3332
|
errors++;
|
|
2843
3333
|
}
|
|
2844
3334
|
}
|
|
2845
|
-
if (
|
|
2846
|
-
let
|
|
2847
|
-
if (Array.isArray(
|
|
2848
|
-
const len16 =
|
|
3335
|
+
if (data91.read !== void 0) {
|
|
3336
|
+
let data92 = data91.read;
|
|
3337
|
+
if (Array.isArray(data92)) {
|
|
3338
|
+
const len16 = data92.length;
|
|
2849
3339
|
for (let i16 = 0; i16 < len16; i16++) {
|
|
2850
|
-
let
|
|
2851
|
-
if (typeof
|
|
2852
|
-
const
|
|
3340
|
+
let data93 = data92[i16];
|
|
3341
|
+
if (typeof data93 !== "string") {
|
|
3342
|
+
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" };
|
|
2853
3343
|
if (vErrors === null) {
|
|
2854
|
-
vErrors = [
|
|
3344
|
+
vErrors = [err213];
|
|
2855
3345
|
} else {
|
|
2856
|
-
vErrors.push(
|
|
3346
|
+
vErrors.push(err213);
|
|
2857
3347
|
}
|
|
2858
3348
|
errors++;
|
|
2859
3349
|
}
|
|
2860
|
-
if (!(
|
|
2861
|
-
const
|
|
3350
|
+
if (!(data93 === "deployment" || data93 === "logs")) {
|
|
3351
|
+
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" };
|
|
2862
3352
|
if (vErrors === null) {
|
|
2863
|
-
vErrors = [
|
|
3353
|
+
vErrors = [err214];
|
|
2864
3354
|
} else {
|
|
2865
|
-
vErrors.push(
|
|
3355
|
+
vErrors.push(err214);
|
|
2866
3356
|
}
|
|
2867
3357
|
errors++;
|
|
2868
3358
|
}
|
|
2869
3359
|
}
|
|
2870
3360
|
} else {
|
|
2871
|
-
const
|
|
3361
|
+
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" };
|
|
2872
3362
|
if (vErrors === null) {
|
|
2873
|
-
vErrors = [
|
|
3363
|
+
vErrors = [err215];
|
|
2874
3364
|
} else {
|
|
2875
|
-
vErrors.push(
|
|
3365
|
+
vErrors.push(err215);
|
|
2876
3366
|
}
|
|
2877
3367
|
errors++;
|
|
2878
3368
|
}
|
|
2879
3369
|
}
|
|
2880
3370
|
} else {
|
|
2881
|
-
const
|
|
3371
|
+
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" };
|
|
2882
3372
|
if (vErrors === null) {
|
|
2883
|
-
vErrors = [
|
|
3373
|
+
vErrors = [err216];
|
|
2884
3374
|
} else {
|
|
2885
|
-
vErrors.push(
|
|
3375
|
+
vErrors.push(err216);
|
|
2886
3376
|
}
|
|
2887
3377
|
errors++;
|
|
2888
3378
|
}
|
|
2889
3379
|
}
|
|
2890
3380
|
} else {
|
|
2891
|
-
const
|
|
3381
|
+
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" };
|
|
2892
3382
|
if (vErrors === null) {
|
|
2893
|
-
vErrors = [
|
|
3383
|
+
vErrors = [err217];
|
|
2894
3384
|
} else {
|
|
2895
|
-
vErrors.push(
|
|
3385
|
+
vErrors.push(err217);
|
|
2896
3386
|
}
|
|
2897
3387
|
errors++;
|
|
2898
3388
|
}
|
|
2899
3389
|
}
|
|
2900
3390
|
} else {
|
|
2901
|
-
const
|
|
3391
|
+
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" };
|
|
2902
3392
|
if (vErrors === null) {
|
|
2903
|
-
vErrors = [
|
|
3393
|
+
vErrors = [err218];
|
|
2904
3394
|
} else {
|
|
2905
|
-
vErrors.push(
|
|
3395
|
+
vErrors.push(err218);
|
|
2906
3396
|
}
|
|
2907
3397
|
errors++;
|
|
2908
3398
|
}
|
|
2909
3399
|
}
|
|
2910
3400
|
} else {
|
|
2911
|
-
const
|
|
3401
|
+
const err219 = { instancePath: instancePath + "/services", schemaPath: "#/properties/services/type", keyword: "type", params: { type: "object" }, message: "must be object" };
|
|
2912
3402
|
if (vErrors === null) {
|
|
2913
|
-
vErrors = [
|
|
3403
|
+
vErrors = [err219];
|
|
2914
3404
|
} else {
|
|
2915
|
-
vErrors.push(
|
|
3405
|
+
vErrors.push(err219);
|
|
2916
3406
|
}
|
|
2917
3407
|
errors++;
|
|
2918
3408
|
}
|
|
2919
3409
|
}
|
|
2920
3410
|
if (data.version !== void 0) {
|
|
2921
|
-
let
|
|
2922
|
-
if (typeof
|
|
2923
|
-
const
|
|
3411
|
+
let data94 = data.version;
|
|
3412
|
+
if (typeof data94 !== "string") {
|
|
3413
|
+
const err220 = { instancePath: instancePath + "/version", schemaPath: "#/properties/version/type", keyword: "type", params: { type: "string" }, message: "must be string" };
|
|
2924
3414
|
if (vErrors === null) {
|
|
2925
|
-
vErrors = [
|
|
3415
|
+
vErrors = [err220];
|
|
2926
3416
|
} else {
|
|
2927
|
-
vErrors.push(
|
|
3417
|
+
vErrors.push(err220);
|
|
2928
3418
|
}
|
|
2929
3419
|
errors++;
|
|
2930
3420
|
}
|
|
2931
|
-
if (!(
|
|
2932
|
-
const
|
|
3421
|
+
if (!(data94 === "2.0" || data94 === "2.1")) {
|
|
3422
|
+
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" };
|
|
2933
3423
|
if (vErrors === null) {
|
|
2934
|
-
vErrors = [
|
|
3424
|
+
vErrors = [err221];
|
|
2935
3425
|
} else {
|
|
2936
|
-
vErrors.push(
|
|
3426
|
+
vErrors.push(err221);
|
|
2937
3427
|
}
|
|
2938
3428
|
errors++;
|
|
2939
3429
|
}
|
|
2940
3430
|
}
|
|
2941
3431
|
} else {
|
|
2942
|
-
const
|
|
3432
|
+
const err222 = { instancePath, schemaPath: "#/type", keyword: "type", params: { type: "object" }, message: "must be object" };
|
|
2943
3433
|
if (vErrors === null) {
|
|
2944
|
-
vErrors = [
|
|
3434
|
+
vErrors = [err222];
|
|
2945
3435
|
} else {
|
|
2946
|
-
vErrors.push(
|
|
3436
|
+
vErrors.push(err222);
|
|
2947
3437
|
}
|
|
2948
3438
|
errors++;
|
|
2949
3439
|
}
|
|
@@ -3010,7 +3500,8 @@ function getDefaultErrorMessage(error, schema3) {
|
|
|
3010
3500
|
return `"${getFieldName(error.instancePath)}" at "${dirname(error.instancePath)}" must have at most ${getSchemaFieldByPath(error.schemaPath, schema3)} items.`;
|
|
3011
3501
|
}
|
|
3012
3502
|
if (error.keyword === "minimum") {
|
|
3013
|
-
|
|
3503
|
+
const limit = error.params.limit ?? getSchemaFieldByPath(error.schemaPath, schema3);
|
|
3504
|
+
return `"${getFieldName(error.instancePath)}" at "${dirname(error.instancePath)}" must be at least ${limit}.`;
|
|
3014
3505
|
}
|
|
3015
3506
|
if (error.keyword === "exclusiveMinimum") {
|
|
3016
3507
|
return `"${getFieldName(error.instancePath)}" at "${dirname(error.instancePath)}" must be greater than ${getSchemaFieldByPath(error.schemaPath, schema3)}.`;
|
|
@@ -3019,7 +3510,8 @@ function getDefaultErrorMessage(error, schema3) {
|
|
|
3019
3510
|
return `"${getFieldName(error.instancePath)}" at "${dirname(error.instancePath)}" must be less than ${getSchemaFieldByPath(error.schemaPath, schema3)}.`;
|
|
3020
3511
|
}
|
|
3021
3512
|
if (error.keyword === "maximum") {
|
|
3022
|
-
|
|
3513
|
+
const limit = error.params.limit ?? getSchemaFieldByPath(error.schemaPath, schema3);
|
|
3514
|
+
return `"${getFieldName(error.instancePath)}" at "${dirname(error.instancePath)}" must be at most ${limit}.`;
|
|
3023
3515
|
}
|
|
3024
3516
|
if (error.keyword === "minProperties") {
|
|
3025
3517
|
const suffix = error.params.limit === 1 ? "property" : "properties";
|
|
@@ -3044,7 +3536,7 @@ function dirname(path) {
|
|
|
3044
3536
|
return path.slice(0, lastPartIndex);
|
|
3045
3537
|
}
|
|
3046
3538
|
function getSchemaFieldByPath(keywordLocation, schema3) {
|
|
3047
|
-
return keywordLocation.split("/").slice(1).reduce((schema4, key) => schema4[key], schema3);
|
|
3539
|
+
return keywordLocation.split("/").slice(1).reduce((schema4, key) => schema4?.[key], schema3);
|
|
3048
3540
|
}
|
|
3049
3541
|
function getErrorLocation(path) {
|
|
3050
3542
|
return path ? ` at "${path}"` : "";
|
|
@@ -3072,10 +3564,10 @@ function stringToBoolean(str) {
|
|
|
3072
3564
|
|
|
3073
3565
|
// src/sdl/validateSDL/validateSDL.ts
|
|
3074
3566
|
var ERROR_MESSAGES = {
|
|
3075
|
-
"#/definitions/
|
|
3567
|
+
"#/definitions/storageRamClassMustNotBePersistent"(error) {
|
|
3076
3568
|
return `"ram" storage${getErrorLocation(dirname(error.instancePath))} cannot be persistent`;
|
|
3077
3569
|
},
|
|
3078
|
-
"#/definitions/exposeToWithIpEnforcesGlobal
|
|
3570
|
+
"#/definitions/exposeToWithIpEnforcesGlobal"() {
|
|
3079
3571
|
return `If an IP is declared, the directive must be declared as global.`;
|
|
3080
3572
|
}
|
|
3081
3573
|
};
|
|
@@ -3868,9 +4360,9 @@ var _SDL = class _SDL {
|
|
|
3868
4360
|
computeEndpointSequenceNumbers(sdl) {
|
|
3869
4361
|
return Object.fromEntries(
|
|
3870
4362
|
Object.values(sdl.services).flatMap(
|
|
3871
|
-
(service) => service.expose
|
|
4363
|
+
(service) => service.expose?.flatMap(
|
|
3872
4364
|
(expose) => expose.to ? expose.to.filter((to) => to.global && to.ip?.length > 0).map((to) => to.ip).sort().map((ip, index) => [ip, index + 1]) : []
|
|
3873
|
-
)
|
|
4365
|
+
) ?? []
|
|
3874
4366
|
)
|
|
3875
4367
|
);
|
|
3876
4368
|
}
|
|
@@ -4658,7 +5150,7 @@ var CertificateManager = class {
|
|
|
4658
5150
|
const { prvKeyObj, pubKeyObj } = rs.KEYUTIL.generateKeypair("EC", "secp256r1");
|
|
4659
5151
|
const cert = new rs.KJUR.asn1.x509.Certificate({
|
|
4660
5152
|
version: 3,
|
|
4661
|
-
serial: { int: Math.floor(Date.now() * 1e3) },
|
|
5153
|
+
serial: { int: options?.serial ?? Math.floor(Date.now() * 1e3) },
|
|
4662
5154
|
issuer: { str: "/CN=" + address },
|
|
4663
5155
|
notbefore: notBeforeStr,
|
|
4664
5156
|
notafter: notAfterStr,
|
|
@@ -6688,13 +7180,13 @@ var serviceLoader = createServiceLoader([
|
|
|
6688
7180
|
() => import("./query_akash-RWDIACGH.js").then((m) => m.Query),
|
|
6689
7181
|
() => import("./tx_akash-ACY5H4V3.js").then((m) => m.Msg),
|
|
6690
7182
|
() => import("./query_akash-YADYAEYF.js").then((m) => m.Query),
|
|
6691
|
-
() => import("./query_akash-
|
|
7183
|
+
() => import("./query_akash-TKFQCVYV.js").then((m) => m.Query),
|
|
6692
7184
|
() => import("./tx_akash-A6JLTFE3.js").then((m) => m.Msg),
|
|
6693
|
-
() => import("./types_akash-
|
|
7185
|
+
() => import("./types_akash-LWHM4M7S.js").then((m) => m.ABCI),
|
|
6694
7186
|
() => import("./query_akash-2L2Y5GBF.js").then((m) => m.Service),
|
|
6695
7187
|
() => import("./reflection_akash-7N6IBKOV.js").then((m) => m.ReflectionService),
|
|
6696
7188
|
() => import("./reflection_akash-QXZHFUVK.js").then((m) => m.ReflectionService),
|
|
6697
|
-
() => import("./query_akash-
|
|
7189
|
+
() => import("./query_akash-NELAC6IV.js").then((m) => m.Service),
|
|
6698
7190
|
() => import("./tx_akash-7ZQ464ZM.js").then((m) => m.Msg),
|
|
6699
7191
|
() => import("./query_akash-EM4NPFZC.js").then((m) => m.Query),
|
|
6700
7192
|
() => import("./tx_akash-K4GE3YDZ.js").then((m) => m.Msg),
|
|
@@ -6703,17 +7195,17 @@ var serviceLoader = createServiceLoader([
|
|
|
6703
7195
|
() => import("./query_akash-RYPKVZ7C.js").then((m) => m.Query),
|
|
6704
7196
|
() => import("./tx_akash-RUUUEZS3.js").then((m) => m.Msg),
|
|
6705
7197
|
() => import("./tx_akash-WEQYHIC3.js").then((m) => m.Msg),
|
|
6706
|
-
() => import("./query_akash-
|
|
7198
|
+
() => import("./query_akash-EEPQJYKA.js").then((m) => m.Query),
|
|
6707
7199
|
() => import("./tx_akash-ZTQQ7B6W.js").then((m) => m.Msg),
|
|
6708
7200
|
() => import("./query_akash-2AHFSNJL.js").then((m) => m.Query),
|
|
6709
7201
|
() => import("./query_akash-QD6WT5TA.js").then((m) => m.Query),
|
|
6710
7202
|
() => import("./tx_akash-A37CN5OX.js").then((m) => m.Msg),
|
|
6711
|
-
() => import("./query_akash-
|
|
7203
|
+
() => import("./query_akash-JGZ2VS5H.js").then((m) => m.Query),
|
|
6712
7204
|
() => import("./tx_akash-3YCJMS6Y.js").then((m) => m.Msg),
|
|
6713
|
-
() => import("./query_akash-
|
|
6714
|
-
() => import("./tx_akash-
|
|
6715
|
-
() => import("./query_akash-
|
|
6716
|
-
() => import("./tx_akash-
|
|
7205
|
+
() => import("./query_akash-X76NVZ2L.js").then((m) => m.Query),
|
|
7206
|
+
() => import("./tx_akash-3ZAQZWMP.js").then((m) => m.Msg),
|
|
7207
|
+
() => import("./query_akash-QMVZT2ZN.js").then((m) => m.Query),
|
|
7208
|
+
() => import("./tx_akash-FCS2KVR7.js").then((m) => m.Msg),
|
|
6717
7209
|
() => import("./query_akash-RPKTKSHZ.js").then((m) => m.Query),
|
|
6718
7210
|
() => import("./tx_akash-U5ZGXJJO.js").then((m) => m.Msg),
|
|
6719
7211
|
() => import("./query_akash-ASZNXGQS.js").then((m) => m.Query),
|
|
@@ -6726,10 +7218,10 @@ var serviceLoader = createServiceLoader([
|
|
|
6726
7218
|
() => import("./reflection_akash-YHEVUIB6.js").then((m) => m.ReflectionService),
|
|
6727
7219
|
() => import("./query_akash-RNOEMF2J.js").then((m) => m.Query),
|
|
6728
7220
|
() => import("./tx_akash-PJAUGODB.js").then((m) => m.Msg),
|
|
6729
|
-
() => import("./query_akash-
|
|
6730
|
-
() => import("./tx_akash-
|
|
6731
|
-
() => import("./grpc_akash-
|
|
6732
|
-
() => import("./service_akash-
|
|
7221
|
+
() => import("./query_akash-K53WZSU3.js").then((m) => m.Query),
|
|
7222
|
+
() => import("./tx_akash-YHLPPFSA.js").then((m) => m.Msg),
|
|
7223
|
+
() => import("./grpc_akash-YXP225OJ.js").then((m) => m.ABCIListenerService),
|
|
7224
|
+
() => import("./service_akash-CM7RP67D.js").then((m) => m.Service),
|
|
6733
7225
|
() => import("./query_akash-AHDMWBOV.js").then((m) => m.Query),
|
|
6734
7226
|
() => import("./tx_akash-PAKHDTTZ.js").then((m) => m.Msg),
|
|
6735
7227
|
() => import("./tx_akash-XMYD5SGR.js").then((m) => m.Msg)
|
|
@@ -8622,20 +9114,22 @@ function createSDK(queryTransport, txTransport) {
|
|
|
8622
9114
|
var serviceLoader2 = createServiceLoader([
|
|
8623
9115
|
() => import("./query_akash-ZPJ6T5NI.js").then((m) => m.Query),
|
|
8624
9116
|
() => import("./service_akash-EJTYKJTM.js").then((m) => m.Msg),
|
|
8625
|
-
() => import("./query_akash-
|
|
8626
|
-
() => import("./service_akash-
|
|
9117
|
+
() => import("./query_akash-3UBRLLRZ.js").then((m) => m.Query),
|
|
9118
|
+
() => import("./service_akash-UFTUJDPM.js").then((m) => m.Msg),
|
|
8627
9119
|
() => import("./query_akash-LWCKZPHL.js").then((m) => m.Query),
|
|
8628
9120
|
() => import("./service_akash-5O4BYIF2.js").then((m) => m.Msg),
|
|
8629
|
-
() => import("./query_akash-
|
|
9121
|
+
() => import("./query_akash-CKZRI7R6.js").then((m) => m.Query),
|
|
8630
9122
|
() => import("./service_akash-5JSE44LJ.js").then((m) => m.Msg),
|
|
8631
9123
|
() => import("./query_akash-GYTMDAAY.js").then((m) => m.Query),
|
|
8632
9124
|
() => import("./query_akash-KKNAAUKF.js").then((m) => m.Query),
|
|
8633
|
-
() => import("./query_akash-
|
|
9125
|
+
() => import("./query_akash-FU3ACWAO.js").then((m) => m.Query),
|
|
8634
9126
|
() => import("./service_akash-KKV7TGYK.js").then((m) => m.Msg),
|
|
8635
|
-
() => import("./query_akash-
|
|
9127
|
+
() => import("./query_akash-3LAHGVQJ.js").then((m) => m.Query),
|
|
8636
9128
|
() => import("./service_akash-QEN5EQUY.js").then((m) => m.Msg),
|
|
8637
|
-
() => import("./query_akash-
|
|
8638
|
-
() => import("./service_akash-
|
|
9129
|
+
() => import("./query_akash-UVZZQTKV.js").then((m) => m.Query),
|
|
9130
|
+
() => import("./service_akash-DSFYKCTK.js").then((m) => m.Msg),
|
|
9131
|
+
() => import("./query_akash-QW7MA3NO.js").then((m) => m.Query),
|
|
9132
|
+
() => import("./service_akash-3DIKTIOI.js").then((m) => m.Msg),
|
|
8639
9133
|
() => import("./query_akash-ERHU5RE6.js").then((m) => m.Query),
|
|
8640
9134
|
() => import("./service_akash-7YFQQXNZ.js").then((m) => m.Msg),
|
|
8641
9135
|
() => import("./query_akash-JQTWE7KL.js").then((m) => m.Query),
|
|
@@ -8819,7 +9313,7 @@ function createSDK2(queryTransport, txTransport) {
|
|
|
8819
9313
|
return getClient(service).group(input, options);
|
|
8820
9314
|
}, { path: [6, "group"], serviceLoader: serviceLoader2 }),
|
|
8821
9315
|
/**
|
|
8822
|
-
* getParams returns the total set of
|
|
9316
|
+
* getParams returns the total set of deployment parameters.
|
|
8823
9317
|
*/
|
|
8824
9318
|
getParams: withMetadata(async function getParams(input = {}, options) {
|
|
8825
9319
|
const service = await serviceLoader2.loadAt(6);
|
|
@@ -8979,7 +9473,7 @@ function createSDK2(queryTransport, txTransport) {
|
|
|
8979
9473
|
return getClient(service).lease(input, options);
|
|
8980
9474
|
}, { path: [12, "lease"], serviceLoader: serviceLoader2 }),
|
|
8981
9475
|
/**
|
|
8982
|
-
* getParams returns the total set of
|
|
9476
|
+
* getParams returns the total set of market parameters.
|
|
8983
9477
|
*/
|
|
8984
9478
|
getParams: withMetadata(async function getParams(input = {}, options) {
|
|
8985
9479
|
const service = await serviceLoader2.loadAt(12);
|
|
@@ -9042,7 +9536,7 @@ function createSDK2(queryTransport, txTransport) {
|
|
|
9042
9536
|
return getClient(service).prices(input, options);
|
|
9043
9537
|
}, { path: [14, "prices"], serviceLoader: serviceLoader2 }),
|
|
9044
9538
|
/**
|
|
9045
|
-
* getParams returns the total set of
|
|
9539
|
+
* getParams returns the total set of oracle parameters.
|
|
9046
9540
|
*/
|
|
9047
9541
|
getParams: withMetadata(async function getParams(input = {}, options) {
|
|
9048
9542
|
const service = await serviceLoader2.loadAt(14);
|
|
@@ -9072,6 +9566,46 @@ function createSDK2(queryTransport, txTransport) {
|
|
|
9072
9566
|
const service = await serviceLoader2.loadAt(15);
|
|
9073
9567
|
return getMsgClient(service).updateParams(input, options);
|
|
9074
9568
|
}, { path: [15, "updateParams"], serviceLoader: serviceLoader2 })
|
|
9569
|
+
},
|
|
9570
|
+
v2: {
|
|
9571
|
+
/**
|
|
9572
|
+
* getPrices query prices for specific denom
|
|
9573
|
+
*/
|
|
9574
|
+
getPrices: withMetadata(async function getPrices(input, options) {
|
|
9575
|
+
const service = await serviceLoader2.loadAt(16);
|
|
9576
|
+
return getClient(service).prices(input, options);
|
|
9577
|
+
}, { path: [16, "prices"], serviceLoader: serviceLoader2 }),
|
|
9578
|
+
/**
|
|
9579
|
+
* getParams returns the total set of oracle parameters.
|
|
9580
|
+
*/
|
|
9581
|
+
getParams: withMetadata(async function getParams(input = {}, options) {
|
|
9582
|
+
const service = await serviceLoader2.loadAt(16);
|
|
9583
|
+
return getClient(service).params(input, options);
|
|
9584
|
+
}, { path: [16, "params"], serviceLoader: serviceLoader2 }),
|
|
9585
|
+
/**
|
|
9586
|
+
* getAggregatedPrice queries the aggregated price for a given denom.
|
|
9587
|
+
*/
|
|
9588
|
+
getAggregatedPrice: withMetadata(async function getAggregatedPrice(input, options) {
|
|
9589
|
+
const service = await serviceLoader2.loadAt(16);
|
|
9590
|
+
return getClient(service).aggregatedPrice(input, options);
|
|
9591
|
+
}, { path: [16, "aggregatedPrice"], serviceLoader: serviceLoader2 }),
|
|
9592
|
+
/**
|
|
9593
|
+
* addPriceEntry adds a new price entry for a denomination from an authorized source
|
|
9594
|
+
*/
|
|
9595
|
+
addPriceEntry: withMetadata(async function addPriceEntry(input, options) {
|
|
9596
|
+
const service = await serviceLoader2.loadAt(17);
|
|
9597
|
+
return getMsgClient(service).addPriceEntry(input, options);
|
|
9598
|
+
}, { path: [17, "addPriceEntry"], serviceLoader: serviceLoader2 }),
|
|
9599
|
+
/**
|
|
9600
|
+
* updateParams defines a governance operation for updating the x/oracle module
|
|
9601
|
+
* parameters. The authority is hard-coded to the x/gov module account.
|
|
9602
|
+
*
|
|
9603
|
+
* Since: akash v2.0.0
|
|
9604
|
+
*/
|
|
9605
|
+
updateParams: withMetadata(async function updateParams(input, options) {
|
|
9606
|
+
const service = await serviceLoader2.loadAt(17);
|
|
9607
|
+
return getMsgClient(service).updateParams(input, options);
|
|
9608
|
+
}, { path: [17, "updateParams"], serviceLoader: serviceLoader2 })
|
|
9075
9609
|
}
|
|
9076
9610
|
},
|
|
9077
9611
|
provider: {
|
|
@@ -9080,48 +9614,48 @@ function createSDK2(queryTransport, txTransport) {
|
|
|
9080
9614
|
* getProviders queries providers
|
|
9081
9615
|
*/
|
|
9082
9616
|
getProviders: withMetadata(async function getProviders(input, options) {
|
|
9083
|
-
const service = await serviceLoader2.loadAt(
|
|
9617
|
+
const service = await serviceLoader2.loadAt(18);
|
|
9084
9618
|
return getClient(service).providers(input, options);
|
|
9085
|
-
}, { path: [
|
|
9619
|
+
}, { path: [18, "providers"], serviceLoader: serviceLoader2 }),
|
|
9086
9620
|
/**
|
|
9087
9621
|
* getProvider queries provider details
|
|
9088
9622
|
*/
|
|
9089
9623
|
getProvider: withMetadata(async function getProvider(input, options) {
|
|
9090
|
-
const service = await serviceLoader2.loadAt(
|
|
9624
|
+
const service = await serviceLoader2.loadAt(18);
|
|
9091
9625
|
return getClient(service).provider(input, options);
|
|
9092
|
-
}, { path: [
|
|
9626
|
+
}, { path: [18, "provider"], serviceLoader: serviceLoader2 }),
|
|
9093
9627
|
/**
|
|
9094
9628
|
* createProvider defines a method that creates a provider given the proper inputs.
|
|
9095
9629
|
*/
|
|
9096
9630
|
createProvider: withMetadata(async function createProvider(input, options) {
|
|
9097
|
-
const service = await serviceLoader2.loadAt(
|
|
9631
|
+
const service = await serviceLoader2.loadAt(19);
|
|
9098
9632
|
return getMsgClient(service).createProvider(input, options);
|
|
9099
|
-
}, { path: [
|
|
9633
|
+
}, { path: [19, "createProvider"], serviceLoader: serviceLoader2 }),
|
|
9100
9634
|
/**
|
|
9101
9635
|
* updateProvider defines a method that updates a provider given the proper inputs.
|
|
9102
9636
|
*/
|
|
9103
9637
|
updateProvider: withMetadata(async function updateProvider(input, options) {
|
|
9104
|
-
const service = await serviceLoader2.loadAt(
|
|
9638
|
+
const service = await serviceLoader2.loadAt(19);
|
|
9105
9639
|
return getMsgClient(service).updateProvider(input, options);
|
|
9106
|
-
}, { path: [
|
|
9640
|
+
}, { path: [19, "updateProvider"], serviceLoader: serviceLoader2 }),
|
|
9107
9641
|
/**
|
|
9108
9642
|
* deleteProvider defines a method that deletes a provider given the proper inputs.
|
|
9109
9643
|
*/
|
|
9110
9644
|
deleteProvider: withMetadata(async function deleteProvider(input, options) {
|
|
9111
|
-
const service = await serviceLoader2.loadAt(
|
|
9645
|
+
const service = await serviceLoader2.loadAt(19);
|
|
9112
9646
|
return getMsgClient(service).deleteProvider(input, options);
|
|
9113
|
-
}, { path: [
|
|
9647
|
+
}, { path: [19, "deleteProvider"], serviceLoader: serviceLoader2 })
|
|
9114
9648
|
}
|
|
9115
9649
|
},
|
|
9116
9650
|
take: {
|
|
9117
9651
|
v1: {
|
|
9118
9652
|
/**
|
|
9119
|
-
* getParams returns the total set of
|
|
9653
|
+
* getParams returns the total set of take parameters.
|
|
9120
9654
|
*/
|
|
9121
9655
|
getParams: withMetadata(async function getParams(input = {}, options) {
|
|
9122
|
-
const service = await serviceLoader2.loadAt(
|
|
9656
|
+
const service = await serviceLoader2.loadAt(20);
|
|
9123
9657
|
return getClient(service).params(input, options);
|
|
9124
|
-
}, { path: [
|
|
9658
|
+
}, { path: [20, "params"], serviceLoader: serviceLoader2 }),
|
|
9125
9659
|
/**
|
|
9126
9660
|
* updateParams defines a governance operation for updating the x/market module
|
|
9127
9661
|
* parameters. The authority is hard-coded to the x/gov module account.
|
|
@@ -9129,20 +9663,20 @@ function createSDK2(queryTransport, txTransport) {
|
|
|
9129
9663
|
* Since: akash v1.0.0
|
|
9130
9664
|
*/
|
|
9131
9665
|
updateParams: withMetadata(async function updateParams(input, options) {
|
|
9132
|
-
const service = await serviceLoader2.loadAt(
|
|
9666
|
+
const service = await serviceLoader2.loadAt(21);
|
|
9133
9667
|
return getMsgClient(service).updateParams(input, options);
|
|
9134
|
-
}, { path: [
|
|
9668
|
+
}, { path: [21, "updateParams"], serviceLoader: serviceLoader2 })
|
|
9135
9669
|
}
|
|
9136
9670
|
},
|
|
9137
9671
|
wasm: {
|
|
9138
9672
|
v1: {
|
|
9139
9673
|
/**
|
|
9140
|
-
* getParams returns the total set of
|
|
9674
|
+
* getParams returns the total set of wasm parameters.
|
|
9141
9675
|
*/
|
|
9142
9676
|
getParams: withMetadata(async function getParams(input = {}, options) {
|
|
9143
|
-
const service = await serviceLoader2.loadAt(
|
|
9677
|
+
const service = await serviceLoader2.loadAt(22);
|
|
9144
9678
|
return getClient(service).params(input, options);
|
|
9145
|
-
}, { path: [
|
|
9679
|
+
}, { path: [22, "params"], serviceLoader: serviceLoader2 }),
|
|
9146
9680
|
/**
|
|
9147
9681
|
* updateParams defines a governance operation for updating the x/wasm module
|
|
9148
9682
|
* parameters. The authority is hard-coded to the x/gov module account.
|
|
@@ -9150,9 +9684,9 @@ function createSDK2(queryTransport, txTransport) {
|
|
|
9150
9684
|
* Since: akash v2.0.0
|
|
9151
9685
|
*/
|
|
9152
9686
|
updateParams: withMetadata(async function updateParams(input, options) {
|
|
9153
|
-
const service = await serviceLoader2.loadAt(
|
|
9687
|
+
const service = await serviceLoader2.loadAt(23);
|
|
9154
9688
|
return getMsgClient(service).updateParams(input, options);
|
|
9155
|
-
}, { path: [
|
|
9689
|
+
}, { path: [23, "updateParams"], serviceLoader: serviceLoader2 })
|
|
9156
9690
|
}
|
|
9157
9691
|
}
|
|
9158
9692
|
}
|
|
@@ -9193,7 +9727,7 @@ var RETRIABLE_ERROR_CODES = /* @__PURE__ */ new Set([
|
|
|
9193
9727
|
TransportError.Code.Unknown
|
|
9194
9728
|
]);
|
|
9195
9729
|
function createRetryInterceptor(options) {
|
|
9196
|
-
const retryPolicy = retry(handleWhen((error) => error instanceof TransportError && RETRIABLE_ERROR_CODES.has(error.code)), {
|
|
9730
|
+
const retryPolicy = retry(handleWhen((error) => error instanceof TransportError && RETRIABLE_ERROR_CODES.has(error.code) || isConnectionError(error)), {
|
|
9197
9731
|
maxAttempts: Math.min(3, options.maxAttempts),
|
|
9198
9732
|
backoff: new ExponentialBackoff({
|
|
9199
9733
|
initialDelay: 250,
|
|
@@ -9205,6 +9739,16 @@ function createRetryInterceptor(options) {
|
|
|
9205
9739
|
function isRetryEnabled(options) {
|
|
9206
9740
|
return !!options?.maxAttempts && !Number.isNaN(options.maxAttempts) && options.maxAttempts > 0;
|
|
9207
9741
|
}
|
|
9742
|
+
var RETRIABLE_NETWORK_ERROR_CODES = /* @__PURE__ */ new Set([
|
|
9743
|
+
"ECONNREFUSED",
|
|
9744
|
+
"ECONNRESET",
|
|
9745
|
+
"ETIMEDOUT",
|
|
9746
|
+
"ESOCKETTIMEDOUT",
|
|
9747
|
+
"UND_ERR_SOCKET"
|
|
9748
|
+
]);
|
|
9749
|
+
function isConnectionError(error) {
|
|
9750
|
+
return "code" in error && RETRIABLE_NETWORK_ERROR_CODES.has(error.code) || !!error.cause && isConnectionError(error.cause) || !!error.errors?.some(isConnectionError);
|
|
9751
|
+
}
|
|
9208
9752
|
|
|
9209
9753
|
// src/sdk/transport/tx/createTxTransport.ts
|
|
9210
9754
|
function createTxTransport(transportOptions) {
|
|
@@ -9387,4 +9931,4 @@ export {
|
|
|
9387
9931
|
isRetryEnabled,
|
|
9388
9932
|
createTxTransport
|
|
9389
9933
|
};
|
|
9390
|
-
//# sourceMappingURL=chunk-
|
|
9934
|
+
//# sourceMappingURL=chunk-C7JHIHHY.js.map
|