@onmark/cli 0.5.0 → 0.6.0
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 +69 -2
- package/onmark-release.json +46 -36
- package/package.json +4 -4
- package/packages/authoring/dist/src/presentation.js +13 -1
- package/packages/authoring/dist/src/variant.d.ts +3 -0
- package/packages/authoring/dist/src/variant.js +76 -0
- package/packages/bundler/dist/src/authored_html.js +3 -1
- package/packages/motion-gsap/dist/src/index.js +4 -1
- package/packages/runtime/dist/src/generated/browser-request.d.ts +49 -2
- package/packages/runtime/dist/src/generated/browser-response.d.ts +19 -1
- package/packages/runtime/dist/src/generated/runtime-contract.d.ts +4 -1
- package/packages/runtime/dist/src/generated/runtime-contract.js +4 -1
- package/packages/runtime/dist/src/generated/validators.d.ts +2 -2
- package/packages/runtime/dist/src/generated/validators.js +1532 -576
- package/packages/runtime/dist/src/index.d.ts +2 -2
- package/packages/runtime/dist/src/index.js +1 -1
- package/packages/runtime/dist/src/presentation.d.ts +2 -2
- package/packages/runtime/dist/src/presentation.js +79 -1
- package/packages/runtime/dist/src/session.d.ts +3 -3
- package/packages/runtime/dist/src/session.js +138 -8
- package/packages/runtime/dist/src/types.d.ts +1 -1
|
@@ -1,13 +1,13 @@
|
|
|
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": { "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
|
|
6
|
-
const
|
|
4
|
+
const schema31 = { "$defs": { "BrowserCaptionTrack": { "additionalProperties": false, "description": "Stable caption-track metadata projected into browser presentation.", "properties": { "id": { "pattern": "^[^\\t\\n\\f\\r ]+$", "type": "string" }, "language": { "pattern": "^[A-Za-z0-9]+(?:-[A-Za-z0-9]+)*$", "type": "string" } }, "required": ["id", "language"], "type": "object" }, "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": { "captionTrack": { "anyOf": [{ "$ref": "#/$defs/BrowserCaptionTrack" }, { "type": "null" }] }, "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": 7, "format": "uint16", "maximum": 65535, "minimum": 0, "type": "integer" }, "transitions": { "items": { "$ref": "#/$defs/BrowserTransition" }, "maxItems": 10000, "type": "array" }, "variantFields": { "items": { "$ref": "#/$defs/BrowserVariantField" }, "maxItems": 256, "type": "array" }, "videos": { "items": { "$ref": "#/$defs/BrowserVideo" }, "maxItems": 10000, "type": "array" } }, "required": ["timelineVersion", "frameRate", "timeline", "evaluation", "output", "variantFields", "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" }, "BrowserVariantField": { "additionalProperties": false, "description": "One canonical typed presentation input carried by this render region.", "properties": { "name": { "type": "string" }, "value": { "$ref": "#/$defs/BrowserVariantValue" } }, "required": ["name", "value"], "type": "object" }, "BrowserVariantValue": { "description": "Closed wire values accepted by the browser's literal binding layer.", "oneOf": [{ "additionalProperties": false, "description": "Decoded Unicode text.", "properties": { "kind": { "const": "text", "type": "string" }, "value": { "description": "Exact UTF-8 value.", "maxLength": 16384, "type": "string" } }, "required": ["kind", "value"], "type": "object" }, { "additionalProperties": false, "description": "Exact JavaScript-safe signed integer.", "properties": { "kind": { "const": "integer", "type": "string" }, "value": { "description": "Exact integer value.", "format": "int64", "maximum": 9007199254740991, "minimum": -9007199254740991, "type": "integer" } }, "required": ["kind", "value"], "type": "object" }, { "additionalProperties": false, "description": "Binary presentation choice.", "properties": { "kind": { "const": "boolean", "type": "string" }, "value": { "description": "Exact boolean value.", "type": "boolean" } }, "required": ["kind", "value"], "type": "object" }, { "additionalProperties": false, "description": "Lowercase six- or eight-digit sRGB hexadecimal.", "properties": { "kind": { "const": "color", "type": "string" }, "value": { "description": "Canonical color value.", "type": "string" } }, "required": ["kind", "value"], "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": 9, "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-v9.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-max-browser-text-bytes": 1048576, "x-onmark-max-variant-text-bytes": 16384, "x-onmark-runtime-host": "__ONMARK_RUNTIME__" };
|
|
5
|
+
const schema63 = { "description": "Correlation identity shared by one request and its response events.", "format": "uint32", "maximum": 4294967295, "minimum": 0, "type": "integer" };
|
|
6
|
+
const schema64 = { "const": 9, "description": "Version of the native-to-browser message contract.", "format": "uint16", "maximum": 65535, "minimum": 0, "type": "integer" };
|
|
7
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
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
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":
|
|
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": 7, "format": "uint16", "maximum": 65535, "minimum": 0, "type": "integer" }, "transitions": { "items": { "$ref": "#/$defs/BrowserTransition" }, "maxItems": 10000, "type": "array" }, "variantFields": { "items": { "$ref": "#/$defs/BrowserVariantField" }, "maxItems": 256, "type": "array" }, "videos": { "items": { "$ref": "#/$defs/BrowserVideo" }, "maxItems": 10000, "type": "array" } }, "required": ["timelineVersion", "frameRate", "timeline", "evaluation", "output", "variantFields", "film", "scenes", "shots", "transitions", "videos", "overlays"], "type": "object" };
|
|
11
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" };
|
|
12
12
|
const func1 = Object.prototype.hasOwnProperty;
|
|
13
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" };
|
|
@@ -237,8 +237,11 @@ function validate25(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
237
237
|
return errors === 0;
|
|
238
238
|
}
|
|
239
239
|
validate25.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
|
|
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": "
|
|
240
|
+
const schema41 = { "additionalProperties": false, "description": "One solved overlay placement consumed by the browser presentation.", "properties": { "captionTrack": { "anyOf": [{ "$ref": "#/$defs/BrowserCaptionTrack" }, { "type": "null" }] }, "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 = { "additionalProperties": false, "description": "Stable caption-track metadata projected into browser presentation.", "properties": { "id": { "pattern": "^[^\\t\\n\\f\\r ]+$", "type": "string" }, "language": { "pattern": "^[A-Za-z0-9]+(?:-[A-Za-z0-9]+)*$", "type": "string" } }, "required": ["id", "language"], "type": "object" };
|
|
242
|
+
const schema43 = { "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" }] };
|
|
243
|
+
const pattern4 = new RegExp("^[^\\t\\n\\f\\r ]+$", "u");
|
|
244
|
+
const pattern5 = new RegExp("^[A-Za-z0-9]+(?:-[A-Za-z0-9]+)*$", "u");
|
|
242
245
|
const func2 = (value) => { let length = 0; for (const _ of value)
|
|
243
246
|
length += 1; return length; };
|
|
244
247
|
function validate28(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
|
|
@@ -293,7 +296,7 @@ function validate28(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
293
296
|
errors++;
|
|
294
297
|
}
|
|
295
298
|
for (const key0 in data) {
|
|
296
|
-
if (!(((((key0 === "interval") || (key0 === "kind")) || (key0 === "node")) || (key0 === "shotId")) || (key0 === "text"))) {
|
|
299
|
+
if (!((((((key0 === "captionTrack") || (key0 === "interval")) || (key0 === "kind")) || (key0 === "node")) || (key0 === "shotId")) || (key0 === "text"))) {
|
|
297
300
|
const err4 = { instancePath, schemaPath: "#/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key0 }, message: "must NOT have additional properties" };
|
|
298
301
|
if (vErrors === null) {
|
|
299
302
|
vErrors = [err4];
|
|
@@ -304,6 +307,142 @@ function validate28(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
304
307
|
errors++;
|
|
305
308
|
}
|
|
306
309
|
}
|
|
310
|
+
if (data.captionTrack !== undefined) {
|
|
311
|
+
let data0 = data.captionTrack;
|
|
312
|
+
const _errs3 = errors;
|
|
313
|
+
let valid1 = false;
|
|
314
|
+
const _errs4 = errors;
|
|
315
|
+
if (data0 && typeof data0 == "object" && !Array.isArray(data0)) {
|
|
316
|
+
if (data0.id === undefined) {
|
|
317
|
+
const err5 = { instancePath: instancePath + "/captionTrack", schemaPath: "#/$defs/BrowserCaptionTrack/required", keyword: "required", params: { missingProperty: "id" }, message: "must have required property '" + "id" + "'" };
|
|
318
|
+
if (vErrors === null) {
|
|
319
|
+
vErrors = [err5];
|
|
320
|
+
}
|
|
321
|
+
else {
|
|
322
|
+
vErrors.push(err5);
|
|
323
|
+
}
|
|
324
|
+
errors++;
|
|
325
|
+
}
|
|
326
|
+
if (data0.language === undefined) {
|
|
327
|
+
const err6 = { instancePath: instancePath + "/captionTrack", schemaPath: "#/$defs/BrowserCaptionTrack/required", keyword: "required", params: { missingProperty: "language" }, message: "must have required property '" + "language" + "'" };
|
|
328
|
+
if (vErrors === null) {
|
|
329
|
+
vErrors = [err6];
|
|
330
|
+
}
|
|
331
|
+
else {
|
|
332
|
+
vErrors.push(err6);
|
|
333
|
+
}
|
|
334
|
+
errors++;
|
|
335
|
+
}
|
|
336
|
+
for (const key1 in data0) {
|
|
337
|
+
if (!((key1 === "id") || (key1 === "language"))) {
|
|
338
|
+
const err7 = { instancePath: instancePath + "/captionTrack", schemaPath: "#/$defs/BrowserCaptionTrack/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key1 }, message: "must NOT have additional properties" };
|
|
339
|
+
if (vErrors === null) {
|
|
340
|
+
vErrors = [err7];
|
|
341
|
+
}
|
|
342
|
+
else {
|
|
343
|
+
vErrors.push(err7);
|
|
344
|
+
}
|
|
345
|
+
errors++;
|
|
346
|
+
}
|
|
347
|
+
}
|
|
348
|
+
if (data0.id !== undefined) {
|
|
349
|
+
let data1 = data0.id;
|
|
350
|
+
if (typeof data1 === "string") {
|
|
351
|
+
if (!pattern4.test(data1)) {
|
|
352
|
+
const err8 = { instancePath: instancePath + "/captionTrack/id", schemaPath: "#/$defs/BrowserCaptionTrack/properties/id/pattern", keyword: "pattern", params: { pattern: "^[^\\t\\n\\f\\r ]+$" }, message: "must match pattern \"" + "^[^\\t\\n\\f\\r ]+$" + "\"" };
|
|
353
|
+
if (vErrors === null) {
|
|
354
|
+
vErrors = [err8];
|
|
355
|
+
}
|
|
356
|
+
else {
|
|
357
|
+
vErrors.push(err8);
|
|
358
|
+
}
|
|
359
|
+
errors++;
|
|
360
|
+
}
|
|
361
|
+
}
|
|
362
|
+
else {
|
|
363
|
+
const err9 = { instancePath: instancePath + "/captionTrack/id", schemaPath: "#/$defs/BrowserCaptionTrack/properties/id/type", keyword: "type", params: { type: "string" }, message: "must be string" };
|
|
364
|
+
if (vErrors === null) {
|
|
365
|
+
vErrors = [err9];
|
|
366
|
+
}
|
|
367
|
+
else {
|
|
368
|
+
vErrors.push(err9);
|
|
369
|
+
}
|
|
370
|
+
errors++;
|
|
371
|
+
}
|
|
372
|
+
}
|
|
373
|
+
if (data0.language !== undefined) {
|
|
374
|
+
let data2 = data0.language;
|
|
375
|
+
if (typeof data2 === "string") {
|
|
376
|
+
if (!pattern5.test(data2)) {
|
|
377
|
+
const err10 = { instancePath: instancePath + "/captionTrack/language", schemaPath: "#/$defs/BrowserCaptionTrack/properties/language/pattern", keyword: "pattern", params: { pattern: "^[A-Za-z0-9]+(?:-[A-Za-z0-9]+)*$" }, message: "must match pattern \"" + "^[A-Za-z0-9]+(?:-[A-Za-z0-9]+)*$" + "\"" };
|
|
378
|
+
if (vErrors === null) {
|
|
379
|
+
vErrors = [err10];
|
|
380
|
+
}
|
|
381
|
+
else {
|
|
382
|
+
vErrors.push(err10);
|
|
383
|
+
}
|
|
384
|
+
errors++;
|
|
385
|
+
}
|
|
386
|
+
}
|
|
387
|
+
else {
|
|
388
|
+
const err11 = { instancePath: instancePath + "/captionTrack/language", schemaPath: "#/$defs/BrowserCaptionTrack/properties/language/type", keyword: "type", params: { type: "string" }, message: "must be string" };
|
|
389
|
+
if (vErrors === null) {
|
|
390
|
+
vErrors = [err11];
|
|
391
|
+
}
|
|
392
|
+
else {
|
|
393
|
+
vErrors.push(err11);
|
|
394
|
+
}
|
|
395
|
+
errors++;
|
|
396
|
+
}
|
|
397
|
+
}
|
|
398
|
+
}
|
|
399
|
+
else {
|
|
400
|
+
const err12 = { instancePath: instancePath + "/captionTrack", schemaPath: "#/$defs/BrowserCaptionTrack/type", keyword: "type", params: { type: "object" }, message: "must be object" };
|
|
401
|
+
if (vErrors === null) {
|
|
402
|
+
vErrors = [err12];
|
|
403
|
+
}
|
|
404
|
+
else {
|
|
405
|
+
vErrors.push(err12);
|
|
406
|
+
}
|
|
407
|
+
errors++;
|
|
408
|
+
}
|
|
409
|
+
var _valid0 = _errs4 === errors;
|
|
410
|
+
valid1 = valid1 || _valid0;
|
|
411
|
+
const _errs12 = errors;
|
|
412
|
+
if (data0 !== null) {
|
|
413
|
+
const err13 = { instancePath: instancePath + "/captionTrack", schemaPath: "#/properties/captionTrack/anyOf/1/type", keyword: "type", params: { type: "null" }, message: "must be null" };
|
|
414
|
+
if (vErrors === null) {
|
|
415
|
+
vErrors = [err13];
|
|
416
|
+
}
|
|
417
|
+
else {
|
|
418
|
+
vErrors.push(err13);
|
|
419
|
+
}
|
|
420
|
+
errors++;
|
|
421
|
+
}
|
|
422
|
+
var _valid0 = _errs12 === errors;
|
|
423
|
+
valid1 = valid1 || _valid0;
|
|
424
|
+
if (!valid1) {
|
|
425
|
+
const err14 = { instancePath: instancePath + "/captionTrack", schemaPath: "#/properties/captionTrack/anyOf", keyword: "anyOf", params: {}, message: "must match a schema in anyOf" };
|
|
426
|
+
if (vErrors === null) {
|
|
427
|
+
vErrors = [err14];
|
|
428
|
+
}
|
|
429
|
+
else {
|
|
430
|
+
vErrors.push(err14);
|
|
431
|
+
}
|
|
432
|
+
errors++;
|
|
433
|
+
}
|
|
434
|
+
else {
|
|
435
|
+
errors = _errs3;
|
|
436
|
+
if (vErrors !== null) {
|
|
437
|
+
if (_errs3) {
|
|
438
|
+
vErrors.length = _errs3;
|
|
439
|
+
}
|
|
440
|
+
else {
|
|
441
|
+
vErrors = null;
|
|
442
|
+
}
|
|
443
|
+
}
|
|
444
|
+
}
|
|
445
|
+
}
|
|
307
446
|
if (data.interval !== undefined) {
|
|
308
447
|
if (!(validate23(data.interval, { instancePath: instancePath + "/interval", parentData: data, parentDataProperty: "interval", rootData, dynamicAnchors }))) {
|
|
309
448
|
vErrors = vErrors === null ? validate23.errors : vErrors.concat(validate23.errors);
|
|
@@ -311,115 +450,115 @@ function validate28(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
311
450
|
}
|
|
312
451
|
}
|
|
313
452
|
if (data.kind !== undefined) {
|
|
314
|
-
let
|
|
315
|
-
const
|
|
316
|
-
let
|
|
453
|
+
let data4 = data.kind;
|
|
454
|
+
const _errs17 = errors;
|
|
455
|
+
let valid5 = false;
|
|
317
456
|
let passing0 = null;
|
|
318
|
-
const
|
|
319
|
-
if (typeof
|
|
320
|
-
const
|
|
457
|
+
const _errs18 = errors;
|
|
458
|
+
if (typeof data4 !== "string") {
|
|
459
|
+
const err15 = { instancePath: instancePath + "/kind", schemaPath: "#/$defs/BrowserOverlayKind/oneOf/0/type", keyword: "type", params: { type: "string" }, message: "must be string" };
|
|
321
460
|
if (vErrors === null) {
|
|
322
|
-
vErrors = [
|
|
461
|
+
vErrors = [err15];
|
|
323
462
|
}
|
|
324
463
|
else {
|
|
325
|
-
vErrors.push(
|
|
464
|
+
vErrors.push(err15);
|
|
326
465
|
}
|
|
327
466
|
errors++;
|
|
328
467
|
}
|
|
329
|
-
if ("title" !==
|
|
330
|
-
const
|
|
468
|
+
if ("title" !== data4) {
|
|
469
|
+
const err16 = { instancePath: instancePath + "/kind", schemaPath: "#/$defs/BrowserOverlayKind/oneOf/0/const", keyword: "const", params: { allowedValue: "title" }, message: "must be equal to constant" };
|
|
331
470
|
if (vErrors === null) {
|
|
332
|
-
vErrors = [
|
|
471
|
+
vErrors = [err16];
|
|
333
472
|
}
|
|
334
473
|
else {
|
|
335
|
-
vErrors.push(
|
|
474
|
+
vErrors.push(err16);
|
|
336
475
|
}
|
|
337
476
|
errors++;
|
|
338
477
|
}
|
|
339
|
-
var
|
|
340
|
-
if (
|
|
341
|
-
|
|
478
|
+
var _valid1 = _errs18 === errors;
|
|
479
|
+
if (_valid1) {
|
|
480
|
+
valid5 = true;
|
|
342
481
|
passing0 = 0;
|
|
343
482
|
}
|
|
344
|
-
const
|
|
345
|
-
if (typeof
|
|
346
|
-
const
|
|
483
|
+
const _errs20 = errors;
|
|
484
|
+
if (typeof data4 !== "string") {
|
|
485
|
+
const err17 = { instancePath: instancePath + "/kind", schemaPath: "#/$defs/BrowserOverlayKind/oneOf/1/type", keyword: "type", params: { type: "string" }, message: "must be string" };
|
|
347
486
|
if (vErrors === null) {
|
|
348
|
-
vErrors = [
|
|
487
|
+
vErrors = [err17];
|
|
349
488
|
}
|
|
350
489
|
else {
|
|
351
|
-
vErrors.push(
|
|
490
|
+
vErrors.push(err17);
|
|
352
491
|
}
|
|
353
492
|
errors++;
|
|
354
493
|
}
|
|
355
|
-
if ("callToAction" !==
|
|
356
|
-
const
|
|
494
|
+
if ("callToAction" !== data4) {
|
|
495
|
+
const err18 = { instancePath: instancePath + "/kind", schemaPath: "#/$defs/BrowserOverlayKind/oneOf/1/const", keyword: "const", params: { allowedValue: "callToAction" }, message: "must be equal to constant" };
|
|
357
496
|
if (vErrors === null) {
|
|
358
|
-
vErrors = [
|
|
497
|
+
vErrors = [err18];
|
|
359
498
|
}
|
|
360
499
|
else {
|
|
361
|
-
vErrors.push(
|
|
500
|
+
vErrors.push(err18);
|
|
362
501
|
}
|
|
363
502
|
errors++;
|
|
364
503
|
}
|
|
365
|
-
var
|
|
366
|
-
if (
|
|
367
|
-
|
|
504
|
+
var _valid1 = _errs20 === errors;
|
|
505
|
+
if (_valid1 && valid5) {
|
|
506
|
+
valid5 = false;
|
|
368
507
|
passing0 = [passing0, 1];
|
|
369
508
|
}
|
|
370
509
|
else {
|
|
371
|
-
if (
|
|
372
|
-
|
|
510
|
+
if (_valid1) {
|
|
511
|
+
valid5 = true;
|
|
373
512
|
passing0 = 1;
|
|
374
513
|
}
|
|
375
|
-
const
|
|
376
|
-
if (typeof
|
|
377
|
-
const
|
|
514
|
+
const _errs22 = errors;
|
|
515
|
+
if (typeof data4 !== "string") {
|
|
516
|
+
const err19 = { instancePath: instancePath + "/kind", schemaPath: "#/$defs/BrowserOverlayKind/oneOf/2/type", keyword: "type", params: { type: "string" }, message: "must be string" };
|
|
378
517
|
if (vErrors === null) {
|
|
379
|
-
vErrors = [
|
|
518
|
+
vErrors = [err19];
|
|
380
519
|
}
|
|
381
520
|
else {
|
|
382
|
-
vErrors.push(
|
|
521
|
+
vErrors.push(err19);
|
|
383
522
|
}
|
|
384
523
|
errors++;
|
|
385
524
|
}
|
|
386
|
-
if ("caption" !==
|
|
387
|
-
const
|
|
525
|
+
if ("caption" !== data4) {
|
|
526
|
+
const err20 = { instancePath: instancePath + "/kind", schemaPath: "#/$defs/BrowserOverlayKind/oneOf/2/const", keyword: "const", params: { allowedValue: "caption" }, message: "must be equal to constant" };
|
|
388
527
|
if (vErrors === null) {
|
|
389
|
-
vErrors = [
|
|
528
|
+
vErrors = [err20];
|
|
390
529
|
}
|
|
391
530
|
else {
|
|
392
|
-
vErrors.push(
|
|
531
|
+
vErrors.push(err20);
|
|
393
532
|
}
|
|
394
533
|
errors++;
|
|
395
534
|
}
|
|
396
|
-
var
|
|
397
|
-
if (
|
|
398
|
-
|
|
535
|
+
var _valid1 = _errs22 === errors;
|
|
536
|
+
if (_valid1 && valid5) {
|
|
537
|
+
valid5 = false;
|
|
399
538
|
passing0 = [passing0, 2];
|
|
400
539
|
}
|
|
401
540
|
else {
|
|
402
|
-
if (
|
|
403
|
-
|
|
541
|
+
if (_valid1) {
|
|
542
|
+
valid5 = true;
|
|
404
543
|
passing0 = 2;
|
|
405
544
|
}
|
|
406
545
|
}
|
|
407
546
|
}
|
|
408
|
-
if (!
|
|
409
|
-
const
|
|
547
|
+
if (!valid5) {
|
|
548
|
+
const err21 = { instancePath: instancePath + "/kind", schemaPath: "#/$defs/BrowserOverlayKind/oneOf", keyword: "oneOf", params: { passingSchemas: passing0 }, message: "must match exactly one schema in oneOf" };
|
|
410
549
|
if (vErrors === null) {
|
|
411
|
-
vErrors = [
|
|
550
|
+
vErrors = [err21];
|
|
412
551
|
}
|
|
413
552
|
else {
|
|
414
|
-
vErrors.push(
|
|
553
|
+
vErrors.push(err21);
|
|
415
554
|
}
|
|
416
555
|
errors++;
|
|
417
556
|
}
|
|
418
557
|
else {
|
|
419
|
-
errors =
|
|
558
|
+
errors = _errs17;
|
|
420
559
|
if (vErrors !== null) {
|
|
421
|
-
if (
|
|
422
|
-
vErrors.length =
|
|
560
|
+
if (_errs17) {
|
|
561
|
+
vErrors.length = _errs17;
|
|
423
562
|
}
|
|
424
563
|
else {
|
|
425
564
|
vErrors = null;
|
|
@@ -434,72 +573,72 @@ function validate28(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
434
573
|
}
|
|
435
574
|
}
|
|
436
575
|
if (data.shotId !== undefined) {
|
|
437
|
-
let
|
|
438
|
-
const
|
|
439
|
-
let
|
|
440
|
-
const
|
|
441
|
-
if (!(((typeof
|
|
442
|
-
const
|
|
576
|
+
let data6 = data.shotId;
|
|
577
|
+
const _errs26 = errors;
|
|
578
|
+
let valid6 = false;
|
|
579
|
+
const _errs27 = errors;
|
|
580
|
+
if (!(((typeof data6 == "number") && (!(data6 % 1) && !isNaN(data6))) && (isFinite(data6)))) {
|
|
581
|
+
const err22 = { instancePath: instancePath + "/shotId", schemaPath: "#/$defs/BrowserNodeId/type", keyword: "type", params: { type: "integer" }, message: "must be integer" };
|
|
443
582
|
if (vErrors === null) {
|
|
444
|
-
vErrors = [
|
|
583
|
+
vErrors = [err22];
|
|
445
584
|
}
|
|
446
585
|
else {
|
|
447
|
-
vErrors.push(
|
|
586
|
+
vErrors.push(err22);
|
|
448
587
|
}
|
|
449
588
|
errors++;
|
|
450
589
|
}
|
|
451
|
-
if ((typeof
|
|
452
|
-
if (
|
|
453
|
-
const
|
|
590
|
+
if ((typeof data6 == "number") && (isFinite(data6))) {
|
|
591
|
+
if (data6 > 4294967295 || isNaN(data6)) {
|
|
592
|
+
const err23 = { instancePath: instancePath + "/shotId", schemaPath: "#/$defs/BrowserNodeId/maximum", keyword: "maximum", params: { comparison: "<=", limit: 4294967295 }, message: "must be <= 4294967295" };
|
|
454
593
|
if (vErrors === null) {
|
|
455
|
-
vErrors = [
|
|
594
|
+
vErrors = [err23];
|
|
456
595
|
}
|
|
457
596
|
else {
|
|
458
|
-
vErrors.push(
|
|
597
|
+
vErrors.push(err23);
|
|
459
598
|
}
|
|
460
599
|
errors++;
|
|
461
600
|
}
|
|
462
|
-
if (
|
|
463
|
-
const
|
|
601
|
+
if (data6 < 0 || isNaN(data6)) {
|
|
602
|
+
const err24 = { instancePath: instancePath + "/shotId", schemaPath: "#/$defs/BrowserNodeId/minimum", keyword: "minimum", params: { comparison: ">=", limit: 0 }, message: "must be >= 0" };
|
|
464
603
|
if (vErrors === null) {
|
|
465
|
-
vErrors = [
|
|
604
|
+
vErrors = [err24];
|
|
466
605
|
}
|
|
467
606
|
else {
|
|
468
|
-
vErrors.push(
|
|
607
|
+
vErrors.push(err24);
|
|
469
608
|
}
|
|
470
609
|
errors++;
|
|
471
610
|
}
|
|
472
611
|
}
|
|
473
|
-
var
|
|
474
|
-
|
|
475
|
-
const
|
|
476
|
-
if (
|
|
477
|
-
const
|
|
612
|
+
var _valid2 = _errs27 === errors;
|
|
613
|
+
valid6 = valid6 || _valid2;
|
|
614
|
+
const _errs30 = errors;
|
|
615
|
+
if (data6 !== null) {
|
|
616
|
+
const err25 = { instancePath: instancePath + "/shotId", schemaPath: "#/properties/shotId/anyOf/1/type", keyword: "type", params: { type: "null" }, message: "must be null" };
|
|
478
617
|
if (vErrors === null) {
|
|
479
|
-
vErrors = [
|
|
618
|
+
vErrors = [err25];
|
|
480
619
|
}
|
|
481
620
|
else {
|
|
482
|
-
vErrors.push(
|
|
621
|
+
vErrors.push(err25);
|
|
483
622
|
}
|
|
484
623
|
errors++;
|
|
485
624
|
}
|
|
486
|
-
var
|
|
487
|
-
|
|
488
|
-
if (!
|
|
489
|
-
const
|
|
625
|
+
var _valid2 = _errs30 === errors;
|
|
626
|
+
valid6 = valid6 || _valid2;
|
|
627
|
+
if (!valid6) {
|
|
628
|
+
const err26 = { instancePath: instancePath + "/shotId", schemaPath: "#/properties/shotId/anyOf", keyword: "anyOf", params: {}, message: "must match a schema in anyOf" };
|
|
490
629
|
if (vErrors === null) {
|
|
491
|
-
vErrors = [
|
|
630
|
+
vErrors = [err26];
|
|
492
631
|
}
|
|
493
632
|
else {
|
|
494
|
-
vErrors.push(
|
|
633
|
+
vErrors.push(err26);
|
|
495
634
|
}
|
|
496
635
|
errors++;
|
|
497
636
|
}
|
|
498
637
|
else {
|
|
499
|
-
errors =
|
|
638
|
+
errors = _errs26;
|
|
500
639
|
if (vErrors !== null) {
|
|
501
|
-
if (
|
|
502
|
-
vErrors.length =
|
|
640
|
+
if (_errs26) {
|
|
641
|
+
vErrors.length = _errs26;
|
|
503
642
|
}
|
|
504
643
|
else {
|
|
505
644
|
vErrors = null;
|
|
@@ -508,38 +647,38 @@ function validate28(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
508
647
|
}
|
|
509
648
|
}
|
|
510
649
|
if (data.text !== undefined) {
|
|
511
|
-
let
|
|
512
|
-
if (typeof
|
|
513
|
-
if (func2(
|
|
514
|
-
const
|
|
650
|
+
let data7 = data.text;
|
|
651
|
+
if (typeof data7 === "string") {
|
|
652
|
+
if (func2(data7) > 65536) {
|
|
653
|
+
const err27 = { instancePath: instancePath + "/text", schemaPath: "#/properties/text/maxLength", keyword: "maxLength", params: { limit: 65536 }, message: "must NOT have more than 65536 characters" };
|
|
515
654
|
if (vErrors === null) {
|
|
516
|
-
vErrors = [
|
|
655
|
+
vErrors = [err27];
|
|
517
656
|
}
|
|
518
657
|
else {
|
|
519
|
-
vErrors.push(
|
|
658
|
+
vErrors.push(err27);
|
|
520
659
|
}
|
|
521
660
|
errors++;
|
|
522
661
|
}
|
|
523
662
|
}
|
|
524
663
|
else {
|
|
525
|
-
const
|
|
664
|
+
const err28 = { instancePath: instancePath + "/text", schemaPath: "#/properties/text/type", keyword: "type", params: { type: "string" }, message: "must be string" };
|
|
526
665
|
if (vErrors === null) {
|
|
527
|
-
vErrors = [
|
|
666
|
+
vErrors = [err28];
|
|
528
667
|
}
|
|
529
668
|
else {
|
|
530
|
-
vErrors.push(
|
|
669
|
+
vErrors.push(err28);
|
|
531
670
|
}
|
|
532
671
|
errors++;
|
|
533
672
|
}
|
|
534
673
|
}
|
|
535
674
|
}
|
|
536
675
|
else {
|
|
537
|
-
const
|
|
676
|
+
const err29 = { instancePath, schemaPath: "#/type", keyword: "type", params: { type: "object" }, message: "must be object" };
|
|
538
677
|
if (vErrors === null) {
|
|
539
|
-
vErrors = [
|
|
678
|
+
vErrors = [err29];
|
|
540
679
|
}
|
|
541
680
|
else {
|
|
542
|
-
vErrors.push(
|
|
681
|
+
vErrors.push(err29);
|
|
543
682
|
}
|
|
544
683
|
errors++;
|
|
545
684
|
}
|
|
@@ -547,7 +686,7 @@ function validate28(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
547
686
|
return errors === 0;
|
|
548
687
|
}
|
|
549
688
|
validate28.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
|
|
550
|
-
const
|
|
689
|
+
const schema45 = { "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" };
|
|
551
690
|
function validate32(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
|
|
552
691
|
let vErrors = null;
|
|
553
692
|
let errors = 0;
|
|
@@ -618,7 +757,7 @@ function validate32(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
618
757
|
return errors === 0;
|
|
619
758
|
}
|
|
620
759
|
validate32.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
|
|
621
|
-
const
|
|
760
|
+
const schema46 = { "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" };
|
|
622
761
|
function validate36(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
|
|
623
762
|
let vErrors = null;
|
|
624
763
|
let errors = 0;
|
|
@@ -734,7 +873,7 @@ function validate36(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
734
873
|
return errors === 0;
|
|
735
874
|
}
|
|
736
875
|
validate36.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
|
|
737
|
-
const
|
|
876
|
+
const schema48 = { "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" };
|
|
738
877
|
function validate41(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
|
|
739
878
|
let vErrors = null;
|
|
740
879
|
let errors = 0;
|
|
@@ -806,104 +945,607 @@ function validate41(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
806
945
|
vErrors = [err5];
|
|
807
946
|
}
|
|
808
947
|
else {
|
|
809
|
-
vErrors.push(err5);
|
|
810
|
-
}
|
|
811
|
-
errors++;
|
|
812
|
-
}
|
|
813
|
-
if ((typeof data0 == "number") && (isFinite(data0))) {
|
|
814
|
-
if (data0 > 4294967295 || isNaN(data0)) {
|
|
815
|
-
const err6 = { instancePath: instancePath + "/incomingShotId", schemaPath: "#/$defs/BrowserNodeId/maximum", keyword: "maximum", params: { comparison: "<=", limit: 4294967295 }, message: "must be <= 4294967295" };
|
|
948
|
+
vErrors.push(err5);
|
|
949
|
+
}
|
|
950
|
+
errors++;
|
|
951
|
+
}
|
|
952
|
+
if ((typeof data0 == "number") && (isFinite(data0))) {
|
|
953
|
+
if (data0 > 4294967295 || isNaN(data0)) {
|
|
954
|
+
const err6 = { instancePath: instancePath + "/incomingShotId", schemaPath: "#/$defs/BrowserNodeId/maximum", keyword: "maximum", params: { comparison: "<=", limit: 4294967295 }, message: "must be <= 4294967295" };
|
|
955
|
+
if (vErrors === null) {
|
|
956
|
+
vErrors = [err6];
|
|
957
|
+
}
|
|
958
|
+
else {
|
|
959
|
+
vErrors.push(err6);
|
|
960
|
+
}
|
|
961
|
+
errors++;
|
|
962
|
+
}
|
|
963
|
+
if (data0 < 0 || isNaN(data0)) {
|
|
964
|
+
const err7 = { instancePath: instancePath + "/incomingShotId", schemaPath: "#/$defs/BrowserNodeId/minimum", keyword: "minimum", params: { comparison: ">=", limit: 0 }, message: "must be >= 0" };
|
|
965
|
+
if (vErrors === null) {
|
|
966
|
+
vErrors = [err7];
|
|
967
|
+
}
|
|
968
|
+
else {
|
|
969
|
+
vErrors.push(err7);
|
|
970
|
+
}
|
|
971
|
+
errors++;
|
|
972
|
+
}
|
|
973
|
+
}
|
|
974
|
+
}
|
|
975
|
+
if (data.interval !== undefined) {
|
|
976
|
+
if (!(validate23(data.interval, { instancePath: instancePath + "/interval", parentData: data, parentDataProperty: "interval", rootData, dynamicAnchors }))) {
|
|
977
|
+
vErrors = vErrors === null ? validate23.errors : vErrors.concat(validate23.errors);
|
|
978
|
+
errors = vErrors.length;
|
|
979
|
+
}
|
|
980
|
+
}
|
|
981
|
+
if (data.node !== undefined) {
|
|
982
|
+
if (!(validate25(data.node, { instancePath: instancePath + "/node", parentData: data, parentDataProperty: "node", rootData, dynamicAnchors }))) {
|
|
983
|
+
vErrors = vErrors === null ? validate25.errors : vErrors.concat(validate25.errors);
|
|
984
|
+
errors = vErrors.length;
|
|
985
|
+
}
|
|
986
|
+
}
|
|
987
|
+
if (data.outgoingShotId !== undefined) {
|
|
988
|
+
let data3 = data.outgoingShotId;
|
|
989
|
+
if (!(((typeof data3 == "number") && (!(data3 % 1) && !isNaN(data3))) && (isFinite(data3)))) {
|
|
990
|
+
const err8 = { instancePath: instancePath + "/outgoingShotId", schemaPath: "#/$defs/BrowserNodeId/type", keyword: "type", params: { type: "integer" }, message: "must be integer" };
|
|
991
|
+
if (vErrors === null) {
|
|
992
|
+
vErrors = [err8];
|
|
993
|
+
}
|
|
994
|
+
else {
|
|
995
|
+
vErrors.push(err8);
|
|
996
|
+
}
|
|
997
|
+
errors++;
|
|
998
|
+
}
|
|
999
|
+
if ((typeof data3 == "number") && (isFinite(data3))) {
|
|
1000
|
+
if (data3 > 4294967295 || isNaN(data3)) {
|
|
1001
|
+
const err9 = { instancePath: instancePath + "/outgoingShotId", schemaPath: "#/$defs/BrowserNodeId/maximum", keyword: "maximum", params: { comparison: "<=", limit: 4294967295 }, message: "must be <= 4294967295" };
|
|
1002
|
+
if (vErrors === null) {
|
|
1003
|
+
vErrors = [err9];
|
|
1004
|
+
}
|
|
1005
|
+
else {
|
|
1006
|
+
vErrors.push(err9);
|
|
1007
|
+
}
|
|
1008
|
+
errors++;
|
|
1009
|
+
}
|
|
1010
|
+
if (data3 < 0 || isNaN(data3)) {
|
|
1011
|
+
const err10 = { instancePath: instancePath + "/outgoingShotId", schemaPath: "#/$defs/BrowserNodeId/minimum", keyword: "minimum", params: { comparison: ">=", limit: 0 }, message: "must be >= 0" };
|
|
1012
|
+
if (vErrors === null) {
|
|
1013
|
+
vErrors = [err10];
|
|
1014
|
+
}
|
|
1015
|
+
else {
|
|
1016
|
+
vErrors.push(err10);
|
|
1017
|
+
}
|
|
1018
|
+
errors++;
|
|
1019
|
+
}
|
|
1020
|
+
}
|
|
1021
|
+
}
|
|
1022
|
+
}
|
|
1023
|
+
else {
|
|
1024
|
+
const err11 = { instancePath, schemaPath: "#/type", keyword: "type", params: { type: "object" }, message: "must be object" };
|
|
1025
|
+
if (vErrors === null) {
|
|
1026
|
+
vErrors = [err11];
|
|
1027
|
+
}
|
|
1028
|
+
else {
|
|
1029
|
+
vErrors.push(err11);
|
|
1030
|
+
}
|
|
1031
|
+
errors++;
|
|
1032
|
+
}
|
|
1033
|
+
validate41.errors = vErrors;
|
|
1034
|
+
return errors === 0;
|
|
1035
|
+
}
|
|
1036
|
+
validate41.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
|
|
1037
|
+
const schema51 = { "additionalProperties": false, "description": "One canonical typed presentation input carried by this render region.", "properties": { "name": { "type": "string" }, "value": { "$ref": "#/$defs/BrowserVariantValue" } }, "required": ["name", "value"], "type": "object" };
|
|
1038
|
+
const schema52 = { "description": "Closed wire values accepted by the browser's literal binding layer.", "oneOf": [{ "additionalProperties": false, "description": "Decoded Unicode text.", "properties": { "kind": { "const": "text", "type": "string" }, "value": { "description": "Exact UTF-8 value.", "maxLength": 16384, "type": "string" } }, "required": ["kind", "value"], "type": "object" }, { "additionalProperties": false, "description": "Exact JavaScript-safe signed integer.", "properties": { "kind": { "const": "integer", "type": "string" }, "value": { "description": "Exact integer value.", "format": "int64", "maximum": 9007199254740991, "minimum": -9007199254740991, "type": "integer" } }, "required": ["kind", "value"], "type": "object" }, { "additionalProperties": false, "description": "Binary presentation choice.", "properties": { "kind": { "const": "boolean", "type": "string" }, "value": { "description": "Exact boolean value.", "type": "boolean" } }, "required": ["kind", "value"], "type": "object" }, { "additionalProperties": false, "description": "Lowercase six- or eight-digit sRGB hexadecimal.", "properties": { "kind": { "const": "color", "type": "string" }, "value": { "description": "Canonical color value.", "type": "string" } }, "required": ["kind", "value"], "type": "object" }] };
|
|
1039
|
+
function validate45(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
|
|
1040
|
+
let vErrors = null;
|
|
1041
|
+
let errors = 0;
|
|
1042
|
+
const evaluated0 = validate45.evaluated;
|
|
1043
|
+
if (evaluated0.dynamicProps) {
|
|
1044
|
+
evaluated0.props = undefined;
|
|
1045
|
+
}
|
|
1046
|
+
if (evaluated0.dynamicItems) {
|
|
1047
|
+
evaluated0.items = undefined;
|
|
1048
|
+
}
|
|
1049
|
+
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
1050
|
+
if (data.name === undefined) {
|
|
1051
|
+
const err0 = { instancePath, schemaPath: "#/required", keyword: "required", params: { missingProperty: "name" }, message: "must have required property '" + "name" + "'" };
|
|
1052
|
+
if (vErrors === null) {
|
|
1053
|
+
vErrors = [err0];
|
|
1054
|
+
}
|
|
1055
|
+
else {
|
|
1056
|
+
vErrors.push(err0);
|
|
1057
|
+
}
|
|
1058
|
+
errors++;
|
|
1059
|
+
}
|
|
1060
|
+
if (data.value === undefined) {
|
|
1061
|
+
const err1 = { instancePath, schemaPath: "#/required", keyword: "required", params: { missingProperty: "value" }, message: "must have required property '" + "value" + "'" };
|
|
1062
|
+
if (vErrors === null) {
|
|
1063
|
+
vErrors = [err1];
|
|
1064
|
+
}
|
|
1065
|
+
else {
|
|
1066
|
+
vErrors.push(err1);
|
|
1067
|
+
}
|
|
1068
|
+
errors++;
|
|
1069
|
+
}
|
|
1070
|
+
for (const key0 in data) {
|
|
1071
|
+
if (!((key0 === "name") || (key0 === "value"))) {
|
|
1072
|
+
const err2 = { instancePath, schemaPath: "#/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key0 }, message: "must NOT have additional properties" };
|
|
1073
|
+
if (vErrors === null) {
|
|
1074
|
+
vErrors = [err2];
|
|
1075
|
+
}
|
|
1076
|
+
else {
|
|
1077
|
+
vErrors.push(err2);
|
|
1078
|
+
}
|
|
1079
|
+
errors++;
|
|
1080
|
+
}
|
|
1081
|
+
}
|
|
1082
|
+
if (data.name !== undefined) {
|
|
1083
|
+
if (typeof data.name !== "string") {
|
|
1084
|
+
const err3 = { instancePath: instancePath + "/name", schemaPath: "#/properties/name/type", keyword: "type", params: { type: "string" }, message: "must be string" };
|
|
1085
|
+
if (vErrors === null) {
|
|
1086
|
+
vErrors = [err3];
|
|
1087
|
+
}
|
|
1088
|
+
else {
|
|
1089
|
+
vErrors.push(err3);
|
|
1090
|
+
}
|
|
1091
|
+
errors++;
|
|
1092
|
+
}
|
|
1093
|
+
}
|
|
1094
|
+
if (data.value !== undefined) {
|
|
1095
|
+
let data1 = data.value;
|
|
1096
|
+
const _errs6 = errors;
|
|
1097
|
+
let valid2 = false;
|
|
1098
|
+
let passing0 = null;
|
|
1099
|
+
const _errs7 = errors;
|
|
1100
|
+
if (data1 && typeof data1 == "object" && !Array.isArray(data1)) {
|
|
1101
|
+
if (data1.kind === undefined) {
|
|
1102
|
+
const err4 = { instancePath: instancePath + "/value", schemaPath: "#/$defs/BrowserVariantValue/oneOf/0/required", keyword: "required", params: { missingProperty: "kind" }, message: "must have required property '" + "kind" + "'" };
|
|
1103
|
+
if (vErrors === null) {
|
|
1104
|
+
vErrors = [err4];
|
|
1105
|
+
}
|
|
1106
|
+
else {
|
|
1107
|
+
vErrors.push(err4);
|
|
1108
|
+
}
|
|
1109
|
+
errors++;
|
|
1110
|
+
}
|
|
1111
|
+
if (data1.value === undefined) {
|
|
1112
|
+
const err5 = { instancePath: instancePath + "/value", schemaPath: "#/$defs/BrowserVariantValue/oneOf/0/required", keyword: "required", params: { missingProperty: "value" }, message: "must have required property '" + "value" + "'" };
|
|
1113
|
+
if (vErrors === null) {
|
|
1114
|
+
vErrors = [err5];
|
|
1115
|
+
}
|
|
1116
|
+
else {
|
|
1117
|
+
vErrors.push(err5);
|
|
1118
|
+
}
|
|
1119
|
+
errors++;
|
|
1120
|
+
}
|
|
1121
|
+
for (const key1 in data1) {
|
|
1122
|
+
if (!((key1 === "kind") || (key1 === "value"))) {
|
|
1123
|
+
const err6 = { instancePath: instancePath + "/value", schemaPath: "#/$defs/BrowserVariantValue/oneOf/0/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key1 }, message: "must NOT have additional properties" };
|
|
1124
|
+
if (vErrors === null) {
|
|
1125
|
+
vErrors = [err6];
|
|
1126
|
+
}
|
|
1127
|
+
else {
|
|
1128
|
+
vErrors.push(err6);
|
|
1129
|
+
}
|
|
1130
|
+
errors++;
|
|
1131
|
+
}
|
|
1132
|
+
}
|
|
1133
|
+
if (data1.kind !== undefined) {
|
|
1134
|
+
let data2 = data1.kind;
|
|
1135
|
+
if (typeof data2 !== "string") {
|
|
1136
|
+
const err7 = { instancePath: instancePath + "/value/kind", schemaPath: "#/$defs/BrowserVariantValue/oneOf/0/properties/kind/type", keyword: "type", params: { type: "string" }, message: "must be string" };
|
|
1137
|
+
if (vErrors === null) {
|
|
1138
|
+
vErrors = [err7];
|
|
1139
|
+
}
|
|
1140
|
+
else {
|
|
1141
|
+
vErrors.push(err7);
|
|
1142
|
+
}
|
|
1143
|
+
errors++;
|
|
1144
|
+
}
|
|
1145
|
+
if ("text" !== data2) {
|
|
1146
|
+
const err8 = { instancePath: instancePath + "/value/kind", schemaPath: "#/$defs/BrowserVariantValue/oneOf/0/properties/kind/const", keyword: "const", params: { allowedValue: "text" }, message: "must be equal to constant" };
|
|
1147
|
+
if (vErrors === null) {
|
|
1148
|
+
vErrors = [err8];
|
|
1149
|
+
}
|
|
1150
|
+
else {
|
|
1151
|
+
vErrors.push(err8);
|
|
1152
|
+
}
|
|
1153
|
+
errors++;
|
|
1154
|
+
}
|
|
1155
|
+
}
|
|
1156
|
+
if (data1.value !== undefined) {
|
|
1157
|
+
let data3 = data1.value;
|
|
1158
|
+
if (typeof data3 === "string") {
|
|
1159
|
+
if (func2(data3) > 16384) {
|
|
1160
|
+
const err9 = { instancePath: instancePath + "/value/value", schemaPath: "#/$defs/BrowserVariantValue/oneOf/0/properties/value/maxLength", keyword: "maxLength", params: { limit: 16384 }, message: "must NOT have more than 16384 characters" };
|
|
1161
|
+
if (vErrors === null) {
|
|
1162
|
+
vErrors = [err9];
|
|
1163
|
+
}
|
|
1164
|
+
else {
|
|
1165
|
+
vErrors.push(err9);
|
|
1166
|
+
}
|
|
1167
|
+
errors++;
|
|
1168
|
+
}
|
|
1169
|
+
}
|
|
1170
|
+
else {
|
|
1171
|
+
const err10 = { instancePath: instancePath + "/value/value", schemaPath: "#/$defs/BrowserVariantValue/oneOf/0/properties/value/type", keyword: "type", params: { type: "string" }, message: "must be string" };
|
|
1172
|
+
if (vErrors === null) {
|
|
1173
|
+
vErrors = [err10];
|
|
1174
|
+
}
|
|
1175
|
+
else {
|
|
1176
|
+
vErrors.push(err10);
|
|
1177
|
+
}
|
|
1178
|
+
errors++;
|
|
1179
|
+
}
|
|
1180
|
+
}
|
|
1181
|
+
}
|
|
1182
|
+
else {
|
|
1183
|
+
const err11 = { instancePath: instancePath + "/value", schemaPath: "#/$defs/BrowserVariantValue/oneOf/0/type", keyword: "type", params: { type: "object" }, message: "must be object" };
|
|
1184
|
+
if (vErrors === null) {
|
|
1185
|
+
vErrors = [err11];
|
|
1186
|
+
}
|
|
1187
|
+
else {
|
|
1188
|
+
vErrors.push(err11);
|
|
1189
|
+
}
|
|
1190
|
+
errors++;
|
|
1191
|
+
}
|
|
1192
|
+
var _valid0 = _errs7 === errors;
|
|
1193
|
+
if (_valid0) {
|
|
1194
|
+
valid2 = true;
|
|
1195
|
+
passing0 = 0;
|
|
1196
|
+
var props0 = true;
|
|
1197
|
+
}
|
|
1198
|
+
const _errs14 = errors;
|
|
1199
|
+
if (data1 && typeof data1 == "object" && !Array.isArray(data1)) {
|
|
1200
|
+
if (data1.kind === undefined) {
|
|
1201
|
+
const err12 = { instancePath: instancePath + "/value", schemaPath: "#/$defs/BrowserVariantValue/oneOf/1/required", keyword: "required", params: { missingProperty: "kind" }, message: "must have required property '" + "kind" + "'" };
|
|
1202
|
+
if (vErrors === null) {
|
|
1203
|
+
vErrors = [err12];
|
|
1204
|
+
}
|
|
1205
|
+
else {
|
|
1206
|
+
vErrors.push(err12);
|
|
1207
|
+
}
|
|
1208
|
+
errors++;
|
|
1209
|
+
}
|
|
1210
|
+
if (data1.value === undefined) {
|
|
1211
|
+
const err13 = { instancePath: instancePath + "/value", schemaPath: "#/$defs/BrowserVariantValue/oneOf/1/required", keyword: "required", params: { missingProperty: "value" }, message: "must have required property '" + "value" + "'" };
|
|
1212
|
+
if (vErrors === null) {
|
|
1213
|
+
vErrors = [err13];
|
|
1214
|
+
}
|
|
1215
|
+
else {
|
|
1216
|
+
vErrors.push(err13);
|
|
1217
|
+
}
|
|
1218
|
+
errors++;
|
|
1219
|
+
}
|
|
1220
|
+
for (const key2 in data1) {
|
|
1221
|
+
if (!((key2 === "kind") || (key2 === "value"))) {
|
|
1222
|
+
const err14 = { instancePath: instancePath + "/value", schemaPath: "#/$defs/BrowserVariantValue/oneOf/1/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key2 }, message: "must NOT have additional properties" };
|
|
1223
|
+
if (vErrors === null) {
|
|
1224
|
+
vErrors = [err14];
|
|
1225
|
+
}
|
|
1226
|
+
else {
|
|
1227
|
+
vErrors.push(err14);
|
|
1228
|
+
}
|
|
1229
|
+
errors++;
|
|
1230
|
+
}
|
|
1231
|
+
}
|
|
1232
|
+
if (data1.kind !== undefined) {
|
|
1233
|
+
let data4 = data1.kind;
|
|
1234
|
+
if (typeof data4 !== "string") {
|
|
1235
|
+
const err15 = { instancePath: instancePath + "/value/kind", schemaPath: "#/$defs/BrowserVariantValue/oneOf/1/properties/kind/type", keyword: "type", params: { type: "string" }, message: "must be string" };
|
|
1236
|
+
if (vErrors === null) {
|
|
1237
|
+
vErrors = [err15];
|
|
1238
|
+
}
|
|
1239
|
+
else {
|
|
1240
|
+
vErrors.push(err15);
|
|
1241
|
+
}
|
|
1242
|
+
errors++;
|
|
1243
|
+
}
|
|
1244
|
+
if ("integer" !== data4) {
|
|
1245
|
+
const err16 = { instancePath: instancePath + "/value/kind", schemaPath: "#/$defs/BrowserVariantValue/oneOf/1/properties/kind/const", keyword: "const", params: { allowedValue: "integer" }, message: "must be equal to constant" };
|
|
1246
|
+
if (vErrors === null) {
|
|
1247
|
+
vErrors = [err16];
|
|
1248
|
+
}
|
|
1249
|
+
else {
|
|
1250
|
+
vErrors.push(err16);
|
|
1251
|
+
}
|
|
1252
|
+
errors++;
|
|
1253
|
+
}
|
|
1254
|
+
}
|
|
1255
|
+
if (data1.value !== undefined) {
|
|
1256
|
+
let data5 = data1.value;
|
|
1257
|
+
if (!(((typeof data5 == "number") && (!(data5 % 1) && !isNaN(data5))) && (isFinite(data5)))) {
|
|
1258
|
+
const err17 = { instancePath: instancePath + "/value/value", schemaPath: "#/$defs/BrowserVariantValue/oneOf/1/properties/value/type", keyword: "type", params: { type: "integer" }, message: "must be integer" };
|
|
1259
|
+
if (vErrors === null) {
|
|
1260
|
+
vErrors = [err17];
|
|
1261
|
+
}
|
|
1262
|
+
else {
|
|
1263
|
+
vErrors.push(err17);
|
|
1264
|
+
}
|
|
1265
|
+
errors++;
|
|
1266
|
+
}
|
|
1267
|
+
if ((typeof data5 == "number") && (isFinite(data5))) {
|
|
1268
|
+
if (data5 > 9007199254740991 || isNaN(data5)) {
|
|
1269
|
+
const err18 = { instancePath: instancePath + "/value/value", schemaPath: "#/$defs/BrowserVariantValue/oneOf/1/properties/value/maximum", keyword: "maximum", params: { comparison: "<=", limit: 9007199254740991 }, message: "must be <= 9007199254740991" };
|
|
1270
|
+
if (vErrors === null) {
|
|
1271
|
+
vErrors = [err18];
|
|
1272
|
+
}
|
|
1273
|
+
else {
|
|
1274
|
+
vErrors.push(err18);
|
|
1275
|
+
}
|
|
1276
|
+
errors++;
|
|
1277
|
+
}
|
|
1278
|
+
if (data5 < -9007199254740991 || isNaN(data5)) {
|
|
1279
|
+
const err19 = { instancePath: instancePath + "/value/value", schemaPath: "#/$defs/BrowserVariantValue/oneOf/1/properties/value/minimum", keyword: "minimum", params: { comparison: ">=", limit: -9007199254740991 }, message: "must be >= -9007199254740991" };
|
|
1280
|
+
if (vErrors === null) {
|
|
1281
|
+
vErrors = [err19];
|
|
1282
|
+
}
|
|
1283
|
+
else {
|
|
1284
|
+
vErrors.push(err19);
|
|
1285
|
+
}
|
|
1286
|
+
errors++;
|
|
1287
|
+
}
|
|
1288
|
+
}
|
|
1289
|
+
}
|
|
1290
|
+
}
|
|
1291
|
+
else {
|
|
1292
|
+
const err20 = { instancePath: instancePath + "/value", schemaPath: "#/$defs/BrowserVariantValue/oneOf/1/type", keyword: "type", params: { type: "object" }, message: "must be object" };
|
|
1293
|
+
if (vErrors === null) {
|
|
1294
|
+
vErrors = [err20];
|
|
1295
|
+
}
|
|
1296
|
+
else {
|
|
1297
|
+
vErrors.push(err20);
|
|
1298
|
+
}
|
|
1299
|
+
errors++;
|
|
1300
|
+
}
|
|
1301
|
+
var _valid0 = _errs14 === errors;
|
|
1302
|
+
if (_valid0 && valid2) {
|
|
1303
|
+
valid2 = false;
|
|
1304
|
+
passing0 = [passing0, 1];
|
|
1305
|
+
}
|
|
1306
|
+
else {
|
|
1307
|
+
if (_valid0) {
|
|
1308
|
+
valid2 = true;
|
|
1309
|
+
passing0 = 1;
|
|
1310
|
+
if (props0 !== true) {
|
|
1311
|
+
props0 = true;
|
|
1312
|
+
}
|
|
1313
|
+
}
|
|
1314
|
+
const _errs21 = errors;
|
|
1315
|
+
if (data1 && typeof data1 == "object" && !Array.isArray(data1)) {
|
|
1316
|
+
if (data1.kind === undefined) {
|
|
1317
|
+
const err21 = { instancePath: instancePath + "/value", schemaPath: "#/$defs/BrowserVariantValue/oneOf/2/required", keyword: "required", params: { missingProperty: "kind" }, message: "must have required property '" + "kind" + "'" };
|
|
1318
|
+
if (vErrors === null) {
|
|
1319
|
+
vErrors = [err21];
|
|
1320
|
+
}
|
|
1321
|
+
else {
|
|
1322
|
+
vErrors.push(err21);
|
|
1323
|
+
}
|
|
1324
|
+
errors++;
|
|
1325
|
+
}
|
|
1326
|
+
if (data1.value === undefined) {
|
|
1327
|
+
const err22 = { instancePath: instancePath + "/value", schemaPath: "#/$defs/BrowserVariantValue/oneOf/2/required", keyword: "required", params: { missingProperty: "value" }, message: "must have required property '" + "value" + "'" };
|
|
1328
|
+
if (vErrors === null) {
|
|
1329
|
+
vErrors = [err22];
|
|
1330
|
+
}
|
|
1331
|
+
else {
|
|
1332
|
+
vErrors.push(err22);
|
|
1333
|
+
}
|
|
1334
|
+
errors++;
|
|
1335
|
+
}
|
|
1336
|
+
for (const key3 in data1) {
|
|
1337
|
+
if (!((key3 === "kind") || (key3 === "value"))) {
|
|
1338
|
+
const err23 = { instancePath: instancePath + "/value", schemaPath: "#/$defs/BrowserVariantValue/oneOf/2/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key3 }, message: "must NOT have additional properties" };
|
|
1339
|
+
if (vErrors === null) {
|
|
1340
|
+
vErrors = [err23];
|
|
1341
|
+
}
|
|
1342
|
+
else {
|
|
1343
|
+
vErrors.push(err23);
|
|
1344
|
+
}
|
|
1345
|
+
errors++;
|
|
1346
|
+
}
|
|
1347
|
+
}
|
|
1348
|
+
if (data1.kind !== undefined) {
|
|
1349
|
+
let data6 = data1.kind;
|
|
1350
|
+
if (typeof data6 !== "string") {
|
|
1351
|
+
const err24 = { instancePath: instancePath + "/value/kind", schemaPath: "#/$defs/BrowserVariantValue/oneOf/2/properties/kind/type", keyword: "type", params: { type: "string" }, message: "must be string" };
|
|
1352
|
+
if (vErrors === null) {
|
|
1353
|
+
vErrors = [err24];
|
|
1354
|
+
}
|
|
1355
|
+
else {
|
|
1356
|
+
vErrors.push(err24);
|
|
1357
|
+
}
|
|
1358
|
+
errors++;
|
|
1359
|
+
}
|
|
1360
|
+
if ("boolean" !== data6) {
|
|
1361
|
+
const err25 = { instancePath: instancePath + "/value/kind", schemaPath: "#/$defs/BrowserVariantValue/oneOf/2/properties/kind/const", keyword: "const", params: { allowedValue: "boolean" }, message: "must be equal to constant" };
|
|
1362
|
+
if (vErrors === null) {
|
|
1363
|
+
vErrors = [err25];
|
|
1364
|
+
}
|
|
1365
|
+
else {
|
|
1366
|
+
vErrors.push(err25);
|
|
1367
|
+
}
|
|
1368
|
+
errors++;
|
|
1369
|
+
}
|
|
1370
|
+
}
|
|
1371
|
+
if (data1.value !== undefined) {
|
|
1372
|
+
if (typeof data1.value !== "boolean") {
|
|
1373
|
+
const err26 = { instancePath: instancePath + "/value/value", schemaPath: "#/$defs/BrowserVariantValue/oneOf/2/properties/value/type", keyword: "type", params: { type: "boolean" }, message: "must be boolean" };
|
|
1374
|
+
if (vErrors === null) {
|
|
1375
|
+
vErrors = [err26];
|
|
1376
|
+
}
|
|
1377
|
+
else {
|
|
1378
|
+
vErrors.push(err26);
|
|
1379
|
+
}
|
|
1380
|
+
errors++;
|
|
1381
|
+
}
|
|
1382
|
+
}
|
|
1383
|
+
}
|
|
1384
|
+
else {
|
|
1385
|
+
const err27 = { instancePath: instancePath + "/value", schemaPath: "#/$defs/BrowserVariantValue/oneOf/2/type", keyword: "type", params: { type: "object" }, message: "must be object" };
|
|
816
1386
|
if (vErrors === null) {
|
|
817
|
-
vErrors = [
|
|
1387
|
+
vErrors = [err27];
|
|
818
1388
|
}
|
|
819
1389
|
else {
|
|
820
|
-
vErrors.push(
|
|
1390
|
+
vErrors.push(err27);
|
|
821
1391
|
}
|
|
822
1392
|
errors++;
|
|
823
1393
|
}
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
|
|
1394
|
+
var _valid0 = _errs21 === errors;
|
|
1395
|
+
if (_valid0 && valid2) {
|
|
1396
|
+
valid2 = false;
|
|
1397
|
+
passing0 = [passing0, 2];
|
|
1398
|
+
}
|
|
1399
|
+
else {
|
|
1400
|
+
if (_valid0) {
|
|
1401
|
+
valid2 = true;
|
|
1402
|
+
passing0 = 2;
|
|
1403
|
+
if (props0 !== true) {
|
|
1404
|
+
props0 = true;
|
|
1405
|
+
}
|
|
1406
|
+
}
|
|
1407
|
+
const _errs28 = errors;
|
|
1408
|
+
if (data1 && typeof data1 == "object" && !Array.isArray(data1)) {
|
|
1409
|
+
if (data1.kind === undefined) {
|
|
1410
|
+
const err28 = { instancePath: instancePath + "/value", schemaPath: "#/$defs/BrowserVariantValue/oneOf/3/required", keyword: "required", params: { missingProperty: "kind" }, message: "must have required property '" + "kind" + "'" };
|
|
1411
|
+
if (vErrors === null) {
|
|
1412
|
+
vErrors = [err28];
|
|
1413
|
+
}
|
|
1414
|
+
else {
|
|
1415
|
+
vErrors.push(err28);
|
|
1416
|
+
}
|
|
1417
|
+
errors++;
|
|
1418
|
+
}
|
|
1419
|
+
if (data1.value === undefined) {
|
|
1420
|
+
const err29 = { instancePath: instancePath + "/value", schemaPath: "#/$defs/BrowserVariantValue/oneOf/3/required", keyword: "required", params: { missingProperty: "value" }, message: "must have required property '" + "value" + "'" };
|
|
1421
|
+
if (vErrors === null) {
|
|
1422
|
+
vErrors = [err29];
|
|
1423
|
+
}
|
|
1424
|
+
else {
|
|
1425
|
+
vErrors.push(err29);
|
|
1426
|
+
}
|
|
1427
|
+
errors++;
|
|
1428
|
+
}
|
|
1429
|
+
for (const key4 in data1) {
|
|
1430
|
+
if (!((key4 === "kind") || (key4 === "value"))) {
|
|
1431
|
+
const err30 = { instancePath: instancePath + "/value", schemaPath: "#/$defs/BrowserVariantValue/oneOf/3/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key4 }, message: "must NOT have additional properties" };
|
|
1432
|
+
if (vErrors === null) {
|
|
1433
|
+
vErrors = [err30];
|
|
1434
|
+
}
|
|
1435
|
+
else {
|
|
1436
|
+
vErrors.push(err30);
|
|
1437
|
+
}
|
|
1438
|
+
errors++;
|
|
1439
|
+
}
|
|
1440
|
+
}
|
|
1441
|
+
if (data1.kind !== undefined) {
|
|
1442
|
+
let data8 = data1.kind;
|
|
1443
|
+
if (typeof data8 !== "string") {
|
|
1444
|
+
const err31 = { instancePath: instancePath + "/value/kind", schemaPath: "#/$defs/BrowserVariantValue/oneOf/3/properties/kind/type", keyword: "type", params: { type: "string" }, message: "must be string" };
|
|
1445
|
+
if (vErrors === null) {
|
|
1446
|
+
vErrors = [err31];
|
|
1447
|
+
}
|
|
1448
|
+
else {
|
|
1449
|
+
vErrors.push(err31);
|
|
1450
|
+
}
|
|
1451
|
+
errors++;
|
|
1452
|
+
}
|
|
1453
|
+
if ("color" !== data8) {
|
|
1454
|
+
const err32 = { instancePath: instancePath + "/value/kind", schemaPath: "#/$defs/BrowserVariantValue/oneOf/3/properties/kind/const", keyword: "const", params: { allowedValue: "color" }, message: "must be equal to constant" };
|
|
1455
|
+
if (vErrors === null) {
|
|
1456
|
+
vErrors = [err32];
|
|
1457
|
+
}
|
|
1458
|
+
else {
|
|
1459
|
+
vErrors.push(err32);
|
|
1460
|
+
}
|
|
1461
|
+
errors++;
|
|
1462
|
+
}
|
|
1463
|
+
}
|
|
1464
|
+
if (data1.value !== undefined) {
|
|
1465
|
+
if (typeof data1.value !== "string") {
|
|
1466
|
+
const err33 = { instancePath: instancePath + "/value/value", schemaPath: "#/$defs/BrowserVariantValue/oneOf/3/properties/value/type", keyword: "type", params: { type: "string" }, message: "must be string" };
|
|
1467
|
+
if (vErrors === null) {
|
|
1468
|
+
vErrors = [err33];
|
|
1469
|
+
}
|
|
1470
|
+
else {
|
|
1471
|
+
vErrors.push(err33);
|
|
1472
|
+
}
|
|
1473
|
+
errors++;
|
|
1474
|
+
}
|
|
1475
|
+
}
|
|
828
1476
|
}
|
|
829
1477
|
else {
|
|
830
|
-
|
|
1478
|
+
const err34 = { instancePath: instancePath + "/value", schemaPath: "#/$defs/BrowserVariantValue/oneOf/3/type", keyword: "type", params: { type: "object" }, message: "must be object" };
|
|
1479
|
+
if (vErrors === null) {
|
|
1480
|
+
vErrors = [err34];
|
|
1481
|
+
}
|
|
1482
|
+
else {
|
|
1483
|
+
vErrors.push(err34);
|
|
1484
|
+
}
|
|
1485
|
+
errors++;
|
|
1486
|
+
}
|
|
1487
|
+
var _valid0 = _errs28 === errors;
|
|
1488
|
+
if (_valid0 && valid2) {
|
|
1489
|
+
valid2 = false;
|
|
1490
|
+
passing0 = [passing0, 3];
|
|
1491
|
+
}
|
|
1492
|
+
else {
|
|
1493
|
+
if (_valid0) {
|
|
1494
|
+
valid2 = true;
|
|
1495
|
+
passing0 = 3;
|
|
1496
|
+
if (props0 !== true) {
|
|
1497
|
+
props0 = true;
|
|
1498
|
+
}
|
|
1499
|
+
}
|
|
831
1500
|
}
|
|
832
|
-
errors++;
|
|
833
1501
|
}
|
|
834
1502
|
}
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
if (!(validate23(data.interval, { instancePath: instancePath + "/interval", parentData: data, parentDataProperty: "interval", rootData, dynamicAnchors }))) {
|
|
838
|
-
vErrors = vErrors === null ? validate23.errors : vErrors.concat(validate23.errors);
|
|
839
|
-
errors = vErrors.length;
|
|
840
|
-
}
|
|
841
|
-
}
|
|
842
|
-
if (data.node !== undefined) {
|
|
843
|
-
if (!(validate25(data.node, { instancePath: instancePath + "/node", parentData: data, parentDataProperty: "node", rootData, dynamicAnchors }))) {
|
|
844
|
-
vErrors = vErrors === null ? validate25.errors : vErrors.concat(validate25.errors);
|
|
845
|
-
errors = vErrors.length;
|
|
846
|
-
}
|
|
847
|
-
}
|
|
848
|
-
if (data.outgoingShotId !== undefined) {
|
|
849
|
-
let data3 = data.outgoingShotId;
|
|
850
|
-
if (!(((typeof data3 == "number") && (!(data3 % 1) && !isNaN(data3))) && (isFinite(data3)))) {
|
|
851
|
-
const err8 = { instancePath: instancePath + "/outgoingShotId", schemaPath: "#/$defs/BrowserNodeId/type", keyword: "type", params: { type: "integer" }, message: "must be integer" };
|
|
1503
|
+
if (!valid2) {
|
|
1504
|
+
const err35 = { instancePath: instancePath + "/value", schemaPath: "#/$defs/BrowserVariantValue/oneOf", keyword: "oneOf", params: { passingSchemas: passing0 }, message: "must match exactly one schema in oneOf" };
|
|
852
1505
|
if (vErrors === null) {
|
|
853
|
-
vErrors = [
|
|
1506
|
+
vErrors = [err35];
|
|
854
1507
|
}
|
|
855
1508
|
else {
|
|
856
|
-
vErrors.push(
|
|
1509
|
+
vErrors.push(err35);
|
|
857
1510
|
}
|
|
858
1511
|
errors++;
|
|
859
1512
|
}
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
if (
|
|
864
|
-
vErrors =
|
|
865
|
-
}
|
|
866
|
-
else {
|
|
867
|
-
vErrors.push(err9);
|
|
868
|
-
}
|
|
869
|
-
errors++;
|
|
870
|
-
}
|
|
871
|
-
if (data3 < 0 || isNaN(data3)) {
|
|
872
|
-
const err10 = { instancePath: instancePath + "/outgoingShotId", schemaPath: "#/$defs/BrowserNodeId/minimum", keyword: "minimum", params: { comparison: ">=", limit: 0 }, message: "must be >= 0" };
|
|
873
|
-
if (vErrors === null) {
|
|
874
|
-
vErrors = [err10];
|
|
1513
|
+
else {
|
|
1514
|
+
errors = _errs6;
|
|
1515
|
+
if (vErrors !== null) {
|
|
1516
|
+
if (_errs6) {
|
|
1517
|
+
vErrors.length = _errs6;
|
|
875
1518
|
}
|
|
876
1519
|
else {
|
|
877
|
-
vErrors
|
|
1520
|
+
vErrors = null;
|
|
878
1521
|
}
|
|
879
|
-
errors++;
|
|
880
1522
|
}
|
|
881
1523
|
}
|
|
882
1524
|
}
|
|
883
1525
|
}
|
|
884
1526
|
else {
|
|
885
|
-
const
|
|
1527
|
+
const err36 = { instancePath, schemaPath: "#/type", keyword: "type", params: { type: "object" }, message: "must be object" };
|
|
886
1528
|
if (vErrors === null) {
|
|
887
|
-
vErrors = [
|
|
1529
|
+
vErrors = [err36];
|
|
888
1530
|
}
|
|
889
1531
|
else {
|
|
890
|
-
vErrors.push(
|
|
1532
|
+
vErrors.push(err36);
|
|
891
1533
|
}
|
|
892
1534
|
errors++;
|
|
893
1535
|
}
|
|
894
|
-
|
|
1536
|
+
validate45.errors = vErrors;
|
|
895
1537
|
return errors === 0;
|
|
896
1538
|
}
|
|
897
|
-
|
|
898
|
-
const
|
|
899
|
-
const
|
|
900
|
-
const
|
|
901
|
-
const
|
|
902
|
-
const
|
|
903
|
-
function
|
|
1539
|
+
validate45.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
|
|
1540
|
+
const schema53 = { "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" };
|
|
1541
|
+
const pattern6 = new RegExp("^sha256:[0-9a-f]{64}$", "u");
|
|
1542
|
+
const schema55 = { "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" };
|
|
1543
|
+
const schema56 = { "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" };
|
|
1544
|
+
const pattern7 = new RegExp("^(0|[1-9][0-9]*)$", "u");
|
|
1545
|
+
function validate50(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
|
|
904
1546
|
let vErrors = null;
|
|
905
1547
|
let errors = 0;
|
|
906
|
-
const evaluated0 =
|
|
1548
|
+
const evaluated0 = validate50.evaluated;
|
|
907
1549
|
if (evaluated0.dynamicProps) {
|
|
908
1550
|
evaluated0.props = undefined;
|
|
909
1551
|
}
|
|
@@ -1006,7 +1648,7 @@ function validate48(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
1006
1648
|
}
|
|
1007
1649
|
errors++;
|
|
1008
1650
|
}
|
|
1009
|
-
if (!
|
|
1651
|
+
if (!pattern7.test(data0)) {
|
|
1010
1652
|
const err9 = { instancePath: instancePath + "/endNanoseconds", schemaPath: "#/properties/endNanoseconds/pattern", keyword: "pattern", params: { pattern: "^(0|[1-9][0-9]*)$" }, message: "must match pattern \"" + "^(0|[1-9][0-9]*)$" + "\"" };
|
|
1011
1653
|
if (vErrors === null) {
|
|
1012
1654
|
vErrors = [err9];
|
|
@@ -1051,7 +1693,7 @@ function validate48(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
1051
1693
|
}
|
|
1052
1694
|
errors++;
|
|
1053
1695
|
}
|
|
1054
|
-
if (!
|
|
1696
|
+
if (!pattern7.test(data1)) {
|
|
1055
1697
|
const err13 = { instancePath: instancePath + "/holdLastNanoseconds", schemaPath: "#/properties/holdLastNanoseconds/pattern", keyword: "pattern", params: { pattern: "^(0|[1-9][0-9]*)$" }, message: "must match pattern \"" + "^(0|[1-9][0-9]*)$" + "\"" };
|
|
1056
1698
|
if (vErrors === null) {
|
|
1057
1699
|
vErrors = [err13];
|
|
@@ -1096,7 +1738,7 @@ function validate48(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
1096
1738
|
}
|
|
1097
1739
|
errors++;
|
|
1098
1740
|
}
|
|
1099
|
-
if (!
|
|
1741
|
+
if (!pattern7.test(data2)) {
|
|
1100
1742
|
const err17 = { instancePath: instancePath + "/naturalEndNanoseconds", schemaPath: "#/properties/naturalEndNanoseconds/pattern", keyword: "pattern", params: { pattern: "^(0|[1-9][0-9]*)$" }, message: "must match pattern \"" + "^(0|[1-9][0-9]*)$" + "\"" };
|
|
1101
1743
|
if (vErrors === null) {
|
|
1102
1744
|
vErrors = [err17];
|
|
@@ -1283,7 +1925,7 @@ function validate48(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
1283
1925
|
}
|
|
1284
1926
|
errors++;
|
|
1285
1927
|
}
|
|
1286
|
-
if (!
|
|
1928
|
+
if (!pattern7.test(data7)) {
|
|
1287
1929
|
const err33 = { instancePath: instancePath + "/startNanoseconds", schemaPath: "#/properties/startNanoseconds/pattern", keyword: "pattern", params: { pattern: "^(0|[1-9][0-9]*)$" }, message: "must match pattern \"" + "^(0|[1-9][0-9]*)$" + "\"" };
|
|
1288
1930
|
if (vErrors === null) {
|
|
1289
1931
|
vErrors = [err33];
|
|
@@ -1316,16 +1958,16 @@ function validate48(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
1316
1958
|
}
|
|
1317
1959
|
errors++;
|
|
1318
1960
|
}
|
|
1319
|
-
|
|
1961
|
+
validate50.errors = vErrors;
|
|
1320
1962
|
return errors === 0;
|
|
1321
1963
|
}
|
|
1322
|
-
|
|
1323
|
-
const
|
|
1324
|
-
const
|
|
1325
|
-
function
|
|
1964
|
+
validate50.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
|
|
1965
|
+
const schema57 = { "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" }] };
|
|
1966
|
+
const schema59 = { "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" };
|
|
1967
|
+
function validate52(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
|
|
1326
1968
|
let vErrors = null;
|
|
1327
1969
|
let errors = 0;
|
|
1328
|
-
const evaluated0 =
|
|
1970
|
+
const evaluated0 = validate52.evaluated;
|
|
1329
1971
|
if (evaluated0.dynamicProps) {
|
|
1330
1972
|
evaluated0.props = undefined;
|
|
1331
1973
|
}
|
|
@@ -1804,15 +2446,15 @@ function validate50(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
1804
2446
|
}
|
|
1805
2447
|
}
|
|
1806
2448
|
}
|
|
1807
|
-
|
|
2449
|
+
validate52.errors = vErrors;
|
|
1808
2450
|
evaluated0.props = props0;
|
|
1809
2451
|
return errors === 0;
|
|
1810
2452
|
}
|
|
1811
|
-
|
|
1812
|
-
function
|
|
2453
|
+
validate52.evaluated = { "dynamicProps": true, "dynamicItems": false };
|
|
2454
|
+
function validate47(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
|
|
1813
2455
|
let vErrors = null;
|
|
1814
2456
|
let errors = 0;
|
|
1815
|
-
const evaluated0 =
|
|
2457
|
+
const evaluated0 = validate47.evaluated;
|
|
1816
2458
|
if (evaluated0.dynamicProps) {
|
|
1817
2459
|
evaluated0.props = undefined;
|
|
1818
2460
|
}
|
|
@@ -1895,7 +2537,7 @@ function validate45(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
1895
2537
|
if (data.assetId !== undefined) {
|
|
1896
2538
|
let data0 = data.assetId;
|
|
1897
2539
|
if (typeof data0 === "string") {
|
|
1898
|
-
if (!
|
|
2540
|
+
if (!pattern6.test(data0)) {
|
|
1899
2541
|
const err7 = { instancePath: instancePath + "/assetId", schemaPath: "#/properties/assetId/pattern", keyword: "pattern", params: { pattern: "^sha256:[0-9a-f]{64}$" }, message: "must match pattern \"" + "^sha256:[0-9a-f]{64}$" + "\"" };
|
|
1900
2542
|
if (vErrors === null) {
|
|
1901
2543
|
vErrors = [err7];
|
|
@@ -1965,14 +2607,14 @@ function validate45(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
1965
2607
|
}
|
|
1966
2608
|
}
|
|
1967
2609
|
if (data.source !== undefined) {
|
|
1968
|
-
if (!(
|
|
1969
|
-
vErrors = vErrors === null ?
|
|
2610
|
+
if (!(validate50(data.source, { instancePath: instancePath + "/source", parentData: data, parentDataProperty: "source", rootData, dynamicAnchors }))) {
|
|
2611
|
+
vErrors = vErrors === null ? validate50.errors : vErrors.concat(validate50.errors);
|
|
1970
2612
|
errors = vErrors.length;
|
|
1971
2613
|
}
|
|
1972
2614
|
}
|
|
1973
2615
|
if (data.sourceTiming !== undefined) {
|
|
1974
|
-
if (!(
|
|
1975
|
-
vErrors = vErrors === null ?
|
|
2616
|
+
if (!(validate52(data.sourceTiming, { instancePath: instancePath + "/sourceTiming", parentData: data, parentDataProperty: "sourceTiming", rootData, dynamicAnchors }))) {
|
|
2617
|
+
vErrors = vErrors === null ? validate52.errors : vErrors.concat(validate52.errors);
|
|
1976
2618
|
errors = vErrors.length;
|
|
1977
2619
|
}
|
|
1978
2620
|
}
|
|
@@ -1987,10 +2629,10 @@ function validate45(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
1987
2629
|
}
|
|
1988
2630
|
errors++;
|
|
1989
2631
|
}
|
|
1990
|
-
|
|
2632
|
+
validate47.errors = vErrors;
|
|
1991
2633
|
return errors === 0;
|
|
1992
2634
|
}
|
|
1993
|
-
|
|
2635
|
+
validate47.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
|
|
1994
2636
|
function validate22(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
|
|
1995
2637
|
let vErrors = null;
|
|
1996
2638
|
let errors = 0;
|
|
@@ -2052,8 +2694,8 @@ function validate22(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
2052
2694
|
}
|
|
2053
2695
|
errors++;
|
|
2054
2696
|
}
|
|
2055
|
-
if (data.
|
|
2056
|
-
const err5 = { instancePath, schemaPath: "#/required", keyword: "required", params: { missingProperty: "
|
|
2697
|
+
if (data.variantFields === undefined) {
|
|
2698
|
+
const err5 = { instancePath, schemaPath: "#/required", keyword: "required", params: { missingProperty: "variantFields" }, message: "must have required property '" + "variantFields" + "'" };
|
|
2057
2699
|
if (vErrors === null) {
|
|
2058
2700
|
vErrors = [err5];
|
|
2059
2701
|
}
|
|
@@ -2062,8 +2704,8 @@ function validate22(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
2062
2704
|
}
|
|
2063
2705
|
errors++;
|
|
2064
2706
|
}
|
|
2065
|
-
if (data.
|
|
2066
|
-
const err6 = { instancePath, schemaPath: "#/required", keyword: "required", params: { missingProperty: "
|
|
2707
|
+
if (data.film === undefined) {
|
|
2708
|
+
const err6 = { instancePath, schemaPath: "#/required", keyword: "required", params: { missingProperty: "film" }, message: "must have required property '" + "film" + "'" };
|
|
2067
2709
|
if (vErrors === null) {
|
|
2068
2710
|
vErrors = [err6];
|
|
2069
2711
|
}
|
|
@@ -2072,8 +2714,8 @@ function validate22(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
2072
2714
|
}
|
|
2073
2715
|
errors++;
|
|
2074
2716
|
}
|
|
2075
|
-
if (data.
|
|
2076
|
-
const err7 = { instancePath, schemaPath: "#/required", keyword: "required", params: { missingProperty: "
|
|
2717
|
+
if (data.scenes === undefined) {
|
|
2718
|
+
const err7 = { instancePath, schemaPath: "#/required", keyword: "required", params: { missingProperty: "scenes" }, message: "must have required property '" + "scenes" + "'" };
|
|
2077
2719
|
if (vErrors === null) {
|
|
2078
2720
|
vErrors = [err7];
|
|
2079
2721
|
}
|
|
@@ -2082,8 +2724,8 @@ function validate22(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
2082
2724
|
}
|
|
2083
2725
|
errors++;
|
|
2084
2726
|
}
|
|
2085
|
-
if (data.
|
|
2086
|
-
const err8 = { instancePath, schemaPath: "#/required", keyword: "required", params: { missingProperty: "
|
|
2727
|
+
if (data.shots === undefined) {
|
|
2728
|
+
const err8 = { instancePath, schemaPath: "#/required", keyword: "required", params: { missingProperty: "shots" }, message: "must have required property '" + "shots" + "'" };
|
|
2087
2729
|
if (vErrors === null) {
|
|
2088
2730
|
vErrors = [err8];
|
|
2089
2731
|
}
|
|
@@ -2092,8 +2734,8 @@ function validate22(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
2092
2734
|
}
|
|
2093
2735
|
errors++;
|
|
2094
2736
|
}
|
|
2095
|
-
if (data.
|
|
2096
|
-
const err9 = { instancePath, schemaPath: "#/required", keyword: "required", params: { missingProperty: "
|
|
2737
|
+
if (data.transitions === undefined) {
|
|
2738
|
+
const err9 = { instancePath, schemaPath: "#/required", keyword: "required", params: { missingProperty: "transitions" }, message: "must have required property '" + "transitions" + "'" };
|
|
2097
2739
|
if (vErrors === null) {
|
|
2098
2740
|
vErrors = [err9];
|
|
2099
2741
|
}
|
|
@@ -2102,8 +2744,8 @@ function validate22(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
2102
2744
|
}
|
|
2103
2745
|
errors++;
|
|
2104
2746
|
}
|
|
2105
|
-
if (data.
|
|
2106
|
-
const err10 = { instancePath, schemaPath: "#/required", keyword: "required", params: { missingProperty: "
|
|
2747
|
+
if (data.videos === undefined) {
|
|
2748
|
+
const err10 = { instancePath, schemaPath: "#/required", keyword: "required", params: { missingProperty: "videos" }, message: "must have required property '" + "videos" + "'" };
|
|
2107
2749
|
if (vErrors === null) {
|
|
2108
2750
|
vErrors = [err10];
|
|
2109
2751
|
}
|
|
@@ -2112,14 +2754,24 @@ function validate22(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
2112
2754
|
}
|
|
2113
2755
|
errors++;
|
|
2114
2756
|
}
|
|
2757
|
+
if (data.overlays === undefined) {
|
|
2758
|
+
const err11 = { instancePath, schemaPath: "#/required", keyword: "required", params: { missingProperty: "overlays" }, message: "must have required property '" + "overlays" + "'" };
|
|
2759
|
+
if (vErrors === null) {
|
|
2760
|
+
vErrors = [err11];
|
|
2761
|
+
}
|
|
2762
|
+
else {
|
|
2763
|
+
vErrors.push(err11);
|
|
2764
|
+
}
|
|
2765
|
+
errors++;
|
|
2766
|
+
}
|
|
2115
2767
|
for (const key0 in data) {
|
|
2116
2768
|
if (!(func1.call(schema34.properties, key0))) {
|
|
2117
|
-
const
|
|
2769
|
+
const err12 = { instancePath, schemaPath: "#/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key0 }, message: "must NOT have additional properties" };
|
|
2118
2770
|
if (vErrors === null) {
|
|
2119
|
-
vErrors = [
|
|
2771
|
+
vErrors = [err12];
|
|
2120
2772
|
}
|
|
2121
2773
|
else {
|
|
2122
|
-
vErrors.push(
|
|
2774
|
+
vErrors.push(err12);
|
|
2123
2775
|
}
|
|
2124
2776
|
errors++;
|
|
2125
2777
|
}
|
|
@@ -2140,33 +2792,33 @@ function validate22(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
2140
2792
|
let data2 = data.frameRate;
|
|
2141
2793
|
if (data2 && typeof data2 == "object" && !Array.isArray(data2)) {
|
|
2142
2794
|
if (data2.numerator === undefined) {
|
|
2143
|
-
const
|
|
2795
|
+
const err13 = { instancePath: instancePath + "/frameRate", schemaPath: "#/$defs/WireFrameRate/required", keyword: "required", params: { missingProperty: "numerator" }, message: "must have required property '" + "numerator" + "'" };
|
|
2144
2796
|
if (vErrors === null) {
|
|
2145
|
-
vErrors = [
|
|
2797
|
+
vErrors = [err13];
|
|
2146
2798
|
}
|
|
2147
2799
|
else {
|
|
2148
|
-
vErrors.push(
|
|
2800
|
+
vErrors.push(err13);
|
|
2149
2801
|
}
|
|
2150
2802
|
errors++;
|
|
2151
2803
|
}
|
|
2152
2804
|
if (data2.denominator === undefined) {
|
|
2153
|
-
const
|
|
2805
|
+
const err14 = { instancePath: instancePath + "/frameRate", schemaPath: "#/$defs/WireFrameRate/required", keyword: "required", params: { missingProperty: "denominator" }, message: "must have required property '" + "denominator" + "'" };
|
|
2154
2806
|
if (vErrors === null) {
|
|
2155
|
-
vErrors = [
|
|
2807
|
+
vErrors = [err14];
|
|
2156
2808
|
}
|
|
2157
2809
|
else {
|
|
2158
|
-
vErrors.push(
|
|
2810
|
+
vErrors.push(err14);
|
|
2159
2811
|
}
|
|
2160
2812
|
errors++;
|
|
2161
2813
|
}
|
|
2162
2814
|
for (const key1 in data2) {
|
|
2163
2815
|
if (!((key1 === "denominator") || (key1 === "numerator"))) {
|
|
2164
|
-
const
|
|
2816
|
+
const err15 = { instancePath: instancePath + "/frameRate", schemaPath: "#/$defs/WireFrameRate/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key1 }, message: "must NOT have additional properties" };
|
|
2165
2817
|
if (vErrors === null) {
|
|
2166
|
-
vErrors = [
|
|
2818
|
+
vErrors = [err15];
|
|
2167
2819
|
}
|
|
2168
2820
|
else {
|
|
2169
|
-
vErrors.push(
|
|
2821
|
+
vErrors.push(err15);
|
|
2170
2822
|
}
|
|
2171
2823
|
errors++;
|
|
2172
2824
|
}
|
|
@@ -2174,33 +2826,33 @@ function validate22(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
2174
2826
|
if (data2.denominator !== undefined) {
|
|
2175
2827
|
let data3 = data2.denominator;
|
|
2176
2828
|
if (!(((typeof data3 == "number") && (!(data3 % 1) && !isNaN(data3))) && (isFinite(data3)))) {
|
|
2177
|
-
const
|
|
2829
|
+
const err16 = { instancePath: instancePath + "/frameRate/denominator", schemaPath: "#/$defs/WireFrameRate/properties/denominator/type", keyword: "type", params: { type: "integer" }, message: "must be integer" };
|
|
2178
2830
|
if (vErrors === null) {
|
|
2179
|
-
vErrors = [
|
|
2831
|
+
vErrors = [err16];
|
|
2180
2832
|
}
|
|
2181
2833
|
else {
|
|
2182
|
-
vErrors.push(
|
|
2834
|
+
vErrors.push(err16);
|
|
2183
2835
|
}
|
|
2184
2836
|
errors++;
|
|
2185
2837
|
}
|
|
2186
2838
|
if ((typeof data3 == "number") && (isFinite(data3))) {
|
|
2187
2839
|
if (data3 > 4294967295 || isNaN(data3)) {
|
|
2188
|
-
const
|
|
2840
|
+
const err17 = { instancePath: instancePath + "/frameRate/denominator", schemaPath: "#/$defs/WireFrameRate/properties/denominator/maximum", keyword: "maximum", params: { comparison: "<=", limit: 4294967295 }, message: "must be <= 4294967295" };
|
|
2189
2841
|
if (vErrors === null) {
|
|
2190
|
-
vErrors = [
|
|
2842
|
+
vErrors = [err17];
|
|
2191
2843
|
}
|
|
2192
2844
|
else {
|
|
2193
|
-
vErrors.push(
|
|
2845
|
+
vErrors.push(err17);
|
|
2194
2846
|
}
|
|
2195
2847
|
errors++;
|
|
2196
2848
|
}
|
|
2197
2849
|
if (data3 < 1 || isNaN(data3)) {
|
|
2198
|
-
const
|
|
2850
|
+
const err18 = { instancePath: instancePath + "/frameRate/denominator", schemaPath: "#/$defs/WireFrameRate/properties/denominator/minimum", keyword: "minimum", params: { comparison: ">=", limit: 1 }, message: "must be >= 1" };
|
|
2199
2851
|
if (vErrors === null) {
|
|
2200
|
-
vErrors = [
|
|
2852
|
+
vErrors = [err18];
|
|
2201
2853
|
}
|
|
2202
2854
|
else {
|
|
2203
|
-
vErrors.push(
|
|
2855
|
+
vErrors.push(err18);
|
|
2204
2856
|
}
|
|
2205
2857
|
errors++;
|
|
2206
2858
|
}
|
|
@@ -2209,33 +2861,33 @@ function validate22(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
2209
2861
|
if (data2.numerator !== undefined) {
|
|
2210
2862
|
let data4 = data2.numerator;
|
|
2211
2863
|
if (!(((typeof data4 == "number") && (!(data4 % 1) && !isNaN(data4))) && (isFinite(data4)))) {
|
|
2212
|
-
const
|
|
2864
|
+
const err19 = { instancePath: instancePath + "/frameRate/numerator", schemaPath: "#/$defs/WireFrameRate/properties/numerator/type", keyword: "type", params: { type: "integer" }, message: "must be integer" };
|
|
2213
2865
|
if (vErrors === null) {
|
|
2214
|
-
vErrors = [
|
|
2866
|
+
vErrors = [err19];
|
|
2215
2867
|
}
|
|
2216
2868
|
else {
|
|
2217
|
-
vErrors.push(
|
|
2869
|
+
vErrors.push(err19);
|
|
2218
2870
|
}
|
|
2219
2871
|
errors++;
|
|
2220
2872
|
}
|
|
2221
2873
|
if ((typeof data4 == "number") && (isFinite(data4))) {
|
|
2222
2874
|
if (data4 > 4294967295 || isNaN(data4)) {
|
|
2223
|
-
const
|
|
2875
|
+
const err20 = { instancePath: instancePath + "/frameRate/numerator", schemaPath: "#/$defs/WireFrameRate/properties/numerator/maximum", keyword: "maximum", params: { comparison: "<=", limit: 4294967295 }, message: "must be <= 4294967295" };
|
|
2224
2876
|
if (vErrors === null) {
|
|
2225
|
-
vErrors = [
|
|
2877
|
+
vErrors = [err20];
|
|
2226
2878
|
}
|
|
2227
2879
|
else {
|
|
2228
|
-
vErrors.push(
|
|
2880
|
+
vErrors.push(err20);
|
|
2229
2881
|
}
|
|
2230
2882
|
errors++;
|
|
2231
2883
|
}
|
|
2232
2884
|
if (data4 < 1 || isNaN(data4)) {
|
|
2233
|
-
const
|
|
2885
|
+
const err21 = { instancePath: instancePath + "/frameRate/numerator", schemaPath: "#/$defs/WireFrameRate/properties/numerator/minimum", keyword: "minimum", params: { comparison: ">=", limit: 1 }, message: "must be >= 1" };
|
|
2234
2886
|
if (vErrors === null) {
|
|
2235
|
-
vErrors = [
|
|
2887
|
+
vErrors = [err21];
|
|
2236
2888
|
}
|
|
2237
2889
|
else {
|
|
2238
|
-
vErrors.push(
|
|
2890
|
+
vErrors.push(err21);
|
|
2239
2891
|
}
|
|
2240
2892
|
errors++;
|
|
2241
2893
|
}
|
|
@@ -2243,12 +2895,12 @@ function validate22(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
2243
2895
|
}
|
|
2244
2896
|
}
|
|
2245
2897
|
else {
|
|
2246
|
-
const
|
|
2898
|
+
const err22 = { instancePath: instancePath + "/frameRate", schemaPath: "#/$defs/WireFrameRate/type", keyword: "type", params: { type: "object" }, message: "must be object" };
|
|
2247
2899
|
if (vErrors === null) {
|
|
2248
|
-
vErrors = [
|
|
2900
|
+
vErrors = [err22];
|
|
2249
2901
|
}
|
|
2250
2902
|
else {
|
|
2251
|
-
vErrors.push(
|
|
2903
|
+
vErrors.push(err22);
|
|
2252
2904
|
}
|
|
2253
2905
|
errors++;
|
|
2254
2906
|
}
|
|
@@ -2263,12 +2915,12 @@ function validate22(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
2263
2915
|
let data6 = data.overlays;
|
|
2264
2916
|
if (Array.isArray(data6)) {
|
|
2265
2917
|
if (data6.length > 10000) {
|
|
2266
|
-
const
|
|
2918
|
+
const err23 = { instancePath: instancePath + "/overlays", schemaPath: "#/properties/overlays/maxItems", keyword: "maxItems", params: { limit: 10000 }, message: "must NOT have more than 10000 items" };
|
|
2267
2919
|
if (vErrors === null) {
|
|
2268
|
-
vErrors = [
|
|
2920
|
+
vErrors = [err23];
|
|
2269
2921
|
}
|
|
2270
2922
|
else {
|
|
2271
|
-
vErrors.push(
|
|
2923
|
+
vErrors.push(err23);
|
|
2272
2924
|
}
|
|
2273
2925
|
errors++;
|
|
2274
2926
|
}
|
|
@@ -2281,12 +2933,12 @@ function validate22(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
2281
2933
|
}
|
|
2282
2934
|
}
|
|
2283
2935
|
else {
|
|
2284
|
-
const
|
|
2936
|
+
const err24 = { instancePath: instancePath + "/overlays", schemaPath: "#/properties/overlays/type", keyword: "type", params: { type: "array" }, message: "must be array" };
|
|
2285
2937
|
if (vErrors === null) {
|
|
2286
|
-
vErrors = [
|
|
2938
|
+
vErrors = [err24];
|
|
2287
2939
|
}
|
|
2288
2940
|
else {
|
|
2289
|
-
vErrors.push(
|
|
2941
|
+
vErrors.push(err24);
|
|
2290
2942
|
}
|
|
2291
2943
|
errors++;
|
|
2292
2944
|
}
|
|
@@ -2295,12 +2947,12 @@ function validate22(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
2295
2947
|
let data8 = data.scenes;
|
|
2296
2948
|
if (Array.isArray(data8)) {
|
|
2297
2949
|
if (data8.length > 10000) {
|
|
2298
|
-
const
|
|
2950
|
+
const err25 = { instancePath: instancePath + "/scenes", schemaPath: "#/properties/scenes/maxItems", keyword: "maxItems", params: { limit: 10000 }, message: "must NOT have more than 10000 items" };
|
|
2299
2951
|
if (vErrors === null) {
|
|
2300
|
-
vErrors = [
|
|
2952
|
+
vErrors = [err25];
|
|
2301
2953
|
}
|
|
2302
2954
|
else {
|
|
2303
|
-
vErrors.push(
|
|
2955
|
+
vErrors.push(err25);
|
|
2304
2956
|
}
|
|
2305
2957
|
errors++;
|
|
2306
2958
|
}
|
|
@@ -2313,12 +2965,12 @@ function validate22(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
2313
2965
|
}
|
|
2314
2966
|
}
|
|
2315
2967
|
else {
|
|
2316
|
-
const
|
|
2968
|
+
const err26 = { instancePath: instancePath + "/scenes", schemaPath: "#/properties/scenes/type", keyword: "type", params: { type: "array" }, message: "must be array" };
|
|
2317
2969
|
if (vErrors === null) {
|
|
2318
|
-
vErrors = [
|
|
2970
|
+
vErrors = [err26];
|
|
2319
2971
|
}
|
|
2320
2972
|
else {
|
|
2321
|
-
vErrors.push(
|
|
2973
|
+
vErrors.push(err26);
|
|
2322
2974
|
}
|
|
2323
2975
|
errors++;
|
|
2324
2976
|
}
|
|
@@ -2327,12 +2979,12 @@ function validate22(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
2327
2979
|
let data10 = data.shots;
|
|
2328
2980
|
if (Array.isArray(data10)) {
|
|
2329
2981
|
if (data10.length > 10000) {
|
|
2330
|
-
const
|
|
2982
|
+
const err27 = { instancePath: instancePath + "/shots", schemaPath: "#/properties/shots/maxItems", keyword: "maxItems", params: { limit: 10000 }, message: "must NOT have more than 10000 items" };
|
|
2331
2983
|
if (vErrors === null) {
|
|
2332
|
-
vErrors = [
|
|
2984
|
+
vErrors = [err27];
|
|
2333
2985
|
}
|
|
2334
2986
|
else {
|
|
2335
|
-
vErrors.push(
|
|
2987
|
+
vErrors.push(err27);
|
|
2336
2988
|
}
|
|
2337
2989
|
errors++;
|
|
2338
2990
|
}
|
|
@@ -2345,12 +2997,12 @@ function validate22(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
2345
2997
|
}
|
|
2346
2998
|
}
|
|
2347
2999
|
else {
|
|
2348
|
-
const
|
|
3000
|
+
const err28 = { instancePath: instancePath + "/shots", schemaPath: "#/properties/shots/type", keyword: "type", params: { type: "array" }, message: "must be array" };
|
|
2349
3001
|
if (vErrors === null) {
|
|
2350
|
-
vErrors = [
|
|
3002
|
+
vErrors = [err28];
|
|
2351
3003
|
}
|
|
2352
3004
|
else {
|
|
2353
|
-
vErrors.push(
|
|
3005
|
+
vErrors.push(err28);
|
|
2354
3006
|
}
|
|
2355
3007
|
errors++;
|
|
2356
3008
|
}
|
|
@@ -2364,43 +3016,43 @@ function validate22(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
2364
3016
|
if (data.timelineVersion !== undefined) {
|
|
2365
3017
|
let data13 = data.timelineVersion;
|
|
2366
3018
|
if (!(((typeof data13 == "number") && (!(data13 % 1) && !isNaN(data13))) && (isFinite(data13)))) {
|
|
2367
|
-
const
|
|
3019
|
+
const err29 = { instancePath: instancePath + "/timelineVersion", schemaPath: "#/properties/timelineVersion/type", keyword: "type", params: { type: "integer" }, message: "must be integer" };
|
|
2368
3020
|
if (vErrors === null) {
|
|
2369
|
-
vErrors = [
|
|
3021
|
+
vErrors = [err29];
|
|
2370
3022
|
}
|
|
2371
3023
|
else {
|
|
2372
|
-
vErrors.push(
|
|
3024
|
+
vErrors.push(err29);
|
|
2373
3025
|
}
|
|
2374
3026
|
errors++;
|
|
2375
3027
|
}
|
|
2376
|
-
if (
|
|
2377
|
-
const
|
|
3028
|
+
if (7 !== data13) {
|
|
3029
|
+
const err30 = { instancePath: instancePath + "/timelineVersion", schemaPath: "#/properties/timelineVersion/const", keyword: "const", params: { allowedValue: 7 }, message: "must be equal to constant" };
|
|
2378
3030
|
if (vErrors === null) {
|
|
2379
|
-
vErrors = [
|
|
3031
|
+
vErrors = [err30];
|
|
2380
3032
|
}
|
|
2381
3033
|
else {
|
|
2382
|
-
vErrors.push(
|
|
3034
|
+
vErrors.push(err30);
|
|
2383
3035
|
}
|
|
2384
3036
|
errors++;
|
|
2385
3037
|
}
|
|
2386
3038
|
if ((typeof data13 == "number") && (isFinite(data13))) {
|
|
2387
3039
|
if (data13 > 65535 || isNaN(data13)) {
|
|
2388
|
-
const
|
|
3040
|
+
const err31 = { instancePath: instancePath + "/timelineVersion", schemaPath: "#/properties/timelineVersion/maximum", keyword: "maximum", params: { comparison: "<=", limit: 65535 }, message: "must be <= 65535" };
|
|
2389
3041
|
if (vErrors === null) {
|
|
2390
|
-
vErrors = [
|
|
3042
|
+
vErrors = [err31];
|
|
2391
3043
|
}
|
|
2392
3044
|
else {
|
|
2393
|
-
vErrors.push(
|
|
3045
|
+
vErrors.push(err31);
|
|
2394
3046
|
}
|
|
2395
3047
|
errors++;
|
|
2396
3048
|
}
|
|
2397
3049
|
if (data13 < 0 || isNaN(data13)) {
|
|
2398
|
-
const
|
|
3050
|
+
const err32 = { instancePath: instancePath + "/timelineVersion", schemaPath: "#/properties/timelineVersion/minimum", keyword: "minimum", params: { comparison: ">=", limit: 0 }, message: "must be >= 0" };
|
|
2399
3051
|
if (vErrors === null) {
|
|
2400
|
-
vErrors = [
|
|
3052
|
+
vErrors = [err32];
|
|
2401
3053
|
}
|
|
2402
3054
|
else {
|
|
2403
|
-
vErrors.push(
|
|
3055
|
+
vErrors.push(err32);
|
|
2404
3056
|
}
|
|
2405
3057
|
errors++;
|
|
2406
3058
|
}
|
|
@@ -2410,12 +3062,12 @@ function validate22(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
2410
3062
|
let data14 = data.transitions;
|
|
2411
3063
|
if (Array.isArray(data14)) {
|
|
2412
3064
|
if (data14.length > 10000) {
|
|
2413
|
-
const
|
|
3065
|
+
const err33 = { instancePath: instancePath + "/transitions", schemaPath: "#/properties/transitions/maxItems", keyword: "maxItems", params: { limit: 10000 }, message: "must NOT have more than 10000 items" };
|
|
2414
3066
|
if (vErrors === null) {
|
|
2415
|
-
vErrors = [
|
|
3067
|
+
vErrors = [err33];
|
|
2416
3068
|
}
|
|
2417
3069
|
else {
|
|
2418
|
-
vErrors.push(
|
|
3070
|
+
vErrors.push(err33);
|
|
2419
3071
|
}
|
|
2420
3072
|
errors++;
|
|
2421
3073
|
}
|
|
@@ -2428,56 +3080,88 @@ function validate22(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
2428
3080
|
}
|
|
2429
3081
|
}
|
|
2430
3082
|
else {
|
|
2431
|
-
const
|
|
3083
|
+
const err34 = { instancePath: instancePath + "/transitions", schemaPath: "#/properties/transitions/type", keyword: "type", params: { type: "array" }, message: "must be array" };
|
|
2432
3084
|
if (vErrors === null) {
|
|
2433
|
-
vErrors = [
|
|
3085
|
+
vErrors = [err34];
|
|
2434
3086
|
}
|
|
2435
3087
|
else {
|
|
2436
|
-
vErrors.push(
|
|
3088
|
+
vErrors.push(err34);
|
|
2437
3089
|
}
|
|
2438
3090
|
errors++;
|
|
2439
3091
|
}
|
|
2440
3092
|
}
|
|
2441
|
-
if (data.
|
|
2442
|
-
let data16 = data.
|
|
3093
|
+
if (data.variantFields !== undefined) {
|
|
3094
|
+
let data16 = data.variantFields;
|
|
2443
3095
|
if (Array.isArray(data16)) {
|
|
2444
|
-
if (data16.length >
|
|
2445
|
-
const
|
|
3096
|
+
if (data16.length > 256) {
|
|
3097
|
+
const err35 = { instancePath: instancePath + "/variantFields", schemaPath: "#/properties/variantFields/maxItems", keyword: "maxItems", params: { limit: 256 }, message: "must NOT have more than 256 items" };
|
|
2446
3098
|
if (vErrors === null) {
|
|
2447
|
-
vErrors = [
|
|
3099
|
+
vErrors = [err35];
|
|
2448
3100
|
}
|
|
2449
3101
|
else {
|
|
2450
|
-
vErrors.push(
|
|
3102
|
+
vErrors.push(err35);
|
|
2451
3103
|
}
|
|
2452
3104
|
errors++;
|
|
2453
3105
|
}
|
|
2454
3106
|
const len4 = data16.length;
|
|
2455
3107
|
for (let i4 = 0; i4 < len4; i4++) {
|
|
2456
|
-
if (!(validate45(data16[i4], { instancePath: instancePath + "/
|
|
3108
|
+
if (!(validate45(data16[i4], { instancePath: instancePath + "/variantFields/" + i4, parentData: data16, parentDataProperty: i4, rootData, dynamicAnchors }))) {
|
|
2457
3109
|
vErrors = vErrors === null ? validate45.errors : vErrors.concat(validate45.errors);
|
|
2458
3110
|
errors = vErrors.length;
|
|
2459
3111
|
}
|
|
2460
3112
|
}
|
|
2461
3113
|
}
|
|
2462
3114
|
else {
|
|
2463
|
-
const
|
|
3115
|
+
const err36 = { instancePath: instancePath + "/variantFields", schemaPath: "#/properties/variantFields/type", keyword: "type", params: { type: "array" }, message: "must be array" };
|
|
2464
3116
|
if (vErrors === null) {
|
|
2465
|
-
vErrors = [
|
|
3117
|
+
vErrors = [err36];
|
|
2466
3118
|
}
|
|
2467
3119
|
else {
|
|
2468
|
-
vErrors.push(
|
|
3120
|
+
vErrors.push(err36);
|
|
3121
|
+
}
|
|
3122
|
+
errors++;
|
|
3123
|
+
}
|
|
3124
|
+
}
|
|
3125
|
+
if (data.videos !== undefined) {
|
|
3126
|
+
let data18 = data.videos;
|
|
3127
|
+
if (Array.isArray(data18)) {
|
|
3128
|
+
if (data18.length > 10000) {
|
|
3129
|
+
const err37 = { instancePath: instancePath + "/videos", schemaPath: "#/properties/videos/maxItems", keyword: "maxItems", params: { limit: 10000 }, message: "must NOT have more than 10000 items" };
|
|
3130
|
+
if (vErrors === null) {
|
|
3131
|
+
vErrors = [err37];
|
|
3132
|
+
}
|
|
3133
|
+
else {
|
|
3134
|
+
vErrors.push(err37);
|
|
3135
|
+
}
|
|
3136
|
+
errors++;
|
|
3137
|
+
}
|
|
3138
|
+
const len5 = data18.length;
|
|
3139
|
+
for (let i5 = 0; i5 < len5; i5++) {
|
|
3140
|
+
if (!(validate47(data18[i5], { instancePath: instancePath + "/videos/" + i5, parentData: data18, parentDataProperty: i5, rootData, dynamicAnchors }))) {
|
|
3141
|
+
vErrors = vErrors === null ? validate47.errors : vErrors.concat(validate47.errors);
|
|
3142
|
+
errors = vErrors.length;
|
|
3143
|
+
}
|
|
3144
|
+
}
|
|
3145
|
+
}
|
|
3146
|
+
else {
|
|
3147
|
+
const err38 = { instancePath: instancePath + "/videos", schemaPath: "#/properties/videos/type", keyword: "type", params: { type: "array" }, message: "must be array" };
|
|
3148
|
+
if (vErrors === null) {
|
|
3149
|
+
vErrors = [err38];
|
|
3150
|
+
}
|
|
3151
|
+
else {
|
|
3152
|
+
vErrors.push(err38);
|
|
2469
3153
|
}
|
|
2470
3154
|
errors++;
|
|
2471
3155
|
}
|
|
2472
3156
|
}
|
|
2473
3157
|
}
|
|
2474
3158
|
else {
|
|
2475
|
-
const
|
|
3159
|
+
const err39 = { instancePath, schemaPath: "#/type", keyword: "type", params: { type: "object" }, message: "must be object" };
|
|
2476
3160
|
if (vErrors === null) {
|
|
2477
|
-
vErrors = [
|
|
3161
|
+
vErrors = [err39];
|
|
2478
3162
|
}
|
|
2479
3163
|
else {
|
|
2480
|
-
vErrors.push(
|
|
3164
|
+
vErrors.push(err39);
|
|
2481
3165
|
}
|
|
2482
3166
|
errors++;
|
|
2483
3167
|
}
|
|
@@ -3155,7 +3839,7 @@ function validate21(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
3155
3839
|
}
|
|
3156
3840
|
validate21.evaluated = { "dynamicProps": true, "dynamicItems": false };
|
|
3157
3841
|
function validate20(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
|
|
3158
|
-
/*# sourceURL="https://onmark.dev/schemas/browser-request-
|
|
3842
|
+
/*# sourceURL="https://onmark.dev/schemas/browser-request-v9.schema.json" */ ;
|
|
3159
3843
|
let vErrors = null;
|
|
3160
3844
|
let errors = 0;
|
|
3161
3845
|
const evaluated0 = validate20.evaluated;
|
|
@@ -3261,8 +3945,8 @@ function validate20(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
3261
3945
|
}
|
|
3262
3946
|
errors++;
|
|
3263
3947
|
}
|
|
3264
|
-
if (
|
|
3265
|
-
const err8 = { instancePath: instancePath + "/version", schemaPath: "#/$defs/ProtocolVersion/const", keyword: "const", params: { allowedValue:
|
|
3948
|
+
if (9 !== data2) {
|
|
3949
|
+
const err8 = { instancePath: instancePath + "/version", schemaPath: "#/$defs/ProtocolVersion/const", keyword: "const", params: { allowedValue: 9 }, message: "must be equal to constant" };
|
|
3266
3950
|
if (vErrors === null) {
|
|
3267
3951
|
vErrors = [err8];
|
|
3268
3952
|
}
|
|
@@ -3309,23 +3993,23 @@ function validate20(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
3309
3993
|
return errors === 0;
|
|
3310
3994
|
}
|
|
3311
3995
|
validate20.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
|
|
3312
|
-
export const validateBrowserResponse =
|
|
3313
|
-
const
|
|
3314
|
-
const
|
|
3315
|
-
const
|
|
3316
|
-
const
|
|
3317
|
-
const
|
|
3318
|
-
const
|
|
3319
|
-
const
|
|
3320
|
-
const
|
|
3321
|
-
const
|
|
3322
|
-
const
|
|
3323
|
-
const
|
|
3324
|
-
const
|
|
3325
|
-
function
|
|
3996
|
+
export const validateBrowserResponse = validate57;
|
|
3997
|
+
const schema65 = { "$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" }, "visualFindings": { "$ref": "#/$defs/BrowserVisualFindings", "description": "Objective semantic-layout facts observed for the captured state." } }, "required": ["type", "frame", "visualFindings"], "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" }, "BrowserVisualFinding": { "additionalProperties": false, "description": "One semantic node and the objective layout defect observed for it.", "properties": { "issue": { "$ref": "#/$defs/BrowserVisualIssue" }, "nodeId": { "$ref": "#/$defs/BrowserNodeId" } }, "required": ["nodeId", "issue"], "type": "object" }, "BrowserVisualFindings": { "description": "Canonically ordered objective layout findings for one captured frame.", "items": { "$ref": "#/$defs/BrowserVisualFinding" }, "maxItems": 256, "type": "array" }, "BrowserVisualIssue": { "description": "Closed objective defects measured from an active semantic element.", "oneOf": [{ "const": "emptyBox", "description": "The active semantic element occupies no positive rendered area.", "type": "string" }, { "const": "clippedHorizontally", "description": "Authored horizontal clipping hides part of the overlay's contents.", "type": "string" }, { "const": "clippedVertically", "description": "Authored vertical clipping hides part of the overlay's contents.", "type": "string" }] }, "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": 9, "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-v9.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-browser-visual-findings": 256, "x-onmark-max-failure-message-characters": 4096, "x-onmark-max-pending-resource-characters": 1024, "x-onmark-max-pending-resources": 256 };
|
|
3998
|
+
const schema81 = { "description": "Correlation identity shared by one request and its response events.", "format": "uint32", "maximum": 4294967295, "minimum": 0, "type": "integer" };
|
|
3999
|
+
const schema82 = { "const": 9, "description": "Version of the native-to-browser message contract.", "format": "uint16", "maximum": 65535, "minimum": 0, "type": "integer" };
|
|
4000
|
+
const schema66 = { "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" }, "visualFindings": { "$ref": "#/$defs/BrowserVisualFindings", "description": "Objective semantic-layout facts observed for the captured state." } }, "required": ["type", "frame", "visualFindings"], "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" }] };
|
|
4001
|
+
const schema67 = { "description": "Exact frame integer accepted by JavaScript without rounding.", "format": "uint64", "maximum": 9007199254740991, "minimum": 0, "type": "integer" };
|
|
4002
|
+
const schema80 = { "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" }] };
|
|
4003
|
+
const schema68 = { "description": "Canonically ordered layout evidence for browser video placements.", "items": { "$ref": "#/$defs/BrowserMediaPlacement" }, "maxItems": 16, "type": "array" };
|
|
4004
|
+
const schema69 = { "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" };
|
|
4005
|
+
const schema70 = { "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" };
|
|
4006
|
+
const schema71 = { "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" }] };
|
|
4007
|
+
const schema72 = { "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" };
|
|
4008
|
+
const schema73 = { "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" };
|
|
4009
|
+
function validate60(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
|
|
3326
4010
|
let vErrors = null;
|
|
3327
4011
|
let errors = 0;
|
|
3328
|
-
const evaluated0 =
|
|
4012
|
+
const evaluated0 = validate60.evaluated;
|
|
3329
4013
|
if (evaluated0.dynamicProps) {
|
|
3330
4014
|
evaluated0.props = undefined;
|
|
3331
4015
|
}
|
|
@@ -3759,87 +4443,343 @@ function validate58(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
3759
4443
|
}
|
|
3760
4444
|
}
|
|
3761
4445
|
}
|
|
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++;
|
|
4446
|
+
if (data5.x !== undefined) {
|
|
4447
|
+
let data8 = data5.x;
|
|
4448
|
+
if (!(((typeof data8 == "number") && (!(data8 % 1) && !isNaN(data8))) && (isFinite(data8)))) {
|
|
4449
|
+
const err34 = { instancePath: instancePath + "/rectangle/x", schemaPath: "#/$defs/BrowserPixelRectangle/properties/x/type", keyword: "type", params: { type: "integer" }, message: "must be integer" };
|
|
4450
|
+
if (vErrors === null) {
|
|
4451
|
+
vErrors = [err34];
|
|
4452
|
+
}
|
|
4453
|
+
else {
|
|
4454
|
+
vErrors.push(err34);
|
|
4455
|
+
}
|
|
4456
|
+
errors++;
|
|
4457
|
+
}
|
|
4458
|
+
if ((typeof data8 == "number") && (isFinite(data8))) {
|
|
4459
|
+
if (data8 < 0 || isNaN(data8)) {
|
|
4460
|
+
const err35 = { instancePath: instancePath + "/rectangle/x", schemaPath: "#/$defs/BrowserPixelRectangle/properties/x/minimum", keyword: "minimum", params: { comparison: ">=", limit: 0 }, message: "must be >= 0" };
|
|
4461
|
+
if (vErrors === null) {
|
|
4462
|
+
vErrors = [err35];
|
|
4463
|
+
}
|
|
4464
|
+
else {
|
|
4465
|
+
vErrors.push(err35);
|
|
4466
|
+
}
|
|
4467
|
+
errors++;
|
|
4468
|
+
}
|
|
4469
|
+
}
|
|
4470
|
+
}
|
|
4471
|
+
if (data5.y !== undefined) {
|
|
4472
|
+
let data9 = data5.y;
|
|
4473
|
+
if (!(((typeof data9 == "number") && (!(data9 % 1) && !isNaN(data9))) && (isFinite(data9)))) {
|
|
4474
|
+
const err36 = { instancePath: instancePath + "/rectangle/y", schemaPath: "#/$defs/BrowserPixelRectangle/properties/y/type", keyword: "type", params: { type: "integer" }, message: "must be integer" };
|
|
4475
|
+
if (vErrors === null) {
|
|
4476
|
+
vErrors = [err36];
|
|
4477
|
+
}
|
|
4478
|
+
else {
|
|
4479
|
+
vErrors.push(err36);
|
|
4480
|
+
}
|
|
4481
|
+
errors++;
|
|
4482
|
+
}
|
|
4483
|
+
if ((typeof data9 == "number") && (isFinite(data9))) {
|
|
4484
|
+
if (data9 < 0 || isNaN(data9)) {
|
|
4485
|
+
const err37 = { instancePath: instancePath + "/rectangle/y", schemaPath: "#/$defs/BrowserPixelRectangle/properties/y/minimum", keyword: "minimum", params: { comparison: ">=", limit: 0 }, message: "must be >= 0" };
|
|
4486
|
+
if (vErrors === null) {
|
|
4487
|
+
vErrors = [err37];
|
|
4488
|
+
}
|
|
4489
|
+
else {
|
|
4490
|
+
vErrors.push(err37);
|
|
4491
|
+
}
|
|
4492
|
+
errors++;
|
|
4493
|
+
}
|
|
4494
|
+
}
|
|
4495
|
+
}
|
|
4496
|
+
}
|
|
4497
|
+
else {
|
|
4498
|
+
const err38 = { instancePath: instancePath + "/rectangle", schemaPath: "#/$defs/BrowserPixelRectangle/type", keyword: "type", params: { type: "object" }, message: "must be object" };
|
|
4499
|
+
if (vErrors === null) {
|
|
4500
|
+
vErrors = [err38];
|
|
4501
|
+
}
|
|
4502
|
+
else {
|
|
4503
|
+
vErrors.push(err38);
|
|
4504
|
+
}
|
|
4505
|
+
errors++;
|
|
4506
|
+
}
|
|
4507
|
+
}
|
|
4508
|
+
}
|
|
4509
|
+
else {
|
|
4510
|
+
const err39 = { instancePath, schemaPath: "#/type", keyword: "type", params: { type: "object" }, message: "must be object" };
|
|
4511
|
+
if (vErrors === null) {
|
|
4512
|
+
vErrors = [err39];
|
|
4513
|
+
}
|
|
4514
|
+
else {
|
|
4515
|
+
vErrors.push(err39);
|
|
4516
|
+
}
|
|
4517
|
+
errors++;
|
|
4518
|
+
}
|
|
4519
|
+
validate60.errors = vErrors;
|
|
4520
|
+
return errors === 0;
|
|
4521
|
+
}
|
|
4522
|
+
validate60.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
|
|
4523
|
+
function validate59(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
|
|
4524
|
+
let vErrors = null;
|
|
4525
|
+
let errors = 0;
|
|
4526
|
+
const evaluated0 = validate59.evaluated;
|
|
4527
|
+
if (evaluated0.dynamicProps) {
|
|
4528
|
+
evaluated0.props = undefined;
|
|
4529
|
+
}
|
|
4530
|
+
if (evaluated0.dynamicItems) {
|
|
4531
|
+
evaluated0.items = undefined;
|
|
4532
|
+
}
|
|
4533
|
+
if (Array.isArray(data)) {
|
|
4534
|
+
if (data.length > 16) {
|
|
4535
|
+
const err0 = { instancePath, schemaPath: "#/maxItems", keyword: "maxItems", params: { limit: 16 }, message: "must NOT have more than 16 items" };
|
|
4536
|
+
if (vErrors === null) {
|
|
4537
|
+
vErrors = [err0];
|
|
4538
|
+
}
|
|
4539
|
+
else {
|
|
4540
|
+
vErrors.push(err0);
|
|
4541
|
+
}
|
|
4542
|
+
errors++;
|
|
4543
|
+
}
|
|
4544
|
+
const len0 = data.length;
|
|
4545
|
+
for (let i0 = 0; i0 < len0; i0++) {
|
|
4546
|
+
if (!(validate60(data[i0], { instancePath: instancePath + "/" + i0, parentData: data, parentDataProperty: i0, rootData, dynamicAnchors }))) {
|
|
4547
|
+
vErrors = vErrors === null ? validate60.errors : vErrors.concat(validate60.errors);
|
|
4548
|
+
errors = vErrors.length;
|
|
4549
|
+
}
|
|
4550
|
+
}
|
|
4551
|
+
}
|
|
4552
|
+
else {
|
|
4553
|
+
const err1 = { instancePath, schemaPath: "#/type", keyword: "type", params: { type: "array" }, message: "must be array" };
|
|
4554
|
+
if (vErrors === null) {
|
|
4555
|
+
vErrors = [err1];
|
|
4556
|
+
}
|
|
4557
|
+
else {
|
|
4558
|
+
vErrors.push(err1);
|
|
4559
|
+
}
|
|
4560
|
+
errors++;
|
|
4561
|
+
}
|
|
4562
|
+
validate59.errors = vErrors;
|
|
4563
|
+
return errors === 0;
|
|
4564
|
+
}
|
|
4565
|
+
validate59.evaluated = { "items": true, "dynamicProps": false, "dynamicItems": false };
|
|
4566
|
+
const schema76 = { "description": "Canonically ordered objective layout findings for one captured frame.", "items": { "$ref": "#/$defs/BrowserVisualFinding" }, "maxItems": 256, "type": "array" };
|
|
4567
|
+
const schema77 = { "additionalProperties": false, "description": "One semantic node and the objective layout defect observed for it.", "properties": { "issue": { "$ref": "#/$defs/BrowserVisualIssue" }, "nodeId": { "$ref": "#/$defs/BrowserNodeId" } }, "required": ["nodeId", "issue"], "type": "object" };
|
|
4568
|
+
const schema78 = { "description": "Closed objective defects measured from an active semantic element.", "oneOf": [{ "const": "emptyBox", "description": "The active semantic element occupies no positive rendered area.", "type": "string" }, { "const": "clippedHorizontally", "description": "Authored horizontal clipping hides part of the overlay's contents.", "type": "string" }, { "const": "clippedVertically", "description": "Authored vertical clipping hides part of the overlay's contents.", "type": "string" }] };
|
|
4569
|
+
function validate64(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
|
|
4570
|
+
let vErrors = null;
|
|
4571
|
+
let errors = 0;
|
|
4572
|
+
const evaluated0 = validate64.evaluated;
|
|
4573
|
+
if (evaluated0.dynamicProps) {
|
|
4574
|
+
evaluated0.props = undefined;
|
|
4575
|
+
}
|
|
4576
|
+
if (evaluated0.dynamicItems) {
|
|
4577
|
+
evaluated0.items = undefined;
|
|
4578
|
+
}
|
|
4579
|
+
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
4580
|
+
if (data.nodeId === undefined) {
|
|
4581
|
+
const err0 = { instancePath, schemaPath: "#/required", keyword: "required", params: { missingProperty: "nodeId" }, message: "must have required property '" + "nodeId" + "'" };
|
|
4582
|
+
if (vErrors === null) {
|
|
4583
|
+
vErrors = [err0];
|
|
4584
|
+
}
|
|
4585
|
+
else {
|
|
4586
|
+
vErrors.push(err0);
|
|
4587
|
+
}
|
|
4588
|
+
errors++;
|
|
4589
|
+
}
|
|
4590
|
+
if (data.issue === undefined) {
|
|
4591
|
+
const err1 = { instancePath, schemaPath: "#/required", keyword: "required", params: { missingProperty: "issue" }, message: "must have required property '" + "issue" + "'" };
|
|
4592
|
+
if (vErrors === null) {
|
|
4593
|
+
vErrors = [err1];
|
|
4594
|
+
}
|
|
4595
|
+
else {
|
|
4596
|
+
vErrors.push(err1);
|
|
4597
|
+
}
|
|
4598
|
+
errors++;
|
|
4599
|
+
}
|
|
4600
|
+
for (const key0 in data) {
|
|
4601
|
+
if (!((key0 === "issue") || (key0 === "nodeId"))) {
|
|
4602
|
+
const err2 = { instancePath, schemaPath: "#/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key0 }, message: "must NOT have additional properties" };
|
|
4603
|
+
if (vErrors === null) {
|
|
4604
|
+
vErrors = [err2];
|
|
4605
|
+
}
|
|
4606
|
+
else {
|
|
4607
|
+
vErrors.push(err2);
|
|
4608
|
+
}
|
|
4609
|
+
errors++;
|
|
4610
|
+
}
|
|
4611
|
+
}
|
|
4612
|
+
if (data.issue !== undefined) {
|
|
4613
|
+
let data0 = data.issue;
|
|
4614
|
+
const _errs4 = errors;
|
|
4615
|
+
let valid2 = false;
|
|
4616
|
+
let passing0 = null;
|
|
4617
|
+
const _errs5 = errors;
|
|
4618
|
+
if (typeof data0 !== "string") {
|
|
4619
|
+
const err3 = { instancePath: instancePath + "/issue", schemaPath: "#/$defs/BrowserVisualIssue/oneOf/0/type", keyword: "type", params: { type: "string" }, message: "must be string" };
|
|
4620
|
+
if (vErrors === null) {
|
|
4621
|
+
vErrors = [err3];
|
|
4622
|
+
}
|
|
4623
|
+
else {
|
|
4624
|
+
vErrors.push(err3);
|
|
4625
|
+
}
|
|
4626
|
+
errors++;
|
|
4627
|
+
}
|
|
4628
|
+
if ("emptyBox" !== data0) {
|
|
4629
|
+
const err4 = { instancePath: instancePath + "/issue", schemaPath: "#/$defs/BrowserVisualIssue/oneOf/0/const", keyword: "const", params: { allowedValue: "emptyBox" }, message: "must be equal to constant" };
|
|
4630
|
+
if (vErrors === null) {
|
|
4631
|
+
vErrors = [err4];
|
|
4632
|
+
}
|
|
4633
|
+
else {
|
|
4634
|
+
vErrors.push(err4);
|
|
4635
|
+
}
|
|
4636
|
+
errors++;
|
|
4637
|
+
}
|
|
4638
|
+
var _valid0 = _errs5 === errors;
|
|
4639
|
+
if (_valid0) {
|
|
4640
|
+
valid2 = true;
|
|
4641
|
+
passing0 = 0;
|
|
4642
|
+
}
|
|
4643
|
+
const _errs7 = errors;
|
|
4644
|
+
if (typeof data0 !== "string") {
|
|
4645
|
+
const err5 = { instancePath: instancePath + "/issue", schemaPath: "#/$defs/BrowserVisualIssue/oneOf/1/type", keyword: "type", params: { type: "string" }, message: "must be string" };
|
|
4646
|
+
if (vErrors === null) {
|
|
4647
|
+
vErrors = [err5];
|
|
4648
|
+
}
|
|
4649
|
+
else {
|
|
4650
|
+
vErrors.push(err5);
|
|
4651
|
+
}
|
|
4652
|
+
errors++;
|
|
4653
|
+
}
|
|
4654
|
+
if ("clippedHorizontally" !== data0) {
|
|
4655
|
+
const err6 = { instancePath: instancePath + "/issue", schemaPath: "#/$defs/BrowserVisualIssue/oneOf/1/const", keyword: "const", params: { allowedValue: "clippedHorizontally" }, message: "must be equal to constant" };
|
|
4656
|
+
if (vErrors === null) {
|
|
4657
|
+
vErrors = [err6];
|
|
4658
|
+
}
|
|
4659
|
+
else {
|
|
4660
|
+
vErrors.push(err6);
|
|
4661
|
+
}
|
|
4662
|
+
errors++;
|
|
4663
|
+
}
|
|
4664
|
+
var _valid0 = _errs7 === errors;
|
|
4665
|
+
if (_valid0 && valid2) {
|
|
4666
|
+
valid2 = false;
|
|
4667
|
+
passing0 = [passing0, 1];
|
|
4668
|
+
}
|
|
4669
|
+
else {
|
|
4670
|
+
if (_valid0) {
|
|
4671
|
+
valid2 = true;
|
|
4672
|
+
passing0 = 1;
|
|
4673
|
+
}
|
|
4674
|
+
const _errs9 = errors;
|
|
4675
|
+
if (typeof data0 !== "string") {
|
|
4676
|
+
const err7 = { instancePath: instancePath + "/issue", schemaPath: "#/$defs/BrowserVisualIssue/oneOf/2/type", keyword: "type", params: { type: "string" }, message: "must be string" };
|
|
4677
|
+
if (vErrors === null) {
|
|
4678
|
+
vErrors = [err7];
|
|
3773
4679
|
}
|
|
3774
|
-
|
|
3775
|
-
|
|
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
|
-
}
|
|
4680
|
+
else {
|
|
4681
|
+
vErrors.push(err7);
|
|
3785
4682
|
}
|
|
4683
|
+
errors++;
|
|
3786
4684
|
}
|
|
3787
|
-
if (
|
|
3788
|
-
|
|
3789
|
-
if (
|
|
3790
|
-
|
|
3791
|
-
if (vErrors === null) {
|
|
3792
|
-
vErrors = [err36];
|
|
3793
|
-
}
|
|
3794
|
-
else {
|
|
3795
|
-
vErrors.push(err36);
|
|
3796
|
-
}
|
|
3797
|
-
errors++;
|
|
4685
|
+
if ("clippedVertically" !== data0) {
|
|
4686
|
+
const err8 = { instancePath: instancePath + "/issue", schemaPath: "#/$defs/BrowserVisualIssue/oneOf/2/const", keyword: "const", params: { allowedValue: "clippedVertically" }, message: "must be equal to constant" };
|
|
4687
|
+
if (vErrors === null) {
|
|
4688
|
+
vErrors = [err8];
|
|
3798
4689
|
}
|
|
3799
|
-
|
|
3800
|
-
|
|
3801
|
-
|
|
3802
|
-
|
|
3803
|
-
|
|
3804
|
-
|
|
3805
|
-
|
|
3806
|
-
|
|
3807
|
-
|
|
3808
|
-
|
|
3809
|
-
|
|
4690
|
+
else {
|
|
4691
|
+
vErrors.push(err8);
|
|
4692
|
+
}
|
|
4693
|
+
errors++;
|
|
4694
|
+
}
|
|
4695
|
+
var _valid0 = _errs9 === errors;
|
|
4696
|
+
if (_valid0 && valid2) {
|
|
4697
|
+
valid2 = false;
|
|
4698
|
+
passing0 = [passing0, 2];
|
|
4699
|
+
}
|
|
4700
|
+
else {
|
|
4701
|
+
if (_valid0) {
|
|
4702
|
+
valid2 = true;
|
|
4703
|
+
passing0 = 2;
|
|
3810
4704
|
}
|
|
3811
4705
|
}
|
|
3812
4706
|
}
|
|
4707
|
+
if (!valid2) {
|
|
4708
|
+
const err9 = { instancePath: instancePath + "/issue", schemaPath: "#/$defs/BrowserVisualIssue/oneOf", keyword: "oneOf", params: { passingSchemas: passing0 }, message: "must match exactly one schema in oneOf" };
|
|
4709
|
+
if (vErrors === null) {
|
|
4710
|
+
vErrors = [err9];
|
|
4711
|
+
}
|
|
4712
|
+
else {
|
|
4713
|
+
vErrors.push(err9);
|
|
4714
|
+
}
|
|
4715
|
+
errors++;
|
|
4716
|
+
}
|
|
3813
4717
|
else {
|
|
3814
|
-
|
|
4718
|
+
errors = _errs4;
|
|
4719
|
+
if (vErrors !== null) {
|
|
4720
|
+
if (_errs4) {
|
|
4721
|
+
vErrors.length = _errs4;
|
|
4722
|
+
}
|
|
4723
|
+
else {
|
|
4724
|
+
vErrors = null;
|
|
4725
|
+
}
|
|
4726
|
+
}
|
|
4727
|
+
}
|
|
4728
|
+
}
|
|
4729
|
+
if (data.nodeId !== undefined) {
|
|
4730
|
+
let data1 = data.nodeId;
|
|
4731
|
+
if (!(((typeof data1 == "number") && (!(data1 % 1) && !isNaN(data1))) && (isFinite(data1)))) {
|
|
4732
|
+
const err10 = { instancePath: instancePath + "/nodeId", schemaPath: "#/$defs/BrowserNodeId/type", keyword: "type", params: { type: "integer" }, message: "must be integer" };
|
|
3815
4733
|
if (vErrors === null) {
|
|
3816
|
-
vErrors = [
|
|
4734
|
+
vErrors = [err10];
|
|
3817
4735
|
}
|
|
3818
4736
|
else {
|
|
3819
|
-
vErrors.push(
|
|
4737
|
+
vErrors.push(err10);
|
|
3820
4738
|
}
|
|
3821
4739
|
errors++;
|
|
3822
4740
|
}
|
|
4741
|
+
if ((typeof data1 == "number") && (isFinite(data1))) {
|
|
4742
|
+
if (data1 > 4294967295 || isNaN(data1)) {
|
|
4743
|
+
const err11 = { instancePath: instancePath + "/nodeId", schemaPath: "#/$defs/BrowserNodeId/maximum", keyword: "maximum", params: { comparison: "<=", limit: 4294967295 }, message: "must be <= 4294967295" };
|
|
4744
|
+
if (vErrors === null) {
|
|
4745
|
+
vErrors = [err11];
|
|
4746
|
+
}
|
|
4747
|
+
else {
|
|
4748
|
+
vErrors.push(err11);
|
|
4749
|
+
}
|
|
4750
|
+
errors++;
|
|
4751
|
+
}
|
|
4752
|
+
if (data1 < 0 || isNaN(data1)) {
|
|
4753
|
+
const err12 = { instancePath: instancePath + "/nodeId", schemaPath: "#/$defs/BrowserNodeId/minimum", keyword: "minimum", params: { comparison: ">=", limit: 0 }, message: "must be >= 0" };
|
|
4754
|
+
if (vErrors === null) {
|
|
4755
|
+
vErrors = [err12];
|
|
4756
|
+
}
|
|
4757
|
+
else {
|
|
4758
|
+
vErrors.push(err12);
|
|
4759
|
+
}
|
|
4760
|
+
errors++;
|
|
4761
|
+
}
|
|
4762
|
+
}
|
|
3823
4763
|
}
|
|
3824
4764
|
}
|
|
3825
4765
|
else {
|
|
3826
|
-
const
|
|
4766
|
+
const err13 = { instancePath, schemaPath: "#/type", keyword: "type", params: { type: "object" }, message: "must be object" };
|
|
3827
4767
|
if (vErrors === null) {
|
|
3828
|
-
vErrors = [
|
|
4768
|
+
vErrors = [err13];
|
|
3829
4769
|
}
|
|
3830
4770
|
else {
|
|
3831
|
-
vErrors.push(
|
|
4771
|
+
vErrors.push(err13);
|
|
3832
4772
|
}
|
|
3833
4773
|
errors++;
|
|
3834
4774
|
}
|
|
3835
|
-
|
|
4775
|
+
validate64.errors = vErrors;
|
|
3836
4776
|
return errors === 0;
|
|
3837
4777
|
}
|
|
3838
|
-
|
|
3839
|
-
function
|
|
4778
|
+
validate64.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
|
|
4779
|
+
function validate63(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
|
|
3840
4780
|
let vErrors = null;
|
|
3841
4781
|
let errors = 0;
|
|
3842
|
-
const evaluated0 =
|
|
4782
|
+
const evaluated0 = validate63.evaluated;
|
|
3843
4783
|
if (evaluated0.dynamicProps) {
|
|
3844
4784
|
evaluated0.props = undefined;
|
|
3845
4785
|
}
|
|
@@ -3847,8 +4787,8 @@ function validate57(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
3847
4787
|
evaluated0.items = undefined;
|
|
3848
4788
|
}
|
|
3849
4789
|
if (Array.isArray(data)) {
|
|
3850
|
-
if (data.length >
|
|
3851
|
-
const err0 = { instancePath, schemaPath: "#/maxItems", keyword: "maxItems", params: { limit:
|
|
4790
|
+
if (data.length > 256) {
|
|
4791
|
+
const err0 = { instancePath, schemaPath: "#/maxItems", keyword: "maxItems", params: { limit: 256 }, message: "must NOT have more than 256 items" };
|
|
3852
4792
|
if (vErrors === null) {
|
|
3853
4793
|
vErrors = [err0];
|
|
3854
4794
|
}
|
|
@@ -3859,8 +4799,8 @@ function validate57(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
3859
4799
|
}
|
|
3860
4800
|
const len0 = data.length;
|
|
3861
4801
|
for (let i0 = 0; i0 < len0; i0++) {
|
|
3862
|
-
if (!(
|
|
3863
|
-
vErrors = vErrors === null ?
|
|
4802
|
+
if (!(validate64(data[i0], { instancePath: instancePath + "/" + i0, parentData: data, parentDataProperty: i0, rootData, dynamicAnchors }))) {
|
|
4803
|
+
vErrors = vErrors === null ? validate64.errors : vErrors.concat(validate64.errors);
|
|
3864
4804
|
errors = vErrors.length;
|
|
3865
4805
|
}
|
|
3866
4806
|
}
|
|
@@ -3875,15 +4815,15 @@ function validate57(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
3875
4815
|
}
|
|
3876
4816
|
errors++;
|
|
3877
4817
|
}
|
|
3878
|
-
|
|
4818
|
+
validate63.errors = vErrors;
|
|
3879
4819
|
return errors === 0;
|
|
3880
4820
|
}
|
|
3881
|
-
|
|
3882
|
-
const
|
|
3883
|
-
function
|
|
4821
|
+
validate63.evaluated = { "items": true, "dynamicProps": false, "dynamicItems": false };
|
|
4822
|
+
const pattern11 = new RegExp("\\S", "u");
|
|
4823
|
+
function validate58(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
|
|
3884
4824
|
let vErrors = null;
|
|
3885
4825
|
let errors = 0;
|
|
3886
|
-
const evaluated0 =
|
|
4826
|
+
const evaluated0 = validate58.evaluated;
|
|
3887
4827
|
if (evaluated0.dynamicProps) {
|
|
3888
4828
|
evaluated0.props = undefined;
|
|
3889
4829
|
}
|
|
@@ -4037,8 +4977,8 @@ function validate56(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
4037
4977
|
}
|
|
4038
4978
|
}
|
|
4039
4979
|
if (data.mediaLayout !== undefined) {
|
|
4040
|
-
if (!(
|
|
4041
|
-
vErrors = vErrors === null ?
|
|
4980
|
+
if (!(validate59(data.mediaLayout, { instancePath: instancePath + "/mediaLayout", parentData: data, parentDataProperty: "mediaLayout", rootData, dynamicAnchors }))) {
|
|
4981
|
+
vErrors = vErrors === null ? validate59.errors : vErrors.concat(validate59.errors);
|
|
4042
4982
|
errors = vErrors.length;
|
|
4043
4983
|
}
|
|
4044
4984
|
}
|
|
@@ -4227,14 +5167,24 @@ function validate56(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
4227
5167
|
}
|
|
4228
5168
|
errors++;
|
|
4229
5169
|
}
|
|
5170
|
+
if (data.visualFindings === undefined) {
|
|
5171
|
+
const err26 = { instancePath, schemaPath: "#/oneOf/3/required", keyword: "required", params: { missingProperty: "visualFindings" }, message: "must have required property '" + "visualFindings" + "'" };
|
|
5172
|
+
if (vErrors === null) {
|
|
5173
|
+
vErrors = [err26];
|
|
5174
|
+
}
|
|
5175
|
+
else {
|
|
5176
|
+
vErrors.push(err26);
|
|
5177
|
+
}
|
|
5178
|
+
errors++;
|
|
5179
|
+
}
|
|
4230
5180
|
for (const key3 in data) {
|
|
4231
|
-
if (!((key3 === "frame") || (key3 === "type"))) {
|
|
4232
|
-
const
|
|
5181
|
+
if (!(((key3 === "frame") || (key3 === "type")) || (key3 === "visualFindings"))) {
|
|
5182
|
+
const err27 = { instancePath, schemaPath: "#/oneOf/3/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key3 }, message: "must NOT have additional properties" };
|
|
4233
5183
|
if (vErrors === null) {
|
|
4234
|
-
vErrors = [
|
|
5184
|
+
vErrors = [err27];
|
|
4235
5185
|
}
|
|
4236
5186
|
else {
|
|
4237
|
-
vErrors.push(
|
|
5187
|
+
vErrors.push(err27);
|
|
4238
5188
|
}
|
|
4239
5189
|
errors++;
|
|
4240
5190
|
}
|
|
@@ -4242,33 +5192,33 @@ function validate56(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
4242
5192
|
if (data.frame !== undefined) {
|
|
4243
5193
|
let data6 = data.frame;
|
|
4244
5194
|
if (!(((typeof data6 == "number") && (!(data6 % 1) && !isNaN(data6))) && (isFinite(data6)))) {
|
|
4245
|
-
const
|
|
5195
|
+
const err28 = { instancePath: instancePath + "/frame", schemaPath: "#/$defs/WireFrame/type", keyword: "type", params: { type: "integer" }, message: "must be integer" };
|
|
4246
5196
|
if (vErrors === null) {
|
|
4247
|
-
vErrors = [
|
|
5197
|
+
vErrors = [err28];
|
|
4248
5198
|
}
|
|
4249
5199
|
else {
|
|
4250
|
-
vErrors.push(
|
|
5200
|
+
vErrors.push(err28);
|
|
4251
5201
|
}
|
|
4252
5202
|
errors++;
|
|
4253
5203
|
}
|
|
4254
5204
|
if ((typeof data6 == "number") && (isFinite(data6))) {
|
|
4255
5205
|
if (data6 > 9007199254740991 || isNaN(data6)) {
|
|
4256
|
-
const
|
|
5206
|
+
const err29 = { instancePath: instancePath + "/frame", schemaPath: "#/$defs/WireFrame/maximum", keyword: "maximum", params: { comparison: "<=", limit: 9007199254740991 }, message: "must be <= 9007199254740991" };
|
|
4257
5207
|
if (vErrors === null) {
|
|
4258
|
-
vErrors = [
|
|
5208
|
+
vErrors = [err29];
|
|
4259
5209
|
}
|
|
4260
5210
|
else {
|
|
4261
|
-
vErrors.push(
|
|
5211
|
+
vErrors.push(err29);
|
|
4262
5212
|
}
|
|
4263
5213
|
errors++;
|
|
4264
5214
|
}
|
|
4265
5215
|
if (data6 < 0 || isNaN(data6)) {
|
|
4266
|
-
const
|
|
5216
|
+
const err30 = { instancePath: instancePath + "/frame", schemaPath: "#/$defs/WireFrame/minimum", keyword: "minimum", params: { comparison: ">=", limit: 0 }, message: "must be >= 0" };
|
|
4267
5217
|
if (vErrors === null) {
|
|
4268
|
-
vErrors = [
|
|
5218
|
+
vErrors = [err30];
|
|
4269
5219
|
}
|
|
4270
5220
|
else {
|
|
4271
|
-
vErrors.push(
|
|
5221
|
+
vErrors.push(err30);
|
|
4272
5222
|
}
|
|
4273
5223
|
errors++;
|
|
4274
5224
|
}
|
|
@@ -4277,34 +5227,40 @@ function validate56(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
4277
5227
|
if (data.type !== undefined) {
|
|
4278
5228
|
let data7 = data.type;
|
|
4279
5229
|
if (typeof data7 !== "string") {
|
|
4280
|
-
const
|
|
5230
|
+
const err31 = { instancePath: instancePath + "/type", schemaPath: "#/oneOf/3/properties/type/type", keyword: "type", params: { type: "string" }, message: "must be string" };
|
|
4281
5231
|
if (vErrors === null) {
|
|
4282
|
-
vErrors = [
|
|
5232
|
+
vErrors = [err31];
|
|
4283
5233
|
}
|
|
4284
5234
|
else {
|
|
4285
|
-
vErrors.push(
|
|
5235
|
+
vErrors.push(err31);
|
|
4286
5236
|
}
|
|
4287
5237
|
errors++;
|
|
4288
5238
|
}
|
|
4289
5239
|
if ("frameReady" !== data7) {
|
|
4290
|
-
const
|
|
5240
|
+
const err32 = { instancePath: instancePath + "/type", schemaPath: "#/oneOf/3/properties/type/const", keyword: "const", params: { allowedValue: "frameReady" }, message: "must be equal to constant" };
|
|
4291
5241
|
if (vErrors === null) {
|
|
4292
|
-
vErrors = [
|
|
5242
|
+
vErrors = [err32];
|
|
4293
5243
|
}
|
|
4294
5244
|
else {
|
|
4295
|
-
vErrors.push(
|
|
5245
|
+
vErrors.push(err32);
|
|
4296
5246
|
}
|
|
4297
5247
|
errors++;
|
|
4298
5248
|
}
|
|
4299
5249
|
}
|
|
5250
|
+
if (data.visualFindings !== undefined) {
|
|
5251
|
+
if (!(validate63(data.visualFindings, { instancePath: instancePath + "/visualFindings", parentData: data, parentDataProperty: "visualFindings", rootData, dynamicAnchors }))) {
|
|
5252
|
+
vErrors = vErrors === null ? validate63.errors : vErrors.concat(validate63.errors);
|
|
5253
|
+
errors = vErrors.length;
|
|
5254
|
+
}
|
|
5255
|
+
}
|
|
4300
5256
|
}
|
|
4301
5257
|
else {
|
|
4302
|
-
const
|
|
5258
|
+
const err33 = { instancePath, schemaPath: "#/oneOf/3/type", keyword: "type", params: { type: "object" }, message: "must be object" };
|
|
4303
5259
|
if (vErrors === null) {
|
|
4304
|
-
vErrors = [
|
|
5260
|
+
vErrors = [err33];
|
|
4305
5261
|
}
|
|
4306
5262
|
else {
|
|
4307
|
-
vErrors.push(
|
|
5263
|
+
vErrors.push(err33);
|
|
4308
5264
|
}
|
|
4309
5265
|
errors++;
|
|
4310
5266
|
}
|
|
@@ -4321,113 +5277,113 @@ function validate56(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
4321
5277
|
props0 = true;
|
|
4322
5278
|
}
|
|
4323
5279
|
}
|
|
4324
|
-
const
|
|
5280
|
+
const _errs32 = errors;
|
|
4325
5281
|
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
4326
5282
|
if (data.type === undefined) {
|
|
4327
|
-
const
|
|
5283
|
+
const err34 = { instancePath, schemaPath: "#/oneOf/4/required", keyword: "required", params: { missingProperty: "type" }, message: "must have required property '" + "type" + "'" };
|
|
4328
5284
|
if (vErrors === null) {
|
|
4329
|
-
vErrors = [
|
|
5285
|
+
vErrors = [err34];
|
|
4330
5286
|
}
|
|
4331
5287
|
else {
|
|
4332
|
-
vErrors.push(
|
|
5288
|
+
vErrors.push(err34);
|
|
4333
5289
|
}
|
|
4334
5290
|
errors++;
|
|
4335
5291
|
}
|
|
4336
5292
|
if (data.code === undefined) {
|
|
4337
|
-
const
|
|
5293
|
+
const err35 = { instancePath, schemaPath: "#/oneOf/4/required", keyword: "required", params: { missingProperty: "code" }, message: "must have required property '" + "code" + "'" };
|
|
4338
5294
|
if (vErrors === null) {
|
|
4339
|
-
vErrors = [
|
|
5295
|
+
vErrors = [err35];
|
|
4340
5296
|
}
|
|
4341
5297
|
else {
|
|
4342
|
-
vErrors.push(
|
|
5298
|
+
vErrors.push(err35);
|
|
4343
5299
|
}
|
|
4344
5300
|
errors++;
|
|
4345
5301
|
}
|
|
4346
5302
|
if (data.message === undefined) {
|
|
4347
|
-
const
|
|
5303
|
+
const err36 = { instancePath, schemaPath: "#/oneOf/4/required", keyword: "required", params: { missingProperty: "message" }, message: "must have required property '" + "message" + "'" };
|
|
4348
5304
|
if (vErrors === null) {
|
|
4349
|
-
vErrors = [
|
|
5305
|
+
vErrors = [err36];
|
|
4350
5306
|
}
|
|
4351
5307
|
else {
|
|
4352
|
-
vErrors.push(
|
|
5308
|
+
vErrors.push(err36);
|
|
4353
5309
|
}
|
|
4354
5310
|
errors++;
|
|
4355
5311
|
}
|
|
4356
5312
|
if (data.pendingResources === undefined) {
|
|
4357
|
-
const
|
|
5313
|
+
const err37 = { instancePath, schemaPath: "#/oneOf/4/required", keyword: "required", params: { missingProperty: "pendingResources" }, message: "must have required property '" + "pendingResources" + "'" };
|
|
4358
5314
|
if (vErrors === null) {
|
|
4359
|
-
vErrors = [
|
|
5315
|
+
vErrors = [err37];
|
|
4360
5316
|
}
|
|
4361
5317
|
else {
|
|
4362
|
-
vErrors.push(
|
|
5318
|
+
vErrors.push(err37);
|
|
4363
5319
|
}
|
|
4364
5320
|
errors++;
|
|
4365
5321
|
}
|
|
4366
5322
|
for (const key4 in data) {
|
|
4367
5323
|
if (!((((key4 === "code") || (key4 === "message")) || (key4 === "pendingResources")) || (key4 === "type"))) {
|
|
4368
|
-
const
|
|
5324
|
+
const err38 = { instancePath, schemaPath: "#/oneOf/4/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key4 }, message: "must NOT have additional properties" };
|
|
4369
5325
|
if (vErrors === null) {
|
|
4370
|
-
vErrors = [
|
|
5326
|
+
vErrors = [err38];
|
|
4371
5327
|
}
|
|
4372
5328
|
else {
|
|
4373
|
-
vErrors.push(
|
|
5329
|
+
vErrors.push(err38);
|
|
4374
5330
|
}
|
|
4375
5331
|
errors++;
|
|
4376
5332
|
}
|
|
4377
5333
|
}
|
|
4378
5334
|
if (data.code !== undefined) {
|
|
4379
|
-
let
|
|
4380
|
-
const
|
|
5335
|
+
let data9 = data.code;
|
|
5336
|
+
const _errs37 = errors;
|
|
4381
5337
|
let valid10 = false;
|
|
4382
5338
|
let passing1 = null;
|
|
4383
|
-
const
|
|
4384
|
-
if (typeof
|
|
4385
|
-
const
|
|
5339
|
+
const _errs38 = errors;
|
|
5340
|
+
if (typeof data9 !== "string") {
|
|
5341
|
+
const err39 = { instancePath: instancePath + "/code", schemaPath: "#/$defs/ProtocolFailureCode/oneOf/0/type", keyword: "type", params: { type: "string" }, message: "must be string" };
|
|
4386
5342
|
if (vErrors === null) {
|
|
4387
|
-
vErrors = [
|
|
5343
|
+
vErrors = [err39];
|
|
4388
5344
|
}
|
|
4389
5345
|
else {
|
|
4390
|
-
vErrors.push(
|
|
5346
|
+
vErrors.push(err39);
|
|
4391
5347
|
}
|
|
4392
5348
|
errors++;
|
|
4393
5349
|
}
|
|
4394
|
-
if ("protocolMismatch" !==
|
|
4395
|
-
const
|
|
5350
|
+
if ("protocolMismatch" !== data9) {
|
|
5351
|
+
const err40 = { instancePath: instancePath + "/code", schemaPath: "#/$defs/ProtocolFailureCode/oneOf/0/const", keyword: "const", params: { allowedValue: "protocolMismatch" }, message: "must be equal to constant" };
|
|
4396
5352
|
if (vErrors === null) {
|
|
4397
|
-
vErrors = [
|
|
5353
|
+
vErrors = [err40];
|
|
4398
5354
|
}
|
|
4399
5355
|
else {
|
|
4400
|
-
vErrors.push(
|
|
5356
|
+
vErrors.push(err40);
|
|
4401
5357
|
}
|
|
4402
5358
|
errors++;
|
|
4403
5359
|
}
|
|
4404
|
-
var _valid1 =
|
|
5360
|
+
var _valid1 = _errs38 === errors;
|
|
4405
5361
|
if (_valid1) {
|
|
4406
5362
|
valid10 = true;
|
|
4407
5363
|
passing1 = 0;
|
|
4408
5364
|
}
|
|
4409
|
-
const
|
|
4410
|
-
if (typeof
|
|
4411
|
-
const
|
|
5365
|
+
const _errs40 = errors;
|
|
5366
|
+
if (typeof data9 !== "string") {
|
|
5367
|
+
const err41 = { instancePath: instancePath + "/code", schemaPath: "#/$defs/ProtocolFailureCode/oneOf/1/type", keyword: "type", params: { type: "string" }, message: "must be string" };
|
|
4412
5368
|
if (vErrors === null) {
|
|
4413
|
-
vErrors = [
|
|
5369
|
+
vErrors = [err41];
|
|
4414
5370
|
}
|
|
4415
5371
|
else {
|
|
4416
|
-
vErrors.push(
|
|
5372
|
+
vErrors.push(err41);
|
|
4417
5373
|
}
|
|
4418
5374
|
errors++;
|
|
4419
5375
|
}
|
|
4420
|
-
if ("invalidRequest" !==
|
|
4421
|
-
const
|
|
5376
|
+
if ("invalidRequest" !== data9) {
|
|
5377
|
+
const err42 = { instancePath: instancePath + "/code", schemaPath: "#/$defs/ProtocolFailureCode/oneOf/1/const", keyword: "const", params: { allowedValue: "invalidRequest" }, message: "must be equal to constant" };
|
|
4422
5378
|
if (vErrors === null) {
|
|
4423
|
-
vErrors = [
|
|
5379
|
+
vErrors = [err42];
|
|
4424
5380
|
}
|
|
4425
5381
|
else {
|
|
4426
|
-
vErrors.push(
|
|
5382
|
+
vErrors.push(err42);
|
|
4427
5383
|
}
|
|
4428
5384
|
errors++;
|
|
4429
5385
|
}
|
|
4430
|
-
var _valid1 =
|
|
5386
|
+
var _valid1 = _errs40 === errors;
|
|
4431
5387
|
if (_valid1 && valid10) {
|
|
4432
5388
|
valid10 = false;
|
|
4433
5389
|
passing1 = [passing1, 1];
|
|
@@ -4437,28 +5393,28 @@ function validate56(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
4437
5393
|
valid10 = true;
|
|
4438
5394
|
passing1 = 1;
|
|
4439
5395
|
}
|
|
4440
|
-
const
|
|
4441
|
-
if (typeof
|
|
4442
|
-
const
|
|
5396
|
+
const _errs42 = errors;
|
|
5397
|
+
if (typeof data9 !== "string") {
|
|
5398
|
+
const err43 = { instancePath: instancePath + "/code", schemaPath: "#/$defs/ProtocolFailureCode/oneOf/2/type", keyword: "type", params: { type: "string" }, message: "must be string" };
|
|
4443
5399
|
if (vErrors === null) {
|
|
4444
|
-
vErrors = [
|
|
5400
|
+
vErrors = [err43];
|
|
4445
5401
|
}
|
|
4446
5402
|
else {
|
|
4447
|
-
vErrors.push(
|
|
5403
|
+
vErrors.push(err43);
|
|
4448
5404
|
}
|
|
4449
5405
|
errors++;
|
|
4450
5406
|
}
|
|
4451
|
-
if ("loadFailed" !==
|
|
4452
|
-
const
|
|
5407
|
+
if ("loadFailed" !== data9) {
|
|
5408
|
+
const err44 = { instancePath: instancePath + "/code", schemaPath: "#/$defs/ProtocolFailureCode/oneOf/2/const", keyword: "const", params: { allowedValue: "loadFailed" }, message: "must be equal to constant" };
|
|
4453
5409
|
if (vErrors === null) {
|
|
4454
|
-
vErrors = [
|
|
5410
|
+
vErrors = [err44];
|
|
4455
5411
|
}
|
|
4456
5412
|
else {
|
|
4457
|
-
vErrors.push(
|
|
5413
|
+
vErrors.push(err44);
|
|
4458
5414
|
}
|
|
4459
5415
|
errors++;
|
|
4460
5416
|
}
|
|
4461
|
-
var _valid1 =
|
|
5417
|
+
var _valid1 = _errs42 === errors;
|
|
4462
5418
|
if (_valid1 && valid10) {
|
|
4463
5419
|
valid10 = false;
|
|
4464
5420
|
passing1 = [passing1, 2];
|
|
@@ -4468,28 +5424,28 @@ function validate56(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
4468
5424
|
valid10 = true;
|
|
4469
5425
|
passing1 = 2;
|
|
4470
5426
|
}
|
|
4471
|
-
const
|
|
4472
|
-
if (typeof
|
|
4473
|
-
const
|
|
5427
|
+
const _errs44 = errors;
|
|
5428
|
+
if (typeof data9 !== "string") {
|
|
5429
|
+
const err45 = { instancePath: instancePath + "/code", schemaPath: "#/$defs/ProtocolFailureCode/oneOf/3/type", keyword: "type", params: { type: "string" }, message: "must be string" };
|
|
4474
5430
|
if (vErrors === null) {
|
|
4475
|
-
vErrors = [
|
|
5431
|
+
vErrors = [err45];
|
|
4476
5432
|
}
|
|
4477
5433
|
else {
|
|
4478
|
-
vErrors.push(
|
|
5434
|
+
vErrors.push(err45);
|
|
4479
5435
|
}
|
|
4480
5436
|
errors++;
|
|
4481
5437
|
}
|
|
4482
|
-
if ("prepareFailed" !==
|
|
4483
|
-
const
|
|
5438
|
+
if ("prepareFailed" !== data9) {
|
|
5439
|
+
const err46 = { instancePath: instancePath + "/code", schemaPath: "#/$defs/ProtocolFailureCode/oneOf/3/const", keyword: "const", params: { allowedValue: "prepareFailed" }, message: "must be equal to constant" };
|
|
4484
5440
|
if (vErrors === null) {
|
|
4485
|
-
vErrors = [
|
|
5441
|
+
vErrors = [err46];
|
|
4486
5442
|
}
|
|
4487
5443
|
else {
|
|
4488
|
-
vErrors.push(
|
|
5444
|
+
vErrors.push(err46);
|
|
4489
5445
|
}
|
|
4490
5446
|
errors++;
|
|
4491
5447
|
}
|
|
4492
|
-
var _valid1 =
|
|
5448
|
+
var _valid1 = _errs44 === errors;
|
|
4493
5449
|
if (_valid1 && valid10) {
|
|
4494
5450
|
valid10 = false;
|
|
4495
5451
|
passing1 = [passing1, 3];
|
|
@@ -4499,28 +5455,28 @@ function validate56(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
4499
5455
|
valid10 = true;
|
|
4500
5456
|
passing1 = 3;
|
|
4501
5457
|
}
|
|
4502
|
-
const
|
|
4503
|
-
if (typeof
|
|
4504
|
-
const
|
|
5458
|
+
const _errs46 = errors;
|
|
5459
|
+
if (typeof data9 !== "string") {
|
|
5460
|
+
const err47 = { instancePath: instancePath + "/code", schemaPath: "#/$defs/ProtocolFailureCode/oneOf/4/type", keyword: "type", params: { type: "string" }, message: "must be string" };
|
|
4505
5461
|
if (vErrors === null) {
|
|
4506
|
-
vErrors = [
|
|
5462
|
+
vErrors = [err47];
|
|
4507
5463
|
}
|
|
4508
5464
|
else {
|
|
4509
|
-
vErrors.push(
|
|
5465
|
+
vErrors.push(err47);
|
|
4510
5466
|
}
|
|
4511
5467
|
errors++;
|
|
4512
5468
|
}
|
|
4513
|
-
if ("seekFailed" !==
|
|
4514
|
-
const
|
|
5469
|
+
if ("seekFailed" !== data9) {
|
|
5470
|
+
const err48 = { instancePath: instancePath + "/code", schemaPath: "#/$defs/ProtocolFailureCode/oneOf/4/const", keyword: "const", params: { allowedValue: "seekFailed" }, message: "must be equal to constant" };
|
|
4515
5471
|
if (vErrors === null) {
|
|
4516
|
-
vErrors = [
|
|
5472
|
+
vErrors = [err48];
|
|
4517
5473
|
}
|
|
4518
5474
|
else {
|
|
4519
|
-
vErrors.push(
|
|
5475
|
+
vErrors.push(err48);
|
|
4520
5476
|
}
|
|
4521
5477
|
errors++;
|
|
4522
5478
|
}
|
|
4523
|
-
var _valid1 =
|
|
5479
|
+
var _valid1 = _errs46 === errors;
|
|
4524
5480
|
if (_valid1 && valid10) {
|
|
4525
5481
|
valid10 = false;
|
|
4526
5482
|
passing1 = [passing1, 4];
|
|
@@ -4530,28 +5486,28 @@ function validate56(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
4530
5486
|
valid10 = true;
|
|
4531
5487
|
passing1 = 4;
|
|
4532
5488
|
}
|
|
4533
|
-
const
|
|
4534
|
-
if (typeof
|
|
4535
|
-
const
|
|
5489
|
+
const _errs48 = errors;
|
|
5490
|
+
if (typeof data9 !== "string") {
|
|
5491
|
+
const err49 = { instancePath: instancePath + "/code", schemaPath: "#/$defs/ProtocolFailureCode/oneOf/5/type", keyword: "type", params: { type: "string" }, message: "must be string" };
|
|
4536
5492
|
if (vErrors === null) {
|
|
4537
|
-
vErrors = [
|
|
5493
|
+
vErrors = [err49];
|
|
4538
5494
|
}
|
|
4539
5495
|
else {
|
|
4540
|
-
vErrors.push(
|
|
5496
|
+
vErrors.push(err49);
|
|
4541
5497
|
}
|
|
4542
5498
|
errors++;
|
|
4543
5499
|
}
|
|
4544
|
-
if ("confirmFailed" !==
|
|
4545
|
-
const
|
|
5500
|
+
if ("confirmFailed" !== data9) {
|
|
5501
|
+
const err50 = { instancePath: instancePath + "/code", schemaPath: "#/$defs/ProtocolFailureCode/oneOf/5/const", keyword: "const", params: { allowedValue: "confirmFailed" }, message: "must be equal to constant" };
|
|
4546
5502
|
if (vErrors === null) {
|
|
4547
|
-
vErrors = [
|
|
5503
|
+
vErrors = [err50];
|
|
4548
5504
|
}
|
|
4549
5505
|
else {
|
|
4550
|
-
vErrors.push(
|
|
5506
|
+
vErrors.push(err50);
|
|
4551
5507
|
}
|
|
4552
5508
|
errors++;
|
|
4553
5509
|
}
|
|
4554
|
-
var _valid1 =
|
|
5510
|
+
var _valid1 = _errs48 === errors;
|
|
4555
5511
|
if (_valid1 && valid10) {
|
|
4556
5512
|
valid10 = false;
|
|
4557
5513
|
passing1 = [passing1, 5];
|
|
@@ -4561,28 +5517,28 @@ function validate56(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
4561
5517
|
valid10 = true;
|
|
4562
5518
|
passing1 = 5;
|
|
4563
5519
|
}
|
|
4564
|
-
const
|
|
4565
|
-
if (typeof
|
|
4566
|
-
const
|
|
5520
|
+
const _errs50 = errors;
|
|
5521
|
+
if (typeof data9 !== "string") {
|
|
5522
|
+
const err51 = { instancePath: instancePath + "/code", schemaPath: "#/$defs/ProtocolFailureCode/oneOf/6/type", keyword: "type", params: { type: "string" }, message: "must be string" };
|
|
4567
5523
|
if (vErrors === null) {
|
|
4568
|
-
vErrors = [
|
|
5524
|
+
vErrors = [err51];
|
|
4569
5525
|
}
|
|
4570
5526
|
else {
|
|
4571
|
-
vErrors.push(
|
|
5527
|
+
vErrors.push(err51);
|
|
4572
5528
|
}
|
|
4573
5529
|
errors++;
|
|
4574
5530
|
}
|
|
4575
|
-
if ("readinessTimeout" !==
|
|
4576
|
-
const
|
|
5531
|
+
if ("readinessTimeout" !== data9) {
|
|
5532
|
+
const err52 = { instancePath: instancePath + "/code", schemaPath: "#/$defs/ProtocolFailureCode/oneOf/6/const", keyword: "const", params: { allowedValue: "readinessTimeout" }, message: "must be equal to constant" };
|
|
4577
5533
|
if (vErrors === null) {
|
|
4578
|
-
vErrors = [
|
|
5534
|
+
vErrors = [err52];
|
|
4579
5535
|
}
|
|
4580
5536
|
else {
|
|
4581
|
-
vErrors.push(
|
|
5537
|
+
vErrors.push(err52);
|
|
4582
5538
|
}
|
|
4583
5539
|
errors++;
|
|
4584
5540
|
}
|
|
4585
|
-
var _valid1 =
|
|
5541
|
+
var _valid1 = _errs50 === errors;
|
|
4586
5542
|
if (_valid1 && valid10) {
|
|
4587
5543
|
valid10 = false;
|
|
4588
5544
|
passing1 = [passing1, 6];
|
|
@@ -4592,28 +5548,28 @@ function validate56(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
4592
5548
|
valid10 = true;
|
|
4593
5549
|
passing1 = 6;
|
|
4594
5550
|
}
|
|
4595
|
-
const
|
|
4596
|
-
if (typeof
|
|
4597
|
-
const
|
|
5551
|
+
const _errs52 = errors;
|
|
5552
|
+
if (typeof data9 !== "string") {
|
|
5553
|
+
const err53 = { instancePath: instancePath + "/code", schemaPath: "#/$defs/ProtocolFailureCode/oneOf/7/type", keyword: "type", params: { type: "string" }, message: "must be string" };
|
|
4598
5554
|
if (vErrors === null) {
|
|
4599
|
-
vErrors = [
|
|
5555
|
+
vErrors = [err53];
|
|
4600
5556
|
}
|
|
4601
5557
|
else {
|
|
4602
|
-
vErrors.push(
|
|
5558
|
+
vErrors.push(err53);
|
|
4603
5559
|
}
|
|
4604
5560
|
errors++;
|
|
4605
5561
|
}
|
|
4606
|
-
if ("internal" !==
|
|
4607
|
-
const
|
|
5562
|
+
if ("internal" !== data9) {
|
|
5563
|
+
const err54 = { instancePath: instancePath + "/code", schemaPath: "#/$defs/ProtocolFailureCode/oneOf/7/const", keyword: "const", params: { allowedValue: "internal" }, message: "must be equal to constant" };
|
|
4608
5564
|
if (vErrors === null) {
|
|
4609
|
-
vErrors = [
|
|
5565
|
+
vErrors = [err54];
|
|
4610
5566
|
}
|
|
4611
5567
|
else {
|
|
4612
|
-
vErrors.push(
|
|
5568
|
+
vErrors.push(err54);
|
|
4613
5569
|
}
|
|
4614
5570
|
errors++;
|
|
4615
5571
|
}
|
|
4616
|
-
var _valid1 =
|
|
5572
|
+
var _valid1 = _errs52 === errors;
|
|
4617
5573
|
if (_valid1 && valid10) {
|
|
4618
5574
|
valid10 = false;
|
|
4619
5575
|
passing1 = [passing1, 7];
|
|
@@ -4631,20 +5587,20 @@ function validate56(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
4631
5587
|
}
|
|
4632
5588
|
}
|
|
4633
5589
|
if (!valid10) {
|
|
4634
|
-
const
|
|
5590
|
+
const err55 = { instancePath: instancePath + "/code", schemaPath: "#/$defs/ProtocolFailureCode/oneOf", keyword: "oneOf", params: { passingSchemas: passing1 }, message: "must match exactly one schema in oneOf" };
|
|
4635
5591
|
if (vErrors === null) {
|
|
4636
|
-
vErrors = [
|
|
5592
|
+
vErrors = [err55];
|
|
4637
5593
|
}
|
|
4638
5594
|
else {
|
|
4639
|
-
vErrors.push(
|
|
5595
|
+
vErrors.push(err55);
|
|
4640
5596
|
}
|
|
4641
5597
|
errors++;
|
|
4642
5598
|
}
|
|
4643
5599
|
else {
|
|
4644
|
-
errors =
|
|
5600
|
+
errors = _errs37;
|
|
4645
5601
|
if (vErrors !== null) {
|
|
4646
|
-
if (
|
|
4647
|
-
vErrors.length =
|
|
5602
|
+
if (_errs37) {
|
|
5603
|
+
vErrors.length = _errs37;
|
|
4648
5604
|
}
|
|
4649
5605
|
else {
|
|
4650
5606
|
vErrors = null;
|
|
@@ -4653,136 +5609,136 @@ function validate56(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
4653
5609
|
}
|
|
4654
5610
|
}
|
|
4655
5611
|
if (data.message !== undefined) {
|
|
4656
|
-
let
|
|
4657
|
-
if (typeof
|
|
4658
|
-
if (func2(
|
|
4659
|
-
const
|
|
5612
|
+
let data10 = data.message;
|
|
5613
|
+
if (typeof data10 === "string") {
|
|
5614
|
+
if (func2(data10) > 4096) {
|
|
5615
|
+
const err56 = { instancePath: instancePath + "/message", schemaPath: "#/oneOf/4/properties/message/maxLength", keyword: "maxLength", params: { limit: 4096 }, message: "must NOT have more than 4096 characters" };
|
|
4660
5616
|
if (vErrors === null) {
|
|
4661
|
-
vErrors = [
|
|
5617
|
+
vErrors = [err56];
|
|
4662
5618
|
}
|
|
4663
5619
|
else {
|
|
4664
|
-
vErrors.push(
|
|
5620
|
+
vErrors.push(err56);
|
|
4665
5621
|
}
|
|
4666
5622
|
errors++;
|
|
4667
5623
|
}
|
|
4668
|
-
if (!
|
|
4669
|
-
const
|
|
5624
|
+
if (!pattern11.test(data10)) {
|
|
5625
|
+
const err57 = { instancePath: instancePath + "/message", schemaPath: "#/oneOf/4/properties/message/pattern", keyword: "pattern", params: { pattern: "\\S" }, message: "must match pattern \"" + "\\S" + "\"" };
|
|
4670
5626
|
if (vErrors === null) {
|
|
4671
|
-
vErrors = [
|
|
5627
|
+
vErrors = [err57];
|
|
4672
5628
|
}
|
|
4673
5629
|
else {
|
|
4674
|
-
vErrors.push(
|
|
5630
|
+
vErrors.push(err57);
|
|
4675
5631
|
}
|
|
4676
5632
|
errors++;
|
|
4677
5633
|
}
|
|
4678
5634
|
}
|
|
4679
5635
|
else {
|
|
4680
|
-
const
|
|
5636
|
+
const err58 = { instancePath: instancePath + "/message", schemaPath: "#/oneOf/4/properties/message/type", keyword: "type", params: { type: "string" }, message: "must be string" };
|
|
4681
5637
|
if (vErrors === null) {
|
|
4682
|
-
vErrors = [
|
|
5638
|
+
vErrors = [err58];
|
|
4683
5639
|
}
|
|
4684
5640
|
else {
|
|
4685
|
-
vErrors.push(
|
|
5641
|
+
vErrors.push(err58);
|
|
4686
5642
|
}
|
|
4687
5643
|
errors++;
|
|
4688
5644
|
}
|
|
4689
5645
|
}
|
|
4690
5646
|
if (data.pendingResources !== undefined) {
|
|
4691
|
-
let
|
|
4692
|
-
if (Array.isArray(
|
|
4693
|
-
if (
|
|
4694
|
-
const
|
|
5647
|
+
let data11 = data.pendingResources;
|
|
5648
|
+
if (Array.isArray(data11)) {
|
|
5649
|
+
if (data11.length > 256) {
|
|
5650
|
+
const err59 = { instancePath: instancePath + "/pendingResources", schemaPath: "#/oneOf/4/properties/pendingResources/maxItems", keyword: "maxItems", params: { limit: 256 }, message: "must NOT have more than 256 items" };
|
|
4695
5651
|
if (vErrors === null) {
|
|
4696
|
-
vErrors = [
|
|
5652
|
+
vErrors = [err59];
|
|
4697
5653
|
}
|
|
4698
5654
|
else {
|
|
4699
|
-
vErrors.push(
|
|
5655
|
+
vErrors.push(err59);
|
|
4700
5656
|
}
|
|
4701
5657
|
errors++;
|
|
4702
5658
|
}
|
|
4703
|
-
const len0 =
|
|
5659
|
+
const len0 = data11.length;
|
|
4704
5660
|
for (let i0 = 0; i0 < len0; i0++) {
|
|
4705
|
-
let
|
|
4706
|
-
if (typeof
|
|
4707
|
-
if (func2(
|
|
4708
|
-
const
|
|
5661
|
+
let data12 = data11[i0];
|
|
5662
|
+
if (typeof data12 === "string") {
|
|
5663
|
+
if (func2(data12) > 1024) {
|
|
5664
|
+
const err60 = { instancePath: instancePath + "/pendingResources/" + i0, schemaPath: "#/oneOf/4/properties/pendingResources/items/maxLength", keyword: "maxLength", params: { limit: 1024 }, message: "must NOT have more than 1024 characters" };
|
|
4709
5665
|
if (vErrors === null) {
|
|
4710
|
-
vErrors = [
|
|
5666
|
+
vErrors = [err60];
|
|
4711
5667
|
}
|
|
4712
5668
|
else {
|
|
4713
|
-
vErrors.push(
|
|
5669
|
+
vErrors.push(err60);
|
|
4714
5670
|
}
|
|
4715
5671
|
errors++;
|
|
4716
5672
|
}
|
|
4717
|
-
if (!
|
|
4718
|
-
const
|
|
5673
|
+
if (!pattern11.test(data12)) {
|
|
5674
|
+
const err61 = { instancePath: instancePath + "/pendingResources/" + i0, schemaPath: "#/oneOf/4/properties/pendingResources/items/pattern", keyword: "pattern", params: { pattern: "\\S" }, message: "must match pattern \"" + "\\S" + "\"" };
|
|
4719
5675
|
if (vErrors === null) {
|
|
4720
|
-
vErrors = [
|
|
5676
|
+
vErrors = [err61];
|
|
4721
5677
|
}
|
|
4722
5678
|
else {
|
|
4723
|
-
vErrors.push(
|
|
5679
|
+
vErrors.push(err61);
|
|
4724
5680
|
}
|
|
4725
5681
|
errors++;
|
|
4726
5682
|
}
|
|
4727
5683
|
}
|
|
4728
5684
|
else {
|
|
4729
|
-
const
|
|
5685
|
+
const err62 = { instancePath: instancePath + "/pendingResources/" + i0, schemaPath: "#/oneOf/4/properties/pendingResources/items/type", keyword: "type", params: { type: "string" }, message: "must be string" };
|
|
4730
5686
|
if (vErrors === null) {
|
|
4731
|
-
vErrors = [
|
|
5687
|
+
vErrors = [err62];
|
|
4732
5688
|
}
|
|
4733
5689
|
else {
|
|
4734
|
-
vErrors.push(
|
|
5690
|
+
vErrors.push(err62);
|
|
4735
5691
|
}
|
|
4736
5692
|
errors++;
|
|
4737
5693
|
}
|
|
4738
5694
|
}
|
|
4739
5695
|
}
|
|
4740
5696
|
else {
|
|
4741
|
-
const
|
|
5697
|
+
const err63 = { instancePath: instancePath + "/pendingResources", schemaPath: "#/oneOf/4/properties/pendingResources/type", keyword: "type", params: { type: "array" }, message: "must be array" };
|
|
4742
5698
|
if (vErrors === null) {
|
|
4743
|
-
vErrors = [
|
|
5699
|
+
vErrors = [err63];
|
|
4744
5700
|
}
|
|
4745
5701
|
else {
|
|
4746
|
-
vErrors.push(
|
|
5702
|
+
vErrors.push(err63);
|
|
4747
5703
|
}
|
|
4748
5704
|
errors++;
|
|
4749
5705
|
}
|
|
4750
5706
|
}
|
|
4751
5707
|
if (data.type !== undefined) {
|
|
4752
|
-
let
|
|
4753
|
-
if (typeof
|
|
4754
|
-
const
|
|
5708
|
+
let data13 = data.type;
|
|
5709
|
+
if (typeof data13 !== "string") {
|
|
5710
|
+
const err64 = { instancePath: instancePath + "/type", schemaPath: "#/oneOf/4/properties/type/type", keyword: "type", params: { type: "string" }, message: "must be string" };
|
|
4755
5711
|
if (vErrors === null) {
|
|
4756
|
-
vErrors = [
|
|
5712
|
+
vErrors = [err64];
|
|
4757
5713
|
}
|
|
4758
5714
|
else {
|
|
4759
|
-
vErrors.push(
|
|
5715
|
+
vErrors.push(err64);
|
|
4760
5716
|
}
|
|
4761
5717
|
errors++;
|
|
4762
5718
|
}
|
|
4763
|
-
if ("failed" !==
|
|
4764
|
-
const
|
|
5719
|
+
if ("failed" !== data13) {
|
|
5720
|
+
const err65 = { instancePath: instancePath + "/type", schemaPath: "#/oneOf/4/properties/type/const", keyword: "const", params: { allowedValue: "failed" }, message: "must be equal to constant" };
|
|
4765
5721
|
if (vErrors === null) {
|
|
4766
|
-
vErrors = [
|
|
5722
|
+
vErrors = [err65];
|
|
4767
5723
|
}
|
|
4768
5724
|
else {
|
|
4769
|
-
vErrors.push(
|
|
5725
|
+
vErrors.push(err65);
|
|
4770
5726
|
}
|
|
4771
5727
|
errors++;
|
|
4772
5728
|
}
|
|
4773
5729
|
}
|
|
4774
5730
|
}
|
|
4775
5731
|
else {
|
|
4776
|
-
const
|
|
5732
|
+
const err66 = { instancePath, schemaPath: "#/oneOf/4/type", keyword: "type", params: { type: "object" }, message: "must be object" };
|
|
4777
5733
|
if (vErrors === null) {
|
|
4778
|
-
vErrors = [
|
|
5734
|
+
vErrors = [err66];
|
|
4779
5735
|
}
|
|
4780
5736
|
else {
|
|
4781
|
-
vErrors.push(
|
|
5737
|
+
vErrors.push(err66);
|
|
4782
5738
|
}
|
|
4783
5739
|
errors++;
|
|
4784
5740
|
}
|
|
4785
|
-
var _valid0 =
|
|
5741
|
+
var _valid0 = _errs32 === errors;
|
|
4786
5742
|
if (_valid0 && valid0) {
|
|
4787
5743
|
valid0 = false;
|
|
4788
5744
|
passing0 = [passing0, 4];
|
|
@@ -4795,65 +5751,65 @@ function validate56(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
4795
5751
|
props0 = true;
|
|
4796
5752
|
}
|
|
4797
5753
|
}
|
|
4798
|
-
const
|
|
5754
|
+
const _errs62 = errors;
|
|
4799
5755
|
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
4800
5756
|
if (data.type === undefined) {
|
|
4801
|
-
const
|
|
5757
|
+
const err67 = { instancePath, schemaPath: "#/oneOf/5/required", keyword: "required", params: { missingProperty: "type" }, message: "must have required property '" + "type" + "'" };
|
|
4802
5758
|
if (vErrors === null) {
|
|
4803
|
-
vErrors = [
|
|
5759
|
+
vErrors = [err67];
|
|
4804
5760
|
}
|
|
4805
5761
|
else {
|
|
4806
|
-
vErrors.push(
|
|
5762
|
+
vErrors.push(err67);
|
|
4807
5763
|
}
|
|
4808
5764
|
errors++;
|
|
4809
5765
|
}
|
|
4810
5766
|
for (const key5 in data) {
|
|
4811
5767
|
if (!(key5 === "type")) {
|
|
4812
|
-
const
|
|
5768
|
+
const err68 = { instancePath, schemaPath: "#/oneOf/5/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key5 }, message: "must NOT have additional properties" };
|
|
4813
5769
|
if (vErrors === null) {
|
|
4814
|
-
vErrors = [
|
|
5770
|
+
vErrors = [err68];
|
|
4815
5771
|
}
|
|
4816
5772
|
else {
|
|
4817
|
-
vErrors.push(
|
|
5773
|
+
vErrors.push(err68);
|
|
4818
5774
|
}
|
|
4819
5775
|
errors++;
|
|
4820
5776
|
}
|
|
4821
5777
|
}
|
|
4822
5778
|
if (data.type !== undefined) {
|
|
4823
|
-
let
|
|
4824
|
-
if (typeof
|
|
4825
|
-
const
|
|
5779
|
+
let data14 = data.type;
|
|
5780
|
+
if (typeof data14 !== "string") {
|
|
5781
|
+
const err69 = { instancePath: instancePath + "/type", schemaPath: "#/oneOf/5/properties/type/type", keyword: "type", params: { type: "string" }, message: "must be string" };
|
|
4826
5782
|
if (vErrors === null) {
|
|
4827
|
-
vErrors = [
|
|
5783
|
+
vErrors = [err69];
|
|
4828
5784
|
}
|
|
4829
5785
|
else {
|
|
4830
|
-
vErrors.push(
|
|
5786
|
+
vErrors.push(err69);
|
|
4831
5787
|
}
|
|
4832
5788
|
errors++;
|
|
4833
5789
|
}
|
|
4834
|
-
if ("disposed" !==
|
|
4835
|
-
const
|
|
5790
|
+
if ("disposed" !== data14) {
|
|
5791
|
+
const err70 = { instancePath: instancePath + "/type", schemaPath: "#/oneOf/5/properties/type/const", keyword: "const", params: { allowedValue: "disposed" }, message: "must be equal to constant" };
|
|
4836
5792
|
if (vErrors === null) {
|
|
4837
|
-
vErrors = [
|
|
5793
|
+
vErrors = [err70];
|
|
4838
5794
|
}
|
|
4839
5795
|
else {
|
|
4840
|
-
vErrors.push(
|
|
5796
|
+
vErrors.push(err70);
|
|
4841
5797
|
}
|
|
4842
5798
|
errors++;
|
|
4843
5799
|
}
|
|
4844
5800
|
}
|
|
4845
5801
|
}
|
|
4846
5802
|
else {
|
|
4847
|
-
const
|
|
5803
|
+
const err71 = { instancePath, schemaPath: "#/oneOf/5/type", keyword: "type", params: { type: "object" }, message: "must be object" };
|
|
4848
5804
|
if (vErrors === null) {
|
|
4849
|
-
vErrors = [
|
|
5805
|
+
vErrors = [err71];
|
|
4850
5806
|
}
|
|
4851
5807
|
else {
|
|
4852
|
-
vErrors.push(
|
|
5808
|
+
vErrors.push(err71);
|
|
4853
5809
|
}
|
|
4854
5810
|
errors++;
|
|
4855
5811
|
}
|
|
4856
|
-
var _valid0 =
|
|
5812
|
+
var _valid0 = _errs62 === errors;
|
|
4857
5813
|
if (_valid0 && valid0) {
|
|
4858
5814
|
valid0 = false;
|
|
4859
5815
|
passing0 = [passing0, 5];
|
|
@@ -4872,12 +5828,12 @@ function validate56(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
4872
5828
|
}
|
|
4873
5829
|
}
|
|
4874
5830
|
if (!valid0) {
|
|
4875
|
-
const
|
|
5831
|
+
const err72 = { instancePath, schemaPath: "#/oneOf", keyword: "oneOf", params: { passingSchemas: passing0 }, message: "must match exactly one schema in oneOf" };
|
|
4876
5832
|
if (vErrors === null) {
|
|
4877
|
-
vErrors = [
|
|
5833
|
+
vErrors = [err72];
|
|
4878
5834
|
}
|
|
4879
5835
|
else {
|
|
4880
|
-
vErrors.push(
|
|
5836
|
+
vErrors.push(err72);
|
|
4881
5837
|
}
|
|
4882
5838
|
errors++;
|
|
4883
5839
|
}
|
|
@@ -4892,16 +5848,16 @@ function validate56(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
4892
5848
|
}
|
|
4893
5849
|
}
|
|
4894
5850
|
}
|
|
4895
|
-
|
|
5851
|
+
validate58.errors = vErrors;
|
|
4896
5852
|
evaluated0.props = props0;
|
|
4897
5853
|
return errors === 0;
|
|
4898
5854
|
}
|
|
4899
|
-
|
|
4900
|
-
function
|
|
4901
|
-
/*# sourceURL="https://onmark.dev/schemas/browser-response-
|
|
5855
|
+
validate58.evaluated = { "dynamicProps": true, "dynamicItems": false };
|
|
5856
|
+
function validate57(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
|
|
5857
|
+
/*# sourceURL="https://onmark.dev/schemas/browser-response-v9.schema.json" */ ;
|
|
4902
5858
|
let vErrors = null;
|
|
4903
5859
|
let errors = 0;
|
|
4904
|
-
const evaluated0 =
|
|
5860
|
+
const evaluated0 = validate57.evaluated;
|
|
4905
5861
|
if (evaluated0.dynamicProps) {
|
|
4906
5862
|
evaluated0.props = undefined;
|
|
4907
5863
|
}
|
|
@@ -4952,8 +5908,8 @@ function validate55(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
4952
5908
|
}
|
|
4953
5909
|
}
|
|
4954
5910
|
if (data.event !== undefined) {
|
|
4955
|
-
if (!(
|
|
4956
|
-
vErrors = vErrors === null ?
|
|
5911
|
+
if (!(validate58(data.event, { instancePath: instancePath + "/event", parentData: data, parentDataProperty: "event", rootData, dynamicAnchors }))) {
|
|
5912
|
+
vErrors = vErrors === null ? validate58.errors : vErrors.concat(validate58.errors);
|
|
4957
5913
|
errors = vErrors.length;
|
|
4958
5914
|
}
|
|
4959
5915
|
}
|
|
@@ -5004,8 +5960,8 @@ function validate55(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
5004
5960
|
}
|
|
5005
5961
|
errors++;
|
|
5006
5962
|
}
|
|
5007
|
-
if (
|
|
5008
|
-
const err8 = { instancePath: instancePath + "/version", schemaPath: "#/$defs/ProtocolVersion/const", keyword: "const", params: { allowedValue:
|
|
5963
|
+
if (9 !== data2) {
|
|
5964
|
+
const err8 = { instancePath: instancePath + "/version", schemaPath: "#/$defs/ProtocolVersion/const", keyword: "const", params: { allowedValue: 9 }, message: "must be equal to constant" };
|
|
5009
5965
|
if (vErrors === null) {
|
|
5010
5966
|
vErrors = [err8];
|
|
5011
5967
|
}
|
|
@@ -5048,7 +6004,7 @@ function validate55(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
5048
6004
|
}
|
|
5049
6005
|
errors++;
|
|
5050
6006
|
}
|
|
5051
|
-
|
|
6007
|
+
validate57.errors = vErrors;
|
|
5052
6008
|
return errors === 0;
|
|
5053
6009
|
}
|
|
5054
|
-
|
|
6010
|
+
validate57.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
|