@onmark/cli 0.4.0 → 0.5.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +6 -0
- package/onmark-release.json +49 -49
- package/package.json +4 -4
- package/packages/authoring/dist/src/presentation.js +127 -6
- package/packages/bundler/dist/src/authored_html.d.ts +2 -0
- package/packages/bundler/dist/src/authored_html.js +30 -0
- package/packages/bundler/dist/src/command.js +10 -6
- package/packages/bundler/dist/src/generated/bundle-manifest.d.ts +4 -5
- package/packages/bundler/dist/src/generated/bundle-manifest.js +1 -0
- package/packages/bundler/dist/src/presentation.d.ts +1 -1
- package/packages/bundler/dist/src/presentation.js +13 -2
- package/packages/runtime/dist/src/generated/browser-request.d.ts +5 -1
- package/packages/runtime/dist/src/generated/browser-response.d.ts +46 -1
- package/packages/runtime/dist/src/generated/bundle-layout.d.ts +1 -1
- package/packages/runtime/dist/src/generated/bundle-layout.js +1 -0
- package/packages/runtime/dist/src/generated/runtime-contract.d.ts +3 -1
- package/packages/runtime/dist/src/generated/runtime-contract.js +3 -1
- package/packages/runtime/dist/src/generated/validators.js +1172 -465
- package/packages/runtime/dist/src/index.d.ts +3 -3
- package/packages/runtime/dist/src/index.js +1 -1
- package/packages/runtime/dist/src/presentation.d.ts +8 -3
- package/packages/runtime/dist/src/presentation.js +97 -7
- package/packages/runtime/dist/src/session.d.ts +7 -3
- package/packages/runtime/dist/src/session.js +17 -9
- package/packages/runtime/dist/src/types.d.ts +2 -1
|
@@ -1,15 +1,16 @@
|
|
|
1
1
|
// Generated by `cargo xtask schema`; do not edit.
|
|
2
2
|
"use strict";
|
|
3
3
|
export const validateBrowserRequest = validate20;
|
|
4
|
-
const schema31 = { "$defs": { "BrowserCommand": { "description": "Closed commands understood by the browser runtime.", "oneOf": [{ "additionalProperties": false, "description": "Install one immutable browser plan.", "properties": { "plan": { "$ref": "#/$defs/BrowserPlan", "description": "Solved frame facts consumed by the runtime clock." }, "type": { "const": "load", "type": "string" } }, "required": ["type", "plan"], "type": "object" }, { "additionalProperties": false, "description": "Stabilize resources at the evaluation start frame.", "properties": { "evaluationStart": { "$ref": "#/$defs/WireFrame", "description": "First frame that may be evaluated by this unit." }, "type": { "const": "prepare", "type": "string" } }, "required": ["type", "evaluationStart"], "type": "object" }, { "additionalProperties": false, "description": "Evaluate one exact absolute frame.", "properties": { "frame": { "$ref": "#/$defs/WireFrame", "description": "Frame selected by the native executor." }, "type": { "const": "seek", "type": "string" } }, "required": ["type", "frame"], "type": "object" }, { "additionalProperties": false, "description": "Confirm staged media reached the compositor before accepting capture.", "properties": { "frame": { "$ref": "#/$defs/WireFrame", "description": "Frame whose staged media must be compositor-confirmed." }, "type": { "const": "confirm", "type": "string" } }, "required": ["type", "frame"], "type": "object" }, { "additionalProperties": false, "description": "Release page-owned resources for this session.", "properties": { "type": { "const": "dispose", "type": "string" } }, "required": ["type"], "type": "object" }] }, "BrowserNode": { "additionalProperties": false, "description": "Browser-facing identity retained from one Timeline element.", "properties": { "authoredId": { "type": ["string", "null"] }, "nodeId": { "$ref": "#/$defs/BrowserNodeId" } }, "required": ["nodeId"], "type": "object" }, "BrowserNodeId": { "description": "Browser identity for one Timeline element or imported caption.\n\nIDs form dense renderable-semantic preorder within one Browser Plan.\n\nAuthored IDs, rather than this unit-local key, retain cross-projection\nsemantic identity.", "format": "uint32", "maximum": 4294967295, "minimum": 0, "type": "integer" }, "BrowserOverlay": { "additionalProperties": false, "description": "One solved overlay placement consumed by the browser presentation.", "properties": { "interval": { "$ref": "#/$defs/WireInterval" }, "kind": { "$ref": "#/$defs/BrowserOverlayKind" }, "node": { "$ref": "#/$defs/BrowserNode" }, "shotId": { "anyOf": [{ "$ref": "#/$defs/BrowserNodeId" }, { "type": "null" }] }, "text": { "maxLength": 65536, "type": "string" } }, "required": ["node", "kind", "text", "interval"], "type": "object" }, "BrowserOverlayKind": { "description": "Closed overlay roles understood by the browser presentation.", "oneOf": [{ "const": "title", "description": "Authored title content.", "type": "string" }, { "const": "callToAction", "description": "Authored call-to-action content.", "type": "string" }, { "const": "caption", "description": "Imported caption text.", "type": "string" }] }, "BrowserPlan": { "additionalProperties": false, "description": "Timeline facts consumed by the browser clock and presentation.", "properties": { "evaluation": { "$ref": "#/$defs/WireInterval" }, "film": { "$ref": "#/$defs/BrowserNode" }, "frameRate": { "$ref": "#/$defs/WireFrameRate" }, "output": { "$ref": "#/$defs/WireInterval" }, "overlays": { "items": { "$ref": "#/$defs/BrowserOverlay" }, "maxItems": 10000, "type": "array" }, "scenes": { "items": { "$ref": "#/$defs/BrowserScene" }, "maxItems": 10000, "type": "array" }, "shots": { "items": { "$ref": "#/$defs/BrowserShot" }, "maxItems": 10000, "type": "array" }, "timeline": { "$ref": "#/$defs/WireInterval" }, "timelineVersion": { "const": 3, "format": "uint16", "maximum": 65535, "minimum": 0, "type": "integer" }, "transitions": { "items": { "$ref": "#/$defs/BrowserTransition" }, "maxItems": 10000, "type": "array" }, "videos": { "items": { "$ref": "#/$defs/BrowserVideo" }, "maxItems": 10000, "type": "array" } }, "required": ["timelineVersion", "frameRate", "timeline", "evaluation", "output", "film", "scenes", "shots", "transitions", "videos", "overlays"], "type": "object" }, "BrowserScene": { "additionalProperties": false, "description": "One scene container intersecting this unit, with its complete Timeline interval.", "properties": { "interval": { "$ref": "#/$defs/WireInterval" }, "node": { "$ref": "#/$defs/BrowserNode" } }, "required": ["node", "interval"], "type": "object" }, "BrowserShot": { "additionalProperties": false, "description": "One shot container intersecting this unit, with its complete Timeline interval.", "properties": { "interval": { "$ref": "#/$defs/WireInterval" }, "node": { "$ref": "#/$defs/BrowserNode" }, "sceneId": { "$ref": "#/$defs/BrowserNodeId" } }, "required": ["node", "sceneId", "interval"], "type": "object" }, "BrowserTransition": { "additionalProperties": false, "description": "One solved transition between two adjacent browser shots.", "properties": { "incomingShotId": { "$ref": "#/$defs/BrowserNodeId" }, "interval": { "$ref": "#/$defs/WireInterval" }, "node": { "$ref": "#/$defs/BrowserNode" }, "outgoingShotId": { "$ref": "#/$defs/BrowserNodeId" } }, "required": ["node", "outgoingShotId", "incomingShotId", "interval"], "type": "object" }, "BrowserVideo": { "additionalProperties": false, "description": "One primary video placement consumed by the browser presentation adapter.", "properties": { "assetId": { "pattern": "^sha256:[0-9a-f]{64}$", "type": "string" }, "interval": { "$ref": "#/$defs/WireInterval" }, "node": { "$ref": "#/$defs/BrowserNode" }, "shotId": { "$ref": "#/$defs/BrowserNodeId" }, "source": { "$ref": "#/$defs/BrowserVideoSource" }, "sourceTiming": { "$ref": "#/$defs/BrowserVideoTiming" } }, "required": ["node", "shotId", "assetId", "interval", "sourceTiming", "source"], "type": "object" }, "BrowserVideoSource": { "additionalProperties": false, "description": "Exact source-time mapping for one browser video placement.", "properties": { "endNanoseconds": { "maxLength": 20, "minLength": 1, "pattern": "^(0|[1-9][0-9]*)$", "type": "string" }, "holdLastNanoseconds": { "maxLength": 20, "minLength": 1, "pattern": "^(0|[1-9][0-9]*)$", "type": "string" }, "naturalEndNanoseconds": { "maxLength": 20, "minLength": 1, "pattern": "^(0|[1-9][0-9]*)$", "type": "string" }, "playbackRate": { "$ref": "#/$defs/WirePlaybackRate" }, "plays": { "format": "uint32", "minimum": 1, "type": "integer" }, "startNanoseconds": { "maxLength": 20, "minLength": 1, "pattern": "^(0|[1-9][0-9]*)$", "type": "string" } }, "required": ["startNanoseconds", "endNanoseconds", "naturalEndNanoseconds", "playbackRate", "plays", "holdLastNanoseconds"], "type": "object" }, "BrowserVideoTiming": { "description": "Exact source-frame timing projected into the browser runtime.", "oneOf": [{ "additionalProperties": false, "description": "Every source frame has one exact rational rate.", "properties": { "frameRate": { "$ref": "#/$defs/WireFrameRate", "description": "Exact source frames per second." }, "kind": { "const": "constant", "type": "string" } }, "required": ["kind", "frameRate"], "type": "object" }, { "additionalProperties": false, "description": "Every source frame carries one half-open timestamp interval.", "properties": { "boundaries": { "description": "Canonical decimal ticks from source zero through terminal end.", "items": { "type": "string" }, "maxItems": 100000, "minItems": 3, "type": "array" }, "kind": { "const": "variable", "type": "string" }, "timebase": { "$ref": "#/$defs/WireMediaTimebase", "description": "Exact seconds represented by one source timestamp tick." } }, "required": ["kind", "timebase", "boundaries"], "type": "object" }] }, "ProtocolVersion": { "const": 4, "description": "Version of the native-to-browser message contract.", "format": "uint16", "maximum": 65535, "minimum": 0, "type": "integer" }, "RequestId": { "description": "Correlation identity shared by one request and its response events.", "format": "uint32", "maximum": 4294967295, "minimum": 0, "type": "integer" }, "WireFrame": { "description": "Exact frame integer accepted by JavaScript without rounding.", "format": "uint64", "maximum": 9007199254740991, "minimum": 0, "type": "integer" }, "WireFrameRate": { "additionalProperties": false, "description": "Exact rational frame rate represented with browser-safe integers.", "properties": { "denominator": { "format": "uint32", "maximum": 4294967295, "minimum": 1, "type": "integer" }, "numerator": { "format": "uint32", "maximum": 4294967295, "minimum": 1, "type": "integer" } }, "required": ["numerator", "denominator"], "type": "object" }, "WireInterval": { "additionalProperties": false, "description": "One half-open browser frame interval.", "properties": { "end": { "$ref": "#/$defs/WireFrame" }, "start": { "$ref": "#/$defs/WireFrame" } }, "required": ["start", "end"], "type": "object" }, "WireMediaTimebase": { "additionalProperties": false, "description": "Exact media timestamp unit represented with browser-safe integers.", "properties": { "denominator": { "format": "uint32", "maximum": 4294967295, "minimum": 1, "type": "integer" }, "numerator": { "format": "uint32", "maximum": 4294967295, "minimum": 1, "type": "integer" } }, "required": ["numerator", "denominator"], "type": "object" }, "WirePlaybackRate": { "additionalProperties": false, "description": "Exact canonical playback ratio represented with browser-safe integers.", "properties": { "denominator": { "format": "uint32", "maximum": 4294967295, "minimum": 1, "type": "integer" }, "numerator": { "format": "uint32", "maximum": 4294967295, "minimum": 1, "type": "integer" } }, "required": ["numerator", "denominator"], "type": "object" } }, "$id": "https://onmark.dev/schemas/browser-request-v4.schema.json", "$schema": "https://json-schema.org/draft/2020-12/schema", "additionalProperties": false, "description": "One versioned command sent from the native executor to the browser.", "properties": { "command": { "$ref": "#/$defs/BrowserCommand" }, "requestId": { "$ref": "#/$defs/RequestId" }, "version": { "$ref": "#/$defs/ProtocolVersion" } }, "required": ["version", "requestId", "command"], "title": "BrowserRequest", "type": "object", "x-onmark-runtime-host": "__ONMARK_RUNTIME__" };
|
|
5
|
-
const
|
|
6
|
-
const
|
|
7
|
-
const schema32 = { "description": "Closed commands understood by the browser runtime.", "oneOf": [{ "additionalProperties": false, "description": "Install one immutable browser plan.", "properties": { "plan": { "$ref": "#/$defs/BrowserPlan", "description": "Solved frame facts consumed by the runtime clock." }, "type": { "const": "load", "type": "string" } }, "required": ["type", "plan"], "type": "object" }, { "additionalProperties": false, "description": "Stabilize resources at the evaluation start frame.", "properties": { "evaluationStart": { "$ref": "#/$defs/WireFrame", "description": "First frame that may be evaluated by this unit." }, "type": { "const": "prepare", "type": "string" } }, "required": ["type", "evaluationStart"], "type": "object" }, { "additionalProperties": false, "description": "Evaluate one exact absolute frame.", "properties": { "frame": { "$ref": "#/$defs/WireFrame", "description": "Frame selected by the native executor." }, "type": { "const": "seek", "type": "string" } }, "required": ["type", "frame"], "type": "object" }, { "additionalProperties": false, "description": "Confirm staged media reached the compositor before accepting capture.", "properties": { "frame": { "$ref": "#/$defs/WireFrame", "description": "Frame whose staged media must be compositor-confirmed." }, "type": { "const": "confirm", "type": "string" } }, "required": ["type", "frame"], "type": "object" }, { "additionalProperties": false, "description": "Release page-owned resources for this session.", "properties": { "type": { "const": "dispose", "type": "string" } }, "required": ["type"], "type": "object" }] };
|
|
8
|
-
const
|
|
9
|
-
const
|
|
10
|
-
const
|
|
4
|
+
const schema31 = { "$defs": { "BrowserCommand": { "description": "Closed commands understood by the browser runtime.", "oneOf": [{ "additionalProperties": false, "description": "Install one immutable browser plan.", "properties": { "mediaMode": { "$ref": "#/$defs/BrowserMediaMode", "description": "Browser responsibility for primary-media elements." }, "plan": { "$ref": "#/$defs/BrowserPlan", "description": "Solved frame facts consumed by the runtime clock." }, "type": { "const": "load", "type": "string" } }, "required": ["type", "plan", "mediaMode"], "type": "object" }, { "additionalProperties": false, "description": "Stabilize resources at the evaluation start frame.", "properties": { "evaluationStart": { "$ref": "#/$defs/WireFrame", "description": "First frame that may be evaluated by this unit." }, "type": { "const": "prepare", "type": "string" } }, "required": ["type", "evaluationStart"], "type": "object" }, { "additionalProperties": false, "description": "Evaluate one exact absolute frame.", "properties": { "frame": { "$ref": "#/$defs/WireFrame", "description": "Frame selected by the native executor." }, "type": { "const": "seek", "type": "string" } }, "required": ["type", "frame"], "type": "object" }, { "additionalProperties": false, "description": "Confirm staged media reached the compositor before accepting capture.", "properties": { "frame": { "$ref": "#/$defs/WireFrame", "description": "Frame whose staged media must be compositor-confirmed." }, "type": { "const": "confirm", "type": "string" } }, "required": ["type", "frame"], "type": "object" }, { "additionalProperties": false, "description": "Release page-owned resources for this session.", "properties": { "type": { "const": "dispose", "type": "string" } }, "required": ["type"], "type": "object" }] }, "BrowserMediaMode": { "description": "Browser responsibility for video elements in one loaded plan.", "oneOf": [{ "const": "decoded", "description": "Chromium decodes and composites every active video placement.", "type": "string" }, { "const": "omitted", "description": "Chromium omits video elements from its captured pixels.", "type": "string" }, { "const": "layoutOnly", "description": "Chromium omits video pixels but returns static layout evidence.", "type": "string" }] }, "BrowserNode": { "additionalProperties": false, "description": "Browser-facing identity retained from one Timeline element.", "properties": { "authoredId": { "type": ["string", "null"] }, "nodeId": { "$ref": "#/$defs/BrowserNodeId" } }, "required": ["nodeId"], "type": "object" }, "BrowserNodeId": { "description": "Browser identity for one Timeline element or imported caption.\n\nIDs form dense renderable-semantic preorder within one Browser Plan.\n\nAuthored IDs, rather than this unit-local key, retain cross-projection\nsemantic identity.", "format": "uint32", "maximum": 4294967295, "minimum": 0, "type": "integer" }, "BrowserOverlay": { "additionalProperties": false, "description": "One solved overlay placement consumed by the browser presentation.", "properties": { "interval": { "$ref": "#/$defs/WireInterval" }, "kind": { "$ref": "#/$defs/BrowserOverlayKind" }, "node": { "$ref": "#/$defs/BrowserNode" }, "shotId": { "anyOf": [{ "$ref": "#/$defs/BrowserNodeId" }, { "type": "null" }] }, "text": { "maxLength": 65536, "type": "string" } }, "required": ["node", "kind", "text", "interval"], "type": "object" }, "BrowserOverlayKind": { "description": "Closed overlay roles understood by the browser presentation.", "oneOf": [{ "const": "title", "description": "Authored title content.", "type": "string" }, { "const": "callToAction", "description": "Authored call-to-action content.", "type": "string" }, { "const": "caption", "description": "Imported caption text.", "type": "string" }] }, "BrowserPlan": { "additionalProperties": false, "description": "Timeline facts consumed by the browser clock and presentation.", "properties": { "evaluation": { "$ref": "#/$defs/WireInterval" }, "film": { "$ref": "#/$defs/BrowserNode" }, "frameRate": { "$ref": "#/$defs/WireFrameRate" }, "output": { "$ref": "#/$defs/WireInterval" }, "overlays": { "items": { "$ref": "#/$defs/BrowserOverlay" }, "maxItems": 10000, "type": "array" }, "scenes": { "items": { "$ref": "#/$defs/BrowserScene" }, "maxItems": 10000, "type": "array" }, "shots": { "items": { "$ref": "#/$defs/BrowserShot" }, "maxItems": 10000, "type": "array" }, "timeline": { "$ref": "#/$defs/WireInterval" }, "timelineVersion": { "const": 3, "format": "uint16", "maximum": 65535, "minimum": 0, "type": "integer" }, "transitions": { "items": { "$ref": "#/$defs/BrowserTransition" }, "maxItems": 10000, "type": "array" }, "videos": { "items": { "$ref": "#/$defs/BrowserVideo" }, "maxItems": 10000, "type": "array" } }, "required": ["timelineVersion", "frameRate", "timeline", "evaluation", "output", "film", "scenes", "shots", "transitions", "videos", "overlays"], "type": "object" }, "BrowserScene": { "additionalProperties": false, "description": "One scene container intersecting this unit, with its complete Timeline interval.", "properties": { "interval": { "$ref": "#/$defs/WireInterval" }, "node": { "$ref": "#/$defs/BrowserNode" } }, "required": ["node", "interval"], "type": "object" }, "BrowserShot": { "additionalProperties": false, "description": "One shot container intersecting this unit, with its complete Timeline interval.", "properties": { "interval": { "$ref": "#/$defs/WireInterval" }, "node": { "$ref": "#/$defs/BrowserNode" }, "sceneId": { "$ref": "#/$defs/BrowserNodeId" } }, "required": ["node", "sceneId", "interval"], "type": "object" }, "BrowserTransition": { "additionalProperties": false, "description": "One solved transition between two adjacent browser shots.", "properties": { "incomingShotId": { "$ref": "#/$defs/BrowserNodeId" }, "interval": { "$ref": "#/$defs/WireInterval" }, "node": { "$ref": "#/$defs/BrowserNode" }, "outgoingShotId": { "$ref": "#/$defs/BrowserNodeId" } }, "required": ["node", "outgoingShotId", "incomingShotId", "interval"], "type": "object" }, "BrowserVideo": { "additionalProperties": false, "description": "One primary video placement consumed by the browser presentation adapter.", "properties": { "assetId": { "pattern": "^sha256:[0-9a-f]{64}$", "type": "string" }, "interval": { "$ref": "#/$defs/WireInterval" }, "node": { "$ref": "#/$defs/BrowserNode" }, "shotId": { "$ref": "#/$defs/BrowserNodeId" }, "source": { "$ref": "#/$defs/BrowserVideoSource" }, "sourceTiming": { "$ref": "#/$defs/BrowserVideoTiming" } }, "required": ["node", "shotId", "assetId", "interval", "sourceTiming", "source"], "type": "object" }, "BrowserVideoSource": { "additionalProperties": false, "description": "Exact source-time mapping for one browser video placement.", "properties": { "endNanoseconds": { "maxLength": 20, "minLength": 1, "pattern": "^(0|[1-9][0-9]*)$", "type": "string" }, "holdLastNanoseconds": { "maxLength": 20, "minLength": 1, "pattern": "^(0|[1-9][0-9]*)$", "type": "string" }, "naturalEndNanoseconds": { "maxLength": 20, "minLength": 1, "pattern": "^(0|[1-9][0-9]*)$", "type": "string" }, "playbackRate": { "$ref": "#/$defs/WirePlaybackRate" }, "plays": { "format": "uint32", "minimum": 1, "type": "integer" }, "startNanoseconds": { "maxLength": 20, "minLength": 1, "pattern": "^(0|[1-9][0-9]*)$", "type": "string" } }, "required": ["startNanoseconds", "endNanoseconds", "naturalEndNanoseconds", "playbackRate", "plays", "holdLastNanoseconds"], "type": "object" }, "BrowserVideoTiming": { "description": "Exact source-frame timing projected into the browser runtime.", "oneOf": [{ "additionalProperties": false, "description": "Every source frame has one exact rational rate.", "properties": { "frameRate": { "$ref": "#/$defs/WireFrameRate", "description": "Exact source frames per second." }, "kind": { "const": "constant", "type": "string" } }, "required": ["kind", "frameRate"], "type": "object" }, { "additionalProperties": false, "description": "Every source frame carries one half-open timestamp interval.", "properties": { "boundaries": { "description": "Canonical decimal ticks from source zero through terminal end.", "items": { "type": "string" }, "maxItems": 100000, "minItems": 3, "type": "array" }, "kind": { "const": "variable", "type": "string" }, "timebase": { "$ref": "#/$defs/WireMediaTimebase", "description": "Exact seconds represented by one source timestamp tick." } }, "required": ["kind", "timebase", "boundaries"], "type": "object" }] }, "ProtocolVersion": { "const": 5, "description": "Version of the native-to-browser message contract.", "format": "uint16", "maximum": 65535, "minimum": 0, "type": "integer" }, "RequestId": { "description": "Correlation identity shared by one request and its response events.", "format": "uint32", "maximum": 4294967295, "minimum": 0, "type": "integer" }, "WireFrame": { "description": "Exact frame integer accepted by JavaScript without rounding.", "format": "uint64", "maximum": 9007199254740991, "minimum": 0, "type": "integer" }, "WireFrameRate": { "additionalProperties": false, "description": "Exact rational frame rate represented with browser-safe integers.", "properties": { "denominator": { "format": "uint32", "maximum": 4294967295, "minimum": 1, "type": "integer" }, "numerator": { "format": "uint32", "maximum": 4294967295, "minimum": 1, "type": "integer" } }, "required": ["numerator", "denominator"], "type": "object" }, "WireInterval": { "additionalProperties": false, "description": "One half-open browser frame interval.", "properties": { "end": { "$ref": "#/$defs/WireFrame" }, "start": { "$ref": "#/$defs/WireFrame" } }, "required": ["start", "end"], "type": "object" }, "WireMediaTimebase": { "additionalProperties": false, "description": "Exact media timestamp unit represented with browser-safe integers.", "properties": { "denominator": { "format": "uint32", "maximum": 4294967295, "minimum": 1, "type": "integer" }, "numerator": { "format": "uint32", "maximum": 4294967295, "minimum": 1, "type": "integer" } }, "required": ["numerator", "denominator"], "type": "object" }, "WirePlaybackRate": { "additionalProperties": false, "description": "Exact canonical playback ratio represented with browser-safe integers.", "properties": { "denominator": { "format": "uint32", "maximum": 4294967295, "minimum": 1, "type": "integer" }, "numerator": { "format": "uint32", "maximum": 4294967295, "minimum": 1, "type": "integer" } }, "required": ["numerator", "denominator"], "type": "object" } }, "$id": "https://onmark.dev/schemas/browser-request-v5.schema.json", "$schema": "https://json-schema.org/draft/2020-12/schema", "additionalProperties": false, "description": "One versioned command sent from the native executor to the browser.", "properties": { "command": { "$ref": "#/$defs/BrowserCommand" }, "requestId": { "$ref": "#/$defs/RequestId" }, "version": { "$ref": "#/$defs/ProtocolVersion" } }, "required": ["version", "requestId", "command"], "title": "BrowserRequest", "type": "object", "x-onmark-runtime-host": "__ONMARK_RUNTIME__" };
|
|
5
|
+
const schema60 = { "description": "Correlation identity shared by one request and its response events.", "format": "uint32", "maximum": 4294967295, "minimum": 0, "type": "integer" };
|
|
6
|
+
const schema61 = { "const": 5, "description": "Version of the native-to-browser message contract.", "format": "uint16", "maximum": 65535, "minimum": 0, "type": "integer" };
|
|
7
|
+
const schema32 = { "description": "Closed commands understood by the browser runtime.", "oneOf": [{ "additionalProperties": false, "description": "Install one immutable browser plan.", "properties": { "mediaMode": { "$ref": "#/$defs/BrowserMediaMode", "description": "Browser responsibility for primary-media elements." }, "plan": { "$ref": "#/$defs/BrowserPlan", "description": "Solved frame facts consumed by the runtime clock." }, "type": { "const": "load", "type": "string" } }, "required": ["type", "plan", "mediaMode"], "type": "object" }, { "additionalProperties": false, "description": "Stabilize resources at the evaluation start frame.", "properties": { "evaluationStart": { "$ref": "#/$defs/WireFrame", "description": "First frame that may be evaluated by this unit." }, "type": { "const": "prepare", "type": "string" } }, "required": ["type", "evaluationStart"], "type": "object" }, { "additionalProperties": false, "description": "Evaluate one exact absolute frame.", "properties": { "frame": { "$ref": "#/$defs/WireFrame", "description": "Frame selected by the native executor." }, "type": { "const": "seek", "type": "string" } }, "required": ["type", "frame"], "type": "object" }, { "additionalProperties": false, "description": "Confirm staged media reached the compositor before accepting capture.", "properties": { "frame": { "$ref": "#/$defs/WireFrame", "description": "Frame whose staged media must be compositor-confirmed." }, "type": { "const": "confirm", "type": "string" } }, "required": ["type", "frame"], "type": "object" }, { "additionalProperties": false, "description": "Release page-owned resources for this session.", "properties": { "type": { "const": "dispose", "type": "string" } }, "required": ["type"], "type": "object" }] };
|
|
8
|
+
const schema33 = { "description": "Browser responsibility for video elements in one loaded plan.", "oneOf": [{ "const": "decoded", "description": "Chromium decodes and composites every active video placement.", "type": "string" }, { "const": "omitted", "description": "Chromium omits video elements from its captured pixels.", "type": "string" }, { "const": "layoutOnly", "description": "Chromium omits video pixels but returns static layout evidence.", "type": "string" }] };
|
|
9
|
+
const schema36 = { "description": "Exact frame integer accepted by JavaScript without rounding.", "format": "uint64", "maximum": 9007199254740991, "minimum": 0, "type": "integer" };
|
|
10
|
+
const schema34 = { "additionalProperties": false, "description": "Timeline facts consumed by the browser clock and presentation.", "properties": { "evaluation": { "$ref": "#/$defs/WireInterval" }, "film": { "$ref": "#/$defs/BrowserNode" }, "frameRate": { "$ref": "#/$defs/WireFrameRate" }, "output": { "$ref": "#/$defs/WireInterval" }, "overlays": { "items": { "$ref": "#/$defs/BrowserOverlay" }, "maxItems": 10000, "type": "array" }, "scenes": { "items": { "$ref": "#/$defs/BrowserScene" }, "maxItems": 10000, "type": "array" }, "shots": { "items": { "$ref": "#/$defs/BrowserShot" }, "maxItems": 10000, "type": "array" }, "timeline": { "$ref": "#/$defs/WireInterval" }, "timelineVersion": { "const": 3, "format": "uint16", "maximum": 65535, "minimum": 0, "type": "integer" }, "transitions": { "items": { "$ref": "#/$defs/BrowserTransition" }, "maxItems": 10000, "type": "array" }, "videos": { "items": { "$ref": "#/$defs/BrowserVideo" }, "maxItems": 10000, "type": "array" } }, "required": ["timelineVersion", "frameRate", "timeline", "evaluation", "output", "film", "scenes", "shots", "transitions", "videos", "overlays"], "type": "object" };
|
|
11
|
+
const schema40 = { "additionalProperties": false, "description": "Exact rational frame rate represented with browser-safe integers.", "properties": { "denominator": { "format": "uint32", "maximum": 4294967295, "minimum": 1, "type": "integer" }, "numerator": { "format": "uint32", "maximum": 4294967295, "minimum": 1, "type": "integer" } }, "required": ["numerator", "denominator"], "type": "object" };
|
|
11
12
|
const func1 = Object.prototype.hasOwnProperty;
|
|
12
|
-
const
|
|
13
|
+
const schema35 = { "additionalProperties": false, "description": "One half-open browser frame interval.", "properties": { "end": { "$ref": "#/$defs/WireFrame" }, "start": { "$ref": "#/$defs/WireFrame" } }, "required": ["start", "end"], "type": "object" };
|
|
13
14
|
function validate23(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
|
|
14
15
|
let vErrors = null;
|
|
15
16
|
let errors = 0;
|
|
@@ -138,8 +139,8 @@ function validate23(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
138
139
|
return errors === 0;
|
|
139
140
|
}
|
|
140
141
|
validate23.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
|
|
141
|
-
const
|
|
142
|
-
const
|
|
142
|
+
const schema38 = { "additionalProperties": false, "description": "Browser-facing identity retained from one Timeline element.", "properties": { "authoredId": { "type": ["string", "null"] }, "nodeId": { "$ref": "#/$defs/BrowserNodeId" } }, "required": ["nodeId"], "type": "object" };
|
|
143
|
+
const schema39 = { "description": "Browser identity for one Timeline element or imported caption.\n\nIDs form dense renderable-semantic preorder within one Browser Plan.\n\nAuthored IDs, rather than this unit-local key, retain cross-projection\nsemantic identity.", "format": "uint32", "maximum": 4294967295, "minimum": 0, "type": "integer" };
|
|
143
144
|
function validate25(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
|
|
144
145
|
let vErrors = null;
|
|
145
146
|
let errors = 0;
|
|
@@ -176,7 +177,7 @@ function validate25(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
176
177
|
if (data.authoredId !== undefined) {
|
|
177
178
|
let data0 = data.authoredId;
|
|
178
179
|
if ((typeof data0 !== "string") && (data0 !== null)) {
|
|
179
|
-
const err2 = { instancePath: instancePath + "/authoredId", schemaPath: "#/properties/authoredId/type", keyword: "type", params: { type:
|
|
180
|
+
const err2 = { instancePath: instancePath + "/authoredId", schemaPath: "#/properties/authoredId/type", keyword: "type", params: { type: schema38.properties.authoredId.type }, message: "must be string,null" };
|
|
180
181
|
if (vErrors === null) {
|
|
181
182
|
vErrors = [err2];
|
|
182
183
|
}
|
|
@@ -236,8 +237,8 @@ function validate25(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
236
237
|
return errors === 0;
|
|
237
238
|
}
|
|
238
239
|
validate25.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
|
|
239
|
-
const
|
|
240
|
-
const
|
|
240
|
+
const schema41 = { "additionalProperties": false, "description": "One solved overlay placement consumed by the browser presentation.", "properties": { "interval": { "$ref": "#/$defs/WireInterval" }, "kind": { "$ref": "#/$defs/BrowserOverlayKind" }, "node": { "$ref": "#/$defs/BrowserNode" }, "shotId": { "anyOf": [{ "$ref": "#/$defs/BrowserNodeId" }, { "type": "null" }] }, "text": { "maxLength": 65536, "type": "string" } }, "required": ["node", "kind", "text", "interval"], "type": "object" };
|
|
241
|
+
const schema42 = { "description": "Closed overlay roles understood by the browser presentation.", "oneOf": [{ "const": "title", "description": "Authored title content.", "type": "string" }, { "const": "callToAction", "description": "Authored call-to-action content.", "type": "string" }, { "const": "caption", "description": "Imported caption text.", "type": "string" }] };
|
|
241
242
|
const func2 = (value) => { let length = 0; for (const _ of value)
|
|
242
243
|
length += 1; return length; };
|
|
243
244
|
function validate28(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
|
|
@@ -546,7 +547,7 @@ function validate28(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
546
547
|
return errors === 0;
|
|
547
548
|
}
|
|
548
549
|
validate28.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
|
|
549
|
-
const
|
|
550
|
+
const schema44 = { "additionalProperties": false, "description": "One scene container intersecting this unit, with its complete Timeline interval.", "properties": { "interval": { "$ref": "#/$defs/WireInterval" }, "node": { "$ref": "#/$defs/BrowserNode" } }, "required": ["node", "interval"], "type": "object" };
|
|
550
551
|
function validate32(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
|
|
551
552
|
let vErrors = null;
|
|
552
553
|
let errors = 0;
|
|
@@ -617,7 +618,7 @@ function validate32(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
617
618
|
return errors === 0;
|
|
618
619
|
}
|
|
619
620
|
validate32.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
|
|
620
|
-
const
|
|
621
|
+
const schema45 = { "additionalProperties": false, "description": "One shot container intersecting this unit, with its complete Timeline interval.", "properties": { "interval": { "$ref": "#/$defs/WireInterval" }, "node": { "$ref": "#/$defs/BrowserNode" }, "sceneId": { "$ref": "#/$defs/BrowserNodeId" } }, "required": ["node", "sceneId", "interval"], "type": "object" };
|
|
621
622
|
function validate36(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
|
|
622
623
|
let vErrors = null;
|
|
623
624
|
let errors = 0;
|
|
@@ -733,7 +734,7 @@ function validate36(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
733
734
|
return errors === 0;
|
|
734
735
|
}
|
|
735
736
|
validate36.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
|
|
736
|
-
const
|
|
737
|
+
const schema47 = { "additionalProperties": false, "description": "One solved transition between two adjacent browser shots.", "properties": { "incomingShotId": { "$ref": "#/$defs/BrowserNodeId" }, "interval": { "$ref": "#/$defs/WireInterval" }, "node": { "$ref": "#/$defs/BrowserNode" }, "outgoingShotId": { "$ref": "#/$defs/BrowserNodeId" } }, "required": ["node", "outgoingShotId", "incomingShotId", "interval"], "type": "object" };
|
|
737
738
|
function validate41(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
|
|
738
739
|
let vErrors = null;
|
|
739
740
|
let errors = 0;
|
|
@@ -894,10 +895,10 @@ function validate41(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
894
895
|
return errors === 0;
|
|
895
896
|
}
|
|
896
897
|
validate41.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
|
|
897
|
-
const
|
|
898
|
+
const schema50 = { "additionalProperties": false, "description": "One primary video placement consumed by the browser presentation adapter.", "properties": { "assetId": { "pattern": "^sha256:[0-9a-f]{64}$", "type": "string" }, "interval": { "$ref": "#/$defs/WireInterval" }, "node": { "$ref": "#/$defs/BrowserNode" }, "shotId": { "$ref": "#/$defs/BrowserNodeId" }, "source": { "$ref": "#/$defs/BrowserVideoSource" }, "sourceTiming": { "$ref": "#/$defs/BrowserVideoTiming" } }, "required": ["node", "shotId", "assetId", "interval", "sourceTiming", "source"], "type": "object" };
|
|
898
899
|
const pattern4 = new RegExp("^sha256:[0-9a-f]{64}$", "u");
|
|
899
|
-
const
|
|
900
|
-
const
|
|
900
|
+
const schema52 = { "additionalProperties": false, "description": "Exact source-time mapping for one browser video placement.", "properties": { "endNanoseconds": { "maxLength": 20, "minLength": 1, "pattern": "^(0|[1-9][0-9]*)$", "type": "string" }, "holdLastNanoseconds": { "maxLength": 20, "minLength": 1, "pattern": "^(0|[1-9][0-9]*)$", "type": "string" }, "naturalEndNanoseconds": { "maxLength": 20, "minLength": 1, "pattern": "^(0|[1-9][0-9]*)$", "type": "string" }, "playbackRate": { "$ref": "#/$defs/WirePlaybackRate" }, "plays": { "format": "uint32", "minimum": 1, "type": "integer" }, "startNanoseconds": { "maxLength": 20, "minLength": 1, "pattern": "^(0|[1-9][0-9]*)$", "type": "string" } }, "required": ["startNanoseconds", "endNanoseconds", "naturalEndNanoseconds", "playbackRate", "plays", "holdLastNanoseconds"], "type": "object" };
|
|
901
|
+
const schema53 = { "additionalProperties": false, "description": "Exact canonical playback ratio represented with browser-safe integers.", "properties": { "denominator": { "format": "uint32", "maximum": 4294967295, "minimum": 1, "type": "integer" }, "numerator": { "format": "uint32", "maximum": 4294967295, "minimum": 1, "type": "integer" } }, "required": ["numerator", "denominator"], "type": "object" };
|
|
901
902
|
const pattern5 = new RegExp("^(0|[1-9][0-9]*)$", "u");
|
|
902
903
|
function validate48(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
|
|
903
904
|
let vErrors = null;
|
|
@@ -1319,8 +1320,8 @@ function validate48(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
1319
1320
|
return errors === 0;
|
|
1320
1321
|
}
|
|
1321
1322
|
validate48.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
|
|
1322
|
-
const
|
|
1323
|
-
const
|
|
1323
|
+
const schema54 = { "description": "Exact source-frame timing projected into the browser runtime.", "oneOf": [{ "additionalProperties": false, "description": "Every source frame has one exact rational rate.", "properties": { "frameRate": { "$ref": "#/$defs/WireFrameRate", "description": "Exact source frames per second." }, "kind": { "const": "constant", "type": "string" } }, "required": ["kind", "frameRate"], "type": "object" }, { "additionalProperties": false, "description": "Every source frame carries one half-open timestamp interval.", "properties": { "boundaries": { "description": "Canonical decimal ticks from source zero through terminal end.", "items": { "type": "string" }, "maxItems": 100000, "minItems": 3, "type": "array" }, "kind": { "const": "variable", "type": "string" }, "timebase": { "$ref": "#/$defs/WireMediaTimebase", "description": "Exact seconds represented by one source timestamp tick." } }, "required": ["kind", "timebase", "boundaries"], "type": "object" }] };
|
|
1324
|
+
const schema56 = { "additionalProperties": false, "description": "Exact media timestamp unit represented with browser-safe integers.", "properties": { "denominator": { "format": "uint32", "maximum": 4294967295, "minimum": 1, "type": "integer" }, "numerator": { "format": "uint32", "maximum": 4294967295, "minimum": 1, "type": "integer" } }, "required": ["numerator", "denominator"], "type": "object" };
|
|
1324
1325
|
function validate50(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
|
|
1325
1326
|
let vErrors = null;
|
|
1326
1327
|
let errors = 0;
|
|
@@ -2112,7 +2113,7 @@ function validate22(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
2112
2113
|
errors++;
|
|
2113
2114
|
}
|
|
2114
2115
|
for (const key0 in data) {
|
|
2115
|
-
if (!(func1.call(
|
|
2116
|
+
if (!(func1.call(schema34.properties, key0))) {
|
|
2116
2117
|
const err11 = { instancePath, schemaPath: "#/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key0 }, message: "must NOT have additional properties" };
|
|
2117
2118
|
if (vErrors === null) {
|
|
2118
2119
|
vErrors = [err11];
|
|
@@ -2519,17 +2520,144 @@ function validate21(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
2519
2520
|
}
|
|
2520
2521
|
errors++;
|
|
2521
2522
|
}
|
|
2523
|
+
if (data.mediaMode === undefined) {
|
|
2524
|
+
const err2 = { instancePath, schemaPath: "#/oneOf/0/required", keyword: "required", params: { missingProperty: "mediaMode" }, message: "must have required property '" + "mediaMode" + "'" };
|
|
2525
|
+
if (vErrors === null) {
|
|
2526
|
+
vErrors = [err2];
|
|
2527
|
+
}
|
|
2528
|
+
else {
|
|
2529
|
+
vErrors.push(err2);
|
|
2530
|
+
}
|
|
2531
|
+
errors++;
|
|
2532
|
+
}
|
|
2522
2533
|
for (const key0 in data) {
|
|
2523
|
-
if (!((key0 === "plan") || (key0 === "type"))) {
|
|
2524
|
-
const
|
|
2534
|
+
if (!(((key0 === "mediaMode") || (key0 === "plan")) || (key0 === "type"))) {
|
|
2535
|
+
const err3 = { instancePath, schemaPath: "#/oneOf/0/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key0 }, message: "must NOT have additional properties" };
|
|
2525
2536
|
if (vErrors === null) {
|
|
2526
|
-
vErrors = [
|
|
2537
|
+
vErrors = [err3];
|
|
2527
2538
|
}
|
|
2528
2539
|
else {
|
|
2529
|
-
vErrors.push(
|
|
2540
|
+
vErrors.push(err3);
|
|
2541
|
+
}
|
|
2542
|
+
errors++;
|
|
2543
|
+
}
|
|
2544
|
+
}
|
|
2545
|
+
if (data.mediaMode !== undefined) {
|
|
2546
|
+
let data0 = data.mediaMode;
|
|
2547
|
+
const _errs6 = errors;
|
|
2548
|
+
let valid3 = false;
|
|
2549
|
+
let passing1 = null;
|
|
2550
|
+
const _errs7 = errors;
|
|
2551
|
+
if (typeof data0 !== "string") {
|
|
2552
|
+
const err4 = { instancePath: instancePath + "/mediaMode", schemaPath: "#/$defs/BrowserMediaMode/oneOf/0/type", keyword: "type", params: { type: "string" }, message: "must be string" };
|
|
2553
|
+
if (vErrors === null) {
|
|
2554
|
+
vErrors = [err4];
|
|
2555
|
+
}
|
|
2556
|
+
else {
|
|
2557
|
+
vErrors.push(err4);
|
|
2558
|
+
}
|
|
2559
|
+
errors++;
|
|
2560
|
+
}
|
|
2561
|
+
if ("decoded" !== data0) {
|
|
2562
|
+
const err5 = { instancePath: instancePath + "/mediaMode", schemaPath: "#/$defs/BrowserMediaMode/oneOf/0/const", keyword: "const", params: { allowedValue: "decoded" }, message: "must be equal to constant" };
|
|
2563
|
+
if (vErrors === null) {
|
|
2564
|
+
vErrors = [err5];
|
|
2565
|
+
}
|
|
2566
|
+
else {
|
|
2567
|
+
vErrors.push(err5);
|
|
2568
|
+
}
|
|
2569
|
+
errors++;
|
|
2570
|
+
}
|
|
2571
|
+
var _valid1 = _errs7 === errors;
|
|
2572
|
+
if (_valid1) {
|
|
2573
|
+
valid3 = true;
|
|
2574
|
+
passing1 = 0;
|
|
2575
|
+
}
|
|
2576
|
+
const _errs9 = errors;
|
|
2577
|
+
if (typeof data0 !== "string") {
|
|
2578
|
+
const err6 = { instancePath: instancePath + "/mediaMode", schemaPath: "#/$defs/BrowserMediaMode/oneOf/1/type", keyword: "type", params: { type: "string" }, message: "must be string" };
|
|
2579
|
+
if (vErrors === null) {
|
|
2580
|
+
vErrors = [err6];
|
|
2581
|
+
}
|
|
2582
|
+
else {
|
|
2583
|
+
vErrors.push(err6);
|
|
2584
|
+
}
|
|
2585
|
+
errors++;
|
|
2586
|
+
}
|
|
2587
|
+
if ("omitted" !== data0) {
|
|
2588
|
+
const err7 = { instancePath: instancePath + "/mediaMode", schemaPath: "#/$defs/BrowserMediaMode/oneOf/1/const", keyword: "const", params: { allowedValue: "omitted" }, message: "must be equal to constant" };
|
|
2589
|
+
if (vErrors === null) {
|
|
2590
|
+
vErrors = [err7];
|
|
2591
|
+
}
|
|
2592
|
+
else {
|
|
2593
|
+
vErrors.push(err7);
|
|
2594
|
+
}
|
|
2595
|
+
errors++;
|
|
2596
|
+
}
|
|
2597
|
+
var _valid1 = _errs9 === errors;
|
|
2598
|
+
if (_valid1 && valid3) {
|
|
2599
|
+
valid3 = false;
|
|
2600
|
+
passing1 = [passing1, 1];
|
|
2601
|
+
}
|
|
2602
|
+
else {
|
|
2603
|
+
if (_valid1) {
|
|
2604
|
+
valid3 = true;
|
|
2605
|
+
passing1 = 1;
|
|
2606
|
+
}
|
|
2607
|
+
const _errs11 = errors;
|
|
2608
|
+
if (typeof data0 !== "string") {
|
|
2609
|
+
const err8 = { instancePath: instancePath + "/mediaMode", schemaPath: "#/$defs/BrowserMediaMode/oneOf/2/type", keyword: "type", params: { type: "string" }, message: "must be string" };
|
|
2610
|
+
if (vErrors === null) {
|
|
2611
|
+
vErrors = [err8];
|
|
2612
|
+
}
|
|
2613
|
+
else {
|
|
2614
|
+
vErrors.push(err8);
|
|
2615
|
+
}
|
|
2616
|
+
errors++;
|
|
2617
|
+
}
|
|
2618
|
+
if ("layoutOnly" !== data0) {
|
|
2619
|
+
const err9 = { instancePath: instancePath + "/mediaMode", schemaPath: "#/$defs/BrowserMediaMode/oneOf/2/const", keyword: "const", params: { allowedValue: "layoutOnly" }, message: "must be equal to constant" };
|
|
2620
|
+
if (vErrors === null) {
|
|
2621
|
+
vErrors = [err9];
|
|
2622
|
+
}
|
|
2623
|
+
else {
|
|
2624
|
+
vErrors.push(err9);
|
|
2625
|
+
}
|
|
2626
|
+
errors++;
|
|
2627
|
+
}
|
|
2628
|
+
var _valid1 = _errs11 === errors;
|
|
2629
|
+
if (_valid1 && valid3) {
|
|
2630
|
+
valid3 = false;
|
|
2631
|
+
passing1 = [passing1, 2];
|
|
2632
|
+
}
|
|
2633
|
+
else {
|
|
2634
|
+
if (_valid1) {
|
|
2635
|
+
valid3 = true;
|
|
2636
|
+
passing1 = 2;
|
|
2637
|
+
}
|
|
2638
|
+
}
|
|
2639
|
+
}
|
|
2640
|
+
if (!valid3) {
|
|
2641
|
+
const err10 = { instancePath: instancePath + "/mediaMode", schemaPath: "#/$defs/BrowserMediaMode/oneOf", keyword: "oneOf", params: { passingSchemas: passing1 }, message: "must match exactly one schema in oneOf" };
|
|
2642
|
+
if (vErrors === null) {
|
|
2643
|
+
vErrors = [err10];
|
|
2644
|
+
}
|
|
2645
|
+
else {
|
|
2646
|
+
vErrors.push(err10);
|
|
2530
2647
|
}
|
|
2531
2648
|
errors++;
|
|
2532
2649
|
}
|
|
2650
|
+
else {
|
|
2651
|
+
errors = _errs6;
|
|
2652
|
+
if (vErrors !== null) {
|
|
2653
|
+
if (_errs6) {
|
|
2654
|
+
vErrors.length = _errs6;
|
|
2655
|
+
}
|
|
2656
|
+
else {
|
|
2657
|
+
vErrors = null;
|
|
2658
|
+
}
|
|
2659
|
+
}
|
|
2660
|
+
}
|
|
2533
2661
|
}
|
|
2534
2662
|
if (data.plan !== undefined) {
|
|
2535
2663
|
if (!(validate22(data.plan, { instancePath: instancePath + "/plan", parentData: data, parentDataProperty: "plan", rootData, dynamicAnchors }))) {
|
|
@@ -2538,36 +2666,36 @@ function validate21(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
2538
2666
|
}
|
|
2539
2667
|
}
|
|
2540
2668
|
if (data.type !== undefined) {
|
|
2541
|
-
let
|
|
2542
|
-
if (typeof
|
|
2543
|
-
const
|
|
2669
|
+
let data2 = data.type;
|
|
2670
|
+
if (typeof data2 !== "string") {
|
|
2671
|
+
const err11 = { instancePath: instancePath + "/type", schemaPath: "#/oneOf/0/properties/type/type", keyword: "type", params: { type: "string" }, message: "must be string" };
|
|
2544
2672
|
if (vErrors === null) {
|
|
2545
|
-
vErrors = [
|
|
2673
|
+
vErrors = [err11];
|
|
2546
2674
|
}
|
|
2547
2675
|
else {
|
|
2548
|
-
vErrors.push(
|
|
2676
|
+
vErrors.push(err11);
|
|
2549
2677
|
}
|
|
2550
2678
|
errors++;
|
|
2551
2679
|
}
|
|
2552
|
-
if ("load" !==
|
|
2553
|
-
const
|
|
2680
|
+
if ("load" !== data2) {
|
|
2681
|
+
const err12 = { instancePath: instancePath + "/type", schemaPath: "#/oneOf/0/properties/type/const", keyword: "const", params: { allowedValue: "load" }, message: "must be equal to constant" };
|
|
2554
2682
|
if (vErrors === null) {
|
|
2555
|
-
vErrors = [
|
|
2683
|
+
vErrors = [err12];
|
|
2556
2684
|
}
|
|
2557
2685
|
else {
|
|
2558
|
-
vErrors.push(
|
|
2686
|
+
vErrors.push(err12);
|
|
2559
2687
|
}
|
|
2560
2688
|
errors++;
|
|
2561
2689
|
}
|
|
2562
2690
|
}
|
|
2563
2691
|
}
|
|
2564
2692
|
else {
|
|
2565
|
-
const
|
|
2693
|
+
const err13 = { instancePath, schemaPath: "#/oneOf/0/type", keyword: "type", params: { type: "object" }, message: "must be object" };
|
|
2566
2694
|
if (vErrors === null) {
|
|
2567
|
-
vErrors = [
|
|
2695
|
+
vErrors = [err13];
|
|
2568
2696
|
}
|
|
2569
2697
|
else {
|
|
2570
|
-
vErrors.push(
|
|
2698
|
+
vErrors.push(err13);
|
|
2571
2699
|
}
|
|
2572
2700
|
errors++;
|
|
2573
2701
|
}
|
|
@@ -2577,110 +2705,110 @@ function validate21(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
2577
2705
|
passing0 = 0;
|
|
2578
2706
|
var props0 = true;
|
|
2579
2707
|
}
|
|
2580
|
-
const
|
|
2708
|
+
const _errs16 = errors;
|
|
2581
2709
|
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
2582
2710
|
if (data.type === undefined) {
|
|
2583
|
-
const
|
|
2711
|
+
const err14 = { instancePath, schemaPath: "#/oneOf/1/required", keyword: "required", params: { missingProperty: "type" }, message: "must have required property '" + "type" + "'" };
|
|
2584
2712
|
if (vErrors === null) {
|
|
2585
|
-
vErrors = [
|
|
2713
|
+
vErrors = [err14];
|
|
2586
2714
|
}
|
|
2587
2715
|
else {
|
|
2588
|
-
vErrors.push(
|
|
2716
|
+
vErrors.push(err14);
|
|
2589
2717
|
}
|
|
2590
2718
|
errors++;
|
|
2591
2719
|
}
|
|
2592
2720
|
if (data.evaluationStart === undefined) {
|
|
2593
|
-
const
|
|
2721
|
+
const err15 = { instancePath, schemaPath: "#/oneOf/1/required", keyword: "required", params: { missingProperty: "evaluationStart" }, message: "must have required property '" + "evaluationStart" + "'" };
|
|
2594
2722
|
if (vErrors === null) {
|
|
2595
|
-
vErrors = [
|
|
2723
|
+
vErrors = [err15];
|
|
2596
2724
|
}
|
|
2597
2725
|
else {
|
|
2598
|
-
vErrors.push(
|
|
2726
|
+
vErrors.push(err15);
|
|
2599
2727
|
}
|
|
2600
2728
|
errors++;
|
|
2601
2729
|
}
|
|
2602
2730
|
for (const key1 in data) {
|
|
2603
2731
|
if (!((key1 === "evaluationStart") || (key1 === "type"))) {
|
|
2604
|
-
const
|
|
2732
|
+
const err16 = { instancePath, schemaPath: "#/oneOf/1/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key1 }, message: "must NOT have additional properties" };
|
|
2605
2733
|
if (vErrors === null) {
|
|
2606
|
-
vErrors = [
|
|
2734
|
+
vErrors = [err16];
|
|
2607
2735
|
}
|
|
2608
2736
|
else {
|
|
2609
|
-
vErrors.push(
|
|
2737
|
+
vErrors.push(err16);
|
|
2610
2738
|
}
|
|
2611
2739
|
errors++;
|
|
2612
2740
|
}
|
|
2613
2741
|
}
|
|
2614
2742
|
if (data.evaluationStart !== undefined) {
|
|
2615
|
-
let
|
|
2616
|
-
if (!(((typeof
|
|
2617
|
-
const
|
|
2743
|
+
let data3 = data.evaluationStart;
|
|
2744
|
+
if (!(((typeof data3 == "number") && (!(data3 % 1) && !isNaN(data3))) && (isFinite(data3)))) {
|
|
2745
|
+
const err17 = { instancePath: instancePath + "/evaluationStart", schemaPath: "#/$defs/WireFrame/type", keyword: "type", params: { type: "integer" }, message: "must be integer" };
|
|
2618
2746
|
if (vErrors === null) {
|
|
2619
|
-
vErrors = [
|
|
2747
|
+
vErrors = [err17];
|
|
2620
2748
|
}
|
|
2621
2749
|
else {
|
|
2622
|
-
vErrors.push(
|
|
2750
|
+
vErrors.push(err17);
|
|
2623
2751
|
}
|
|
2624
2752
|
errors++;
|
|
2625
2753
|
}
|
|
2626
|
-
if ((typeof
|
|
2627
|
-
if (
|
|
2628
|
-
const
|
|
2754
|
+
if ((typeof data3 == "number") && (isFinite(data3))) {
|
|
2755
|
+
if (data3 > 9007199254740991 || isNaN(data3)) {
|
|
2756
|
+
const err18 = { instancePath: instancePath + "/evaluationStart", schemaPath: "#/$defs/WireFrame/maximum", keyword: "maximum", params: { comparison: "<=", limit: 9007199254740991 }, message: "must be <= 9007199254740991" };
|
|
2629
2757
|
if (vErrors === null) {
|
|
2630
|
-
vErrors = [
|
|
2758
|
+
vErrors = [err18];
|
|
2631
2759
|
}
|
|
2632
2760
|
else {
|
|
2633
|
-
vErrors.push(
|
|
2761
|
+
vErrors.push(err18);
|
|
2634
2762
|
}
|
|
2635
2763
|
errors++;
|
|
2636
2764
|
}
|
|
2637
|
-
if (
|
|
2638
|
-
const
|
|
2765
|
+
if (data3 < 0 || isNaN(data3)) {
|
|
2766
|
+
const err19 = { instancePath: instancePath + "/evaluationStart", schemaPath: "#/$defs/WireFrame/minimum", keyword: "minimum", params: { comparison: ">=", limit: 0 }, message: "must be >= 0" };
|
|
2639
2767
|
if (vErrors === null) {
|
|
2640
|
-
vErrors = [
|
|
2768
|
+
vErrors = [err19];
|
|
2641
2769
|
}
|
|
2642
2770
|
else {
|
|
2643
|
-
vErrors.push(
|
|
2771
|
+
vErrors.push(err19);
|
|
2644
2772
|
}
|
|
2645
2773
|
errors++;
|
|
2646
2774
|
}
|
|
2647
2775
|
}
|
|
2648
2776
|
}
|
|
2649
2777
|
if (data.type !== undefined) {
|
|
2650
|
-
let
|
|
2651
|
-
if (typeof
|
|
2652
|
-
const
|
|
2778
|
+
let data4 = data.type;
|
|
2779
|
+
if (typeof data4 !== "string") {
|
|
2780
|
+
const err20 = { instancePath: instancePath + "/type", schemaPath: "#/oneOf/1/properties/type/type", keyword: "type", params: { type: "string" }, message: "must be string" };
|
|
2653
2781
|
if (vErrors === null) {
|
|
2654
|
-
vErrors = [
|
|
2782
|
+
vErrors = [err20];
|
|
2655
2783
|
}
|
|
2656
2784
|
else {
|
|
2657
|
-
vErrors.push(
|
|
2785
|
+
vErrors.push(err20);
|
|
2658
2786
|
}
|
|
2659
2787
|
errors++;
|
|
2660
2788
|
}
|
|
2661
|
-
if ("prepare" !==
|
|
2662
|
-
const
|
|
2789
|
+
if ("prepare" !== data4) {
|
|
2790
|
+
const err21 = { instancePath: instancePath + "/type", schemaPath: "#/oneOf/1/properties/type/const", keyword: "const", params: { allowedValue: "prepare" }, message: "must be equal to constant" };
|
|
2663
2791
|
if (vErrors === null) {
|
|
2664
|
-
vErrors = [
|
|
2792
|
+
vErrors = [err21];
|
|
2665
2793
|
}
|
|
2666
2794
|
else {
|
|
2667
|
-
vErrors.push(
|
|
2795
|
+
vErrors.push(err21);
|
|
2668
2796
|
}
|
|
2669
2797
|
errors++;
|
|
2670
2798
|
}
|
|
2671
2799
|
}
|
|
2672
2800
|
}
|
|
2673
2801
|
else {
|
|
2674
|
-
const
|
|
2802
|
+
const err22 = { instancePath, schemaPath: "#/oneOf/1/type", keyword: "type", params: { type: "object" }, message: "must be object" };
|
|
2675
2803
|
if (vErrors === null) {
|
|
2676
|
-
vErrors = [
|
|
2804
|
+
vErrors = [err22];
|
|
2677
2805
|
}
|
|
2678
2806
|
else {
|
|
2679
|
-
vErrors.push(
|
|
2807
|
+
vErrors.push(err22);
|
|
2680
2808
|
}
|
|
2681
2809
|
errors++;
|
|
2682
2810
|
}
|
|
2683
|
-
var _valid0 =
|
|
2811
|
+
var _valid0 = _errs16 === errors;
|
|
2684
2812
|
if (_valid0 && valid0) {
|
|
2685
2813
|
valid0 = false;
|
|
2686
2814
|
passing0 = [passing0, 1];
|
|
@@ -2693,110 +2821,110 @@ function validate21(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
2693
2821
|
props0 = true;
|
|
2694
2822
|
}
|
|
2695
2823
|
}
|
|
2696
|
-
const
|
|
2824
|
+
const _errs24 = errors;
|
|
2697
2825
|
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
2698
2826
|
if (data.type === undefined) {
|
|
2699
|
-
const
|
|
2827
|
+
const err23 = { instancePath, schemaPath: "#/oneOf/2/required", keyword: "required", params: { missingProperty: "type" }, message: "must have required property '" + "type" + "'" };
|
|
2700
2828
|
if (vErrors === null) {
|
|
2701
|
-
vErrors = [
|
|
2829
|
+
vErrors = [err23];
|
|
2702
2830
|
}
|
|
2703
2831
|
else {
|
|
2704
|
-
vErrors.push(
|
|
2832
|
+
vErrors.push(err23);
|
|
2705
2833
|
}
|
|
2706
2834
|
errors++;
|
|
2707
2835
|
}
|
|
2708
2836
|
if (data.frame === undefined) {
|
|
2709
|
-
const
|
|
2837
|
+
const err24 = { instancePath, schemaPath: "#/oneOf/2/required", keyword: "required", params: { missingProperty: "frame" }, message: "must have required property '" + "frame" + "'" };
|
|
2710
2838
|
if (vErrors === null) {
|
|
2711
|
-
vErrors = [
|
|
2839
|
+
vErrors = [err24];
|
|
2712
2840
|
}
|
|
2713
2841
|
else {
|
|
2714
|
-
vErrors.push(
|
|
2842
|
+
vErrors.push(err24);
|
|
2715
2843
|
}
|
|
2716
2844
|
errors++;
|
|
2717
2845
|
}
|
|
2718
2846
|
for (const key2 in data) {
|
|
2719
2847
|
if (!((key2 === "frame") || (key2 === "type"))) {
|
|
2720
|
-
const
|
|
2848
|
+
const err25 = { instancePath, schemaPath: "#/oneOf/2/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key2 }, message: "must NOT have additional properties" };
|
|
2721
2849
|
if (vErrors === null) {
|
|
2722
|
-
vErrors = [
|
|
2850
|
+
vErrors = [err25];
|
|
2723
2851
|
}
|
|
2724
2852
|
else {
|
|
2725
|
-
vErrors.push(
|
|
2853
|
+
vErrors.push(err25);
|
|
2726
2854
|
}
|
|
2727
2855
|
errors++;
|
|
2728
2856
|
}
|
|
2729
2857
|
}
|
|
2730
2858
|
if (data.frame !== undefined) {
|
|
2731
|
-
let
|
|
2732
|
-
if (!(((typeof
|
|
2733
|
-
const
|
|
2859
|
+
let data5 = data.frame;
|
|
2860
|
+
if (!(((typeof data5 == "number") && (!(data5 % 1) && !isNaN(data5))) && (isFinite(data5)))) {
|
|
2861
|
+
const err26 = { instancePath: instancePath + "/frame", schemaPath: "#/$defs/WireFrame/type", keyword: "type", params: { type: "integer" }, message: "must be integer" };
|
|
2734
2862
|
if (vErrors === null) {
|
|
2735
|
-
vErrors = [
|
|
2863
|
+
vErrors = [err26];
|
|
2736
2864
|
}
|
|
2737
2865
|
else {
|
|
2738
|
-
vErrors.push(
|
|
2866
|
+
vErrors.push(err26);
|
|
2739
2867
|
}
|
|
2740
2868
|
errors++;
|
|
2741
2869
|
}
|
|
2742
|
-
if ((typeof
|
|
2743
|
-
if (
|
|
2744
|
-
const
|
|
2870
|
+
if ((typeof data5 == "number") && (isFinite(data5))) {
|
|
2871
|
+
if (data5 > 9007199254740991 || isNaN(data5)) {
|
|
2872
|
+
const err27 = { instancePath: instancePath + "/frame", schemaPath: "#/$defs/WireFrame/maximum", keyword: "maximum", params: { comparison: "<=", limit: 9007199254740991 }, message: "must be <= 9007199254740991" };
|
|
2745
2873
|
if (vErrors === null) {
|
|
2746
|
-
vErrors = [
|
|
2874
|
+
vErrors = [err27];
|
|
2747
2875
|
}
|
|
2748
2876
|
else {
|
|
2749
|
-
vErrors.push(
|
|
2877
|
+
vErrors.push(err27);
|
|
2750
2878
|
}
|
|
2751
2879
|
errors++;
|
|
2752
2880
|
}
|
|
2753
|
-
if (
|
|
2754
|
-
const
|
|
2881
|
+
if (data5 < 0 || isNaN(data5)) {
|
|
2882
|
+
const err28 = { instancePath: instancePath + "/frame", schemaPath: "#/$defs/WireFrame/minimum", keyword: "minimum", params: { comparison: ">=", limit: 0 }, message: "must be >= 0" };
|
|
2755
2883
|
if (vErrors === null) {
|
|
2756
|
-
vErrors = [
|
|
2884
|
+
vErrors = [err28];
|
|
2757
2885
|
}
|
|
2758
2886
|
else {
|
|
2759
|
-
vErrors.push(
|
|
2887
|
+
vErrors.push(err28);
|
|
2760
2888
|
}
|
|
2761
2889
|
errors++;
|
|
2762
2890
|
}
|
|
2763
2891
|
}
|
|
2764
2892
|
}
|
|
2765
2893
|
if (data.type !== undefined) {
|
|
2766
|
-
let
|
|
2767
|
-
if (typeof
|
|
2768
|
-
const
|
|
2894
|
+
let data6 = data.type;
|
|
2895
|
+
if (typeof data6 !== "string") {
|
|
2896
|
+
const err29 = { instancePath: instancePath + "/type", schemaPath: "#/oneOf/2/properties/type/type", keyword: "type", params: { type: "string" }, message: "must be string" };
|
|
2769
2897
|
if (vErrors === null) {
|
|
2770
|
-
vErrors = [
|
|
2898
|
+
vErrors = [err29];
|
|
2771
2899
|
}
|
|
2772
2900
|
else {
|
|
2773
|
-
vErrors.push(
|
|
2901
|
+
vErrors.push(err29);
|
|
2774
2902
|
}
|
|
2775
2903
|
errors++;
|
|
2776
2904
|
}
|
|
2777
|
-
if ("seek" !==
|
|
2778
|
-
const
|
|
2905
|
+
if ("seek" !== data6) {
|
|
2906
|
+
const err30 = { instancePath: instancePath + "/type", schemaPath: "#/oneOf/2/properties/type/const", keyword: "const", params: { allowedValue: "seek" }, message: "must be equal to constant" };
|
|
2779
2907
|
if (vErrors === null) {
|
|
2780
|
-
vErrors = [
|
|
2908
|
+
vErrors = [err30];
|
|
2781
2909
|
}
|
|
2782
2910
|
else {
|
|
2783
|
-
vErrors.push(
|
|
2911
|
+
vErrors.push(err30);
|
|
2784
2912
|
}
|
|
2785
2913
|
errors++;
|
|
2786
2914
|
}
|
|
2787
2915
|
}
|
|
2788
2916
|
}
|
|
2789
2917
|
else {
|
|
2790
|
-
const
|
|
2918
|
+
const err31 = { instancePath, schemaPath: "#/oneOf/2/type", keyword: "type", params: { type: "object" }, message: "must be object" };
|
|
2791
2919
|
if (vErrors === null) {
|
|
2792
|
-
vErrors = [
|
|
2920
|
+
vErrors = [err31];
|
|
2793
2921
|
}
|
|
2794
2922
|
else {
|
|
2795
|
-
vErrors.push(
|
|
2923
|
+
vErrors.push(err31);
|
|
2796
2924
|
}
|
|
2797
2925
|
errors++;
|
|
2798
2926
|
}
|
|
2799
|
-
var _valid0 =
|
|
2927
|
+
var _valid0 = _errs24 === errors;
|
|
2800
2928
|
if (_valid0 && valid0) {
|
|
2801
2929
|
valid0 = false;
|
|
2802
2930
|
passing0 = [passing0, 2];
|
|
@@ -2809,110 +2937,110 @@ function validate21(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
2809
2937
|
props0 = true;
|
|
2810
2938
|
}
|
|
2811
2939
|
}
|
|
2812
|
-
const
|
|
2940
|
+
const _errs32 = errors;
|
|
2813
2941
|
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
2814
2942
|
if (data.type === undefined) {
|
|
2815
|
-
const
|
|
2943
|
+
const err32 = { instancePath, schemaPath: "#/oneOf/3/required", keyword: "required", params: { missingProperty: "type" }, message: "must have required property '" + "type" + "'" };
|
|
2816
2944
|
if (vErrors === null) {
|
|
2817
|
-
vErrors = [
|
|
2945
|
+
vErrors = [err32];
|
|
2818
2946
|
}
|
|
2819
2947
|
else {
|
|
2820
|
-
vErrors.push(
|
|
2948
|
+
vErrors.push(err32);
|
|
2821
2949
|
}
|
|
2822
2950
|
errors++;
|
|
2823
2951
|
}
|
|
2824
2952
|
if (data.frame === undefined) {
|
|
2825
|
-
const
|
|
2953
|
+
const err33 = { instancePath, schemaPath: "#/oneOf/3/required", keyword: "required", params: { missingProperty: "frame" }, message: "must have required property '" + "frame" + "'" };
|
|
2826
2954
|
if (vErrors === null) {
|
|
2827
|
-
vErrors = [
|
|
2955
|
+
vErrors = [err33];
|
|
2828
2956
|
}
|
|
2829
2957
|
else {
|
|
2830
|
-
vErrors.push(
|
|
2958
|
+
vErrors.push(err33);
|
|
2831
2959
|
}
|
|
2832
2960
|
errors++;
|
|
2833
2961
|
}
|
|
2834
2962
|
for (const key3 in data) {
|
|
2835
2963
|
if (!((key3 === "frame") || (key3 === "type"))) {
|
|
2836
|
-
const
|
|
2964
|
+
const err34 = { instancePath, schemaPath: "#/oneOf/3/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key3 }, message: "must NOT have additional properties" };
|
|
2837
2965
|
if (vErrors === null) {
|
|
2838
|
-
vErrors = [
|
|
2966
|
+
vErrors = [err34];
|
|
2839
2967
|
}
|
|
2840
2968
|
else {
|
|
2841
|
-
vErrors.push(
|
|
2969
|
+
vErrors.push(err34);
|
|
2842
2970
|
}
|
|
2843
2971
|
errors++;
|
|
2844
2972
|
}
|
|
2845
2973
|
}
|
|
2846
2974
|
if (data.frame !== undefined) {
|
|
2847
|
-
let
|
|
2848
|
-
if (!(((typeof
|
|
2849
|
-
const
|
|
2975
|
+
let data7 = data.frame;
|
|
2976
|
+
if (!(((typeof data7 == "number") && (!(data7 % 1) && !isNaN(data7))) && (isFinite(data7)))) {
|
|
2977
|
+
const err35 = { instancePath: instancePath + "/frame", schemaPath: "#/$defs/WireFrame/type", keyword: "type", params: { type: "integer" }, message: "must be integer" };
|
|
2850
2978
|
if (vErrors === null) {
|
|
2851
|
-
vErrors = [
|
|
2979
|
+
vErrors = [err35];
|
|
2852
2980
|
}
|
|
2853
2981
|
else {
|
|
2854
|
-
vErrors.push(
|
|
2982
|
+
vErrors.push(err35);
|
|
2855
2983
|
}
|
|
2856
2984
|
errors++;
|
|
2857
2985
|
}
|
|
2858
|
-
if ((typeof
|
|
2859
|
-
if (
|
|
2860
|
-
const
|
|
2986
|
+
if ((typeof data7 == "number") && (isFinite(data7))) {
|
|
2987
|
+
if (data7 > 9007199254740991 || isNaN(data7)) {
|
|
2988
|
+
const err36 = { instancePath: instancePath + "/frame", schemaPath: "#/$defs/WireFrame/maximum", keyword: "maximum", params: { comparison: "<=", limit: 9007199254740991 }, message: "must be <= 9007199254740991" };
|
|
2861
2989
|
if (vErrors === null) {
|
|
2862
|
-
vErrors = [
|
|
2990
|
+
vErrors = [err36];
|
|
2863
2991
|
}
|
|
2864
2992
|
else {
|
|
2865
|
-
vErrors.push(
|
|
2993
|
+
vErrors.push(err36);
|
|
2866
2994
|
}
|
|
2867
2995
|
errors++;
|
|
2868
2996
|
}
|
|
2869
|
-
if (
|
|
2870
|
-
const
|
|
2997
|
+
if (data7 < 0 || isNaN(data7)) {
|
|
2998
|
+
const err37 = { instancePath: instancePath + "/frame", schemaPath: "#/$defs/WireFrame/minimum", keyword: "minimum", params: { comparison: ">=", limit: 0 }, message: "must be >= 0" };
|
|
2871
2999
|
if (vErrors === null) {
|
|
2872
|
-
vErrors = [
|
|
3000
|
+
vErrors = [err37];
|
|
2873
3001
|
}
|
|
2874
3002
|
else {
|
|
2875
|
-
vErrors.push(
|
|
3003
|
+
vErrors.push(err37);
|
|
2876
3004
|
}
|
|
2877
3005
|
errors++;
|
|
2878
3006
|
}
|
|
2879
3007
|
}
|
|
2880
3008
|
}
|
|
2881
3009
|
if (data.type !== undefined) {
|
|
2882
|
-
let
|
|
2883
|
-
if (typeof
|
|
2884
|
-
const
|
|
3010
|
+
let data8 = data.type;
|
|
3011
|
+
if (typeof data8 !== "string") {
|
|
3012
|
+
const err38 = { instancePath: instancePath + "/type", schemaPath: "#/oneOf/3/properties/type/type", keyword: "type", params: { type: "string" }, message: "must be string" };
|
|
2885
3013
|
if (vErrors === null) {
|
|
2886
|
-
vErrors = [
|
|
3014
|
+
vErrors = [err38];
|
|
2887
3015
|
}
|
|
2888
3016
|
else {
|
|
2889
|
-
vErrors.push(
|
|
3017
|
+
vErrors.push(err38);
|
|
2890
3018
|
}
|
|
2891
3019
|
errors++;
|
|
2892
3020
|
}
|
|
2893
|
-
if ("confirm" !==
|
|
2894
|
-
const
|
|
3021
|
+
if ("confirm" !== data8) {
|
|
3022
|
+
const err39 = { instancePath: instancePath + "/type", schemaPath: "#/oneOf/3/properties/type/const", keyword: "const", params: { allowedValue: "confirm" }, message: "must be equal to constant" };
|
|
2895
3023
|
if (vErrors === null) {
|
|
2896
|
-
vErrors = [
|
|
3024
|
+
vErrors = [err39];
|
|
2897
3025
|
}
|
|
2898
3026
|
else {
|
|
2899
|
-
vErrors.push(
|
|
3027
|
+
vErrors.push(err39);
|
|
2900
3028
|
}
|
|
2901
3029
|
errors++;
|
|
2902
3030
|
}
|
|
2903
3031
|
}
|
|
2904
3032
|
}
|
|
2905
3033
|
else {
|
|
2906
|
-
const
|
|
3034
|
+
const err40 = { instancePath, schemaPath: "#/oneOf/3/type", keyword: "type", params: { type: "object" }, message: "must be object" };
|
|
2907
3035
|
if (vErrors === null) {
|
|
2908
|
-
vErrors = [
|
|
3036
|
+
vErrors = [err40];
|
|
2909
3037
|
}
|
|
2910
3038
|
else {
|
|
2911
|
-
vErrors.push(
|
|
3039
|
+
vErrors.push(err40);
|
|
2912
3040
|
}
|
|
2913
3041
|
errors++;
|
|
2914
3042
|
}
|
|
2915
|
-
var _valid0 =
|
|
3043
|
+
var _valid0 = _errs32 === errors;
|
|
2916
3044
|
if (_valid0 && valid0) {
|
|
2917
3045
|
valid0 = false;
|
|
2918
3046
|
passing0 = [passing0, 3];
|
|
@@ -2925,65 +3053,65 @@ function validate21(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
2925
3053
|
props0 = true;
|
|
2926
3054
|
}
|
|
2927
3055
|
}
|
|
2928
|
-
const
|
|
3056
|
+
const _errs40 = errors;
|
|
2929
3057
|
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
2930
3058
|
if (data.type === undefined) {
|
|
2931
|
-
const
|
|
3059
|
+
const err41 = { instancePath, schemaPath: "#/oneOf/4/required", keyword: "required", params: { missingProperty: "type" }, message: "must have required property '" + "type" + "'" };
|
|
2932
3060
|
if (vErrors === null) {
|
|
2933
|
-
vErrors = [
|
|
3061
|
+
vErrors = [err41];
|
|
2934
3062
|
}
|
|
2935
3063
|
else {
|
|
2936
|
-
vErrors.push(
|
|
3064
|
+
vErrors.push(err41);
|
|
2937
3065
|
}
|
|
2938
3066
|
errors++;
|
|
2939
3067
|
}
|
|
2940
3068
|
for (const key4 in data) {
|
|
2941
3069
|
if (!(key4 === "type")) {
|
|
2942
|
-
const
|
|
3070
|
+
const err42 = { instancePath, schemaPath: "#/oneOf/4/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key4 }, message: "must NOT have additional properties" };
|
|
2943
3071
|
if (vErrors === null) {
|
|
2944
|
-
vErrors = [
|
|
3072
|
+
vErrors = [err42];
|
|
2945
3073
|
}
|
|
2946
3074
|
else {
|
|
2947
|
-
vErrors.push(
|
|
3075
|
+
vErrors.push(err42);
|
|
2948
3076
|
}
|
|
2949
3077
|
errors++;
|
|
2950
3078
|
}
|
|
2951
3079
|
}
|
|
2952
3080
|
if (data.type !== undefined) {
|
|
2953
|
-
let
|
|
2954
|
-
if (typeof
|
|
2955
|
-
const
|
|
3081
|
+
let data9 = data.type;
|
|
3082
|
+
if (typeof data9 !== "string") {
|
|
3083
|
+
const err43 = { instancePath: instancePath + "/type", schemaPath: "#/oneOf/4/properties/type/type", keyword: "type", params: { type: "string" }, message: "must be string" };
|
|
2956
3084
|
if (vErrors === null) {
|
|
2957
|
-
vErrors = [
|
|
3085
|
+
vErrors = [err43];
|
|
2958
3086
|
}
|
|
2959
3087
|
else {
|
|
2960
|
-
vErrors.push(
|
|
3088
|
+
vErrors.push(err43);
|
|
2961
3089
|
}
|
|
2962
3090
|
errors++;
|
|
2963
3091
|
}
|
|
2964
|
-
if ("dispose" !==
|
|
2965
|
-
const
|
|
3092
|
+
if ("dispose" !== data9) {
|
|
3093
|
+
const err44 = { instancePath: instancePath + "/type", schemaPath: "#/oneOf/4/properties/type/const", keyword: "const", params: { allowedValue: "dispose" }, message: "must be equal to constant" };
|
|
2966
3094
|
if (vErrors === null) {
|
|
2967
|
-
vErrors = [
|
|
3095
|
+
vErrors = [err44];
|
|
2968
3096
|
}
|
|
2969
3097
|
else {
|
|
2970
|
-
vErrors.push(
|
|
3098
|
+
vErrors.push(err44);
|
|
2971
3099
|
}
|
|
2972
3100
|
errors++;
|
|
2973
3101
|
}
|
|
2974
3102
|
}
|
|
2975
3103
|
}
|
|
2976
3104
|
else {
|
|
2977
|
-
const
|
|
3105
|
+
const err45 = { instancePath, schemaPath: "#/oneOf/4/type", keyword: "type", params: { type: "object" }, message: "must be object" };
|
|
2978
3106
|
if (vErrors === null) {
|
|
2979
|
-
vErrors = [
|
|
3107
|
+
vErrors = [err45];
|
|
2980
3108
|
}
|
|
2981
3109
|
else {
|
|
2982
|
-
vErrors.push(
|
|
3110
|
+
vErrors.push(err45);
|
|
2983
3111
|
}
|
|
2984
3112
|
errors++;
|
|
2985
3113
|
}
|
|
2986
|
-
var _valid0 =
|
|
3114
|
+
var _valid0 = _errs40 === errors;
|
|
2987
3115
|
if (_valid0 && valid0) {
|
|
2988
3116
|
valid0 = false;
|
|
2989
3117
|
passing0 = [passing0, 4];
|
|
@@ -3001,12 +3129,12 @@ function validate21(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
3001
3129
|
}
|
|
3002
3130
|
}
|
|
3003
3131
|
if (!valid0) {
|
|
3004
|
-
const
|
|
3132
|
+
const err46 = { instancePath, schemaPath: "#/oneOf", keyword: "oneOf", params: { passingSchemas: passing0 }, message: "must match exactly one schema in oneOf" };
|
|
3005
3133
|
if (vErrors === null) {
|
|
3006
|
-
vErrors = [
|
|
3134
|
+
vErrors = [err46];
|
|
3007
3135
|
}
|
|
3008
3136
|
else {
|
|
3009
|
-
vErrors.push(
|
|
3137
|
+
vErrors.push(err46);
|
|
3010
3138
|
}
|
|
3011
3139
|
errors++;
|
|
3012
3140
|
}
|
|
@@ -3027,7 +3155,7 @@ function validate21(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
3027
3155
|
}
|
|
3028
3156
|
validate21.evaluated = { "dynamicProps": true, "dynamicItems": false };
|
|
3029
3157
|
function validate20(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
|
|
3030
|
-
/*# sourceURL="https://onmark.dev/schemas/browser-request-
|
|
3158
|
+
/*# sourceURL="https://onmark.dev/schemas/browser-request-v5.schema.json" */ ;
|
|
3031
3159
|
let vErrors = null;
|
|
3032
3160
|
let errors = 0;
|
|
3033
3161
|
const evaluated0 = validate20.evaluated;
|
|
@@ -3133,8 +3261,8 @@ function validate20(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
3133
3261
|
}
|
|
3134
3262
|
errors++;
|
|
3135
3263
|
}
|
|
3136
|
-
if (
|
|
3137
|
-
const err8 = { instancePath: instancePath + "/version", schemaPath: "#/$defs/ProtocolVersion/const", keyword: "const", params: { allowedValue:
|
|
3264
|
+
if (5 !== data2) {
|
|
3265
|
+
const err8 = { instancePath: instancePath + "/version", schemaPath: "#/$defs/ProtocolVersion/const", keyword: "const", params: { allowedValue: 5 }, message: "must be equal to constant" };
|
|
3138
3266
|
if (vErrors === null) {
|
|
3139
3267
|
vErrors = [err8];
|
|
3140
3268
|
}
|
|
@@ -3168,26 +3296,589 @@ function validate20(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
3168
3296
|
}
|
|
3169
3297
|
}
|
|
3170
3298
|
else {
|
|
3171
|
-
const err11 = { instancePath, schemaPath: "#/type", keyword: "type", params: { type: "object" }, message: "must be object" };
|
|
3299
|
+
const err11 = { instancePath, schemaPath: "#/type", keyword: "type", params: { type: "object" }, message: "must be object" };
|
|
3300
|
+
if (vErrors === null) {
|
|
3301
|
+
vErrors = [err11];
|
|
3302
|
+
}
|
|
3303
|
+
else {
|
|
3304
|
+
vErrors.push(err11);
|
|
3305
|
+
}
|
|
3306
|
+
errors++;
|
|
3307
|
+
}
|
|
3308
|
+
validate20.errors = vErrors;
|
|
3309
|
+
return errors === 0;
|
|
3310
|
+
}
|
|
3311
|
+
validate20.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
|
|
3312
|
+
export const validateBrowserResponse = validate55;
|
|
3313
|
+
const schema62 = { "$defs": { "BrowserEvent": { "description": "Closed events emitted by the browser runtime.", "oneOf": [{ "additionalProperties": false, "description": "The immutable browser plan was accepted.", "properties": { "type": { "const": "loaded", "type": "string" } }, "required": ["type"], "type": "object" }, { "additionalProperties": false, "description": "Resources required at the evaluation start are stable.", "properties": { "evaluationStart": { "$ref": "#/$defs/WireFrame", "description": "Frame at which preparation completed." }, "mediaLayout": { "$ref": "#/$defs/BrowserMediaLayout", "description": "Exact static media layout observed by the browser." }, "type": { "const": "prepared", "type": "string" } }, "required": ["type", "evaluationStart", "mediaLayout"], "type": "object" }, { "additionalProperties": false, "description": "One requested frame has been staged for the compositor.", "properties": { "frame": { "$ref": "#/$defs/WireFrame", "description": "Exact frame represented by staged browser state." }, "type": { "const": "frameStaged", "type": "string" } }, "required": ["type", "frame"], "type": "object" }, { "additionalProperties": false, "description": "The captured payload's staged media passed compositor confirmation.", "properties": { "frame": { "$ref": "#/$defs/WireFrame", "description": "Exact frame confirmed by browser media state." }, "type": { "const": "frameReady", "type": "string" } }, "required": ["type", "frame"], "type": "object" }, { "additionalProperties": false, "description": "The browser rejected a command or could not reach readiness.", "properties": { "code": { "$ref": "#/$defs/ProtocolFailureCode", "description": "Stable machine-readable failure category." }, "message": { "description": "Direct explanation in browser/runtime terms.", "maxLength": 4096, "pattern": "\\S", "type": "string" }, "pendingResources": { "description": "Resources that prevented readiness, in caller-owned deterministic order.", "items": { "maxLength": 1024, "pattern": "\\S", "type": "string" }, "maxItems": 256, "type": "array" }, "type": { "const": "failed", "type": "string" } }, "required": ["type", "code", "message", "pendingResources"], "type": "object" }, { "additionalProperties": false, "description": "The browser session released its resources.", "properties": { "type": { "const": "disposed", "type": "string" } }, "required": ["type"], "type": "object" }] }, "BrowserMediaLayout": { "description": "Canonically ordered layout evidence for browser video placements.", "items": { "$ref": "#/$defs/BrowserMediaPlacement" }, "maxItems": 16, "type": "array" }, "BrowserMediaPlacement": { "additionalProperties": false, "description": "One video element's static, axis-aligned browser layout.", "properties": { "nodeId": { "$ref": "#/$defs/BrowserNodeId" }, "objectFit": { "$ref": "#/$defs/BrowserObjectFit" }, "objectPosition": { "$ref": "#/$defs/BrowserObjectPosition" }, "rectangle": { "$ref": "#/$defs/BrowserPixelRectangle" } }, "required": ["nodeId", "rectangle", "objectFit", "objectPosition"], "type": "object" }, "BrowserNodeId": { "description": "Browser identity for one Timeline element or imported caption.\n\nIDs form dense renderable-semantic preorder within one Browser Plan.\n\nAuthored IDs, rather than this unit-local key, retain cross-projection\nsemantic identity.", "format": "uint32", "maximum": 4294967295, "minimum": 0, "type": "integer" }, "BrowserObjectFit": { "description": "Closed CSS object-fit subset admitted by native media.", "oneOf": [{ "const": "fill", "description": "Distort source pixels to fill the element rectangle.", "type": "string" }, { "const": "contain", "description": "Preserve aspect ratio while fitting completely inside the rectangle.", "type": "string" }, { "const": "cover", "description": "Preserve aspect ratio while covering the complete rectangle.", "type": "string" }] }, "BrowserObjectPosition": { "additionalProperties": false, "description": "Fixed-point CSS object-position, where one million represents 100%.", "properties": { "x": { "format": "uint32", "maximum": 1000000, "minimum": 0, "type": "integer" }, "y": { "format": "uint32", "maximum": 1000000, "minimum": 0, "type": "integer" } }, "required": ["x", "y"], "type": "object" }, "BrowserPixelRectangle": { "additionalProperties": false, "description": "Positive pixel rectangle relative to the output viewport.", "properties": { "height": { "format": "uint32", "minimum": 0, "type": "integer" }, "width": { "format": "uint32", "minimum": 0, "type": "integer" }, "x": { "format": "uint32", "minimum": 0, "type": "integer" }, "y": { "format": "uint32", "minimum": 0, "type": "integer" } }, "required": ["x", "y", "width", "height"], "type": "object" }, "ProtocolFailureCode": { "description": "Stable browser protocol failure category.", "oneOf": [{ "const": "protocolMismatch", "description": "The envelope version is unsupported.", "type": "string" }, { "const": "invalidRequest", "description": "The command violates its wire contract.", "type": "string" }, { "const": "loadFailed", "description": "The immutable plan could not be installed.", "type": "string" }, { "const": "prepareFailed", "description": "Preparation could not stabilize required resources.", "type": "string" }, { "const": "seekFailed", "description": "The requested frame could not be evaluated.", "type": "string" }, { "const": "confirmFailed", "description": "The staged frame could not be confirmed after compositor capture.", "type": "string" }, { "const": "readinessTimeout", "description": "One or more resources missed the readiness deadline.", "type": "string" }, { "const": "internal", "description": "The runtime violated an internal invariant.", "type": "string" }] }, "ProtocolVersion": { "const": 5, "description": "Version of the native-to-browser message contract.", "format": "uint16", "maximum": 65535, "minimum": 0, "type": "integer" }, "RequestId": { "description": "Correlation identity shared by one request and its response events.", "format": "uint32", "maximum": 4294967295, "minimum": 0, "type": "integer" }, "WireFrame": { "description": "Exact frame integer accepted by JavaScript without rounding.", "format": "uint64", "maximum": 9007199254740991, "minimum": 0, "type": "integer" } }, "$id": "https://onmark.dev/schemas/browser-response-v5.schema.json", "$schema": "https://json-schema.org/draft/2020-12/schema", "additionalProperties": false, "description": "One versioned event returned by the browser runtime.", "properties": { "event": { "$ref": "#/$defs/BrowserEvent" }, "requestId": { "$ref": "#/$defs/RequestId" }, "version": { "$ref": "#/$defs/ProtocolVersion" } }, "required": ["version", "requestId", "event"], "title": "BrowserResponse", "type": "object", "x-onmark-max-failure-message-characters": 4096, "x-onmark-max-pending-resource-characters": 1024, "x-onmark-max-pending-resources": 256 };
|
|
3314
|
+
const schema74 = { "description": "Correlation identity shared by one request and its response events.", "format": "uint32", "maximum": 4294967295, "minimum": 0, "type": "integer" };
|
|
3315
|
+
const schema75 = { "const": 5, "description": "Version of the native-to-browser message contract.", "format": "uint16", "maximum": 65535, "minimum": 0, "type": "integer" };
|
|
3316
|
+
const schema63 = { "description": "Closed events emitted by the browser runtime.", "oneOf": [{ "additionalProperties": false, "description": "The immutable browser plan was accepted.", "properties": { "type": { "const": "loaded", "type": "string" } }, "required": ["type"], "type": "object" }, { "additionalProperties": false, "description": "Resources required at the evaluation start are stable.", "properties": { "evaluationStart": { "$ref": "#/$defs/WireFrame", "description": "Frame at which preparation completed." }, "mediaLayout": { "$ref": "#/$defs/BrowserMediaLayout", "description": "Exact static media layout observed by the browser." }, "type": { "const": "prepared", "type": "string" } }, "required": ["type", "evaluationStart", "mediaLayout"], "type": "object" }, { "additionalProperties": false, "description": "One requested frame has been staged for the compositor.", "properties": { "frame": { "$ref": "#/$defs/WireFrame", "description": "Exact frame represented by staged browser state." }, "type": { "const": "frameStaged", "type": "string" } }, "required": ["type", "frame"], "type": "object" }, { "additionalProperties": false, "description": "The captured payload's staged media passed compositor confirmation.", "properties": { "frame": { "$ref": "#/$defs/WireFrame", "description": "Exact frame confirmed by browser media state." }, "type": { "const": "frameReady", "type": "string" } }, "required": ["type", "frame"], "type": "object" }, { "additionalProperties": false, "description": "The browser rejected a command or could not reach readiness.", "properties": { "code": { "$ref": "#/$defs/ProtocolFailureCode", "description": "Stable machine-readable failure category." }, "message": { "description": "Direct explanation in browser/runtime terms.", "maxLength": 4096, "pattern": "\\S", "type": "string" }, "pendingResources": { "description": "Resources that prevented readiness, in caller-owned deterministic order.", "items": { "maxLength": 1024, "pattern": "\\S", "type": "string" }, "maxItems": 256, "type": "array" }, "type": { "const": "failed", "type": "string" } }, "required": ["type", "code", "message", "pendingResources"], "type": "object" }, { "additionalProperties": false, "description": "The browser session released its resources.", "properties": { "type": { "const": "disposed", "type": "string" } }, "required": ["type"], "type": "object" }] };
|
|
3317
|
+
const schema64 = { "description": "Exact frame integer accepted by JavaScript without rounding.", "format": "uint64", "maximum": 9007199254740991, "minimum": 0, "type": "integer" };
|
|
3318
|
+
const schema73 = { "description": "Stable browser protocol failure category.", "oneOf": [{ "const": "protocolMismatch", "description": "The envelope version is unsupported.", "type": "string" }, { "const": "invalidRequest", "description": "The command violates its wire contract.", "type": "string" }, { "const": "loadFailed", "description": "The immutable plan could not be installed.", "type": "string" }, { "const": "prepareFailed", "description": "Preparation could not stabilize required resources.", "type": "string" }, { "const": "seekFailed", "description": "The requested frame could not be evaluated.", "type": "string" }, { "const": "confirmFailed", "description": "The staged frame could not be confirmed after compositor capture.", "type": "string" }, { "const": "readinessTimeout", "description": "One or more resources missed the readiness deadline.", "type": "string" }, { "const": "internal", "description": "The runtime violated an internal invariant.", "type": "string" }] };
|
|
3319
|
+
const schema65 = { "description": "Canonically ordered layout evidence for browser video placements.", "items": { "$ref": "#/$defs/BrowserMediaPlacement" }, "maxItems": 16, "type": "array" };
|
|
3320
|
+
const schema66 = { "additionalProperties": false, "description": "One video element's static, axis-aligned browser layout.", "properties": { "nodeId": { "$ref": "#/$defs/BrowserNodeId" }, "objectFit": { "$ref": "#/$defs/BrowserObjectFit" }, "objectPosition": { "$ref": "#/$defs/BrowserObjectPosition" }, "rectangle": { "$ref": "#/$defs/BrowserPixelRectangle" } }, "required": ["nodeId", "rectangle", "objectFit", "objectPosition"], "type": "object" };
|
|
3321
|
+
const schema67 = { "description": "Browser identity for one Timeline element or imported caption.\n\nIDs form dense renderable-semantic preorder within one Browser Plan.\n\nAuthored IDs, rather than this unit-local key, retain cross-projection\nsemantic identity.", "format": "uint32", "maximum": 4294967295, "minimum": 0, "type": "integer" };
|
|
3322
|
+
const schema68 = { "description": "Closed CSS object-fit subset admitted by native media.", "oneOf": [{ "const": "fill", "description": "Distort source pixels to fill the element rectangle.", "type": "string" }, { "const": "contain", "description": "Preserve aspect ratio while fitting completely inside the rectangle.", "type": "string" }, { "const": "cover", "description": "Preserve aspect ratio while covering the complete rectangle.", "type": "string" }] };
|
|
3323
|
+
const schema69 = { "additionalProperties": false, "description": "Fixed-point CSS object-position, where one million represents 100%.", "properties": { "x": { "format": "uint32", "maximum": 1000000, "minimum": 0, "type": "integer" }, "y": { "format": "uint32", "maximum": 1000000, "minimum": 0, "type": "integer" } }, "required": ["x", "y"], "type": "object" };
|
|
3324
|
+
const schema70 = { "additionalProperties": false, "description": "Positive pixel rectangle relative to the output viewport.", "properties": { "height": { "format": "uint32", "minimum": 0, "type": "integer" }, "width": { "format": "uint32", "minimum": 0, "type": "integer" }, "x": { "format": "uint32", "minimum": 0, "type": "integer" }, "y": { "format": "uint32", "minimum": 0, "type": "integer" } }, "required": ["x", "y", "width", "height"], "type": "object" };
|
|
3325
|
+
function validate58(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
|
|
3326
|
+
let vErrors = null;
|
|
3327
|
+
let errors = 0;
|
|
3328
|
+
const evaluated0 = validate58.evaluated;
|
|
3329
|
+
if (evaluated0.dynamicProps) {
|
|
3330
|
+
evaluated0.props = undefined;
|
|
3331
|
+
}
|
|
3332
|
+
if (evaluated0.dynamicItems) {
|
|
3333
|
+
evaluated0.items = undefined;
|
|
3334
|
+
}
|
|
3335
|
+
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
3336
|
+
if (data.nodeId === undefined) {
|
|
3337
|
+
const err0 = { instancePath, schemaPath: "#/required", keyword: "required", params: { missingProperty: "nodeId" }, message: "must have required property '" + "nodeId" + "'" };
|
|
3338
|
+
if (vErrors === null) {
|
|
3339
|
+
vErrors = [err0];
|
|
3340
|
+
}
|
|
3341
|
+
else {
|
|
3342
|
+
vErrors.push(err0);
|
|
3343
|
+
}
|
|
3344
|
+
errors++;
|
|
3345
|
+
}
|
|
3346
|
+
if (data.rectangle === undefined) {
|
|
3347
|
+
const err1 = { instancePath, schemaPath: "#/required", keyword: "required", params: { missingProperty: "rectangle" }, message: "must have required property '" + "rectangle" + "'" };
|
|
3348
|
+
if (vErrors === null) {
|
|
3349
|
+
vErrors = [err1];
|
|
3350
|
+
}
|
|
3351
|
+
else {
|
|
3352
|
+
vErrors.push(err1);
|
|
3353
|
+
}
|
|
3354
|
+
errors++;
|
|
3355
|
+
}
|
|
3356
|
+
if (data.objectFit === undefined) {
|
|
3357
|
+
const err2 = { instancePath, schemaPath: "#/required", keyword: "required", params: { missingProperty: "objectFit" }, message: "must have required property '" + "objectFit" + "'" };
|
|
3358
|
+
if (vErrors === null) {
|
|
3359
|
+
vErrors = [err2];
|
|
3360
|
+
}
|
|
3361
|
+
else {
|
|
3362
|
+
vErrors.push(err2);
|
|
3363
|
+
}
|
|
3364
|
+
errors++;
|
|
3365
|
+
}
|
|
3366
|
+
if (data.objectPosition === undefined) {
|
|
3367
|
+
const err3 = { instancePath, schemaPath: "#/required", keyword: "required", params: { missingProperty: "objectPosition" }, message: "must have required property '" + "objectPosition" + "'" };
|
|
3368
|
+
if (vErrors === null) {
|
|
3369
|
+
vErrors = [err3];
|
|
3370
|
+
}
|
|
3371
|
+
else {
|
|
3372
|
+
vErrors.push(err3);
|
|
3373
|
+
}
|
|
3374
|
+
errors++;
|
|
3375
|
+
}
|
|
3376
|
+
for (const key0 in data) {
|
|
3377
|
+
if (!((((key0 === "nodeId") || (key0 === "objectFit")) || (key0 === "objectPosition")) || (key0 === "rectangle"))) {
|
|
3378
|
+
const err4 = { instancePath, schemaPath: "#/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key0 }, message: "must NOT have additional properties" };
|
|
3379
|
+
if (vErrors === null) {
|
|
3380
|
+
vErrors = [err4];
|
|
3381
|
+
}
|
|
3382
|
+
else {
|
|
3383
|
+
vErrors.push(err4);
|
|
3384
|
+
}
|
|
3385
|
+
errors++;
|
|
3386
|
+
}
|
|
3387
|
+
}
|
|
3388
|
+
if (data.nodeId !== undefined) {
|
|
3389
|
+
let data0 = data.nodeId;
|
|
3390
|
+
if (!(((typeof data0 == "number") && (!(data0 % 1) && !isNaN(data0))) && (isFinite(data0)))) {
|
|
3391
|
+
const err5 = { instancePath: instancePath + "/nodeId", schemaPath: "#/$defs/BrowserNodeId/type", keyword: "type", params: { type: "integer" }, message: "must be integer" };
|
|
3392
|
+
if (vErrors === null) {
|
|
3393
|
+
vErrors = [err5];
|
|
3394
|
+
}
|
|
3395
|
+
else {
|
|
3396
|
+
vErrors.push(err5);
|
|
3397
|
+
}
|
|
3398
|
+
errors++;
|
|
3399
|
+
}
|
|
3400
|
+
if ((typeof data0 == "number") && (isFinite(data0))) {
|
|
3401
|
+
if (data0 > 4294967295 || isNaN(data0)) {
|
|
3402
|
+
const err6 = { instancePath: instancePath + "/nodeId", schemaPath: "#/$defs/BrowserNodeId/maximum", keyword: "maximum", params: { comparison: "<=", limit: 4294967295 }, message: "must be <= 4294967295" };
|
|
3403
|
+
if (vErrors === null) {
|
|
3404
|
+
vErrors = [err6];
|
|
3405
|
+
}
|
|
3406
|
+
else {
|
|
3407
|
+
vErrors.push(err6);
|
|
3408
|
+
}
|
|
3409
|
+
errors++;
|
|
3410
|
+
}
|
|
3411
|
+
if (data0 < 0 || isNaN(data0)) {
|
|
3412
|
+
const err7 = { instancePath: instancePath + "/nodeId", schemaPath: "#/$defs/BrowserNodeId/minimum", keyword: "minimum", params: { comparison: ">=", limit: 0 }, message: "must be >= 0" };
|
|
3413
|
+
if (vErrors === null) {
|
|
3414
|
+
vErrors = [err7];
|
|
3415
|
+
}
|
|
3416
|
+
else {
|
|
3417
|
+
vErrors.push(err7);
|
|
3418
|
+
}
|
|
3419
|
+
errors++;
|
|
3420
|
+
}
|
|
3421
|
+
}
|
|
3422
|
+
}
|
|
3423
|
+
if (data.objectFit !== undefined) {
|
|
3424
|
+
let data1 = data.objectFit;
|
|
3425
|
+
const _errs7 = errors;
|
|
3426
|
+
let valid3 = false;
|
|
3427
|
+
let passing0 = null;
|
|
3428
|
+
const _errs8 = errors;
|
|
3429
|
+
if (typeof data1 !== "string") {
|
|
3430
|
+
const err8 = { instancePath: instancePath + "/objectFit", schemaPath: "#/$defs/BrowserObjectFit/oneOf/0/type", keyword: "type", params: { type: "string" }, message: "must be string" };
|
|
3431
|
+
if (vErrors === null) {
|
|
3432
|
+
vErrors = [err8];
|
|
3433
|
+
}
|
|
3434
|
+
else {
|
|
3435
|
+
vErrors.push(err8);
|
|
3436
|
+
}
|
|
3437
|
+
errors++;
|
|
3438
|
+
}
|
|
3439
|
+
if ("fill" !== data1) {
|
|
3440
|
+
const err9 = { instancePath: instancePath + "/objectFit", schemaPath: "#/$defs/BrowserObjectFit/oneOf/0/const", keyword: "const", params: { allowedValue: "fill" }, message: "must be equal to constant" };
|
|
3441
|
+
if (vErrors === null) {
|
|
3442
|
+
vErrors = [err9];
|
|
3443
|
+
}
|
|
3444
|
+
else {
|
|
3445
|
+
vErrors.push(err9);
|
|
3446
|
+
}
|
|
3447
|
+
errors++;
|
|
3448
|
+
}
|
|
3449
|
+
var _valid0 = _errs8 === errors;
|
|
3450
|
+
if (_valid0) {
|
|
3451
|
+
valid3 = true;
|
|
3452
|
+
passing0 = 0;
|
|
3453
|
+
}
|
|
3454
|
+
const _errs10 = errors;
|
|
3455
|
+
if (typeof data1 !== "string") {
|
|
3456
|
+
const err10 = { instancePath: instancePath + "/objectFit", schemaPath: "#/$defs/BrowserObjectFit/oneOf/1/type", keyword: "type", params: { type: "string" }, message: "must be string" };
|
|
3457
|
+
if (vErrors === null) {
|
|
3458
|
+
vErrors = [err10];
|
|
3459
|
+
}
|
|
3460
|
+
else {
|
|
3461
|
+
vErrors.push(err10);
|
|
3462
|
+
}
|
|
3463
|
+
errors++;
|
|
3464
|
+
}
|
|
3465
|
+
if ("contain" !== data1) {
|
|
3466
|
+
const err11 = { instancePath: instancePath + "/objectFit", schemaPath: "#/$defs/BrowserObjectFit/oneOf/1/const", keyword: "const", params: { allowedValue: "contain" }, message: "must be equal to constant" };
|
|
3467
|
+
if (vErrors === null) {
|
|
3468
|
+
vErrors = [err11];
|
|
3469
|
+
}
|
|
3470
|
+
else {
|
|
3471
|
+
vErrors.push(err11);
|
|
3472
|
+
}
|
|
3473
|
+
errors++;
|
|
3474
|
+
}
|
|
3475
|
+
var _valid0 = _errs10 === errors;
|
|
3476
|
+
if (_valid0 && valid3) {
|
|
3477
|
+
valid3 = false;
|
|
3478
|
+
passing0 = [passing0, 1];
|
|
3479
|
+
}
|
|
3480
|
+
else {
|
|
3481
|
+
if (_valid0) {
|
|
3482
|
+
valid3 = true;
|
|
3483
|
+
passing0 = 1;
|
|
3484
|
+
}
|
|
3485
|
+
const _errs12 = errors;
|
|
3486
|
+
if (typeof data1 !== "string") {
|
|
3487
|
+
const err12 = { instancePath: instancePath + "/objectFit", schemaPath: "#/$defs/BrowserObjectFit/oneOf/2/type", keyword: "type", params: { type: "string" }, message: "must be string" };
|
|
3488
|
+
if (vErrors === null) {
|
|
3489
|
+
vErrors = [err12];
|
|
3490
|
+
}
|
|
3491
|
+
else {
|
|
3492
|
+
vErrors.push(err12);
|
|
3493
|
+
}
|
|
3494
|
+
errors++;
|
|
3495
|
+
}
|
|
3496
|
+
if ("cover" !== data1) {
|
|
3497
|
+
const err13 = { instancePath: instancePath + "/objectFit", schemaPath: "#/$defs/BrowserObjectFit/oneOf/2/const", keyword: "const", params: { allowedValue: "cover" }, message: "must be equal to constant" };
|
|
3498
|
+
if (vErrors === null) {
|
|
3499
|
+
vErrors = [err13];
|
|
3500
|
+
}
|
|
3501
|
+
else {
|
|
3502
|
+
vErrors.push(err13);
|
|
3503
|
+
}
|
|
3504
|
+
errors++;
|
|
3505
|
+
}
|
|
3506
|
+
var _valid0 = _errs12 === errors;
|
|
3507
|
+
if (_valid0 && valid3) {
|
|
3508
|
+
valid3 = false;
|
|
3509
|
+
passing0 = [passing0, 2];
|
|
3510
|
+
}
|
|
3511
|
+
else {
|
|
3512
|
+
if (_valid0) {
|
|
3513
|
+
valid3 = true;
|
|
3514
|
+
passing0 = 2;
|
|
3515
|
+
}
|
|
3516
|
+
}
|
|
3517
|
+
}
|
|
3518
|
+
if (!valid3) {
|
|
3519
|
+
const err14 = { instancePath: instancePath + "/objectFit", schemaPath: "#/$defs/BrowserObjectFit/oneOf", keyword: "oneOf", params: { passingSchemas: passing0 }, message: "must match exactly one schema in oneOf" };
|
|
3520
|
+
if (vErrors === null) {
|
|
3521
|
+
vErrors = [err14];
|
|
3522
|
+
}
|
|
3523
|
+
else {
|
|
3524
|
+
vErrors.push(err14);
|
|
3525
|
+
}
|
|
3526
|
+
errors++;
|
|
3527
|
+
}
|
|
3528
|
+
else {
|
|
3529
|
+
errors = _errs7;
|
|
3530
|
+
if (vErrors !== null) {
|
|
3531
|
+
if (_errs7) {
|
|
3532
|
+
vErrors.length = _errs7;
|
|
3533
|
+
}
|
|
3534
|
+
else {
|
|
3535
|
+
vErrors = null;
|
|
3536
|
+
}
|
|
3537
|
+
}
|
|
3538
|
+
}
|
|
3539
|
+
}
|
|
3540
|
+
if (data.objectPosition !== undefined) {
|
|
3541
|
+
let data2 = data.objectPosition;
|
|
3542
|
+
if (data2 && typeof data2 == "object" && !Array.isArray(data2)) {
|
|
3543
|
+
if (data2.x === undefined) {
|
|
3544
|
+
const err15 = { instancePath: instancePath + "/objectPosition", schemaPath: "#/$defs/BrowserObjectPosition/required", keyword: "required", params: { missingProperty: "x" }, message: "must have required property '" + "x" + "'" };
|
|
3545
|
+
if (vErrors === null) {
|
|
3546
|
+
vErrors = [err15];
|
|
3547
|
+
}
|
|
3548
|
+
else {
|
|
3549
|
+
vErrors.push(err15);
|
|
3550
|
+
}
|
|
3551
|
+
errors++;
|
|
3552
|
+
}
|
|
3553
|
+
if (data2.y === undefined) {
|
|
3554
|
+
const err16 = { instancePath: instancePath + "/objectPosition", schemaPath: "#/$defs/BrowserObjectPosition/required", keyword: "required", params: { missingProperty: "y" }, message: "must have required property '" + "y" + "'" };
|
|
3555
|
+
if (vErrors === null) {
|
|
3556
|
+
vErrors = [err16];
|
|
3557
|
+
}
|
|
3558
|
+
else {
|
|
3559
|
+
vErrors.push(err16);
|
|
3560
|
+
}
|
|
3561
|
+
errors++;
|
|
3562
|
+
}
|
|
3563
|
+
for (const key1 in data2) {
|
|
3564
|
+
if (!((key1 === "x") || (key1 === "y"))) {
|
|
3565
|
+
const err17 = { instancePath: instancePath + "/objectPosition", schemaPath: "#/$defs/BrowserObjectPosition/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key1 }, message: "must NOT have additional properties" };
|
|
3566
|
+
if (vErrors === null) {
|
|
3567
|
+
vErrors = [err17];
|
|
3568
|
+
}
|
|
3569
|
+
else {
|
|
3570
|
+
vErrors.push(err17);
|
|
3571
|
+
}
|
|
3572
|
+
errors++;
|
|
3573
|
+
}
|
|
3574
|
+
}
|
|
3575
|
+
if (data2.x !== undefined) {
|
|
3576
|
+
let data3 = data2.x;
|
|
3577
|
+
if (!(((typeof data3 == "number") && (!(data3 % 1) && !isNaN(data3))) && (isFinite(data3)))) {
|
|
3578
|
+
const err18 = { instancePath: instancePath + "/objectPosition/x", schemaPath: "#/$defs/BrowserObjectPosition/properties/x/type", keyword: "type", params: { type: "integer" }, message: "must be integer" };
|
|
3579
|
+
if (vErrors === null) {
|
|
3580
|
+
vErrors = [err18];
|
|
3581
|
+
}
|
|
3582
|
+
else {
|
|
3583
|
+
vErrors.push(err18);
|
|
3584
|
+
}
|
|
3585
|
+
errors++;
|
|
3586
|
+
}
|
|
3587
|
+
if ((typeof data3 == "number") && (isFinite(data3))) {
|
|
3588
|
+
if (data3 > 1000000 || isNaN(data3)) {
|
|
3589
|
+
const err19 = { instancePath: instancePath + "/objectPosition/x", schemaPath: "#/$defs/BrowserObjectPosition/properties/x/maximum", keyword: "maximum", params: { comparison: "<=", limit: 1000000 }, message: "must be <= 1000000" };
|
|
3590
|
+
if (vErrors === null) {
|
|
3591
|
+
vErrors = [err19];
|
|
3592
|
+
}
|
|
3593
|
+
else {
|
|
3594
|
+
vErrors.push(err19);
|
|
3595
|
+
}
|
|
3596
|
+
errors++;
|
|
3597
|
+
}
|
|
3598
|
+
if (data3 < 0 || isNaN(data3)) {
|
|
3599
|
+
const err20 = { instancePath: instancePath + "/objectPosition/x", schemaPath: "#/$defs/BrowserObjectPosition/properties/x/minimum", keyword: "minimum", params: { comparison: ">=", limit: 0 }, message: "must be >= 0" };
|
|
3600
|
+
if (vErrors === null) {
|
|
3601
|
+
vErrors = [err20];
|
|
3602
|
+
}
|
|
3603
|
+
else {
|
|
3604
|
+
vErrors.push(err20);
|
|
3605
|
+
}
|
|
3606
|
+
errors++;
|
|
3607
|
+
}
|
|
3608
|
+
}
|
|
3609
|
+
}
|
|
3610
|
+
if (data2.y !== undefined) {
|
|
3611
|
+
let data4 = data2.y;
|
|
3612
|
+
if (!(((typeof data4 == "number") && (!(data4 % 1) && !isNaN(data4))) && (isFinite(data4)))) {
|
|
3613
|
+
const err21 = { instancePath: instancePath + "/objectPosition/y", schemaPath: "#/$defs/BrowserObjectPosition/properties/y/type", keyword: "type", params: { type: "integer" }, message: "must be integer" };
|
|
3614
|
+
if (vErrors === null) {
|
|
3615
|
+
vErrors = [err21];
|
|
3616
|
+
}
|
|
3617
|
+
else {
|
|
3618
|
+
vErrors.push(err21);
|
|
3619
|
+
}
|
|
3620
|
+
errors++;
|
|
3621
|
+
}
|
|
3622
|
+
if ((typeof data4 == "number") && (isFinite(data4))) {
|
|
3623
|
+
if (data4 > 1000000 || isNaN(data4)) {
|
|
3624
|
+
const err22 = { instancePath: instancePath + "/objectPosition/y", schemaPath: "#/$defs/BrowserObjectPosition/properties/y/maximum", keyword: "maximum", params: { comparison: "<=", limit: 1000000 }, message: "must be <= 1000000" };
|
|
3625
|
+
if (vErrors === null) {
|
|
3626
|
+
vErrors = [err22];
|
|
3627
|
+
}
|
|
3628
|
+
else {
|
|
3629
|
+
vErrors.push(err22);
|
|
3630
|
+
}
|
|
3631
|
+
errors++;
|
|
3632
|
+
}
|
|
3633
|
+
if (data4 < 0 || isNaN(data4)) {
|
|
3634
|
+
const err23 = { instancePath: instancePath + "/objectPosition/y", schemaPath: "#/$defs/BrowserObjectPosition/properties/y/minimum", keyword: "minimum", params: { comparison: ">=", limit: 0 }, message: "must be >= 0" };
|
|
3635
|
+
if (vErrors === null) {
|
|
3636
|
+
vErrors = [err23];
|
|
3637
|
+
}
|
|
3638
|
+
else {
|
|
3639
|
+
vErrors.push(err23);
|
|
3640
|
+
}
|
|
3641
|
+
errors++;
|
|
3642
|
+
}
|
|
3643
|
+
}
|
|
3644
|
+
}
|
|
3645
|
+
}
|
|
3646
|
+
else {
|
|
3647
|
+
const err24 = { instancePath: instancePath + "/objectPosition", schemaPath: "#/$defs/BrowserObjectPosition/type", keyword: "type", params: { type: "object" }, message: "must be object" };
|
|
3648
|
+
if (vErrors === null) {
|
|
3649
|
+
vErrors = [err24];
|
|
3650
|
+
}
|
|
3651
|
+
else {
|
|
3652
|
+
vErrors.push(err24);
|
|
3653
|
+
}
|
|
3654
|
+
errors++;
|
|
3655
|
+
}
|
|
3656
|
+
}
|
|
3657
|
+
if (data.rectangle !== undefined) {
|
|
3658
|
+
let data5 = data.rectangle;
|
|
3659
|
+
if (data5 && typeof data5 == "object" && !Array.isArray(data5)) {
|
|
3660
|
+
if (data5.x === undefined) {
|
|
3661
|
+
const err25 = { instancePath: instancePath + "/rectangle", schemaPath: "#/$defs/BrowserPixelRectangle/required", keyword: "required", params: { missingProperty: "x" }, message: "must have required property '" + "x" + "'" };
|
|
3662
|
+
if (vErrors === null) {
|
|
3663
|
+
vErrors = [err25];
|
|
3664
|
+
}
|
|
3665
|
+
else {
|
|
3666
|
+
vErrors.push(err25);
|
|
3667
|
+
}
|
|
3668
|
+
errors++;
|
|
3669
|
+
}
|
|
3670
|
+
if (data5.y === undefined) {
|
|
3671
|
+
const err26 = { instancePath: instancePath + "/rectangle", schemaPath: "#/$defs/BrowserPixelRectangle/required", keyword: "required", params: { missingProperty: "y" }, message: "must have required property '" + "y" + "'" };
|
|
3672
|
+
if (vErrors === null) {
|
|
3673
|
+
vErrors = [err26];
|
|
3674
|
+
}
|
|
3675
|
+
else {
|
|
3676
|
+
vErrors.push(err26);
|
|
3677
|
+
}
|
|
3678
|
+
errors++;
|
|
3679
|
+
}
|
|
3680
|
+
if (data5.width === undefined) {
|
|
3681
|
+
const err27 = { instancePath: instancePath + "/rectangle", schemaPath: "#/$defs/BrowserPixelRectangle/required", keyword: "required", params: { missingProperty: "width" }, message: "must have required property '" + "width" + "'" };
|
|
3682
|
+
if (vErrors === null) {
|
|
3683
|
+
vErrors = [err27];
|
|
3684
|
+
}
|
|
3685
|
+
else {
|
|
3686
|
+
vErrors.push(err27);
|
|
3687
|
+
}
|
|
3688
|
+
errors++;
|
|
3689
|
+
}
|
|
3690
|
+
if (data5.height === undefined) {
|
|
3691
|
+
const err28 = { instancePath: instancePath + "/rectangle", schemaPath: "#/$defs/BrowserPixelRectangle/required", keyword: "required", params: { missingProperty: "height" }, message: "must have required property '" + "height" + "'" };
|
|
3692
|
+
if (vErrors === null) {
|
|
3693
|
+
vErrors = [err28];
|
|
3694
|
+
}
|
|
3695
|
+
else {
|
|
3696
|
+
vErrors.push(err28);
|
|
3697
|
+
}
|
|
3698
|
+
errors++;
|
|
3699
|
+
}
|
|
3700
|
+
for (const key2 in data5) {
|
|
3701
|
+
if (!((((key2 === "height") || (key2 === "width")) || (key2 === "x")) || (key2 === "y"))) {
|
|
3702
|
+
const err29 = { instancePath: instancePath + "/rectangle", schemaPath: "#/$defs/BrowserPixelRectangle/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key2 }, message: "must NOT have additional properties" };
|
|
3703
|
+
if (vErrors === null) {
|
|
3704
|
+
vErrors = [err29];
|
|
3705
|
+
}
|
|
3706
|
+
else {
|
|
3707
|
+
vErrors.push(err29);
|
|
3708
|
+
}
|
|
3709
|
+
errors++;
|
|
3710
|
+
}
|
|
3711
|
+
}
|
|
3712
|
+
if (data5.height !== undefined) {
|
|
3713
|
+
let data6 = data5.height;
|
|
3714
|
+
if (!(((typeof data6 == "number") && (!(data6 % 1) && !isNaN(data6))) && (isFinite(data6)))) {
|
|
3715
|
+
const err30 = { instancePath: instancePath + "/rectangle/height", schemaPath: "#/$defs/BrowserPixelRectangle/properties/height/type", keyword: "type", params: { type: "integer" }, message: "must be integer" };
|
|
3716
|
+
if (vErrors === null) {
|
|
3717
|
+
vErrors = [err30];
|
|
3718
|
+
}
|
|
3719
|
+
else {
|
|
3720
|
+
vErrors.push(err30);
|
|
3721
|
+
}
|
|
3722
|
+
errors++;
|
|
3723
|
+
}
|
|
3724
|
+
if ((typeof data6 == "number") && (isFinite(data6))) {
|
|
3725
|
+
if (data6 < 0 || isNaN(data6)) {
|
|
3726
|
+
const err31 = { instancePath: instancePath + "/rectangle/height", schemaPath: "#/$defs/BrowserPixelRectangle/properties/height/minimum", keyword: "minimum", params: { comparison: ">=", limit: 0 }, message: "must be >= 0" };
|
|
3727
|
+
if (vErrors === null) {
|
|
3728
|
+
vErrors = [err31];
|
|
3729
|
+
}
|
|
3730
|
+
else {
|
|
3731
|
+
vErrors.push(err31);
|
|
3732
|
+
}
|
|
3733
|
+
errors++;
|
|
3734
|
+
}
|
|
3735
|
+
}
|
|
3736
|
+
}
|
|
3737
|
+
if (data5.width !== undefined) {
|
|
3738
|
+
let data7 = data5.width;
|
|
3739
|
+
if (!(((typeof data7 == "number") && (!(data7 % 1) && !isNaN(data7))) && (isFinite(data7)))) {
|
|
3740
|
+
const err32 = { instancePath: instancePath + "/rectangle/width", schemaPath: "#/$defs/BrowserPixelRectangle/properties/width/type", keyword: "type", params: { type: "integer" }, message: "must be integer" };
|
|
3741
|
+
if (vErrors === null) {
|
|
3742
|
+
vErrors = [err32];
|
|
3743
|
+
}
|
|
3744
|
+
else {
|
|
3745
|
+
vErrors.push(err32);
|
|
3746
|
+
}
|
|
3747
|
+
errors++;
|
|
3748
|
+
}
|
|
3749
|
+
if ((typeof data7 == "number") && (isFinite(data7))) {
|
|
3750
|
+
if (data7 < 0 || isNaN(data7)) {
|
|
3751
|
+
const err33 = { instancePath: instancePath + "/rectangle/width", schemaPath: "#/$defs/BrowserPixelRectangle/properties/width/minimum", keyword: "minimum", params: { comparison: ">=", limit: 0 }, message: "must be >= 0" };
|
|
3752
|
+
if (vErrors === null) {
|
|
3753
|
+
vErrors = [err33];
|
|
3754
|
+
}
|
|
3755
|
+
else {
|
|
3756
|
+
vErrors.push(err33);
|
|
3757
|
+
}
|
|
3758
|
+
errors++;
|
|
3759
|
+
}
|
|
3760
|
+
}
|
|
3761
|
+
}
|
|
3762
|
+
if (data5.x !== undefined) {
|
|
3763
|
+
let data8 = data5.x;
|
|
3764
|
+
if (!(((typeof data8 == "number") && (!(data8 % 1) && !isNaN(data8))) && (isFinite(data8)))) {
|
|
3765
|
+
const err34 = { instancePath: instancePath + "/rectangle/x", schemaPath: "#/$defs/BrowserPixelRectangle/properties/x/type", keyword: "type", params: { type: "integer" }, message: "must be integer" };
|
|
3766
|
+
if (vErrors === null) {
|
|
3767
|
+
vErrors = [err34];
|
|
3768
|
+
}
|
|
3769
|
+
else {
|
|
3770
|
+
vErrors.push(err34);
|
|
3771
|
+
}
|
|
3772
|
+
errors++;
|
|
3773
|
+
}
|
|
3774
|
+
if ((typeof data8 == "number") && (isFinite(data8))) {
|
|
3775
|
+
if (data8 < 0 || isNaN(data8)) {
|
|
3776
|
+
const err35 = { instancePath: instancePath + "/rectangle/x", schemaPath: "#/$defs/BrowserPixelRectangle/properties/x/minimum", keyword: "minimum", params: { comparison: ">=", limit: 0 }, message: "must be >= 0" };
|
|
3777
|
+
if (vErrors === null) {
|
|
3778
|
+
vErrors = [err35];
|
|
3779
|
+
}
|
|
3780
|
+
else {
|
|
3781
|
+
vErrors.push(err35);
|
|
3782
|
+
}
|
|
3783
|
+
errors++;
|
|
3784
|
+
}
|
|
3785
|
+
}
|
|
3786
|
+
}
|
|
3787
|
+
if (data5.y !== undefined) {
|
|
3788
|
+
let data9 = data5.y;
|
|
3789
|
+
if (!(((typeof data9 == "number") && (!(data9 % 1) && !isNaN(data9))) && (isFinite(data9)))) {
|
|
3790
|
+
const err36 = { instancePath: instancePath + "/rectangle/y", schemaPath: "#/$defs/BrowserPixelRectangle/properties/y/type", keyword: "type", params: { type: "integer" }, message: "must be integer" };
|
|
3791
|
+
if (vErrors === null) {
|
|
3792
|
+
vErrors = [err36];
|
|
3793
|
+
}
|
|
3794
|
+
else {
|
|
3795
|
+
vErrors.push(err36);
|
|
3796
|
+
}
|
|
3797
|
+
errors++;
|
|
3798
|
+
}
|
|
3799
|
+
if ((typeof data9 == "number") && (isFinite(data9))) {
|
|
3800
|
+
if (data9 < 0 || isNaN(data9)) {
|
|
3801
|
+
const err37 = { instancePath: instancePath + "/rectangle/y", schemaPath: "#/$defs/BrowserPixelRectangle/properties/y/minimum", keyword: "minimum", params: { comparison: ">=", limit: 0 }, message: "must be >= 0" };
|
|
3802
|
+
if (vErrors === null) {
|
|
3803
|
+
vErrors = [err37];
|
|
3804
|
+
}
|
|
3805
|
+
else {
|
|
3806
|
+
vErrors.push(err37);
|
|
3807
|
+
}
|
|
3808
|
+
errors++;
|
|
3809
|
+
}
|
|
3810
|
+
}
|
|
3811
|
+
}
|
|
3812
|
+
}
|
|
3813
|
+
else {
|
|
3814
|
+
const err38 = { instancePath: instancePath + "/rectangle", schemaPath: "#/$defs/BrowserPixelRectangle/type", keyword: "type", params: { type: "object" }, message: "must be object" };
|
|
3815
|
+
if (vErrors === null) {
|
|
3816
|
+
vErrors = [err38];
|
|
3817
|
+
}
|
|
3818
|
+
else {
|
|
3819
|
+
vErrors.push(err38);
|
|
3820
|
+
}
|
|
3821
|
+
errors++;
|
|
3822
|
+
}
|
|
3823
|
+
}
|
|
3824
|
+
}
|
|
3825
|
+
else {
|
|
3826
|
+
const err39 = { instancePath, schemaPath: "#/type", keyword: "type", params: { type: "object" }, message: "must be object" };
|
|
3827
|
+
if (vErrors === null) {
|
|
3828
|
+
vErrors = [err39];
|
|
3829
|
+
}
|
|
3830
|
+
else {
|
|
3831
|
+
vErrors.push(err39);
|
|
3832
|
+
}
|
|
3833
|
+
errors++;
|
|
3834
|
+
}
|
|
3835
|
+
validate58.errors = vErrors;
|
|
3836
|
+
return errors === 0;
|
|
3837
|
+
}
|
|
3838
|
+
validate58.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
|
|
3839
|
+
function validate57(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
|
|
3840
|
+
let vErrors = null;
|
|
3841
|
+
let errors = 0;
|
|
3842
|
+
const evaluated0 = validate57.evaluated;
|
|
3843
|
+
if (evaluated0.dynamicProps) {
|
|
3844
|
+
evaluated0.props = undefined;
|
|
3845
|
+
}
|
|
3846
|
+
if (evaluated0.dynamicItems) {
|
|
3847
|
+
evaluated0.items = undefined;
|
|
3848
|
+
}
|
|
3849
|
+
if (Array.isArray(data)) {
|
|
3850
|
+
if (data.length > 16) {
|
|
3851
|
+
const err0 = { instancePath, schemaPath: "#/maxItems", keyword: "maxItems", params: { limit: 16 }, message: "must NOT have more than 16 items" };
|
|
3852
|
+
if (vErrors === null) {
|
|
3853
|
+
vErrors = [err0];
|
|
3854
|
+
}
|
|
3855
|
+
else {
|
|
3856
|
+
vErrors.push(err0);
|
|
3857
|
+
}
|
|
3858
|
+
errors++;
|
|
3859
|
+
}
|
|
3860
|
+
const len0 = data.length;
|
|
3861
|
+
for (let i0 = 0; i0 < len0; i0++) {
|
|
3862
|
+
if (!(validate58(data[i0], { instancePath: instancePath + "/" + i0, parentData: data, parentDataProperty: i0, rootData, dynamicAnchors }))) {
|
|
3863
|
+
vErrors = vErrors === null ? validate58.errors : vErrors.concat(validate58.errors);
|
|
3864
|
+
errors = vErrors.length;
|
|
3865
|
+
}
|
|
3866
|
+
}
|
|
3867
|
+
}
|
|
3868
|
+
else {
|
|
3869
|
+
const err1 = { instancePath, schemaPath: "#/type", keyword: "type", params: { type: "array" }, message: "must be array" };
|
|
3172
3870
|
if (vErrors === null) {
|
|
3173
|
-
vErrors = [
|
|
3871
|
+
vErrors = [err1];
|
|
3174
3872
|
}
|
|
3175
3873
|
else {
|
|
3176
|
-
vErrors.push(
|
|
3874
|
+
vErrors.push(err1);
|
|
3177
3875
|
}
|
|
3178
3876
|
errors++;
|
|
3179
3877
|
}
|
|
3180
|
-
|
|
3878
|
+
validate57.errors = vErrors;
|
|
3181
3879
|
return errors === 0;
|
|
3182
3880
|
}
|
|
3183
|
-
|
|
3184
|
-
export const validateBrowserResponse = validate55;
|
|
3185
|
-
const schema61 = { "$defs": { "BrowserEvent": { "description": "Closed events emitted by the browser runtime.", "oneOf": [{ "additionalProperties": false, "description": "The immutable browser plan was accepted.", "properties": { "type": { "const": "loaded", "type": "string" } }, "required": ["type"], "type": "object" }, { "additionalProperties": false, "description": "Resources required at the evaluation start are stable.", "properties": { "evaluationStart": { "$ref": "#/$defs/WireFrame", "description": "Frame at which preparation completed." }, "type": { "const": "prepared", "type": "string" } }, "required": ["type", "evaluationStart"], "type": "object" }, { "additionalProperties": false, "description": "One requested frame has been staged for the compositor.", "properties": { "frame": { "$ref": "#/$defs/WireFrame", "description": "Exact frame represented by staged browser state." }, "type": { "const": "frameStaged", "type": "string" } }, "required": ["type", "frame"], "type": "object" }, { "additionalProperties": false, "description": "The captured payload's staged media passed compositor confirmation.", "properties": { "frame": { "$ref": "#/$defs/WireFrame", "description": "Exact frame confirmed by browser media state." }, "type": { "const": "frameReady", "type": "string" } }, "required": ["type", "frame"], "type": "object" }, { "additionalProperties": false, "description": "The browser rejected a command or could not reach readiness.", "properties": { "code": { "$ref": "#/$defs/ProtocolFailureCode", "description": "Stable machine-readable failure category." }, "message": { "description": "Direct explanation in browser/runtime terms.", "maxLength": 4096, "pattern": "\\S", "type": "string" }, "pendingResources": { "description": "Resources that prevented readiness, in caller-owned deterministic order.", "items": { "maxLength": 1024, "pattern": "\\S", "type": "string" }, "maxItems": 256, "type": "array" }, "type": { "const": "failed", "type": "string" } }, "required": ["type", "code", "message", "pendingResources"], "type": "object" }, { "additionalProperties": false, "description": "The browser session released its resources.", "properties": { "type": { "const": "disposed", "type": "string" } }, "required": ["type"], "type": "object" }] }, "ProtocolFailureCode": { "description": "Stable browser protocol failure category.", "oneOf": [{ "const": "protocolMismatch", "description": "The envelope version is unsupported.", "type": "string" }, { "const": "invalidRequest", "description": "The command violates its wire contract.", "type": "string" }, { "const": "loadFailed", "description": "The immutable plan could not be installed.", "type": "string" }, { "const": "prepareFailed", "description": "Preparation could not stabilize required resources.", "type": "string" }, { "const": "seekFailed", "description": "The requested frame could not be evaluated.", "type": "string" }, { "const": "confirmFailed", "description": "The staged frame could not be confirmed after compositor capture.", "type": "string" }, { "const": "readinessTimeout", "description": "One or more resources missed the readiness deadline.", "type": "string" }, { "const": "internal", "description": "The runtime violated an internal invariant.", "type": "string" }] }, "ProtocolVersion": { "const": 4, "description": "Version of the native-to-browser message contract.", "format": "uint16", "maximum": 65535, "minimum": 0, "type": "integer" }, "RequestId": { "description": "Correlation identity shared by one request and its response events.", "format": "uint32", "maximum": 4294967295, "minimum": 0, "type": "integer" }, "WireFrame": { "description": "Exact frame integer accepted by JavaScript without rounding.", "format": "uint64", "maximum": 9007199254740991, "minimum": 0, "type": "integer" } }, "$id": "https://onmark.dev/schemas/browser-response-v4.schema.json", "$schema": "https://json-schema.org/draft/2020-12/schema", "additionalProperties": false, "description": "One versioned event returned by the browser runtime.", "properties": { "event": { "$ref": "#/$defs/BrowserEvent" }, "requestId": { "$ref": "#/$defs/RequestId" }, "version": { "$ref": "#/$defs/ProtocolVersion" } }, "required": ["version", "requestId", "event"], "title": "BrowserResponse", "type": "object", "x-onmark-max-failure-message-characters": 4096, "x-onmark-max-pending-resource-characters": 1024, "x-onmark-max-pending-resources": 256 };
|
|
3186
|
-
const schema67 = { "description": "Correlation identity shared by one request and its response events.", "format": "uint32", "maximum": 4294967295, "minimum": 0, "type": "integer" };
|
|
3187
|
-
const schema68 = { "const": 4, "description": "Version of the native-to-browser message contract.", "format": "uint16", "maximum": 65535, "minimum": 0, "type": "integer" };
|
|
3188
|
-
const schema62 = { "description": "Closed events emitted by the browser runtime.", "oneOf": [{ "additionalProperties": false, "description": "The immutable browser plan was accepted.", "properties": { "type": { "const": "loaded", "type": "string" } }, "required": ["type"], "type": "object" }, { "additionalProperties": false, "description": "Resources required at the evaluation start are stable.", "properties": { "evaluationStart": { "$ref": "#/$defs/WireFrame", "description": "Frame at which preparation completed." }, "type": { "const": "prepared", "type": "string" } }, "required": ["type", "evaluationStart"], "type": "object" }, { "additionalProperties": false, "description": "One requested frame has been staged for the compositor.", "properties": { "frame": { "$ref": "#/$defs/WireFrame", "description": "Exact frame represented by staged browser state." }, "type": { "const": "frameStaged", "type": "string" } }, "required": ["type", "frame"], "type": "object" }, { "additionalProperties": false, "description": "The captured payload's staged media passed compositor confirmation.", "properties": { "frame": { "$ref": "#/$defs/WireFrame", "description": "Exact frame confirmed by browser media state." }, "type": { "const": "frameReady", "type": "string" } }, "required": ["type", "frame"], "type": "object" }, { "additionalProperties": false, "description": "The browser rejected a command or could not reach readiness.", "properties": { "code": { "$ref": "#/$defs/ProtocolFailureCode", "description": "Stable machine-readable failure category." }, "message": { "description": "Direct explanation in browser/runtime terms.", "maxLength": 4096, "pattern": "\\S", "type": "string" }, "pendingResources": { "description": "Resources that prevented readiness, in caller-owned deterministic order.", "items": { "maxLength": 1024, "pattern": "\\S", "type": "string" }, "maxItems": 256, "type": "array" }, "type": { "const": "failed", "type": "string" } }, "required": ["type", "code", "message", "pendingResources"], "type": "object" }, { "additionalProperties": false, "description": "The browser session released its resources.", "properties": { "type": { "const": "disposed", "type": "string" } }, "required": ["type"], "type": "object" }] };
|
|
3189
|
-
const schema63 = { "description": "Exact frame integer accepted by JavaScript without rounding.", "format": "uint64", "maximum": 9007199254740991, "minimum": 0, "type": "integer" };
|
|
3190
|
-
const schema66 = { "description": "Stable browser protocol failure category.", "oneOf": [{ "const": "protocolMismatch", "description": "The envelope version is unsupported.", "type": "string" }, { "const": "invalidRequest", "description": "The command violates its wire contract.", "type": "string" }, { "const": "loadFailed", "description": "The immutable plan could not be installed.", "type": "string" }, { "const": "prepareFailed", "description": "Preparation could not stabilize required resources.", "type": "string" }, { "const": "seekFailed", "description": "The requested frame could not be evaluated.", "type": "string" }, { "const": "confirmFailed", "description": "The staged frame could not be confirmed after compositor capture.", "type": "string" }, { "const": "readinessTimeout", "description": "One or more resources missed the readiness deadline.", "type": "string" }, { "const": "internal", "description": "The runtime violated an internal invariant.", "type": "string" }] };
|
|
3881
|
+
validate57.evaluated = { "items": true, "dynamicProps": false, "dynamicItems": false };
|
|
3191
3882
|
const pattern9 = new RegExp("\\S", "u");
|
|
3192
3883
|
function validate56(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
|
|
3193
3884
|
let vErrors = null;
|
|
@@ -3288,14 +3979,24 @@ function validate56(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
3288
3979
|
}
|
|
3289
3980
|
errors++;
|
|
3290
3981
|
}
|
|
3982
|
+
if (data.mediaLayout === undefined) {
|
|
3983
|
+
const err7 = { instancePath, schemaPath: "#/oneOf/1/required", keyword: "required", params: { missingProperty: "mediaLayout" }, message: "must have required property '" + "mediaLayout" + "'" };
|
|
3984
|
+
if (vErrors === null) {
|
|
3985
|
+
vErrors = [err7];
|
|
3986
|
+
}
|
|
3987
|
+
else {
|
|
3988
|
+
vErrors.push(err7);
|
|
3989
|
+
}
|
|
3990
|
+
errors++;
|
|
3991
|
+
}
|
|
3291
3992
|
for (const key1 in data) {
|
|
3292
|
-
if (!((key1 === "evaluationStart") || (key1 === "type"))) {
|
|
3293
|
-
const
|
|
3993
|
+
if (!(((key1 === "evaluationStart") || (key1 === "mediaLayout")) || (key1 === "type"))) {
|
|
3994
|
+
const err8 = { instancePath, schemaPath: "#/oneOf/1/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key1 }, message: "must NOT have additional properties" };
|
|
3294
3995
|
if (vErrors === null) {
|
|
3295
|
-
vErrors = [
|
|
3996
|
+
vErrors = [err8];
|
|
3296
3997
|
}
|
|
3297
3998
|
else {
|
|
3298
|
-
vErrors.push(
|
|
3999
|
+
vErrors.push(err8);
|
|
3299
4000
|
}
|
|
3300
4001
|
errors++;
|
|
3301
4002
|
}
|
|
@@ -3303,69 +4004,75 @@ function validate56(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
3303
4004
|
if (data.evaluationStart !== undefined) {
|
|
3304
4005
|
let data1 = data.evaluationStart;
|
|
3305
4006
|
if (!(((typeof data1 == "number") && (!(data1 % 1) && !isNaN(data1))) && (isFinite(data1)))) {
|
|
3306
|
-
const
|
|
4007
|
+
const err9 = { instancePath: instancePath + "/evaluationStart", schemaPath: "#/$defs/WireFrame/type", keyword: "type", params: { type: "integer" }, message: "must be integer" };
|
|
3307
4008
|
if (vErrors === null) {
|
|
3308
|
-
vErrors = [
|
|
4009
|
+
vErrors = [err9];
|
|
3309
4010
|
}
|
|
3310
4011
|
else {
|
|
3311
|
-
vErrors.push(
|
|
4012
|
+
vErrors.push(err9);
|
|
3312
4013
|
}
|
|
3313
4014
|
errors++;
|
|
3314
4015
|
}
|
|
3315
4016
|
if ((typeof data1 == "number") && (isFinite(data1))) {
|
|
3316
4017
|
if (data1 > 9007199254740991 || isNaN(data1)) {
|
|
3317
|
-
const
|
|
4018
|
+
const err10 = { instancePath: instancePath + "/evaluationStart", schemaPath: "#/$defs/WireFrame/maximum", keyword: "maximum", params: { comparison: "<=", limit: 9007199254740991 }, message: "must be <= 9007199254740991" };
|
|
3318
4019
|
if (vErrors === null) {
|
|
3319
|
-
vErrors = [
|
|
4020
|
+
vErrors = [err10];
|
|
3320
4021
|
}
|
|
3321
4022
|
else {
|
|
3322
|
-
vErrors.push(
|
|
4023
|
+
vErrors.push(err10);
|
|
3323
4024
|
}
|
|
3324
4025
|
errors++;
|
|
3325
4026
|
}
|
|
3326
4027
|
if (data1 < 0 || isNaN(data1)) {
|
|
3327
|
-
const
|
|
4028
|
+
const err11 = { instancePath: instancePath + "/evaluationStart", schemaPath: "#/$defs/WireFrame/minimum", keyword: "minimum", params: { comparison: ">=", limit: 0 }, message: "must be >= 0" };
|
|
3328
4029
|
if (vErrors === null) {
|
|
3329
|
-
vErrors = [
|
|
4030
|
+
vErrors = [err11];
|
|
3330
4031
|
}
|
|
3331
4032
|
else {
|
|
3332
|
-
vErrors.push(
|
|
4033
|
+
vErrors.push(err11);
|
|
3333
4034
|
}
|
|
3334
4035
|
errors++;
|
|
3335
4036
|
}
|
|
3336
4037
|
}
|
|
3337
4038
|
}
|
|
4039
|
+
if (data.mediaLayout !== undefined) {
|
|
4040
|
+
if (!(validate57(data.mediaLayout, { instancePath: instancePath + "/mediaLayout", parentData: data, parentDataProperty: "mediaLayout", rootData, dynamicAnchors }))) {
|
|
4041
|
+
vErrors = vErrors === null ? validate57.errors : vErrors.concat(validate57.errors);
|
|
4042
|
+
errors = vErrors.length;
|
|
4043
|
+
}
|
|
4044
|
+
}
|
|
3338
4045
|
if (data.type !== undefined) {
|
|
3339
|
-
let
|
|
3340
|
-
if (typeof
|
|
3341
|
-
const
|
|
4046
|
+
let data3 = data.type;
|
|
4047
|
+
if (typeof data3 !== "string") {
|
|
4048
|
+
const err12 = { instancePath: instancePath + "/type", schemaPath: "#/oneOf/1/properties/type/type", keyword: "type", params: { type: "string" }, message: "must be string" };
|
|
3342
4049
|
if (vErrors === null) {
|
|
3343
|
-
vErrors = [
|
|
4050
|
+
vErrors = [err12];
|
|
3344
4051
|
}
|
|
3345
4052
|
else {
|
|
3346
|
-
vErrors.push(
|
|
4053
|
+
vErrors.push(err12);
|
|
3347
4054
|
}
|
|
3348
4055
|
errors++;
|
|
3349
4056
|
}
|
|
3350
|
-
if ("prepared" !==
|
|
3351
|
-
const
|
|
4057
|
+
if ("prepared" !== data3) {
|
|
4058
|
+
const err13 = { instancePath: instancePath + "/type", schemaPath: "#/oneOf/1/properties/type/const", keyword: "const", params: { allowedValue: "prepared" }, message: "must be equal to constant" };
|
|
3352
4059
|
if (vErrors === null) {
|
|
3353
|
-
vErrors = [
|
|
4060
|
+
vErrors = [err13];
|
|
3354
4061
|
}
|
|
3355
4062
|
else {
|
|
3356
|
-
vErrors.push(
|
|
4063
|
+
vErrors.push(err13);
|
|
3357
4064
|
}
|
|
3358
4065
|
errors++;
|
|
3359
4066
|
}
|
|
3360
4067
|
}
|
|
3361
4068
|
}
|
|
3362
4069
|
else {
|
|
3363
|
-
const
|
|
4070
|
+
const err14 = { instancePath, schemaPath: "#/oneOf/1/type", keyword: "type", params: { type: "object" }, message: "must be object" };
|
|
3364
4071
|
if (vErrors === null) {
|
|
3365
|
-
vErrors = [
|
|
4072
|
+
vErrors = [err14];
|
|
3366
4073
|
}
|
|
3367
4074
|
else {
|
|
3368
|
-
vErrors.push(
|
|
4075
|
+
vErrors.push(err14);
|
|
3369
4076
|
}
|
|
3370
4077
|
errors++;
|
|
3371
4078
|
}
|
|
@@ -3382,110 +4089,110 @@ function validate56(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
3382
4089
|
props0 = true;
|
|
3383
4090
|
}
|
|
3384
4091
|
}
|
|
3385
|
-
const
|
|
4092
|
+
const _errs15 = errors;
|
|
3386
4093
|
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
3387
4094
|
if (data.type === undefined) {
|
|
3388
|
-
const
|
|
4095
|
+
const err15 = { instancePath, schemaPath: "#/oneOf/2/required", keyword: "required", params: { missingProperty: "type" }, message: "must have required property '" + "type" + "'" };
|
|
3389
4096
|
if (vErrors === null) {
|
|
3390
|
-
vErrors = [
|
|
4097
|
+
vErrors = [err15];
|
|
3391
4098
|
}
|
|
3392
4099
|
else {
|
|
3393
|
-
vErrors.push(
|
|
4100
|
+
vErrors.push(err15);
|
|
3394
4101
|
}
|
|
3395
4102
|
errors++;
|
|
3396
4103
|
}
|
|
3397
4104
|
if (data.frame === undefined) {
|
|
3398
|
-
const
|
|
4105
|
+
const err16 = { instancePath, schemaPath: "#/oneOf/2/required", keyword: "required", params: { missingProperty: "frame" }, message: "must have required property '" + "frame" + "'" };
|
|
3399
4106
|
if (vErrors === null) {
|
|
3400
|
-
vErrors = [
|
|
4107
|
+
vErrors = [err16];
|
|
3401
4108
|
}
|
|
3402
4109
|
else {
|
|
3403
|
-
vErrors.push(
|
|
4110
|
+
vErrors.push(err16);
|
|
3404
4111
|
}
|
|
3405
4112
|
errors++;
|
|
3406
4113
|
}
|
|
3407
4114
|
for (const key2 in data) {
|
|
3408
4115
|
if (!((key2 === "frame") || (key2 === "type"))) {
|
|
3409
|
-
const
|
|
4116
|
+
const err17 = { instancePath, schemaPath: "#/oneOf/2/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key2 }, message: "must NOT have additional properties" };
|
|
3410
4117
|
if (vErrors === null) {
|
|
3411
|
-
vErrors = [
|
|
4118
|
+
vErrors = [err17];
|
|
3412
4119
|
}
|
|
3413
4120
|
else {
|
|
3414
|
-
vErrors.push(
|
|
4121
|
+
vErrors.push(err17);
|
|
3415
4122
|
}
|
|
3416
4123
|
errors++;
|
|
3417
4124
|
}
|
|
3418
4125
|
}
|
|
3419
4126
|
if (data.frame !== undefined) {
|
|
3420
|
-
let
|
|
3421
|
-
if (!(((typeof
|
|
3422
|
-
const
|
|
4127
|
+
let data4 = data.frame;
|
|
4128
|
+
if (!(((typeof data4 == "number") && (!(data4 % 1) && !isNaN(data4))) && (isFinite(data4)))) {
|
|
4129
|
+
const err18 = { instancePath: instancePath + "/frame", schemaPath: "#/$defs/WireFrame/type", keyword: "type", params: { type: "integer" }, message: "must be integer" };
|
|
3423
4130
|
if (vErrors === null) {
|
|
3424
|
-
vErrors = [
|
|
4131
|
+
vErrors = [err18];
|
|
3425
4132
|
}
|
|
3426
4133
|
else {
|
|
3427
|
-
vErrors.push(
|
|
4134
|
+
vErrors.push(err18);
|
|
3428
4135
|
}
|
|
3429
4136
|
errors++;
|
|
3430
4137
|
}
|
|
3431
|
-
if ((typeof
|
|
3432
|
-
if (
|
|
3433
|
-
const
|
|
4138
|
+
if ((typeof data4 == "number") && (isFinite(data4))) {
|
|
4139
|
+
if (data4 > 9007199254740991 || isNaN(data4)) {
|
|
4140
|
+
const err19 = { instancePath: instancePath + "/frame", schemaPath: "#/$defs/WireFrame/maximum", keyword: "maximum", params: { comparison: "<=", limit: 9007199254740991 }, message: "must be <= 9007199254740991" };
|
|
3434
4141
|
if (vErrors === null) {
|
|
3435
|
-
vErrors = [
|
|
4142
|
+
vErrors = [err19];
|
|
3436
4143
|
}
|
|
3437
4144
|
else {
|
|
3438
|
-
vErrors.push(
|
|
4145
|
+
vErrors.push(err19);
|
|
3439
4146
|
}
|
|
3440
4147
|
errors++;
|
|
3441
4148
|
}
|
|
3442
|
-
if (
|
|
3443
|
-
const
|
|
4149
|
+
if (data4 < 0 || isNaN(data4)) {
|
|
4150
|
+
const err20 = { instancePath: instancePath + "/frame", schemaPath: "#/$defs/WireFrame/minimum", keyword: "minimum", params: { comparison: ">=", limit: 0 }, message: "must be >= 0" };
|
|
3444
4151
|
if (vErrors === null) {
|
|
3445
|
-
vErrors = [
|
|
4152
|
+
vErrors = [err20];
|
|
3446
4153
|
}
|
|
3447
4154
|
else {
|
|
3448
|
-
vErrors.push(
|
|
4155
|
+
vErrors.push(err20);
|
|
3449
4156
|
}
|
|
3450
4157
|
errors++;
|
|
3451
4158
|
}
|
|
3452
4159
|
}
|
|
3453
4160
|
}
|
|
3454
4161
|
if (data.type !== undefined) {
|
|
3455
|
-
let
|
|
3456
|
-
if (typeof
|
|
3457
|
-
const
|
|
4162
|
+
let data5 = data.type;
|
|
4163
|
+
if (typeof data5 !== "string") {
|
|
4164
|
+
const err21 = { instancePath: instancePath + "/type", schemaPath: "#/oneOf/2/properties/type/type", keyword: "type", params: { type: "string" }, message: "must be string" };
|
|
3458
4165
|
if (vErrors === null) {
|
|
3459
|
-
vErrors = [
|
|
4166
|
+
vErrors = [err21];
|
|
3460
4167
|
}
|
|
3461
4168
|
else {
|
|
3462
|
-
vErrors.push(
|
|
4169
|
+
vErrors.push(err21);
|
|
3463
4170
|
}
|
|
3464
4171
|
errors++;
|
|
3465
4172
|
}
|
|
3466
|
-
if ("frameStaged" !==
|
|
3467
|
-
const
|
|
4173
|
+
if ("frameStaged" !== data5) {
|
|
4174
|
+
const err22 = { instancePath: instancePath + "/type", schemaPath: "#/oneOf/2/properties/type/const", keyword: "const", params: { allowedValue: "frameStaged" }, message: "must be equal to constant" };
|
|
3468
4175
|
if (vErrors === null) {
|
|
3469
|
-
vErrors = [
|
|
4176
|
+
vErrors = [err22];
|
|
3470
4177
|
}
|
|
3471
4178
|
else {
|
|
3472
|
-
vErrors.push(
|
|
4179
|
+
vErrors.push(err22);
|
|
3473
4180
|
}
|
|
3474
4181
|
errors++;
|
|
3475
4182
|
}
|
|
3476
4183
|
}
|
|
3477
4184
|
}
|
|
3478
4185
|
else {
|
|
3479
|
-
const
|
|
4186
|
+
const err23 = { instancePath, schemaPath: "#/oneOf/2/type", keyword: "type", params: { type: "object" }, message: "must be object" };
|
|
3480
4187
|
if (vErrors === null) {
|
|
3481
|
-
vErrors = [
|
|
4188
|
+
vErrors = [err23];
|
|
3482
4189
|
}
|
|
3483
4190
|
else {
|
|
3484
|
-
vErrors.push(
|
|
4191
|
+
vErrors.push(err23);
|
|
3485
4192
|
}
|
|
3486
4193
|
errors++;
|
|
3487
4194
|
}
|
|
3488
|
-
var _valid0 =
|
|
4195
|
+
var _valid0 = _errs15 === errors;
|
|
3489
4196
|
if (_valid0 && valid0) {
|
|
3490
4197
|
valid0 = false;
|
|
3491
4198
|
passing0 = [passing0, 2];
|
|
@@ -3498,110 +4205,110 @@ function validate56(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
3498
4205
|
props0 = true;
|
|
3499
4206
|
}
|
|
3500
4207
|
}
|
|
3501
|
-
const
|
|
4208
|
+
const _errs23 = errors;
|
|
3502
4209
|
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
3503
4210
|
if (data.type === undefined) {
|
|
3504
|
-
const
|
|
4211
|
+
const err24 = { instancePath, schemaPath: "#/oneOf/3/required", keyword: "required", params: { missingProperty: "type" }, message: "must have required property '" + "type" + "'" };
|
|
3505
4212
|
if (vErrors === null) {
|
|
3506
|
-
vErrors = [
|
|
4213
|
+
vErrors = [err24];
|
|
3507
4214
|
}
|
|
3508
4215
|
else {
|
|
3509
|
-
vErrors.push(
|
|
4216
|
+
vErrors.push(err24);
|
|
3510
4217
|
}
|
|
3511
4218
|
errors++;
|
|
3512
4219
|
}
|
|
3513
4220
|
if (data.frame === undefined) {
|
|
3514
|
-
const
|
|
4221
|
+
const err25 = { instancePath, schemaPath: "#/oneOf/3/required", keyword: "required", params: { missingProperty: "frame" }, message: "must have required property '" + "frame" + "'" };
|
|
3515
4222
|
if (vErrors === null) {
|
|
3516
|
-
vErrors = [
|
|
4223
|
+
vErrors = [err25];
|
|
3517
4224
|
}
|
|
3518
4225
|
else {
|
|
3519
|
-
vErrors.push(
|
|
4226
|
+
vErrors.push(err25);
|
|
3520
4227
|
}
|
|
3521
4228
|
errors++;
|
|
3522
4229
|
}
|
|
3523
4230
|
for (const key3 in data) {
|
|
3524
4231
|
if (!((key3 === "frame") || (key3 === "type"))) {
|
|
3525
|
-
const
|
|
4232
|
+
const err26 = { instancePath, schemaPath: "#/oneOf/3/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key3 }, message: "must NOT have additional properties" };
|
|
3526
4233
|
if (vErrors === null) {
|
|
3527
|
-
vErrors = [
|
|
4234
|
+
vErrors = [err26];
|
|
3528
4235
|
}
|
|
3529
4236
|
else {
|
|
3530
|
-
vErrors.push(
|
|
4237
|
+
vErrors.push(err26);
|
|
3531
4238
|
}
|
|
3532
4239
|
errors++;
|
|
3533
4240
|
}
|
|
3534
4241
|
}
|
|
3535
4242
|
if (data.frame !== undefined) {
|
|
3536
|
-
let
|
|
3537
|
-
if (!(((typeof
|
|
3538
|
-
const
|
|
4243
|
+
let data6 = data.frame;
|
|
4244
|
+
if (!(((typeof data6 == "number") && (!(data6 % 1) && !isNaN(data6))) && (isFinite(data6)))) {
|
|
4245
|
+
const err27 = { instancePath: instancePath + "/frame", schemaPath: "#/$defs/WireFrame/type", keyword: "type", params: { type: "integer" }, message: "must be integer" };
|
|
3539
4246
|
if (vErrors === null) {
|
|
3540
|
-
vErrors = [
|
|
4247
|
+
vErrors = [err27];
|
|
3541
4248
|
}
|
|
3542
4249
|
else {
|
|
3543
|
-
vErrors.push(
|
|
4250
|
+
vErrors.push(err27);
|
|
3544
4251
|
}
|
|
3545
4252
|
errors++;
|
|
3546
4253
|
}
|
|
3547
|
-
if ((typeof
|
|
3548
|
-
if (
|
|
3549
|
-
const
|
|
4254
|
+
if ((typeof data6 == "number") && (isFinite(data6))) {
|
|
4255
|
+
if (data6 > 9007199254740991 || isNaN(data6)) {
|
|
4256
|
+
const err28 = { instancePath: instancePath + "/frame", schemaPath: "#/$defs/WireFrame/maximum", keyword: "maximum", params: { comparison: "<=", limit: 9007199254740991 }, message: "must be <= 9007199254740991" };
|
|
3550
4257
|
if (vErrors === null) {
|
|
3551
|
-
vErrors = [
|
|
4258
|
+
vErrors = [err28];
|
|
3552
4259
|
}
|
|
3553
4260
|
else {
|
|
3554
|
-
vErrors.push(
|
|
4261
|
+
vErrors.push(err28);
|
|
3555
4262
|
}
|
|
3556
4263
|
errors++;
|
|
3557
4264
|
}
|
|
3558
|
-
if (
|
|
3559
|
-
const
|
|
4265
|
+
if (data6 < 0 || isNaN(data6)) {
|
|
4266
|
+
const err29 = { instancePath: instancePath + "/frame", schemaPath: "#/$defs/WireFrame/minimum", keyword: "minimum", params: { comparison: ">=", limit: 0 }, message: "must be >= 0" };
|
|
3560
4267
|
if (vErrors === null) {
|
|
3561
|
-
vErrors = [
|
|
4268
|
+
vErrors = [err29];
|
|
3562
4269
|
}
|
|
3563
4270
|
else {
|
|
3564
|
-
vErrors.push(
|
|
4271
|
+
vErrors.push(err29);
|
|
3565
4272
|
}
|
|
3566
4273
|
errors++;
|
|
3567
4274
|
}
|
|
3568
4275
|
}
|
|
3569
4276
|
}
|
|
3570
4277
|
if (data.type !== undefined) {
|
|
3571
|
-
let
|
|
3572
|
-
if (typeof
|
|
3573
|
-
const
|
|
4278
|
+
let data7 = data.type;
|
|
4279
|
+
if (typeof data7 !== "string") {
|
|
4280
|
+
const err30 = { instancePath: instancePath + "/type", schemaPath: "#/oneOf/3/properties/type/type", keyword: "type", params: { type: "string" }, message: "must be string" };
|
|
3574
4281
|
if (vErrors === null) {
|
|
3575
|
-
vErrors = [
|
|
4282
|
+
vErrors = [err30];
|
|
3576
4283
|
}
|
|
3577
4284
|
else {
|
|
3578
|
-
vErrors.push(
|
|
4285
|
+
vErrors.push(err30);
|
|
3579
4286
|
}
|
|
3580
4287
|
errors++;
|
|
3581
4288
|
}
|
|
3582
|
-
if ("frameReady" !==
|
|
3583
|
-
const
|
|
4289
|
+
if ("frameReady" !== data7) {
|
|
4290
|
+
const err31 = { instancePath: instancePath + "/type", schemaPath: "#/oneOf/3/properties/type/const", keyword: "const", params: { allowedValue: "frameReady" }, message: "must be equal to constant" };
|
|
3584
4291
|
if (vErrors === null) {
|
|
3585
|
-
vErrors = [
|
|
4292
|
+
vErrors = [err31];
|
|
3586
4293
|
}
|
|
3587
4294
|
else {
|
|
3588
|
-
vErrors.push(
|
|
4295
|
+
vErrors.push(err31);
|
|
3589
4296
|
}
|
|
3590
4297
|
errors++;
|
|
3591
4298
|
}
|
|
3592
4299
|
}
|
|
3593
4300
|
}
|
|
3594
4301
|
else {
|
|
3595
|
-
const
|
|
4302
|
+
const err32 = { instancePath, schemaPath: "#/oneOf/3/type", keyword: "type", params: { type: "object" }, message: "must be object" };
|
|
3596
4303
|
if (vErrors === null) {
|
|
3597
|
-
vErrors = [
|
|
4304
|
+
vErrors = [err32];
|
|
3598
4305
|
}
|
|
3599
4306
|
else {
|
|
3600
|
-
vErrors.push(
|
|
4307
|
+
vErrors.push(err32);
|
|
3601
4308
|
}
|
|
3602
4309
|
errors++;
|
|
3603
4310
|
}
|
|
3604
|
-
var _valid0 =
|
|
4311
|
+
var _valid0 = _errs23 === errors;
|
|
3605
4312
|
if (_valid0 && valid0) {
|
|
3606
4313
|
valid0 = false;
|
|
3607
4314
|
passing0 = [passing0, 3];
|
|
@@ -3614,113 +4321,113 @@ function validate56(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
3614
4321
|
props0 = true;
|
|
3615
4322
|
}
|
|
3616
4323
|
}
|
|
3617
|
-
const
|
|
4324
|
+
const _errs31 = errors;
|
|
3618
4325
|
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
3619
4326
|
if (data.type === undefined) {
|
|
3620
|
-
const
|
|
4327
|
+
const err33 = { instancePath, schemaPath: "#/oneOf/4/required", keyword: "required", params: { missingProperty: "type" }, message: "must have required property '" + "type" + "'" };
|
|
3621
4328
|
if (vErrors === null) {
|
|
3622
|
-
vErrors = [
|
|
4329
|
+
vErrors = [err33];
|
|
3623
4330
|
}
|
|
3624
4331
|
else {
|
|
3625
|
-
vErrors.push(
|
|
4332
|
+
vErrors.push(err33);
|
|
3626
4333
|
}
|
|
3627
4334
|
errors++;
|
|
3628
4335
|
}
|
|
3629
4336
|
if (data.code === undefined) {
|
|
3630
|
-
const
|
|
4337
|
+
const err34 = { instancePath, schemaPath: "#/oneOf/4/required", keyword: "required", params: { missingProperty: "code" }, message: "must have required property '" + "code" + "'" };
|
|
3631
4338
|
if (vErrors === null) {
|
|
3632
|
-
vErrors = [
|
|
4339
|
+
vErrors = [err34];
|
|
3633
4340
|
}
|
|
3634
4341
|
else {
|
|
3635
|
-
vErrors.push(
|
|
4342
|
+
vErrors.push(err34);
|
|
3636
4343
|
}
|
|
3637
4344
|
errors++;
|
|
3638
4345
|
}
|
|
3639
4346
|
if (data.message === undefined) {
|
|
3640
|
-
const
|
|
4347
|
+
const err35 = { instancePath, schemaPath: "#/oneOf/4/required", keyword: "required", params: { missingProperty: "message" }, message: "must have required property '" + "message" + "'" };
|
|
3641
4348
|
if (vErrors === null) {
|
|
3642
|
-
vErrors = [
|
|
4349
|
+
vErrors = [err35];
|
|
3643
4350
|
}
|
|
3644
4351
|
else {
|
|
3645
|
-
vErrors.push(
|
|
4352
|
+
vErrors.push(err35);
|
|
3646
4353
|
}
|
|
3647
4354
|
errors++;
|
|
3648
4355
|
}
|
|
3649
4356
|
if (data.pendingResources === undefined) {
|
|
3650
|
-
const
|
|
4357
|
+
const err36 = { instancePath, schemaPath: "#/oneOf/4/required", keyword: "required", params: { missingProperty: "pendingResources" }, message: "must have required property '" + "pendingResources" + "'" };
|
|
3651
4358
|
if (vErrors === null) {
|
|
3652
|
-
vErrors = [
|
|
4359
|
+
vErrors = [err36];
|
|
3653
4360
|
}
|
|
3654
4361
|
else {
|
|
3655
|
-
vErrors.push(
|
|
4362
|
+
vErrors.push(err36);
|
|
3656
4363
|
}
|
|
3657
4364
|
errors++;
|
|
3658
4365
|
}
|
|
3659
4366
|
for (const key4 in data) {
|
|
3660
4367
|
if (!((((key4 === "code") || (key4 === "message")) || (key4 === "pendingResources")) || (key4 === "type"))) {
|
|
3661
|
-
const
|
|
4368
|
+
const err37 = { instancePath, schemaPath: "#/oneOf/4/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key4 }, message: "must NOT have additional properties" };
|
|
3662
4369
|
if (vErrors === null) {
|
|
3663
|
-
vErrors = [
|
|
4370
|
+
vErrors = [err37];
|
|
3664
4371
|
}
|
|
3665
4372
|
else {
|
|
3666
|
-
vErrors.push(
|
|
4373
|
+
vErrors.push(err37);
|
|
3667
4374
|
}
|
|
3668
4375
|
errors++;
|
|
3669
4376
|
}
|
|
3670
4377
|
}
|
|
3671
4378
|
if (data.code !== undefined) {
|
|
3672
|
-
let
|
|
3673
|
-
const
|
|
4379
|
+
let data8 = data.code;
|
|
4380
|
+
const _errs36 = errors;
|
|
3674
4381
|
let valid10 = false;
|
|
3675
4382
|
let passing1 = null;
|
|
3676
|
-
const
|
|
3677
|
-
if (typeof
|
|
3678
|
-
const
|
|
4383
|
+
const _errs37 = errors;
|
|
4384
|
+
if (typeof data8 !== "string") {
|
|
4385
|
+
const err38 = { instancePath: instancePath + "/code", schemaPath: "#/$defs/ProtocolFailureCode/oneOf/0/type", keyword: "type", params: { type: "string" }, message: "must be string" };
|
|
3679
4386
|
if (vErrors === null) {
|
|
3680
|
-
vErrors = [
|
|
4387
|
+
vErrors = [err38];
|
|
3681
4388
|
}
|
|
3682
4389
|
else {
|
|
3683
|
-
vErrors.push(
|
|
4390
|
+
vErrors.push(err38);
|
|
3684
4391
|
}
|
|
3685
4392
|
errors++;
|
|
3686
4393
|
}
|
|
3687
|
-
if ("protocolMismatch" !==
|
|
3688
|
-
const
|
|
4394
|
+
if ("protocolMismatch" !== data8) {
|
|
4395
|
+
const err39 = { instancePath: instancePath + "/code", schemaPath: "#/$defs/ProtocolFailureCode/oneOf/0/const", keyword: "const", params: { allowedValue: "protocolMismatch" }, message: "must be equal to constant" };
|
|
3689
4396
|
if (vErrors === null) {
|
|
3690
|
-
vErrors = [
|
|
4397
|
+
vErrors = [err39];
|
|
3691
4398
|
}
|
|
3692
4399
|
else {
|
|
3693
|
-
vErrors.push(
|
|
4400
|
+
vErrors.push(err39);
|
|
3694
4401
|
}
|
|
3695
4402
|
errors++;
|
|
3696
4403
|
}
|
|
3697
|
-
var _valid1 =
|
|
4404
|
+
var _valid1 = _errs37 === errors;
|
|
3698
4405
|
if (_valid1) {
|
|
3699
4406
|
valid10 = true;
|
|
3700
4407
|
passing1 = 0;
|
|
3701
4408
|
}
|
|
3702
|
-
const
|
|
3703
|
-
if (typeof
|
|
3704
|
-
const
|
|
4409
|
+
const _errs39 = errors;
|
|
4410
|
+
if (typeof data8 !== "string") {
|
|
4411
|
+
const err40 = { instancePath: instancePath + "/code", schemaPath: "#/$defs/ProtocolFailureCode/oneOf/1/type", keyword: "type", params: { type: "string" }, message: "must be string" };
|
|
3705
4412
|
if (vErrors === null) {
|
|
3706
|
-
vErrors = [
|
|
4413
|
+
vErrors = [err40];
|
|
3707
4414
|
}
|
|
3708
4415
|
else {
|
|
3709
|
-
vErrors.push(
|
|
4416
|
+
vErrors.push(err40);
|
|
3710
4417
|
}
|
|
3711
4418
|
errors++;
|
|
3712
4419
|
}
|
|
3713
|
-
if ("invalidRequest" !==
|
|
3714
|
-
const
|
|
4420
|
+
if ("invalidRequest" !== data8) {
|
|
4421
|
+
const err41 = { instancePath: instancePath + "/code", schemaPath: "#/$defs/ProtocolFailureCode/oneOf/1/const", keyword: "const", params: { allowedValue: "invalidRequest" }, message: "must be equal to constant" };
|
|
3715
4422
|
if (vErrors === null) {
|
|
3716
|
-
vErrors = [
|
|
4423
|
+
vErrors = [err41];
|
|
3717
4424
|
}
|
|
3718
4425
|
else {
|
|
3719
|
-
vErrors.push(
|
|
4426
|
+
vErrors.push(err41);
|
|
3720
4427
|
}
|
|
3721
4428
|
errors++;
|
|
3722
4429
|
}
|
|
3723
|
-
var _valid1 =
|
|
4430
|
+
var _valid1 = _errs39 === errors;
|
|
3724
4431
|
if (_valid1 && valid10) {
|
|
3725
4432
|
valid10 = false;
|
|
3726
4433
|
passing1 = [passing1, 1];
|
|
@@ -3730,28 +4437,28 @@ function validate56(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
3730
4437
|
valid10 = true;
|
|
3731
4438
|
passing1 = 1;
|
|
3732
4439
|
}
|
|
3733
|
-
const
|
|
3734
|
-
if (typeof
|
|
3735
|
-
const
|
|
4440
|
+
const _errs41 = errors;
|
|
4441
|
+
if (typeof data8 !== "string") {
|
|
4442
|
+
const err42 = { instancePath: instancePath + "/code", schemaPath: "#/$defs/ProtocolFailureCode/oneOf/2/type", keyword: "type", params: { type: "string" }, message: "must be string" };
|
|
3736
4443
|
if (vErrors === null) {
|
|
3737
|
-
vErrors = [
|
|
4444
|
+
vErrors = [err42];
|
|
3738
4445
|
}
|
|
3739
4446
|
else {
|
|
3740
|
-
vErrors.push(
|
|
4447
|
+
vErrors.push(err42);
|
|
3741
4448
|
}
|
|
3742
4449
|
errors++;
|
|
3743
4450
|
}
|
|
3744
|
-
if ("loadFailed" !==
|
|
3745
|
-
const
|
|
4451
|
+
if ("loadFailed" !== data8) {
|
|
4452
|
+
const err43 = { instancePath: instancePath + "/code", schemaPath: "#/$defs/ProtocolFailureCode/oneOf/2/const", keyword: "const", params: { allowedValue: "loadFailed" }, message: "must be equal to constant" };
|
|
3746
4453
|
if (vErrors === null) {
|
|
3747
|
-
vErrors = [
|
|
4454
|
+
vErrors = [err43];
|
|
3748
4455
|
}
|
|
3749
4456
|
else {
|
|
3750
|
-
vErrors.push(
|
|
4457
|
+
vErrors.push(err43);
|
|
3751
4458
|
}
|
|
3752
4459
|
errors++;
|
|
3753
4460
|
}
|
|
3754
|
-
var _valid1 =
|
|
4461
|
+
var _valid1 = _errs41 === errors;
|
|
3755
4462
|
if (_valid1 && valid10) {
|
|
3756
4463
|
valid10 = false;
|
|
3757
4464
|
passing1 = [passing1, 2];
|
|
@@ -3761,28 +4468,28 @@ function validate56(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
3761
4468
|
valid10 = true;
|
|
3762
4469
|
passing1 = 2;
|
|
3763
4470
|
}
|
|
3764
|
-
const
|
|
3765
|
-
if (typeof
|
|
3766
|
-
const
|
|
4471
|
+
const _errs43 = errors;
|
|
4472
|
+
if (typeof data8 !== "string") {
|
|
4473
|
+
const err44 = { instancePath: instancePath + "/code", schemaPath: "#/$defs/ProtocolFailureCode/oneOf/3/type", keyword: "type", params: { type: "string" }, message: "must be string" };
|
|
3767
4474
|
if (vErrors === null) {
|
|
3768
|
-
vErrors = [
|
|
4475
|
+
vErrors = [err44];
|
|
3769
4476
|
}
|
|
3770
4477
|
else {
|
|
3771
|
-
vErrors.push(
|
|
4478
|
+
vErrors.push(err44);
|
|
3772
4479
|
}
|
|
3773
4480
|
errors++;
|
|
3774
4481
|
}
|
|
3775
|
-
if ("prepareFailed" !==
|
|
3776
|
-
const
|
|
4482
|
+
if ("prepareFailed" !== data8) {
|
|
4483
|
+
const err45 = { instancePath: instancePath + "/code", schemaPath: "#/$defs/ProtocolFailureCode/oneOf/3/const", keyword: "const", params: { allowedValue: "prepareFailed" }, message: "must be equal to constant" };
|
|
3777
4484
|
if (vErrors === null) {
|
|
3778
|
-
vErrors = [
|
|
4485
|
+
vErrors = [err45];
|
|
3779
4486
|
}
|
|
3780
4487
|
else {
|
|
3781
|
-
vErrors.push(
|
|
4488
|
+
vErrors.push(err45);
|
|
3782
4489
|
}
|
|
3783
4490
|
errors++;
|
|
3784
4491
|
}
|
|
3785
|
-
var _valid1 =
|
|
4492
|
+
var _valid1 = _errs43 === errors;
|
|
3786
4493
|
if (_valid1 && valid10) {
|
|
3787
4494
|
valid10 = false;
|
|
3788
4495
|
passing1 = [passing1, 3];
|
|
@@ -3792,28 +4499,28 @@ function validate56(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
3792
4499
|
valid10 = true;
|
|
3793
4500
|
passing1 = 3;
|
|
3794
4501
|
}
|
|
3795
|
-
const
|
|
3796
|
-
if (typeof
|
|
3797
|
-
const
|
|
4502
|
+
const _errs45 = errors;
|
|
4503
|
+
if (typeof data8 !== "string") {
|
|
4504
|
+
const err46 = { instancePath: instancePath + "/code", schemaPath: "#/$defs/ProtocolFailureCode/oneOf/4/type", keyword: "type", params: { type: "string" }, message: "must be string" };
|
|
3798
4505
|
if (vErrors === null) {
|
|
3799
|
-
vErrors = [
|
|
4506
|
+
vErrors = [err46];
|
|
3800
4507
|
}
|
|
3801
4508
|
else {
|
|
3802
|
-
vErrors.push(
|
|
4509
|
+
vErrors.push(err46);
|
|
3803
4510
|
}
|
|
3804
4511
|
errors++;
|
|
3805
4512
|
}
|
|
3806
|
-
if ("seekFailed" !==
|
|
3807
|
-
const
|
|
4513
|
+
if ("seekFailed" !== data8) {
|
|
4514
|
+
const err47 = { instancePath: instancePath + "/code", schemaPath: "#/$defs/ProtocolFailureCode/oneOf/4/const", keyword: "const", params: { allowedValue: "seekFailed" }, message: "must be equal to constant" };
|
|
3808
4515
|
if (vErrors === null) {
|
|
3809
|
-
vErrors = [
|
|
4516
|
+
vErrors = [err47];
|
|
3810
4517
|
}
|
|
3811
4518
|
else {
|
|
3812
|
-
vErrors.push(
|
|
4519
|
+
vErrors.push(err47);
|
|
3813
4520
|
}
|
|
3814
4521
|
errors++;
|
|
3815
4522
|
}
|
|
3816
|
-
var _valid1 =
|
|
4523
|
+
var _valid1 = _errs45 === errors;
|
|
3817
4524
|
if (_valid1 && valid10) {
|
|
3818
4525
|
valid10 = false;
|
|
3819
4526
|
passing1 = [passing1, 4];
|
|
@@ -3823,28 +4530,28 @@ function validate56(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
3823
4530
|
valid10 = true;
|
|
3824
4531
|
passing1 = 4;
|
|
3825
4532
|
}
|
|
3826
|
-
const
|
|
3827
|
-
if (typeof
|
|
3828
|
-
const
|
|
4533
|
+
const _errs47 = errors;
|
|
4534
|
+
if (typeof data8 !== "string") {
|
|
4535
|
+
const err48 = { instancePath: instancePath + "/code", schemaPath: "#/$defs/ProtocolFailureCode/oneOf/5/type", keyword: "type", params: { type: "string" }, message: "must be string" };
|
|
3829
4536
|
if (vErrors === null) {
|
|
3830
|
-
vErrors = [
|
|
4537
|
+
vErrors = [err48];
|
|
3831
4538
|
}
|
|
3832
4539
|
else {
|
|
3833
|
-
vErrors.push(
|
|
4540
|
+
vErrors.push(err48);
|
|
3834
4541
|
}
|
|
3835
4542
|
errors++;
|
|
3836
4543
|
}
|
|
3837
|
-
if ("confirmFailed" !==
|
|
3838
|
-
const
|
|
4544
|
+
if ("confirmFailed" !== data8) {
|
|
4545
|
+
const err49 = { instancePath: instancePath + "/code", schemaPath: "#/$defs/ProtocolFailureCode/oneOf/5/const", keyword: "const", params: { allowedValue: "confirmFailed" }, message: "must be equal to constant" };
|
|
3839
4546
|
if (vErrors === null) {
|
|
3840
|
-
vErrors = [
|
|
4547
|
+
vErrors = [err49];
|
|
3841
4548
|
}
|
|
3842
4549
|
else {
|
|
3843
|
-
vErrors.push(
|
|
4550
|
+
vErrors.push(err49);
|
|
3844
4551
|
}
|
|
3845
4552
|
errors++;
|
|
3846
4553
|
}
|
|
3847
|
-
var _valid1 =
|
|
4554
|
+
var _valid1 = _errs47 === errors;
|
|
3848
4555
|
if (_valid1 && valid10) {
|
|
3849
4556
|
valid10 = false;
|
|
3850
4557
|
passing1 = [passing1, 5];
|
|
@@ -3854,28 +4561,28 @@ function validate56(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
3854
4561
|
valid10 = true;
|
|
3855
4562
|
passing1 = 5;
|
|
3856
4563
|
}
|
|
3857
|
-
const
|
|
3858
|
-
if (typeof
|
|
3859
|
-
const
|
|
4564
|
+
const _errs49 = errors;
|
|
4565
|
+
if (typeof data8 !== "string") {
|
|
4566
|
+
const err50 = { instancePath: instancePath + "/code", schemaPath: "#/$defs/ProtocolFailureCode/oneOf/6/type", keyword: "type", params: { type: "string" }, message: "must be string" };
|
|
3860
4567
|
if (vErrors === null) {
|
|
3861
|
-
vErrors = [
|
|
4568
|
+
vErrors = [err50];
|
|
3862
4569
|
}
|
|
3863
4570
|
else {
|
|
3864
|
-
vErrors.push(
|
|
4571
|
+
vErrors.push(err50);
|
|
3865
4572
|
}
|
|
3866
4573
|
errors++;
|
|
3867
4574
|
}
|
|
3868
|
-
if ("readinessTimeout" !==
|
|
3869
|
-
const
|
|
4575
|
+
if ("readinessTimeout" !== data8) {
|
|
4576
|
+
const err51 = { instancePath: instancePath + "/code", schemaPath: "#/$defs/ProtocolFailureCode/oneOf/6/const", keyword: "const", params: { allowedValue: "readinessTimeout" }, message: "must be equal to constant" };
|
|
3870
4577
|
if (vErrors === null) {
|
|
3871
|
-
vErrors = [
|
|
4578
|
+
vErrors = [err51];
|
|
3872
4579
|
}
|
|
3873
4580
|
else {
|
|
3874
|
-
vErrors.push(
|
|
4581
|
+
vErrors.push(err51);
|
|
3875
4582
|
}
|
|
3876
4583
|
errors++;
|
|
3877
4584
|
}
|
|
3878
|
-
var _valid1 =
|
|
4585
|
+
var _valid1 = _errs49 === errors;
|
|
3879
4586
|
if (_valid1 && valid10) {
|
|
3880
4587
|
valid10 = false;
|
|
3881
4588
|
passing1 = [passing1, 6];
|
|
@@ -3885,28 +4592,28 @@ function validate56(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
3885
4592
|
valid10 = true;
|
|
3886
4593
|
passing1 = 6;
|
|
3887
4594
|
}
|
|
3888
|
-
const
|
|
3889
|
-
if (typeof
|
|
3890
|
-
const
|
|
4595
|
+
const _errs51 = errors;
|
|
4596
|
+
if (typeof data8 !== "string") {
|
|
4597
|
+
const err52 = { instancePath: instancePath + "/code", schemaPath: "#/$defs/ProtocolFailureCode/oneOf/7/type", keyword: "type", params: { type: "string" }, message: "must be string" };
|
|
3891
4598
|
if (vErrors === null) {
|
|
3892
|
-
vErrors = [
|
|
4599
|
+
vErrors = [err52];
|
|
3893
4600
|
}
|
|
3894
4601
|
else {
|
|
3895
|
-
vErrors.push(
|
|
4602
|
+
vErrors.push(err52);
|
|
3896
4603
|
}
|
|
3897
4604
|
errors++;
|
|
3898
4605
|
}
|
|
3899
|
-
if ("internal" !==
|
|
3900
|
-
const
|
|
4606
|
+
if ("internal" !== data8) {
|
|
4607
|
+
const err53 = { instancePath: instancePath + "/code", schemaPath: "#/$defs/ProtocolFailureCode/oneOf/7/const", keyword: "const", params: { allowedValue: "internal" }, message: "must be equal to constant" };
|
|
3901
4608
|
if (vErrors === null) {
|
|
3902
|
-
vErrors = [
|
|
4609
|
+
vErrors = [err53];
|
|
3903
4610
|
}
|
|
3904
4611
|
else {
|
|
3905
|
-
vErrors.push(
|
|
4612
|
+
vErrors.push(err53);
|
|
3906
4613
|
}
|
|
3907
4614
|
errors++;
|
|
3908
4615
|
}
|
|
3909
|
-
var _valid1 =
|
|
4616
|
+
var _valid1 = _errs51 === errors;
|
|
3910
4617
|
if (_valid1 && valid10) {
|
|
3911
4618
|
valid10 = false;
|
|
3912
4619
|
passing1 = [passing1, 7];
|
|
@@ -3924,20 +4631,20 @@ function validate56(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
3924
4631
|
}
|
|
3925
4632
|
}
|
|
3926
4633
|
if (!valid10) {
|
|
3927
|
-
const
|
|
4634
|
+
const err54 = { instancePath: instancePath + "/code", schemaPath: "#/$defs/ProtocolFailureCode/oneOf", keyword: "oneOf", params: { passingSchemas: passing1 }, message: "must match exactly one schema in oneOf" };
|
|
3928
4635
|
if (vErrors === null) {
|
|
3929
|
-
vErrors = [
|
|
4636
|
+
vErrors = [err54];
|
|
3930
4637
|
}
|
|
3931
4638
|
else {
|
|
3932
|
-
vErrors.push(
|
|
4639
|
+
vErrors.push(err54);
|
|
3933
4640
|
}
|
|
3934
4641
|
errors++;
|
|
3935
4642
|
}
|
|
3936
4643
|
else {
|
|
3937
|
-
errors =
|
|
4644
|
+
errors = _errs36;
|
|
3938
4645
|
if (vErrors !== null) {
|
|
3939
|
-
if (
|
|
3940
|
-
vErrors.length =
|
|
4646
|
+
if (_errs36) {
|
|
4647
|
+
vErrors.length = _errs36;
|
|
3941
4648
|
}
|
|
3942
4649
|
else {
|
|
3943
4650
|
vErrors = null;
|
|
@@ -3946,136 +4653,136 @@ function validate56(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
3946
4653
|
}
|
|
3947
4654
|
}
|
|
3948
4655
|
if (data.message !== undefined) {
|
|
3949
|
-
let
|
|
3950
|
-
if (typeof
|
|
3951
|
-
if (func2(
|
|
3952
|
-
const
|
|
4656
|
+
let data9 = data.message;
|
|
4657
|
+
if (typeof data9 === "string") {
|
|
4658
|
+
if (func2(data9) > 4096) {
|
|
4659
|
+
const err55 = { instancePath: instancePath + "/message", schemaPath: "#/oneOf/4/properties/message/maxLength", keyword: "maxLength", params: { limit: 4096 }, message: "must NOT have more than 4096 characters" };
|
|
3953
4660
|
if (vErrors === null) {
|
|
3954
|
-
vErrors = [
|
|
4661
|
+
vErrors = [err55];
|
|
3955
4662
|
}
|
|
3956
4663
|
else {
|
|
3957
|
-
vErrors.push(
|
|
4664
|
+
vErrors.push(err55);
|
|
3958
4665
|
}
|
|
3959
4666
|
errors++;
|
|
3960
4667
|
}
|
|
3961
|
-
if (!pattern9.test(
|
|
3962
|
-
const
|
|
4668
|
+
if (!pattern9.test(data9)) {
|
|
4669
|
+
const err56 = { instancePath: instancePath + "/message", schemaPath: "#/oneOf/4/properties/message/pattern", keyword: "pattern", params: { pattern: "\\S" }, message: "must match pattern \"" + "\\S" + "\"" };
|
|
3963
4670
|
if (vErrors === null) {
|
|
3964
|
-
vErrors = [
|
|
4671
|
+
vErrors = [err56];
|
|
3965
4672
|
}
|
|
3966
4673
|
else {
|
|
3967
|
-
vErrors.push(
|
|
4674
|
+
vErrors.push(err56);
|
|
3968
4675
|
}
|
|
3969
4676
|
errors++;
|
|
3970
4677
|
}
|
|
3971
4678
|
}
|
|
3972
4679
|
else {
|
|
3973
|
-
const
|
|
4680
|
+
const err57 = { instancePath: instancePath + "/message", schemaPath: "#/oneOf/4/properties/message/type", keyword: "type", params: { type: "string" }, message: "must be string" };
|
|
3974
4681
|
if (vErrors === null) {
|
|
3975
|
-
vErrors = [
|
|
4682
|
+
vErrors = [err57];
|
|
3976
4683
|
}
|
|
3977
4684
|
else {
|
|
3978
|
-
vErrors.push(
|
|
4685
|
+
vErrors.push(err57);
|
|
3979
4686
|
}
|
|
3980
4687
|
errors++;
|
|
3981
4688
|
}
|
|
3982
4689
|
}
|
|
3983
4690
|
if (data.pendingResources !== undefined) {
|
|
3984
|
-
let
|
|
3985
|
-
if (Array.isArray(
|
|
3986
|
-
if (
|
|
3987
|
-
const
|
|
4691
|
+
let data10 = data.pendingResources;
|
|
4692
|
+
if (Array.isArray(data10)) {
|
|
4693
|
+
if (data10.length > 256) {
|
|
4694
|
+
const err58 = { instancePath: instancePath + "/pendingResources", schemaPath: "#/oneOf/4/properties/pendingResources/maxItems", keyword: "maxItems", params: { limit: 256 }, message: "must NOT have more than 256 items" };
|
|
3988
4695
|
if (vErrors === null) {
|
|
3989
|
-
vErrors = [
|
|
4696
|
+
vErrors = [err58];
|
|
3990
4697
|
}
|
|
3991
4698
|
else {
|
|
3992
|
-
vErrors.push(
|
|
4699
|
+
vErrors.push(err58);
|
|
3993
4700
|
}
|
|
3994
4701
|
errors++;
|
|
3995
4702
|
}
|
|
3996
|
-
const len0 =
|
|
4703
|
+
const len0 = data10.length;
|
|
3997
4704
|
for (let i0 = 0; i0 < len0; i0++) {
|
|
3998
|
-
let
|
|
3999
|
-
if (typeof
|
|
4000
|
-
if (func2(
|
|
4001
|
-
const
|
|
4705
|
+
let data11 = data10[i0];
|
|
4706
|
+
if (typeof data11 === "string") {
|
|
4707
|
+
if (func2(data11) > 1024) {
|
|
4708
|
+
const err59 = { instancePath: instancePath + "/pendingResources/" + i0, schemaPath: "#/oneOf/4/properties/pendingResources/items/maxLength", keyword: "maxLength", params: { limit: 1024 }, message: "must NOT have more than 1024 characters" };
|
|
4002
4709
|
if (vErrors === null) {
|
|
4003
|
-
vErrors = [
|
|
4710
|
+
vErrors = [err59];
|
|
4004
4711
|
}
|
|
4005
4712
|
else {
|
|
4006
|
-
vErrors.push(
|
|
4713
|
+
vErrors.push(err59);
|
|
4007
4714
|
}
|
|
4008
4715
|
errors++;
|
|
4009
4716
|
}
|
|
4010
|
-
if (!pattern9.test(
|
|
4011
|
-
const
|
|
4717
|
+
if (!pattern9.test(data11)) {
|
|
4718
|
+
const err60 = { instancePath: instancePath + "/pendingResources/" + i0, schemaPath: "#/oneOf/4/properties/pendingResources/items/pattern", keyword: "pattern", params: { pattern: "\\S" }, message: "must match pattern \"" + "\\S" + "\"" };
|
|
4012
4719
|
if (vErrors === null) {
|
|
4013
|
-
vErrors = [
|
|
4720
|
+
vErrors = [err60];
|
|
4014
4721
|
}
|
|
4015
4722
|
else {
|
|
4016
|
-
vErrors.push(
|
|
4723
|
+
vErrors.push(err60);
|
|
4017
4724
|
}
|
|
4018
4725
|
errors++;
|
|
4019
4726
|
}
|
|
4020
4727
|
}
|
|
4021
4728
|
else {
|
|
4022
|
-
const
|
|
4729
|
+
const err61 = { instancePath: instancePath + "/pendingResources/" + i0, schemaPath: "#/oneOf/4/properties/pendingResources/items/type", keyword: "type", params: { type: "string" }, message: "must be string" };
|
|
4023
4730
|
if (vErrors === null) {
|
|
4024
|
-
vErrors = [
|
|
4731
|
+
vErrors = [err61];
|
|
4025
4732
|
}
|
|
4026
4733
|
else {
|
|
4027
|
-
vErrors.push(
|
|
4734
|
+
vErrors.push(err61);
|
|
4028
4735
|
}
|
|
4029
4736
|
errors++;
|
|
4030
4737
|
}
|
|
4031
4738
|
}
|
|
4032
4739
|
}
|
|
4033
4740
|
else {
|
|
4034
|
-
const
|
|
4741
|
+
const err62 = { instancePath: instancePath + "/pendingResources", schemaPath: "#/oneOf/4/properties/pendingResources/type", keyword: "type", params: { type: "array" }, message: "must be array" };
|
|
4035
4742
|
if (vErrors === null) {
|
|
4036
|
-
vErrors = [
|
|
4743
|
+
vErrors = [err62];
|
|
4037
4744
|
}
|
|
4038
4745
|
else {
|
|
4039
|
-
vErrors.push(
|
|
4746
|
+
vErrors.push(err62);
|
|
4040
4747
|
}
|
|
4041
4748
|
errors++;
|
|
4042
4749
|
}
|
|
4043
4750
|
}
|
|
4044
4751
|
if (data.type !== undefined) {
|
|
4045
|
-
let
|
|
4046
|
-
if (typeof
|
|
4047
|
-
const
|
|
4752
|
+
let data12 = data.type;
|
|
4753
|
+
if (typeof data12 !== "string") {
|
|
4754
|
+
const err63 = { instancePath: instancePath + "/type", schemaPath: "#/oneOf/4/properties/type/type", keyword: "type", params: { type: "string" }, message: "must be string" };
|
|
4048
4755
|
if (vErrors === null) {
|
|
4049
|
-
vErrors = [
|
|
4756
|
+
vErrors = [err63];
|
|
4050
4757
|
}
|
|
4051
4758
|
else {
|
|
4052
|
-
vErrors.push(
|
|
4759
|
+
vErrors.push(err63);
|
|
4053
4760
|
}
|
|
4054
4761
|
errors++;
|
|
4055
4762
|
}
|
|
4056
|
-
if ("failed" !==
|
|
4057
|
-
const
|
|
4763
|
+
if ("failed" !== data12) {
|
|
4764
|
+
const err64 = { instancePath: instancePath + "/type", schemaPath: "#/oneOf/4/properties/type/const", keyword: "const", params: { allowedValue: "failed" }, message: "must be equal to constant" };
|
|
4058
4765
|
if (vErrors === null) {
|
|
4059
|
-
vErrors = [
|
|
4766
|
+
vErrors = [err64];
|
|
4060
4767
|
}
|
|
4061
4768
|
else {
|
|
4062
|
-
vErrors.push(
|
|
4769
|
+
vErrors.push(err64);
|
|
4063
4770
|
}
|
|
4064
4771
|
errors++;
|
|
4065
4772
|
}
|
|
4066
4773
|
}
|
|
4067
4774
|
}
|
|
4068
4775
|
else {
|
|
4069
|
-
const
|
|
4776
|
+
const err65 = { instancePath, schemaPath: "#/oneOf/4/type", keyword: "type", params: { type: "object" }, message: "must be object" };
|
|
4070
4777
|
if (vErrors === null) {
|
|
4071
|
-
vErrors = [
|
|
4778
|
+
vErrors = [err65];
|
|
4072
4779
|
}
|
|
4073
4780
|
else {
|
|
4074
|
-
vErrors.push(
|
|
4781
|
+
vErrors.push(err65);
|
|
4075
4782
|
}
|
|
4076
4783
|
errors++;
|
|
4077
4784
|
}
|
|
4078
|
-
var _valid0 =
|
|
4785
|
+
var _valid0 = _errs31 === errors;
|
|
4079
4786
|
if (_valid0 && valid0) {
|
|
4080
4787
|
valid0 = false;
|
|
4081
4788
|
passing0 = [passing0, 4];
|
|
@@ -4088,65 +4795,65 @@ function validate56(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
4088
4795
|
props0 = true;
|
|
4089
4796
|
}
|
|
4090
4797
|
}
|
|
4091
|
-
const
|
|
4798
|
+
const _errs61 = errors;
|
|
4092
4799
|
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
4093
4800
|
if (data.type === undefined) {
|
|
4094
|
-
const
|
|
4801
|
+
const err66 = { instancePath, schemaPath: "#/oneOf/5/required", keyword: "required", params: { missingProperty: "type" }, message: "must have required property '" + "type" + "'" };
|
|
4095
4802
|
if (vErrors === null) {
|
|
4096
|
-
vErrors = [
|
|
4803
|
+
vErrors = [err66];
|
|
4097
4804
|
}
|
|
4098
4805
|
else {
|
|
4099
|
-
vErrors.push(
|
|
4806
|
+
vErrors.push(err66);
|
|
4100
4807
|
}
|
|
4101
4808
|
errors++;
|
|
4102
4809
|
}
|
|
4103
4810
|
for (const key5 in data) {
|
|
4104
4811
|
if (!(key5 === "type")) {
|
|
4105
|
-
const
|
|
4812
|
+
const err67 = { instancePath, schemaPath: "#/oneOf/5/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key5 }, message: "must NOT have additional properties" };
|
|
4106
4813
|
if (vErrors === null) {
|
|
4107
|
-
vErrors = [
|
|
4814
|
+
vErrors = [err67];
|
|
4108
4815
|
}
|
|
4109
4816
|
else {
|
|
4110
|
-
vErrors.push(
|
|
4817
|
+
vErrors.push(err67);
|
|
4111
4818
|
}
|
|
4112
4819
|
errors++;
|
|
4113
4820
|
}
|
|
4114
4821
|
}
|
|
4115
4822
|
if (data.type !== undefined) {
|
|
4116
|
-
let
|
|
4117
|
-
if (typeof
|
|
4118
|
-
const
|
|
4823
|
+
let data13 = data.type;
|
|
4824
|
+
if (typeof data13 !== "string") {
|
|
4825
|
+
const err68 = { instancePath: instancePath + "/type", schemaPath: "#/oneOf/5/properties/type/type", keyword: "type", params: { type: "string" }, message: "must be string" };
|
|
4119
4826
|
if (vErrors === null) {
|
|
4120
|
-
vErrors = [
|
|
4827
|
+
vErrors = [err68];
|
|
4121
4828
|
}
|
|
4122
4829
|
else {
|
|
4123
|
-
vErrors.push(
|
|
4830
|
+
vErrors.push(err68);
|
|
4124
4831
|
}
|
|
4125
4832
|
errors++;
|
|
4126
4833
|
}
|
|
4127
|
-
if ("disposed" !==
|
|
4128
|
-
const
|
|
4834
|
+
if ("disposed" !== data13) {
|
|
4835
|
+
const err69 = { instancePath: instancePath + "/type", schemaPath: "#/oneOf/5/properties/type/const", keyword: "const", params: { allowedValue: "disposed" }, message: "must be equal to constant" };
|
|
4129
4836
|
if (vErrors === null) {
|
|
4130
|
-
vErrors = [
|
|
4837
|
+
vErrors = [err69];
|
|
4131
4838
|
}
|
|
4132
4839
|
else {
|
|
4133
|
-
vErrors.push(
|
|
4840
|
+
vErrors.push(err69);
|
|
4134
4841
|
}
|
|
4135
4842
|
errors++;
|
|
4136
4843
|
}
|
|
4137
4844
|
}
|
|
4138
4845
|
}
|
|
4139
4846
|
else {
|
|
4140
|
-
const
|
|
4847
|
+
const err70 = { instancePath, schemaPath: "#/oneOf/5/type", keyword: "type", params: { type: "object" }, message: "must be object" };
|
|
4141
4848
|
if (vErrors === null) {
|
|
4142
|
-
vErrors = [
|
|
4849
|
+
vErrors = [err70];
|
|
4143
4850
|
}
|
|
4144
4851
|
else {
|
|
4145
|
-
vErrors.push(
|
|
4852
|
+
vErrors.push(err70);
|
|
4146
4853
|
}
|
|
4147
4854
|
errors++;
|
|
4148
4855
|
}
|
|
4149
|
-
var _valid0 =
|
|
4856
|
+
var _valid0 = _errs61 === errors;
|
|
4150
4857
|
if (_valid0 && valid0) {
|
|
4151
4858
|
valid0 = false;
|
|
4152
4859
|
passing0 = [passing0, 5];
|
|
@@ -4165,12 +4872,12 @@ function validate56(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
4165
4872
|
}
|
|
4166
4873
|
}
|
|
4167
4874
|
if (!valid0) {
|
|
4168
|
-
const
|
|
4875
|
+
const err71 = { instancePath, schemaPath: "#/oneOf", keyword: "oneOf", params: { passingSchemas: passing0 }, message: "must match exactly one schema in oneOf" };
|
|
4169
4876
|
if (vErrors === null) {
|
|
4170
|
-
vErrors = [
|
|
4877
|
+
vErrors = [err71];
|
|
4171
4878
|
}
|
|
4172
4879
|
else {
|
|
4173
|
-
vErrors.push(
|
|
4880
|
+
vErrors.push(err71);
|
|
4174
4881
|
}
|
|
4175
4882
|
errors++;
|
|
4176
4883
|
}
|
|
@@ -4191,7 +4898,7 @@ function validate56(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
4191
4898
|
}
|
|
4192
4899
|
validate56.evaluated = { "dynamicProps": true, "dynamicItems": false };
|
|
4193
4900
|
function validate55(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
|
|
4194
|
-
/*# sourceURL="https://onmark.dev/schemas/browser-response-
|
|
4901
|
+
/*# sourceURL="https://onmark.dev/schemas/browser-response-v5.schema.json" */ ;
|
|
4195
4902
|
let vErrors = null;
|
|
4196
4903
|
let errors = 0;
|
|
4197
4904
|
const evaluated0 = validate55.evaluated;
|
|
@@ -4297,8 +5004,8 @@ function validate55(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
4297
5004
|
}
|
|
4298
5005
|
errors++;
|
|
4299
5006
|
}
|
|
4300
|
-
if (
|
|
4301
|
-
const err8 = { instancePath: instancePath + "/version", schemaPath: "#/$defs/ProtocolVersion/const", keyword: "const", params: { allowedValue:
|
|
5007
|
+
if (5 !== data2) {
|
|
5008
|
+
const err8 = { instancePath: instancePath + "/version", schemaPath: "#/$defs/ProtocolVersion/const", keyword: "const", params: { allowedValue: 5 }, message: "must be equal to constant" };
|
|
4302
5009
|
if (vErrors === null) {
|
|
4303
5010
|
vErrors = [err8];
|
|
4304
5011
|
}
|