@onmark/cli 0.3.0 → 0.5.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/onmark-release.json +94 -64
- package/package.json +4 -4
- package/packages/authoring/dist/src/frame-motion.d.ts +10 -2
- package/packages/authoring/dist/src/frame-motion.js +29 -6
- package/packages/authoring/dist/src/index.d.ts +2 -2
- package/packages/authoring/dist/src/motion.d.ts +16 -4
- package/packages/authoring/dist/src/presentation.js +160 -6
- package/packages/authoring/dist/src/types.d.ts +1 -1
- package/packages/bundler/dist/src/authored_html.d.ts +19 -7
- package/packages/bundler/dist/src/authored_html.js +109 -21
- package/packages/bundler/dist/src/bundle_projection.d.ts +9 -0
- package/packages/bundler/dist/src/bundle_projection.js +66 -0
- package/packages/bundler/dist/src/command.js +38 -14
- package/packages/bundler/dist/src/generated/bundle-manifest.d.ts +4 -5
- package/packages/bundler/dist/src/generated/bundle-manifest.js +1 -0
- package/packages/bundler/dist/src/generated/bundle-projection-validator.d.ts +7 -0
- package/packages/bundler/dist/src/generated/bundle-projection-validator.js +432 -0
- package/packages/bundler/dist/src/generated/bundle-projection.d.ts +25 -0
- package/packages/bundler/dist/src/generated/bundle-projection.js +2 -0
- package/packages/bundler/dist/src/index.d.ts +1 -1
- package/packages/bundler/dist/src/presentation.d.ts +14 -7
- package/packages/bundler/dist/src/presentation.js +71 -30
- package/packages/motion-gsap/dist/src/index.d.ts +10 -2
- package/packages/motion-gsap/dist/src/index.js +27 -5
- package/packages/runtime/dist/src/generated/browser-request.d.ts +19 -2
- package/packages/runtime/dist/src/generated/browser-response.d.ts +46 -1
- package/packages/runtime/dist/src/generated/bundle-layout.d.ts +1 -1
- package/packages/runtime/dist/src/generated/bundle-layout.js +1 -0
- package/packages/runtime/dist/src/generated/runtime-contract.d.ts +4 -0
- package/packages/runtime/dist/src/generated/runtime-contract.js +4 -0
- package/packages/runtime/dist/src/generated/validators.d.ts +2 -2
- package/packages/runtime/dist/src/generated/validators.js +1482 -572
- package/packages/runtime/dist/src/index.d.ts +4 -4
- package/packages/runtime/dist/src/index.js +1 -1
- package/packages/runtime/dist/src/presentation.d.ts +18 -3
- package/packages/runtime/dist/src/presentation.js +112 -7
- package/packages/runtime/dist/src/session.d.ts +7 -3
- package/packages/runtime/dist/src/session.js +77 -20
- package/packages/runtime/dist/src/types.d.ts +3 -2
|
@@ -1,15 +1,16 @@
|
|
|
1
1
|
// Generated by `cargo xtask schema`; do not edit.
|
|
2
2
|
"use strict";
|
|
3
3
|
export const validateBrowserRequest = validate20;
|
|
4
|
-
const schema31 = { "$defs": { "BrowserCommand": { "description": "Closed commands understood by the browser runtime.", "oneOf": [{ "additionalProperties": false, "description": "Install one immutable browser plan.", "properties": { "plan": { "$ref": "#/$defs/BrowserPlan", "description": "Solved frame facts consumed by the runtime clock." }, "type": { "const": "load", "type": "string" } }, "required": ["type", "plan"], "type": "object" }, { "additionalProperties": false, "description": "Stabilize resources at the evaluation start frame.", "properties": { "evaluationStart": { "$ref": "#/$defs/WireFrame", "description": "First frame that may be evaluated by this unit." }, "type": { "const": "prepare", "type": "string" } }, "required": ["type", "evaluationStart"], "type": "object" }, { "additionalProperties": false, "description": "Evaluate one exact absolute frame.", "properties": { "frame": { "$ref": "#/$defs/WireFrame", "description": "Frame selected by the native executor." }, "type": { "const": "seek", "type": "string" } }, "required": ["type", "frame"], "type": "object" }, { "additionalProperties": false, "description": "Confirm staged media reached the compositor before accepting capture.", "properties": { "frame": { "$ref": "#/$defs/WireFrame", "description": "Frame whose staged media must be compositor-confirmed." }, "type": { "const": "confirm", "type": "string" } }, "required": ["type", "frame"], "type": "object" }, { "additionalProperties": false, "description": "Release page-owned resources for this session.", "properties": { "type": { "const": "dispose", "type": "string" } }, "required": ["type"], "type": "object" }] }, "BrowserNode": { "additionalProperties": false, "description": "Browser-facing identity retained from one Timeline element.", "properties": { "authoredId": { "type": ["string", "null"] }, "nodeId": { "$ref": "#/$defs/BrowserNodeId" } }, "required": ["nodeId"], "type": "object" }, "BrowserNodeId": { "description": "Browser identity for one Timeline element or imported caption.\n\nIDs form dense renderable-semantic preorder within one Browser Plan.\n\nAuthored IDs, rather than this unit-local key, retain cross-projection\nsemantic identity.", "format": "uint32", "maximum": 4294967295, "minimum": 0, "type": "integer" }, "BrowserOverlay": { "additionalProperties": false, "description": "One solved overlay placement consumed by the browser presentation.", "properties": { "interval": { "$ref": "#/$defs/WireInterval" }, "kind": { "$ref": "#/$defs/BrowserOverlayKind" }, "node": { "$ref": "#/$defs/BrowserNode" }, "shotId": { "anyOf": [{ "$ref": "#/$defs/BrowserNodeId" }, { "type": "null" }] }, "text": { "maxLength": 65536, "type": "string" } }, "required": ["node", "kind", "text", "interval"], "type": "object" }, "BrowserOverlayKind": { "description": "Closed overlay roles understood by the browser presentation.", "oneOf": [{ "const": "title", "description": "Authored title content.", "type": "string" }, { "const": "callToAction", "description": "Authored call-to-action content.", "type": "string" }, { "const": "caption", "description": "Imported caption text.", "type": "string" }] }, "BrowserPlan": { "additionalProperties": false, "description": "Timeline facts consumed by the browser clock and presentation.", "properties": { "evaluation": { "$ref": "#/$defs/WireInterval" }, "film": { "$ref": "#/$defs/BrowserNode" }, "frameRate": { "$ref": "#/$defs/WireFrameRate" }, "output": { "$ref": "#/$defs/WireInterval" }, "overlays": { "items": { "$ref": "#/$defs/BrowserOverlay" }, "maxItems": 10000, "type": "array" }, "scenes": { "items": { "$ref": "#/$defs/BrowserScene" }, "maxItems": 10000, "type": "array" }, "shots": { "items": { "$ref": "#/$defs/BrowserShot" }, "maxItems": 10000, "type": "array" }, "timeline": { "$ref": "#/$defs/WireInterval" }, "timelineVersion": { "const": 2, "format": "uint16", "maximum": 65535, "minimum": 0, "type": "integer" }, "videos": { "items": { "$ref": "#/$defs/BrowserVideo" }, "maxItems": 10000, "type": "array" } }, "required": ["timelineVersion", "frameRate", "timeline", "evaluation", "output", "film", "scenes", "shots", "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" }, "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": 3, "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-v3.schema.json", "$schema": "https://json-schema.org/draft/2020-12/schema", "additionalProperties": false, "description": "One versioned command sent from the native executor to the browser.", "properties": { "command": { "$ref": "#/$defs/BrowserCommand" }, "requestId": { "$ref": "#/$defs/RequestId" }, "version": { "$ref": "#/$defs/ProtocolVersion" } }, "required": ["version", "requestId", "command"], "title": "BrowserRequest", "type": "object", "x-onmark-runtime-host": "__ONMARK_RUNTIME__" };
|
|
5
|
-
const
|
|
6
|
-
const
|
|
7
|
-
const schema32 = { "description": "Closed commands understood by the browser runtime.", "oneOf": [{ "additionalProperties": false, "description": "Install one immutable browser plan.", "properties": { "plan": { "$ref": "#/$defs/BrowserPlan", "description": "Solved frame facts consumed by the runtime clock." }, "type": { "const": "load", "type": "string" } }, "required": ["type", "plan"], "type": "object" }, { "additionalProperties": false, "description": "Stabilize resources at the evaluation start frame.", "properties": { "evaluationStart": { "$ref": "#/$defs/WireFrame", "description": "First frame that may be evaluated by this unit." }, "type": { "const": "prepare", "type": "string" } }, "required": ["type", "evaluationStart"], "type": "object" }, { "additionalProperties": false, "description": "Evaluate one exact absolute frame.", "properties": { "frame": { "$ref": "#/$defs/WireFrame", "description": "Frame selected by the native executor." }, "type": { "const": "seek", "type": "string" } }, "required": ["type", "frame"], "type": "object" }, { "additionalProperties": false, "description": "Confirm staged media reached the compositor before accepting capture.", "properties": { "frame": { "$ref": "#/$defs/WireFrame", "description": "Frame whose staged media must be compositor-confirmed." }, "type": { "const": "confirm", "type": "string" } }, "required": ["type", "frame"], "type": "object" }, { "additionalProperties": false, "description": "Release page-owned resources for this session.", "properties": { "type": { "const": "dispose", "type": "string" } }, "required": ["type"], "type": "object" }] };
|
|
8
|
-
const
|
|
9
|
-
const
|
|
10
|
-
const
|
|
4
|
+
const schema31 = { "$defs": { "BrowserCommand": { "description": "Closed commands understood by the browser runtime.", "oneOf": [{ "additionalProperties": false, "description": "Install one immutable browser plan.", "properties": { "mediaMode": { "$ref": "#/$defs/BrowserMediaMode", "description": "Browser responsibility for primary-media elements." }, "plan": { "$ref": "#/$defs/BrowserPlan", "description": "Solved frame facts consumed by the runtime clock." }, "type": { "const": "load", "type": "string" } }, "required": ["type", "plan", "mediaMode"], "type": "object" }, { "additionalProperties": false, "description": "Stabilize resources at the evaluation start frame.", "properties": { "evaluationStart": { "$ref": "#/$defs/WireFrame", "description": "First frame that may be evaluated by this unit." }, "type": { "const": "prepare", "type": "string" } }, "required": ["type", "evaluationStart"], "type": "object" }, { "additionalProperties": false, "description": "Evaluate one exact absolute frame.", "properties": { "frame": { "$ref": "#/$defs/WireFrame", "description": "Frame selected by the native executor." }, "type": { "const": "seek", "type": "string" } }, "required": ["type", "frame"], "type": "object" }, { "additionalProperties": false, "description": "Confirm staged media reached the compositor before accepting capture.", "properties": { "frame": { "$ref": "#/$defs/WireFrame", "description": "Frame whose staged media must be compositor-confirmed." }, "type": { "const": "confirm", "type": "string" } }, "required": ["type", "frame"], "type": "object" }, { "additionalProperties": false, "description": "Release page-owned resources for this session.", "properties": { "type": { "const": "dispose", "type": "string" } }, "required": ["type"], "type": "object" }] }, "BrowserMediaMode": { "description": "Browser responsibility for video elements in one loaded plan.", "oneOf": [{ "const": "decoded", "description": "Chromium decodes and composites every active video placement.", "type": "string" }, { "const": "omitted", "description": "Chromium omits video elements from its captured pixels.", "type": "string" }, { "const": "layoutOnly", "description": "Chromium omits video pixels but returns static layout evidence.", "type": "string" }] }, "BrowserNode": { "additionalProperties": false, "description": "Browser-facing identity retained from one Timeline element.", "properties": { "authoredId": { "type": ["string", "null"] }, "nodeId": { "$ref": "#/$defs/BrowserNodeId" } }, "required": ["nodeId"], "type": "object" }, "BrowserNodeId": { "description": "Browser identity for one Timeline element or imported caption.\n\nIDs form dense renderable-semantic preorder within one Browser Plan.\n\nAuthored IDs, rather than this unit-local key, retain cross-projection\nsemantic identity.", "format": "uint32", "maximum": 4294967295, "minimum": 0, "type": "integer" }, "BrowserOverlay": { "additionalProperties": false, "description": "One solved overlay placement consumed by the browser presentation.", "properties": { "interval": { "$ref": "#/$defs/WireInterval" }, "kind": { "$ref": "#/$defs/BrowserOverlayKind" }, "node": { "$ref": "#/$defs/BrowserNode" }, "shotId": { "anyOf": [{ "$ref": "#/$defs/BrowserNodeId" }, { "type": "null" }] }, "text": { "maxLength": 65536, "type": "string" } }, "required": ["node", "kind", "text", "interval"], "type": "object" }, "BrowserOverlayKind": { "description": "Closed overlay roles understood by the browser presentation.", "oneOf": [{ "const": "title", "description": "Authored title content.", "type": "string" }, { "const": "callToAction", "description": "Authored call-to-action content.", "type": "string" }, { "const": "caption", "description": "Imported caption text.", "type": "string" }] }, "BrowserPlan": { "additionalProperties": false, "description": "Timeline facts consumed by the browser clock and presentation.", "properties": { "evaluation": { "$ref": "#/$defs/WireInterval" }, "film": { "$ref": "#/$defs/BrowserNode" }, "frameRate": { "$ref": "#/$defs/WireFrameRate" }, "output": { "$ref": "#/$defs/WireInterval" }, "overlays": { "items": { "$ref": "#/$defs/BrowserOverlay" }, "maxItems": 10000, "type": "array" }, "scenes": { "items": { "$ref": "#/$defs/BrowserScene" }, "maxItems": 10000, "type": "array" }, "shots": { "items": { "$ref": "#/$defs/BrowserShot" }, "maxItems": 10000, "type": "array" }, "timeline": { "$ref": "#/$defs/WireInterval" }, "timelineVersion": { "const": 3, "format": "uint16", "maximum": 65535, "minimum": 0, "type": "integer" }, "transitions": { "items": { "$ref": "#/$defs/BrowserTransition" }, "maxItems": 10000, "type": "array" }, "videos": { "items": { "$ref": "#/$defs/BrowserVideo" }, "maxItems": 10000, "type": "array" } }, "required": ["timelineVersion", "frameRate", "timeline", "evaluation", "output", "film", "scenes", "shots", "transitions", "videos", "overlays"], "type": "object" }, "BrowserScene": { "additionalProperties": false, "description": "One scene container intersecting this unit, with its complete Timeline interval.", "properties": { "interval": { "$ref": "#/$defs/WireInterval" }, "node": { "$ref": "#/$defs/BrowserNode" } }, "required": ["node", "interval"], "type": "object" }, "BrowserShot": { "additionalProperties": false, "description": "One shot container intersecting this unit, with its complete Timeline interval.", "properties": { "interval": { "$ref": "#/$defs/WireInterval" }, "node": { "$ref": "#/$defs/BrowserNode" }, "sceneId": { "$ref": "#/$defs/BrowserNodeId" } }, "required": ["node", "sceneId", "interval"], "type": "object" }, "BrowserTransition": { "additionalProperties": false, "description": "One solved transition between two adjacent browser shots.", "properties": { "incomingShotId": { "$ref": "#/$defs/BrowserNodeId" }, "interval": { "$ref": "#/$defs/WireInterval" }, "node": { "$ref": "#/$defs/BrowserNode" }, "outgoingShotId": { "$ref": "#/$defs/BrowserNodeId" } }, "required": ["node", "outgoingShotId", "incomingShotId", "interval"], "type": "object" }, "BrowserVideo": { "additionalProperties": false, "description": "One primary video placement consumed by the browser presentation adapter.", "properties": { "assetId": { "pattern": "^sha256:[0-9a-f]{64}$", "type": "string" }, "interval": { "$ref": "#/$defs/WireInterval" }, "node": { "$ref": "#/$defs/BrowserNode" }, "shotId": { "$ref": "#/$defs/BrowserNodeId" }, "source": { "$ref": "#/$defs/BrowserVideoSource" }, "sourceTiming": { "$ref": "#/$defs/BrowserVideoTiming" } }, "required": ["node", "shotId", "assetId", "interval", "sourceTiming", "source"], "type": "object" }, "BrowserVideoSource": { "additionalProperties": false, "description": "Exact source-time mapping for one browser video placement.", "properties": { "endNanoseconds": { "maxLength": 20, "minLength": 1, "pattern": "^(0|[1-9][0-9]*)$", "type": "string" }, "holdLastNanoseconds": { "maxLength": 20, "minLength": 1, "pattern": "^(0|[1-9][0-9]*)$", "type": "string" }, "naturalEndNanoseconds": { "maxLength": 20, "minLength": 1, "pattern": "^(0|[1-9][0-9]*)$", "type": "string" }, "playbackRate": { "$ref": "#/$defs/WirePlaybackRate" }, "plays": { "format": "uint32", "minimum": 1, "type": "integer" }, "startNanoseconds": { "maxLength": 20, "minLength": 1, "pattern": "^(0|[1-9][0-9]*)$", "type": "string" } }, "required": ["startNanoseconds", "endNanoseconds", "naturalEndNanoseconds", "playbackRate", "plays", "holdLastNanoseconds"], "type": "object" }, "BrowserVideoTiming": { "description": "Exact source-frame timing projected into the browser runtime.", "oneOf": [{ "additionalProperties": false, "description": "Every source frame has one exact rational rate.", "properties": { "frameRate": { "$ref": "#/$defs/WireFrameRate", "description": "Exact source frames per second." }, "kind": { "const": "constant", "type": "string" } }, "required": ["kind", "frameRate"], "type": "object" }, { "additionalProperties": false, "description": "Every source frame carries one half-open timestamp interval.", "properties": { "boundaries": { "description": "Canonical decimal ticks from source zero through terminal end.", "items": { "type": "string" }, "maxItems": 100000, "minItems": 3, "type": "array" }, "kind": { "const": "variable", "type": "string" }, "timebase": { "$ref": "#/$defs/WireMediaTimebase", "description": "Exact seconds represented by one source timestamp tick." } }, "required": ["kind", "timebase", "boundaries"], "type": "object" }] }, "ProtocolVersion": { "const": 5, "description": "Version of the native-to-browser message contract.", "format": "uint16", "maximum": 65535, "minimum": 0, "type": "integer" }, "RequestId": { "description": "Correlation identity shared by one request and its response events.", "format": "uint32", "maximum": 4294967295, "minimum": 0, "type": "integer" }, "WireFrame": { "description": "Exact frame integer accepted by JavaScript without rounding.", "format": "uint64", "maximum": 9007199254740991, "minimum": 0, "type": "integer" }, "WireFrameRate": { "additionalProperties": false, "description": "Exact rational frame rate represented with browser-safe integers.", "properties": { "denominator": { "format": "uint32", "maximum": 4294967295, "minimum": 1, "type": "integer" }, "numerator": { "format": "uint32", "maximum": 4294967295, "minimum": 1, "type": "integer" } }, "required": ["numerator", "denominator"], "type": "object" }, "WireInterval": { "additionalProperties": false, "description": "One half-open browser frame interval.", "properties": { "end": { "$ref": "#/$defs/WireFrame" }, "start": { "$ref": "#/$defs/WireFrame" } }, "required": ["start", "end"], "type": "object" }, "WireMediaTimebase": { "additionalProperties": false, "description": "Exact media timestamp unit represented with browser-safe integers.", "properties": { "denominator": { "format": "uint32", "maximum": 4294967295, "minimum": 1, "type": "integer" }, "numerator": { "format": "uint32", "maximum": 4294967295, "minimum": 1, "type": "integer" } }, "required": ["numerator", "denominator"], "type": "object" }, "WirePlaybackRate": { "additionalProperties": false, "description": "Exact canonical playback ratio represented with browser-safe integers.", "properties": { "denominator": { "format": "uint32", "maximum": 4294967295, "minimum": 1, "type": "integer" }, "numerator": { "format": "uint32", "maximum": 4294967295, "minimum": 1, "type": "integer" } }, "required": ["numerator", "denominator"], "type": "object" } }, "$id": "https://onmark.dev/schemas/browser-request-v5.schema.json", "$schema": "https://json-schema.org/draft/2020-12/schema", "additionalProperties": false, "description": "One versioned command sent from the native executor to the browser.", "properties": { "command": { "$ref": "#/$defs/BrowserCommand" }, "requestId": { "$ref": "#/$defs/RequestId" }, "version": { "$ref": "#/$defs/ProtocolVersion" } }, "required": ["version", "requestId", "command"], "title": "BrowserRequest", "type": "object", "x-onmark-runtime-host": "__ONMARK_RUNTIME__" };
|
|
5
|
+
const schema60 = { "description": "Correlation identity shared by one request and its response events.", "format": "uint32", "maximum": 4294967295, "minimum": 0, "type": "integer" };
|
|
6
|
+
const schema61 = { "const": 5, "description": "Version of the native-to-browser message contract.", "format": "uint16", "maximum": 65535, "minimum": 0, "type": "integer" };
|
|
7
|
+
const schema32 = { "description": "Closed commands understood by the browser runtime.", "oneOf": [{ "additionalProperties": false, "description": "Install one immutable browser plan.", "properties": { "mediaMode": { "$ref": "#/$defs/BrowserMediaMode", "description": "Browser responsibility for primary-media elements." }, "plan": { "$ref": "#/$defs/BrowserPlan", "description": "Solved frame facts consumed by the runtime clock." }, "type": { "const": "load", "type": "string" } }, "required": ["type", "plan", "mediaMode"], "type": "object" }, { "additionalProperties": false, "description": "Stabilize resources at the evaluation start frame.", "properties": { "evaluationStart": { "$ref": "#/$defs/WireFrame", "description": "First frame that may be evaluated by this unit." }, "type": { "const": "prepare", "type": "string" } }, "required": ["type", "evaluationStart"], "type": "object" }, { "additionalProperties": false, "description": "Evaluate one exact absolute frame.", "properties": { "frame": { "$ref": "#/$defs/WireFrame", "description": "Frame selected by the native executor." }, "type": { "const": "seek", "type": "string" } }, "required": ["type", "frame"], "type": "object" }, { "additionalProperties": false, "description": "Confirm staged media reached the compositor before accepting capture.", "properties": { "frame": { "$ref": "#/$defs/WireFrame", "description": "Frame whose staged media must be compositor-confirmed." }, "type": { "const": "confirm", "type": "string" } }, "required": ["type", "frame"], "type": "object" }, { "additionalProperties": false, "description": "Release page-owned resources for this session.", "properties": { "type": { "const": "dispose", "type": "string" } }, "required": ["type"], "type": "object" }] };
|
|
8
|
+
const schema33 = { "description": "Browser responsibility for video elements in one loaded plan.", "oneOf": [{ "const": "decoded", "description": "Chromium decodes and composites every active video placement.", "type": "string" }, { "const": "omitted", "description": "Chromium omits video elements from its captured pixels.", "type": "string" }, { "const": "layoutOnly", "description": "Chromium omits video pixels but returns static layout evidence.", "type": "string" }] };
|
|
9
|
+
const schema36 = { "description": "Exact frame integer accepted by JavaScript without rounding.", "format": "uint64", "maximum": 9007199254740991, "minimum": 0, "type": "integer" };
|
|
10
|
+
const schema34 = { "additionalProperties": false, "description": "Timeline facts consumed by the browser clock and presentation.", "properties": { "evaluation": { "$ref": "#/$defs/WireInterval" }, "film": { "$ref": "#/$defs/BrowserNode" }, "frameRate": { "$ref": "#/$defs/WireFrameRate" }, "output": { "$ref": "#/$defs/WireInterval" }, "overlays": { "items": { "$ref": "#/$defs/BrowserOverlay" }, "maxItems": 10000, "type": "array" }, "scenes": { "items": { "$ref": "#/$defs/BrowserScene" }, "maxItems": 10000, "type": "array" }, "shots": { "items": { "$ref": "#/$defs/BrowserShot" }, "maxItems": 10000, "type": "array" }, "timeline": { "$ref": "#/$defs/WireInterval" }, "timelineVersion": { "const": 3, "format": "uint16", "maximum": 65535, "minimum": 0, "type": "integer" }, "transitions": { "items": { "$ref": "#/$defs/BrowserTransition" }, "maxItems": 10000, "type": "array" }, "videos": { "items": { "$ref": "#/$defs/BrowserVideo" }, "maxItems": 10000, "type": "array" } }, "required": ["timelineVersion", "frameRate", "timeline", "evaluation", "output", "film", "scenes", "shots", "transitions", "videos", "overlays"], "type": "object" };
|
|
11
|
+
const schema40 = { "additionalProperties": false, "description": "Exact rational frame rate represented with browser-safe integers.", "properties": { "denominator": { "format": "uint32", "maximum": 4294967295, "minimum": 1, "type": "integer" }, "numerator": { "format": "uint32", "maximum": 4294967295, "minimum": 1, "type": "integer" } }, "required": ["numerator", "denominator"], "type": "object" };
|
|
11
12
|
const func1 = Object.prototype.hasOwnProperty;
|
|
12
|
-
const
|
|
13
|
+
const schema35 = { "additionalProperties": false, "description": "One half-open browser frame interval.", "properties": { "end": { "$ref": "#/$defs/WireFrame" }, "start": { "$ref": "#/$defs/WireFrame" } }, "required": ["start", "end"], "type": "object" };
|
|
13
14
|
function validate23(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
|
|
14
15
|
let vErrors = null;
|
|
15
16
|
let errors = 0;
|
|
@@ -138,8 +139,8 @@ function validate23(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
138
139
|
return errors === 0;
|
|
139
140
|
}
|
|
140
141
|
validate23.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
|
|
141
|
-
const
|
|
142
|
-
const
|
|
142
|
+
const schema38 = { "additionalProperties": false, "description": "Browser-facing identity retained from one Timeline element.", "properties": { "authoredId": { "type": ["string", "null"] }, "nodeId": { "$ref": "#/$defs/BrowserNodeId" } }, "required": ["nodeId"], "type": "object" };
|
|
143
|
+
const schema39 = { "description": "Browser identity for one Timeline element or imported caption.\n\nIDs form dense renderable-semantic preorder within one Browser Plan.\n\nAuthored IDs, rather than this unit-local key, retain cross-projection\nsemantic identity.", "format": "uint32", "maximum": 4294967295, "minimum": 0, "type": "integer" };
|
|
143
144
|
function validate25(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
|
|
144
145
|
let vErrors = null;
|
|
145
146
|
let errors = 0;
|
|
@@ -176,7 +177,7 @@ function validate25(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
176
177
|
if (data.authoredId !== undefined) {
|
|
177
178
|
let data0 = data.authoredId;
|
|
178
179
|
if ((typeof data0 !== "string") && (data0 !== null)) {
|
|
179
|
-
const err2 = { instancePath: instancePath + "/authoredId", schemaPath: "#/properties/authoredId/type", keyword: "type", params: { type:
|
|
180
|
+
const err2 = { instancePath: instancePath + "/authoredId", schemaPath: "#/properties/authoredId/type", keyword: "type", params: { type: schema38.properties.authoredId.type }, message: "must be string,null" };
|
|
180
181
|
if (vErrors === null) {
|
|
181
182
|
vErrors = [err2];
|
|
182
183
|
}
|
|
@@ -236,8 +237,8 @@ function validate25(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
236
237
|
return errors === 0;
|
|
237
238
|
}
|
|
238
239
|
validate25.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
|
|
239
|
-
const
|
|
240
|
-
const
|
|
240
|
+
const schema41 = { "additionalProperties": false, "description": "One solved overlay placement consumed by the browser presentation.", "properties": { "interval": { "$ref": "#/$defs/WireInterval" }, "kind": { "$ref": "#/$defs/BrowserOverlayKind" }, "node": { "$ref": "#/$defs/BrowserNode" }, "shotId": { "anyOf": [{ "$ref": "#/$defs/BrowserNodeId" }, { "type": "null" }] }, "text": { "maxLength": 65536, "type": "string" } }, "required": ["node", "kind", "text", "interval"], "type": "object" };
|
|
241
|
+
const schema42 = { "description": "Closed overlay roles understood by the browser presentation.", "oneOf": [{ "const": "title", "description": "Authored title content.", "type": "string" }, { "const": "callToAction", "description": "Authored call-to-action content.", "type": "string" }, { "const": "caption", "description": "Imported caption text.", "type": "string" }] };
|
|
241
242
|
const func2 = (value) => { let length = 0; for (const _ of value)
|
|
242
243
|
length += 1; return length; };
|
|
243
244
|
function validate28(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
|
|
@@ -546,7 +547,7 @@ function validate28(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
546
547
|
return errors === 0;
|
|
547
548
|
}
|
|
548
549
|
validate28.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
|
|
549
|
-
const
|
|
550
|
+
const schema44 = { "additionalProperties": false, "description": "One scene container intersecting this unit, with its complete Timeline interval.", "properties": { "interval": { "$ref": "#/$defs/WireInterval" }, "node": { "$ref": "#/$defs/BrowserNode" } }, "required": ["node", "interval"], "type": "object" };
|
|
550
551
|
function validate32(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
|
|
551
552
|
let vErrors = null;
|
|
552
553
|
let errors = 0;
|
|
@@ -617,7 +618,7 @@ function validate32(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
617
618
|
return errors === 0;
|
|
618
619
|
}
|
|
619
620
|
validate32.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
|
|
620
|
-
const
|
|
621
|
+
const schema45 = { "additionalProperties": false, "description": "One shot container intersecting this unit, with its complete Timeline interval.", "properties": { "interval": { "$ref": "#/$defs/WireInterval" }, "node": { "$ref": "#/$defs/BrowserNode" }, "sceneId": { "$ref": "#/$defs/BrowserNodeId" } }, "required": ["node", "sceneId", "interval"], "type": "object" };
|
|
621
622
|
function validate36(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
|
|
622
623
|
let vErrors = null;
|
|
623
624
|
let errors = 0;
|
|
@@ -733,15 +734,176 @@ function validate36(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
733
734
|
return errors === 0;
|
|
734
735
|
}
|
|
735
736
|
validate36.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
|
|
736
|
-
const
|
|
737
|
+
const schema47 = { "additionalProperties": false, "description": "One solved transition between two adjacent browser shots.", "properties": { "incomingShotId": { "$ref": "#/$defs/BrowserNodeId" }, "interval": { "$ref": "#/$defs/WireInterval" }, "node": { "$ref": "#/$defs/BrowserNode" }, "outgoingShotId": { "$ref": "#/$defs/BrowserNodeId" } }, "required": ["node", "outgoingShotId", "incomingShotId", "interval"], "type": "object" };
|
|
738
|
+
function validate41(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
|
|
739
|
+
let vErrors = null;
|
|
740
|
+
let errors = 0;
|
|
741
|
+
const evaluated0 = validate41.evaluated;
|
|
742
|
+
if (evaluated0.dynamicProps) {
|
|
743
|
+
evaluated0.props = undefined;
|
|
744
|
+
}
|
|
745
|
+
if (evaluated0.dynamicItems) {
|
|
746
|
+
evaluated0.items = undefined;
|
|
747
|
+
}
|
|
748
|
+
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
749
|
+
if (data.node === undefined) {
|
|
750
|
+
const err0 = { instancePath, schemaPath: "#/required", keyword: "required", params: { missingProperty: "node" }, message: "must have required property '" + "node" + "'" };
|
|
751
|
+
if (vErrors === null) {
|
|
752
|
+
vErrors = [err0];
|
|
753
|
+
}
|
|
754
|
+
else {
|
|
755
|
+
vErrors.push(err0);
|
|
756
|
+
}
|
|
757
|
+
errors++;
|
|
758
|
+
}
|
|
759
|
+
if (data.outgoingShotId === undefined) {
|
|
760
|
+
const err1 = { instancePath, schemaPath: "#/required", keyword: "required", params: { missingProperty: "outgoingShotId" }, message: "must have required property '" + "outgoingShotId" + "'" };
|
|
761
|
+
if (vErrors === null) {
|
|
762
|
+
vErrors = [err1];
|
|
763
|
+
}
|
|
764
|
+
else {
|
|
765
|
+
vErrors.push(err1);
|
|
766
|
+
}
|
|
767
|
+
errors++;
|
|
768
|
+
}
|
|
769
|
+
if (data.incomingShotId === undefined) {
|
|
770
|
+
const err2 = { instancePath, schemaPath: "#/required", keyword: "required", params: { missingProperty: "incomingShotId" }, message: "must have required property '" + "incomingShotId" + "'" };
|
|
771
|
+
if (vErrors === null) {
|
|
772
|
+
vErrors = [err2];
|
|
773
|
+
}
|
|
774
|
+
else {
|
|
775
|
+
vErrors.push(err2);
|
|
776
|
+
}
|
|
777
|
+
errors++;
|
|
778
|
+
}
|
|
779
|
+
if (data.interval === undefined) {
|
|
780
|
+
const err3 = { instancePath, schemaPath: "#/required", keyword: "required", params: { missingProperty: "interval" }, message: "must have required property '" + "interval" + "'" };
|
|
781
|
+
if (vErrors === null) {
|
|
782
|
+
vErrors = [err3];
|
|
783
|
+
}
|
|
784
|
+
else {
|
|
785
|
+
vErrors.push(err3);
|
|
786
|
+
}
|
|
787
|
+
errors++;
|
|
788
|
+
}
|
|
789
|
+
for (const key0 in data) {
|
|
790
|
+
if (!((((key0 === "incomingShotId") || (key0 === "interval")) || (key0 === "node")) || (key0 === "outgoingShotId"))) {
|
|
791
|
+
const err4 = { instancePath, schemaPath: "#/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key0 }, message: "must NOT have additional properties" };
|
|
792
|
+
if (vErrors === null) {
|
|
793
|
+
vErrors = [err4];
|
|
794
|
+
}
|
|
795
|
+
else {
|
|
796
|
+
vErrors.push(err4);
|
|
797
|
+
}
|
|
798
|
+
errors++;
|
|
799
|
+
}
|
|
800
|
+
}
|
|
801
|
+
if (data.incomingShotId !== undefined) {
|
|
802
|
+
let data0 = data.incomingShotId;
|
|
803
|
+
if (!(((typeof data0 == "number") && (!(data0 % 1) && !isNaN(data0))) && (isFinite(data0)))) {
|
|
804
|
+
const err5 = { instancePath: instancePath + "/incomingShotId", schemaPath: "#/$defs/BrowserNodeId/type", keyword: "type", params: { type: "integer" }, message: "must be integer" };
|
|
805
|
+
if (vErrors === null) {
|
|
806
|
+
vErrors = [err5];
|
|
807
|
+
}
|
|
808
|
+
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" };
|
|
816
|
+
if (vErrors === null) {
|
|
817
|
+
vErrors = [err6];
|
|
818
|
+
}
|
|
819
|
+
else {
|
|
820
|
+
vErrors.push(err6);
|
|
821
|
+
}
|
|
822
|
+
errors++;
|
|
823
|
+
}
|
|
824
|
+
if (data0 < 0 || isNaN(data0)) {
|
|
825
|
+
const err7 = { instancePath: instancePath + "/incomingShotId", schemaPath: "#/$defs/BrowserNodeId/minimum", keyword: "minimum", params: { comparison: ">=", limit: 0 }, message: "must be >= 0" };
|
|
826
|
+
if (vErrors === null) {
|
|
827
|
+
vErrors = [err7];
|
|
828
|
+
}
|
|
829
|
+
else {
|
|
830
|
+
vErrors.push(err7);
|
|
831
|
+
}
|
|
832
|
+
errors++;
|
|
833
|
+
}
|
|
834
|
+
}
|
|
835
|
+
}
|
|
836
|
+
if (data.interval !== undefined) {
|
|
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" };
|
|
852
|
+
if (vErrors === null) {
|
|
853
|
+
vErrors = [err8];
|
|
854
|
+
}
|
|
855
|
+
else {
|
|
856
|
+
vErrors.push(err8);
|
|
857
|
+
}
|
|
858
|
+
errors++;
|
|
859
|
+
}
|
|
860
|
+
if ((typeof data3 == "number") && (isFinite(data3))) {
|
|
861
|
+
if (data3 > 4294967295 || isNaN(data3)) {
|
|
862
|
+
const err9 = { instancePath: instancePath + "/outgoingShotId", schemaPath: "#/$defs/BrowserNodeId/maximum", keyword: "maximum", params: { comparison: "<=", limit: 4294967295 }, message: "must be <= 4294967295" };
|
|
863
|
+
if (vErrors === null) {
|
|
864
|
+
vErrors = [err9];
|
|
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];
|
|
875
|
+
}
|
|
876
|
+
else {
|
|
877
|
+
vErrors.push(err10);
|
|
878
|
+
}
|
|
879
|
+
errors++;
|
|
880
|
+
}
|
|
881
|
+
}
|
|
882
|
+
}
|
|
883
|
+
}
|
|
884
|
+
else {
|
|
885
|
+
const err11 = { instancePath, schemaPath: "#/type", keyword: "type", params: { type: "object" }, message: "must be object" };
|
|
886
|
+
if (vErrors === null) {
|
|
887
|
+
vErrors = [err11];
|
|
888
|
+
}
|
|
889
|
+
else {
|
|
890
|
+
vErrors.push(err11);
|
|
891
|
+
}
|
|
892
|
+
errors++;
|
|
893
|
+
}
|
|
894
|
+
validate41.errors = vErrors;
|
|
895
|
+
return errors === 0;
|
|
896
|
+
}
|
|
897
|
+
validate41.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
|
|
898
|
+
const schema50 = { "additionalProperties": false, "description": "One primary video placement consumed by the browser presentation adapter.", "properties": { "assetId": { "pattern": "^sha256:[0-9a-f]{64}$", "type": "string" }, "interval": { "$ref": "#/$defs/WireInterval" }, "node": { "$ref": "#/$defs/BrowserNode" }, "shotId": { "$ref": "#/$defs/BrowserNodeId" }, "source": { "$ref": "#/$defs/BrowserVideoSource" }, "sourceTiming": { "$ref": "#/$defs/BrowserVideoTiming" } }, "required": ["node", "shotId", "assetId", "interval", "sourceTiming", "source"], "type": "object" };
|
|
737
899
|
const pattern4 = new RegExp("^sha256:[0-9a-f]{64}$", "u");
|
|
738
|
-
const
|
|
739
|
-
const
|
|
900
|
+
const schema52 = { "additionalProperties": false, "description": "Exact source-time mapping for one browser video placement.", "properties": { "endNanoseconds": { "maxLength": 20, "minLength": 1, "pattern": "^(0|[1-9][0-9]*)$", "type": "string" }, "holdLastNanoseconds": { "maxLength": 20, "minLength": 1, "pattern": "^(0|[1-9][0-9]*)$", "type": "string" }, "naturalEndNanoseconds": { "maxLength": 20, "minLength": 1, "pattern": "^(0|[1-9][0-9]*)$", "type": "string" }, "playbackRate": { "$ref": "#/$defs/WirePlaybackRate" }, "plays": { "format": "uint32", "minimum": 1, "type": "integer" }, "startNanoseconds": { "maxLength": 20, "minLength": 1, "pattern": "^(0|[1-9][0-9]*)$", "type": "string" } }, "required": ["startNanoseconds", "endNanoseconds", "naturalEndNanoseconds", "playbackRate", "plays", "holdLastNanoseconds"], "type": "object" };
|
|
901
|
+
const schema53 = { "additionalProperties": false, "description": "Exact canonical playback ratio represented with browser-safe integers.", "properties": { "denominator": { "format": "uint32", "maximum": 4294967295, "minimum": 1, "type": "integer" }, "numerator": { "format": "uint32", "maximum": 4294967295, "minimum": 1, "type": "integer" } }, "required": ["numerator", "denominator"], "type": "object" };
|
|
740
902
|
const pattern5 = new RegExp("^(0|[1-9][0-9]*)$", "u");
|
|
741
|
-
function
|
|
903
|
+
function validate48(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
|
|
742
904
|
let vErrors = null;
|
|
743
905
|
let errors = 0;
|
|
744
|
-
const evaluated0 =
|
|
906
|
+
const evaluated0 = validate48.evaluated;
|
|
745
907
|
if (evaluated0.dynamicProps) {
|
|
746
908
|
evaluated0.props = undefined;
|
|
747
909
|
}
|
|
@@ -1154,16 +1316,16 @@ function validate44(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
1154
1316
|
}
|
|
1155
1317
|
errors++;
|
|
1156
1318
|
}
|
|
1157
|
-
|
|
1319
|
+
validate48.errors = vErrors;
|
|
1158
1320
|
return errors === 0;
|
|
1159
1321
|
}
|
|
1160
|
-
|
|
1161
|
-
const
|
|
1162
|
-
const
|
|
1163
|
-
function
|
|
1322
|
+
validate48.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
|
|
1323
|
+
const schema54 = { "description": "Exact source-frame timing projected into the browser runtime.", "oneOf": [{ "additionalProperties": false, "description": "Every source frame has one exact rational rate.", "properties": { "frameRate": { "$ref": "#/$defs/WireFrameRate", "description": "Exact source frames per second." }, "kind": { "const": "constant", "type": "string" } }, "required": ["kind", "frameRate"], "type": "object" }, { "additionalProperties": false, "description": "Every source frame carries one half-open timestamp interval.", "properties": { "boundaries": { "description": "Canonical decimal ticks from source zero through terminal end.", "items": { "type": "string" }, "maxItems": 100000, "minItems": 3, "type": "array" }, "kind": { "const": "variable", "type": "string" }, "timebase": { "$ref": "#/$defs/WireMediaTimebase", "description": "Exact seconds represented by one source timestamp tick." } }, "required": ["kind", "timebase", "boundaries"], "type": "object" }] };
|
|
1324
|
+
const schema56 = { "additionalProperties": false, "description": "Exact media timestamp unit represented with browser-safe integers.", "properties": { "denominator": { "format": "uint32", "maximum": 4294967295, "minimum": 1, "type": "integer" }, "numerator": { "format": "uint32", "maximum": 4294967295, "minimum": 1, "type": "integer" } }, "required": ["numerator", "denominator"], "type": "object" };
|
|
1325
|
+
function validate50(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
|
|
1164
1326
|
let vErrors = null;
|
|
1165
1327
|
let errors = 0;
|
|
1166
|
-
const evaluated0 =
|
|
1328
|
+
const evaluated0 = validate50.evaluated;
|
|
1167
1329
|
if (evaluated0.dynamicProps) {
|
|
1168
1330
|
evaluated0.props = undefined;
|
|
1169
1331
|
}
|
|
@@ -1642,15 +1804,15 @@ function validate46(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
1642
1804
|
}
|
|
1643
1805
|
}
|
|
1644
1806
|
}
|
|
1645
|
-
|
|
1807
|
+
validate50.errors = vErrors;
|
|
1646
1808
|
evaluated0.props = props0;
|
|
1647
1809
|
return errors === 0;
|
|
1648
1810
|
}
|
|
1649
|
-
|
|
1650
|
-
function
|
|
1811
|
+
validate50.evaluated = { "dynamicProps": true, "dynamicItems": false };
|
|
1812
|
+
function validate45(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
|
|
1651
1813
|
let vErrors = null;
|
|
1652
1814
|
let errors = 0;
|
|
1653
|
-
const evaluated0 =
|
|
1815
|
+
const evaluated0 = validate45.evaluated;
|
|
1654
1816
|
if (evaluated0.dynamicProps) {
|
|
1655
1817
|
evaluated0.props = undefined;
|
|
1656
1818
|
}
|
|
@@ -1803,14 +1965,14 @@ function validate41(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
1803
1965
|
}
|
|
1804
1966
|
}
|
|
1805
1967
|
if (data.source !== undefined) {
|
|
1806
|
-
if (!(
|
|
1807
|
-
vErrors = vErrors === null ?
|
|
1968
|
+
if (!(validate48(data.source, { instancePath: instancePath + "/source", parentData: data, parentDataProperty: "source", rootData, dynamicAnchors }))) {
|
|
1969
|
+
vErrors = vErrors === null ? validate48.errors : vErrors.concat(validate48.errors);
|
|
1808
1970
|
errors = vErrors.length;
|
|
1809
1971
|
}
|
|
1810
1972
|
}
|
|
1811
1973
|
if (data.sourceTiming !== undefined) {
|
|
1812
|
-
if (!(
|
|
1813
|
-
vErrors = vErrors === null ?
|
|
1974
|
+
if (!(validate50(data.sourceTiming, { instancePath: instancePath + "/sourceTiming", parentData: data, parentDataProperty: "sourceTiming", rootData, dynamicAnchors }))) {
|
|
1975
|
+
vErrors = vErrors === null ? validate50.errors : vErrors.concat(validate50.errors);
|
|
1814
1976
|
errors = vErrors.length;
|
|
1815
1977
|
}
|
|
1816
1978
|
}
|
|
@@ -1825,10 +1987,10 @@ function validate41(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
1825
1987
|
}
|
|
1826
1988
|
errors++;
|
|
1827
1989
|
}
|
|
1828
|
-
|
|
1990
|
+
validate45.errors = vErrors;
|
|
1829
1991
|
return errors === 0;
|
|
1830
1992
|
}
|
|
1831
|
-
|
|
1993
|
+
validate45.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
|
|
1832
1994
|
function validate22(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
|
|
1833
1995
|
let vErrors = null;
|
|
1834
1996
|
let errors = 0;
|
|
@@ -1920,8 +2082,8 @@ function validate22(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
1920
2082
|
}
|
|
1921
2083
|
errors++;
|
|
1922
2084
|
}
|
|
1923
|
-
if (data.
|
|
1924
|
-
const err8 = { instancePath, schemaPath: "#/required", keyword: "required", params: { missingProperty: "
|
|
2085
|
+
if (data.transitions === undefined) {
|
|
2086
|
+
const err8 = { instancePath, schemaPath: "#/required", keyword: "required", params: { missingProperty: "transitions" }, message: "must have required property '" + "transitions" + "'" };
|
|
1925
2087
|
if (vErrors === null) {
|
|
1926
2088
|
vErrors = [err8];
|
|
1927
2089
|
}
|
|
@@ -1930,8 +2092,8 @@ function validate22(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
1930
2092
|
}
|
|
1931
2093
|
errors++;
|
|
1932
2094
|
}
|
|
1933
|
-
if (data.
|
|
1934
|
-
const err9 = { instancePath, schemaPath: "#/required", keyword: "required", params: { missingProperty: "
|
|
2095
|
+
if (data.videos === undefined) {
|
|
2096
|
+
const err9 = { instancePath, schemaPath: "#/required", keyword: "required", params: { missingProperty: "videos" }, message: "must have required property '" + "videos" + "'" };
|
|
1935
2097
|
if (vErrors === null) {
|
|
1936
2098
|
vErrors = [err9];
|
|
1937
2099
|
}
|
|
@@ -1940,14 +2102,24 @@ function validate22(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
1940
2102
|
}
|
|
1941
2103
|
errors++;
|
|
1942
2104
|
}
|
|
2105
|
+
if (data.overlays === undefined) {
|
|
2106
|
+
const err10 = { instancePath, schemaPath: "#/required", keyword: "required", params: { missingProperty: "overlays" }, message: "must have required property '" + "overlays" + "'" };
|
|
2107
|
+
if (vErrors === null) {
|
|
2108
|
+
vErrors = [err10];
|
|
2109
|
+
}
|
|
2110
|
+
else {
|
|
2111
|
+
vErrors.push(err10);
|
|
2112
|
+
}
|
|
2113
|
+
errors++;
|
|
2114
|
+
}
|
|
1943
2115
|
for (const key0 in data) {
|
|
1944
|
-
if (!(func1.call(
|
|
1945
|
-
const
|
|
2116
|
+
if (!(func1.call(schema34.properties, key0))) {
|
|
2117
|
+
const err11 = { instancePath, schemaPath: "#/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key0 }, message: "must NOT have additional properties" };
|
|
1946
2118
|
if (vErrors === null) {
|
|
1947
|
-
vErrors = [
|
|
2119
|
+
vErrors = [err11];
|
|
1948
2120
|
}
|
|
1949
2121
|
else {
|
|
1950
|
-
vErrors.push(
|
|
2122
|
+
vErrors.push(err11);
|
|
1951
2123
|
}
|
|
1952
2124
|
errors++;
|
|
1953
2125
|
}
|
|
@@ -1968,33 +2140,33 @@ function validate22(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
1968
2140
|
let data2 = data.frameRate;
|
|
1969
2141
|
if (data2 && typeof data2 == "object" && !Array.isArray(data2)) {
|
|
1970
2142
|
if (data2.numerator === undefined) {
|
|
1971
|
-
const
|
|
2143
|
+
const err12 = { instancePath: instancePath + "/frameRate", schemaPath: "#/$defs/WireFrameRate/required", keyword: "required", params: { missingProperty: "numerator" }, message: "must have required property '" + "numerator" + "'" };
|
|
1972
2144
|
if (vErrors === null) {
|
|
1973
|
-
vErrors = [
|
|
2145
|
+
vErrors = [err12];
|
|
1974
2146
|
}
|
|
1975
2147
|
else {
|
|
1976
|
-
vErrors.push(
|
|
2148
|
+
vErrors.push(err12);
|
|
1977
2149
|
}
|
|
1978
2150
|
errors++;
|
|
1979
2151
|
}
|
|
1980
2152
|
if (data2.denominator === undefined) {
|
|
1981
|
-
const
|
|
2153
|
+
const err13 = { instancePath: instancePath + "/frameRate", schemaPath: "#/$defs/WireFrameRate/required", keyword: "required", params: { missingProperty: "denominator" }, message: "must have required property '" + "denominator" + "'" };
|
|
1982
2154
|
if (vErrors === null) {
|
|
1983
|
-
vErrors = [
|
|
2155
|
+
vErrors = [err13];
|
|
1984
2156
|
}
|
|
1985
2157
|
else {
|
|
1986
|
-
vErrors.push(
|
|
2158
|
+
vErrors.push(err13);
|
|
1987
2159
|
}
|
|
1988
2160
|
errors++;
|
|
1989
2161
|
}
|
|
1990
2162
|
for (const key1 in data2) {
|
|
1991
2163
|
if (!((key1 === "denominator") || (key1 === "numerator"))) {
|
|
1992
|
-
const
|
|
2164
|
+
const err14 = { instancePath: instancePath + "/frameRate", schemaPath: "#/$defs/WireFrameRate/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key1 }, message: "must NOT have additional properties" };
|
|
1993
2165
|
if (vErrors === null) {
|
|
1994
|
-
vErrors = [
|
|
2166
|
+
vErrors = [err14];
|
|
1995
2167
|
}
|
|
1996
2168
|
else {
|
|
1997
|
-
vErrors.push(
|
|
2169
|
+
vErrors.push(err14);
|
|
1998
2170
|
}
|
|
1999
2171
|
errors++;
|
|
2000
2172
|
}
|
|
@@ -2002,33 +2174,33 @@ function validate22(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
2002
2174
|
if (data2.denominator !== undefined) {
|
|
2003
2175
|
let data3 = data2.denominator;
|
|
2004
2176
|
if (!(((typeof data3 == "number") && (!(data3 % 1) && !isNaN(data3))) && (isFinite(data3)))) {
|
|
2005
|
-
const
|
|
2177
|
+
const err15 = { instancePath: instancePath + "/frameRate/denominator", schemaPath: "#/$defs/WireFrameRate/properties/denominator/type", keyword: "type", params: { type: "integer" }, message: "must be integer" };
|
|
2006
2178
|
if (vErrors === null) {
|
|
2007
|
-
vErrors = [
|
|
2179
|
+
vErrors = [err15];
|
|
2008
2180
|
}
|
|
2009
2181
|
else {
|
|
2010
|
-
vErrors.push(
|
|
2182
|
+
vErrors.push(err15);
|
|
2011
2183
|
}
|
|
2012
2184
|
errors++;
|
|
2013
2185
|
}
|
|
2014
2186
|
if ((typeof data3 == "number") && (isFinite(data3))) {
|
|
2015
2187
|
if (data3 > 4294967295 || isNaN(data3)) {
|
|
2016
|
-
const
|
|
2188
|
+
const err16 = { instancePath: instancePath + "/frameRate/denominator", schemaPath: "#/$defs/WireFrameRate/properties/denominator/maximum", keyword: "maximum", params: { comparison: "<=", limit: 4294967295 }, message: "must be <= 4294967295" };
|
|
2017
2189
|
if (vErrors === null) {
|
|
2018
|
-
vErrors = [
|
|
2190
|
+
vErrors = [err16];
|
|
2019
2191
|
}
|
|
2020
2192
|
else {
|
|
2021
|
-
vErrors.push(
|
|
2193
|
+
vErrors.push(err16);
|
|
2022
2194
|
}
|
|
2023
2195
|
errors++;
|
|
2024
2196
|
}
|
|
2025
2197
|
if (data3 < 1 || isNaN(data3)) {
|
|
2026
|
-
const
|
|
2198
|
+
const err17 = { instancePath: instancePath + "/frameRate/denominator", schemaPath: "#/$defs/WireFrameRate/properties/denominator/minimum", keyword: "minimum", params: { comparison: ">=", limit: 1 }, message: "must be >= 1" };
|
|
2027
2199
|
if (vErrors === null) {
|
|
2028
|
-
vErrors = [
|
|
2200
|
+
vErrors = [err17];
|
|
2029
2201
|
}
|
|
2030
2202
|
else {
|
|
2031
|
-
vErrors.push(
|
|
2203
|
+
vErrors.push(err17);
|
|
2032
2204
|
}
|
|
2033
2205
|
errors++;
|
|
2034
2206
|
}
|
|
@@ -2037,33 +2209,33 @@ function validate22(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
2037
2209
|
if (data2.numerator !== undefined) {
|
|
2038
2210
|
let data4 = data2.numerator;
|
|
2039
2211
|
if (!(((typeof data4 == "number") && (!(data4 % 1) && !isNaN(data4))) && (isFinite(data4)))) {
|
|
2040
|
-
const
|
|
2212
|
+
const err18 = { instancePath: instancePath + "/frameRate/numerator", schemaPath: "#/$defs/WireFrameRate/properties/numerator/type", keyword: "type", params: { type: "integer" }, message: "must be integer" };
|
|
2041
2213
|
if (vErrors === null) {
|
|
2042
|
-
vErrors = [
|
|
2214
|
+
vErrors = [err18];
|
|
2043
2215
|
}
|
|
2044
2216
|
else {
|
|
2045
|
-
vErrors.push(
|
|
2217
|
+
vErrors.push(err18);
|
|
2046
2218
|
}
|
|
2047
2219
|
errors++;
|
|
2048
2220
|
}
|
|
2049
2221
|
if ((typeof data4 == "number") && (isFinite(data4))) {
|
|
2050
2222
|
if (data4 > 4294967295 || isNaN(data4)) {
|
|
2051
|
-
const
|
|
2223
|
+
const err19 = { instancePath: instancePath + "/frameRate/numerator", schemaPath: "#/$defs/WireFrameRate/properties/numerator/maximum", keyword: "maximum", params: { comparison: "<=", limit: 4294967295 }, message: "must be <= 4294967295" };
|
|
2052
2224
|
if (vErrors === null) {
|
|
2053
|
-
vErrors = [
|
|
2225
|
+
vErrors = [err19];
|
|
2054
2226
|
}
|
|
2055
2227
|
else {
|
|
2056
|
-
vErrors.push(
|
|
2228
|
+
vErrors.push(err19);
|
|
2057
2229
|
}
|
|
2058
2230
|
errors++;
|
|
2059
2231
|
}
|
|
2060
2232
|
if (data4 < 1 || isNaN(data4)) {
|
|
2061
|
-
const
|
|
2233
|
+
const err20 = { instancePath: instancePath + "/frameRate/numerator", schemaPath: "#/$defs/WireFrameRate/properties/numerator/minimum", keyword: "minimum", params: { comparison: ">=", limit: 1 }, message: "must be >= 1" };
|
|
2062
2234
|
if (vErrors === null) {
|
|
2063
|
-
vErrors = [
|
|
2235
|
+
vErrors = [err20];
|
|
2064
2236
|
}
|
|
2065
2237
|
else {
|
|
2066
|
-
vErrors.push(
|
|
2238
|
+
vErrors.push(err20);
|
|
2067
2239
|
}
|
|
2068
2240
|
errors++;
|
|
2069
2241
|
}
|
|
@@ -2071,12 +2243,12 @@ function validate22(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
2071
2243
|
}
|
|
2072
2244
|
}
|
|
2073
2245
|
else {
|
|
2074
|
-
const
|
|
2246
|
+
const err21 = { instancePath: instancePath + "/frameRate", schemaPath: "#/$defs/WireFrameRate/type", keyword: "type", params: { type: "object" }, message: "must be object" };
|
|
2075
2247
|
if (vErrors === null) {
|
|
2076
|
-
vErrors = [
|
|
2248
|
+
vErrors = [err21];
|
|
2077
2249
|
}
|
|
2078
2250
|
else {
|
|
2079
|
-
vErrors.push(
|
|
2251
|
+
vErrors.push(err21);
|
|
2080
2252
|
}
|
|
2081
2253
|
errors++;
|
|
2082
2254
|
}
|
|
@@ -2091,12 +2263,12 @@ function validate22(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
2091
2263
|
let data6 = data.overlays;
|
|
2092
2264
|
if (Array.isArray(data6)) {
|
|
2093
2265
|
if (data6.length > 10000) {
|
|
2094
|
-
const
|
|
2266
|
+
const err22 = { instancePath: instancePath + "/overlays", schemaPath: "#/properties/overlays/maxItems", keyword: "maxItems", params: { limit: 10000 }, message: "must NOT have more than 10000 items" };
|
|
2095
2267
|
if (vErrors === null) {
|
|
2096
|
-
vErrors = [
|
|
2268
|
+
vErrors = [err22];
|
|
2097
2269
|
}
|
|
2098
2270
|
else {
|
|
2099
|
-
vErrors.push(
|
|
2271
|
+
vErrors.push(err22);
|
|
2100
2272
|
}
|
|
2101
2273
|
errors++;
|
|
2102
2274
|
}
|
|
@@ -2109,12 +2281,12 @@ function validate22(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
2109
2281
|
}
|
|
2110
2282
|
}
|
|
2111
2283
|
else {
|
|
2112
|
-
const
|
|
2284
|
+
const err23 = { instancePath: instancePath + "/overlays", schemaPath: "#/properties/overlays/type", keyword: "type", params: { type: "array" }, message: "must be array" };
|
|
2113
2285
|
if (vErrors === null) {
|
|
2114
|
-
vErrors = [
|
|
2286
|
+
vErrors = [err23];
|
|
2115
2287
|
}
|
|
2116
2288
|
else {
|
|
2117
|
-
vErrors.push(
|
|
2289
|
+
vErrors.push(err23);
|
|
2118
2290
|
}
|
|
2119
2291
|
errors++;
|
|
2120
2292
|
}
|
|
@@ -2123,12 +2295,12 @@ function validate22(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
2123
2295
|
let data8 = data.scenes;
|
|
2124
2296
|
if (Array.isArray(data8)) {
|
|
2125
2297
|
if (data8.length > 10000) {
|
|
2126
|
-
const
|
|
2298
|
+
const err24 = { instancePath: instancePath + "/scenes", schemaPath: "#/properties/scenes/maxItems", keyword: "maxItems", params: { limit: 10000 }, message: "must NOT have more than 10000 items" };
|
|
2127
2299
|
if (vErrors === null) {
|
|
2128
|
-
vErrors = [
|
|
2300
|
+
vErrors = [err24];
|
|
2129
2301
|
}
|
|
2130
2302
|
else {
|
|
2131
|
-
vErrors.push(
|
|
2303
|
+
vErrors.push(err24);
|
|
2132
2304
|
}
|
|
2133
2305
|
errors++;
|
|
2134
2306
|
}
|
|
@@ -2141,12 +2313,12 @@ function validate22(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
2141
2313
|
}
|
|
2142
2314
|
}
|
|
2143
2315
|
else {
|
|
2144
|
-
const
|
|
2316
|
+
const err25 = { instancePath: instancePath + "/scenes", schemaPath: "#/properties/scenes/type", keyword: "type", params: { type: "array" }, message: "must be array" };
|
|
2145
2317
|
if (vErrors === null) {
|
|
2146
|
-
vErrors = [
|
|
2318
|
+
vErrors = [err25];
|
|
2147
2319
|
}
|
|
2148
2320
|
else {
|
|
2149
|
-
vErrors.push(
|
|
2321
|
+
vErrors.push(err25);
|
|
2150
2322
|
}
|
|
2151
2323
|
errors++;
|
|
2152
2324
|
}
|
|
@@ -2155,12 +2327,12 @@ function validate22(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
2155
2327
|
let data10 = data.shots;
|
|
2156
2328
|
if (Array.isArray(data10)) {
|
|
2157
2329
|
if (data10.length > 10000) {
|
|
2158
|
-
const
|
|
2330
|
+
const err26 = { instancePath: instancePath + "/shots", schemaPath: "#/properties/shots/maxItems", keyword: "maxItems", params: { limit: 10000 }, message: "must NOT have more than 10000 items" };
|
|
2159
2331
|
if (vErrors === null) {
|
|
2160
|
-
vErrors = [
|
|
2332
|
+
vErrors = [err26];
|
|
2161
2333
|
}
|
|
2162
2334
|
else {
|
|
2163
|
-
vErrors.push(
|
|
2335
|
+
vErrors.push(err26);
|
|
2164
2336
|
}
|
|
2165
2337
|
errors++;
|
|
2166
2338
|
}
|
|
@@ -2173,12 +2345,12 @@ function validate22(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
2173
2345
|
}
|
|
2174
2346
|
}
|
|
2175
2347
|
else {
|
|
2176
|
-
const
|
|
2348
|
+
const err27 = { instancePath: instancePath + "/shots", schemaPath: "#/properties/shots/type", keyword: "type", params: { type: "array" }, message: "must be array" };
|
|
2177
2349
|
if (vErrors === null) {
|
|
2178
|
-
vErrors = [
|
|
2350
|
+
vErrors = [err27];
|
|
2179
2351
|
}
|
|
2180
2352
|
else {
|
|
2181
|
-
vErrors.push(
|
|
2353
|
+
vErrors.push(err27);
|
|
2182
2354
|
}
|
|
2183
2355
|
errors++;
|
|
2184
2356
|
}
|
|
@@ -2192,88 +2364,120 @@ function validate22(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
2192
2364
|
if (data.timelineVersion !== undefined) {
|
|
2193
2365
|
let data13 = data.timelineVersion;
|
|
2194
2366
|
if (!(((typeof data13 == "number") && (!(data13 % 1) && !isNaN(data13))) && (isFinite(data13)))) {
|
|
2195
|
-
const
|
|
2367
|
+
const err28 = { instancePath: instancePath + "/timelineVersion", schemaPath: "#/properties/timelineVersion/type", keyword: "type", params: { type: "integer" }, message: "must be integer" };
|
|
2196
2368
|
if (vErrors === null) {
|
|
2197
|
-
vErrors = [
|
|
2369
|
+
vErrors = [err28];
|
|
2198
2370
|
}
|
|
2199
2371
|
else {
|
|
2200
|
-
vErrors.push(
|
|
2372
|
+
vErrors.push(err28);
|
|
2201
2373
|
}
|
|
2202
2374
|
errors++;
|
|
2203
2375
|
}
|
|
2204
|
-
if (
|
|
2205
|
-
const
|
|
2376
|
+
if (3 !== data13) {
|
|
2377
|
+
const err29 = { instancePath: instancePath + "/timelineVersion", schemaPath: "#/properties/timelineVersion/const", keyword: "const", params: { allowedValue: 3 }, message: "must be equal to constant" };
|
|
2206
2378
|
if (vErrors === null) {
|
|
2207
|
-
vErrors = [
|
|
2379
|
+
vErrors = [err29];
|
|
2208
2380
|
}
|
|
2209
2381
|
else {
|
|
2210
|
-
vErrors.push(
|
|
2382
|
+
vErrors.push(err29);
|
|
2211
2383
|
}
|
|
2212
2384
|
errors++;
|
|
2213
2385
|
}
|
|
2214
2386
|
if ((typeof data13 == "number") && (isFinite(data13))) {
|
|
2215
2387
|
if (data13 > 65535 || isNaN(data13)) {
|
|
2216
|
-
const
|
|
2388
|
+
const err30 = { instancePath: instancePath + "/timelineVersion", schemaPath: "#/properties/timelineVersion/maximum", keyword: "maximum", params: { comparison: "<=", limit: 65535 }, message: "must be <= 65535" };
|
|
2217
2389
|
if (vErrors === null) {
|
|
2218
|
-
vErrors = [
|
|
2390
|
+
vErrors = [err30];
|
|
2219
2391
|
}
|
|
2220
2392
|
else {
|
|
2221
|
-
vErrors.push(
|
|
2393
|
+
vErrors.push(err30);
|
|
2222
2394
|
}
|
|
2223
2395
|
errors++;
|
|
2224
2396
|
}
|
|
2225
2397
|
if (data13 < 0 || isNaN(data13)) {
|
|
2226
|
-
const
|
|
2398
|
+
const err31 = { instancePath: instancePath + "/timelineVersion", schemaPath: "#/properties/timelineVersion/minimum", keyword: "minimum", params: { comparison: ">=", limit: 0 }, message: "must be >= 0" };
|
|
2227
2399
|
if (vErrors === null) {
|
|
2228
|
-
vErrors = [
|
|
2400
|
+
vErrors = [err31];
|
|
2229
2401
|
}
|
|
2230
2402
|
else {
|
|
2231
|
-
vErrors.push(
|
|
2403
|
+
vErrors.push(err31);
|
|
2232
2404
|
}
|
|
2233
2405
|
errors++;
|
|
2234
2406
|
}
|
|
2235
2407
|
}
|
|
2236
2408
|
}
|
|
2237
|
-
if (data.
|
|
2238
|
-
let data14 = data.
|
|
2409
|
+
if (data.transitions !== undefined) {
|
|
2410
|
+
let data14 = data.transitions;
|
|
2239
2411
|
if (Array.isArray(data14)) {
|
|
2240
2412
|
if (data14.length > 10000) {
|
|
2241
|
-
const
|
|
2413
|
+
const err32 = { instancePath: instancePath + "/transitions", schemaPath: "#/properties/transitions/maxItems", keyword: "maxItems", params: { limit: 10000 }, message: "must NOT have more than 10000 items" };
|
|
2242
2414
|
if (vErrors === null) {
|
|
2243
|
-
vErrors = [
|
|
2415
|
+
vErrors = [err32];
|
|
2244
2416
|
}
|
|
2245
2417
|
else {
|
|
2246
|
-
vErrors.push(
|
|
2418
|
+
vErrors.push(err32);
|
|
2247
2419
|
}
|
|
2248
2420
|
errors++;
|
|
2249
2421
|
}
|
|
2250
2422
|
const len3 = data14.length;
|
|
2251
2423
|
for (let i3 = 0; i3 < len3; i3++) {
|
|
2252
|
-
if (!(validate41(data14[i3], { instancePath: instancePath + "/
|
|
2424
|
+
if (!(validate41(data14[i3], { instancePath: instancePath + "/transitions/" + i3, parentData: data14, parentDataProperty: i3, rootData, dynamicAnchors }))) {
|
|
2253
2425
|
vErrors = vErrors === null ? validate41.errors : vErrors.concat(validate41.errors);
|
|
2254
2426
|
errors = vErrors.length;
|
|
2255
2427
|
}
|
|
2256
2428
|
}
|
|
2257
2429
|
}
|
|
2258
2430
|
else {
|
|
2259
|
-
const
|
|
2431
|
+
const err33 = { instancePath: instancePath + "/transitions", schemaPath: "#/properties/transitions/type", keyword: "type", params: { type: "array" }, message: "must be array" };
|
|
2260
2432
|
if (vErrors === null) {
|
|
2261
|
-
vErrors = [
|
|
2433
|
+
vErrors = [err33];
|
|
2262
2434
|
}
|
|
2263
2435
|
else {
|
|
2264
|
-
vErrors.push(
|
|
2436
|
+
vErrors.push(err33);
|
|
2437
|
+
}
|
|
2438
|
+
errors++;
|
|
2439
|
+
}
|
|
2440
|
+
}
|
|
2441
|
+
if (data.videos !== undefined) {
|
|
2442
|
+
let data16 = data.videos;
|
|
2443
|
+
if (Array.isArray(data16)) {
|
|
2444
|
+
if (data16.length > 10000) {
|
|
2445
|
+
const err34 = { instancePath: instancePath + "/videos", schemaPath: "#/properties/videos/maxItems", keyword: "maxItems", params: { limit: 10000 }, message: "must NOT have more than 10000 items" };
|
|
2446
|
+
if (vErrors === null) {
|
|
2447
|
+
vErrors = [err34];
|
|
2448
|
+
}
|
|
2449
|
+
else {
|
|
2450
|
+
vErrors.push(err34);
|
|
2451
|
+
}
|
|
2452
|
+
errors++;
|
|
2453
|
+
}
|
|
2454
|
+
const len4 = data16.length;
|
|
2455
|
+
for (let i4 = 0; i4 < len4; i4++) {
|
|
2456
|
+
if (!(validate45(data16[i4], { instancePath: instancePath + "/videos/" + i4, parentData: data16, parentDataProperty: i4, rootData, dynamicAnchors }))) {
|
|
2457
|
+
vErrors = vErrors === null ? validate45.errors : vErrors.concat(validate45.errors);
|
|
2458
|
+
errors = vErrors.length;
|
|
2459
|
+
}
|
|
2460
|
+
}
|
|
2461
|
+
}
|
|
2462
|
+
else {
|
|
2463
|
+
const err35 = { instancePath: instancePath + "/videos", schemaPath: "#/properties/videos/type", keyword: "type", params: { type: "array" }, message: "must be array" };
|
|
2464
|
+
if (vErrors === null) {
|
|
2465
|
+
vErrors = [err35];
|
|
2466
|
+
}
|
|
2467
|
+
else {
|
|
2468
|
+
vErrors.push(err35);
|
|
2265
2469
|
}
|
|
2266
2470
|
errors++;
|
|
2267
2471
|
}
|
|
2268
2472
|
}
|
|
2269
2473
|
}
|
|
2270
2474
|
else {
|
|
2271
|
-
const
|
|
2475
|
+
const err36 = { instancePath, schemaPath: "#/type", keyword: "type", params: { type: "object" }, message: "must be object" };
|
|
2272
2476
|
if (vErrors === null) {
|
|
2273
|
-
vErrors = [
|
|
2477
|
+
vErrors = [err36];
|
|
2274
2478
|
}
|
|
2275
2479
|
else {
|
|
2276
|
-
vErrors.push(
|
|
2480
|
+
vErrors.push(err36);
|
|
2277
2481
|
}
|
|
2278
2482
|
errors++;
|
|
2279
2483
|
}
|
|
@@ -2316,17 +2520,144 @@ function validate21(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
2316
2520
|
}
|
|
2317
2521
|
errors++;
|
|
2318
2522
|
}
|
|
2319
|
-
|
|
2320
|
-
|
|
2321
|
-
|
|
2322
|
-
|
|
2323
|
-
|
|
2523
|
+
if (data.mediaMode === undefined) {
|
|
2524
|
+
const err2 = { instancePath, schemaPath: "#/oneOf/0/required", keyword: "required", params: { missingProperty: "mediaMode" }, message: "must have required property '" + "mediaMode" + "'" };
|
|
2525
|
+
if (vErrors === null) {
|
|
2526
|
+
vErrors = [err2];
|
|
2527
|
+
}
|
|
2528
|
+
else {
|
|
2529
|
+
vErrors.push(err2);
|
|
2530
|
+
}
|
|
2531
|
+
errors++;
|
|
2532
|
+
}
|
|
2533
|
+
for (const key0 in data) {
|
|
2534
|
+
if (!(((key0 === "mediaMode") || (key0 === "plan")) || (key0 === "type"))) {
|
|
2535
|
+
const err3 = { instancePath, schemaPath: "#/oneOf/0/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key0 }, message: "must NOT have additional properties" };
|
|
2536
|
+
if (vErrors === null) {
|
|
2537
|
+
vErrors = [err3];
|
|
2324
2538
|
}
|
|
2325
2539
|
else {
|
|
2326
|
-
vErrors.push(
|
|
2540
|
+
vErrors.push(err3);
|
|
2541
|
+
}
|
|
2542
|
+
errors++;
|
|
2543
|
+
}
|
|
2544
|
+
}
|
|
2545
|
+
if (data.mediaMode !== undefined) {
|
|
2546
|
+
let data0 = data.mediaMode;
|
|
2547
|
+
const _errs6 = errors;
|
|
2548
|
+
let valid3 = false;
|
|
2549
|
+
let passing1 = null;
|
|
2550
|
+
const _errs7 = errors;
|
|
2551
|
+
if (typeof data0 !== "string") {
|
|
2552
|
+
const err4 = { instancePath: instancePath + "/mediaMode", schemaPath: "#/$defs/BrowserMediaMode/oneOf/0/type", keyword: "type", params: { type: "string" }, message: "must be string" };
|
|
2553
|
+
if (vErrors === null) {
|
|
2554
|
+
vErrors = [err4];
|
|
2555
|
+
}
|
|
2556
|
+
else {
|
|
2557
|
+
vErrors.push(err4);
|
|
2558
|
+
}
|
|
2559
|
+
errors++;
|
|
2560
|
+
}
|
|
2561
|
+
if ("decoded" !== data0) {
|
|
2562
|
+
const err5 = { instancePath: instancePath + "/mediaMode", schemaPath: "#/$defs/BrowserMediaMode/oneOf/0/const", keyword: "const", params: { allowedValue: "decoded" }, message: "must be equal to constant" };
|
|
2563
|
+
if (vErrors === null) {
|
|
2564
|
+
vErrors = [err5];
|
|
2565
|
+
}
|
|
2566
|
+
else {
|
|
2567
|
+
vErrors.push(err5);
|
|
2568
|
+
}
|
|
2569
|
+
errors++;
|
|
2570
|
+
}
|
|
2571
|
+
var _valid1 = _errs7 === errors;
|
|
2572
|
+
if (_valid1) {
|
|
2573
|
+
valid3 = true;
|
|
2574
|
+
passing1 = 0;
|
|
2575
|
+
}
|
|
2576
|
+
const _errs9 = errors;
|
|
2577
|
+
if (typeof data0 !== "string") {
|
|
2578
|
+
const err6 = { instancePath: instancePath + "/mediaMode", schemaPath: "#/$defs/BrowserMediaMode/oneOf/1/type", keyword: "type", params: { type: "string" }, message: "must be string" };
|
|
2579
|
+
if (vErrors === null) {
|
|
2580
|
+
vErrors = [err6];
|
|
2581
|
+
}
|
|
2582
|
+
else {
|
|
2583
|
+
vErrors.push(err6);
|
|
2584
|
+
}
|
|
2585
|
+
errors++;
|
|
2586
|
+
}
|
|
2587
|
+
if ("omitted" !== data0) {
|
|
2588
|
+
const err7 = { instancePath: instancePath + "/mediaMode", schemaPath: "#/$defs/BrowserMediaMode/oneOf/1/const", keyword: "const", params: { allowedValue: "omitted" }, message: "must be equal to constant" };
|
|
2589
|
+
if (vErrors === null) {
|
|
2590
|
+
vErrors = [err7];
|
|
2591
|
+
}
|
|
2592
|
+
else {
|
|
2593
|
+
vErrors.push(err7);
|
|
2594
|
+
}
|
|
2595
|
+
errors++;
|
|
2596
|
+
}
|
|
2597
|
+
var _valid1 = _errs9 === errors;
|
|
2598
|
+
if (_valid1 && valid3) {
|
|
2599
|
+
valid3 = false;
|
|
2600
|
+
passing1 = [passing1, 1];
|
|
2601
|
+
}
|
|
2602
|
+
else {
|
|
2603
|
+
if (_valid1) {
|
|
2604
|
+
valid3 = true;
|
|
2605
|
+
passing1 = 1;
|
|
2606
|
+
}
|
|
2607
|
+
const _errs11 = errors;
|
|
2608
|
+
if (typeof data0 !== "string") {
|
|
2609
|
+
const err8 = { instancePath: instancePath + "/mediaMode", schemaPath: "#/$defs/BrowserMediaMode/oneOf/2/type", keyword: "type", params: { type: "string" }, message: "must be string" };
|
|
2610
|
+
if (vErrors === null) {
|
|
2611
|
+
vErrors = [err8];
|
|
2612
|
+
}
|
|
2613
|
+
else {
|
|
2614
|
+
vErrors.push(err8);
|
|
2615
|
+
}
|
|
2616
|
+
errors++;
|
|
2617
|
+
}
|
|
2618
|
+
if ("layoutOnly" !== data0) {
|
|
2619
|
+
const err9 = { instancePath: instancePath + "/mediaMode", schemaPath: "#/$defs/BrowserMediaMode/oneOf/2/const", keyword: "const", params: { allowedValue: "layoutOnly" }, message: "must be equal to constant" };
|
|
2620
|
+
if (vErrors === null) {
|
|
2621
|
+
vErrors = [err9];
|
|
2622
|
+
}
|
|
2623
|
+
else {
|
|
2624
|
+
vErrors.push(err9);
|
|
2625
|
+
}
|
|
2626
|
+
errors++;
|
|
2627
|
+
}
|
|
2628
|
+
var _valid1 = _errs11 === errors;
|
|
2629
|
+
if (_valid1 && valid3) {
|
|
2630
|
+
valid3 = false;
|
|
2631
|
+
passing1 = [passing1, 2];
|
|
2632
|
+
}
|
|
2633
|
+
else {
|
|
2634
|
+
if (_valid1) {
|
|
2635
|
+
valid3 = true;
|
|
2636
|
+
passing1 = 2;
|
|
2637
|
+
}
|
|
2638
|
+
}
|
|
2639
|
+
}
|
|
2640
|
+
if (!valid3) {
|
|
2641
|
+
const err10 = { instancePath: instancePath + "/mediaMode", schemaPath: "#/$defs/BrowserMediaMode/oneOf", keyword: "oneOf", params: { passingSchemas: passing1 }, message: "must match exactly one schema in oneOf" };
|
|
2642
|
+
if (vErrors === null) {
|
|
2643
|
+
vErrors = [err10];
|
|
2644
|
+
}
|
|
2645
|
+
else {
|
|
2646
|
+
vErrors.push(err10);
|
|
2327
2647
|
}
|
|
2328
2648
|
errors++;
|
|
2329
2649
|
}
|
|
2650
|
+
else {
|
|
2651
|
+
errors = _errs6;
|
|
2652
|
+
if (vErrors !== null) {
|
|
2653
|
+
if (_errs6) {
|
|
2654
|
+
vErrors.length = _errs6;
|
|
2655
|
+
}
|
|
2656
|
+
else {
|
|
2657
|
+
vErrors = null;
|
|
2658
|
+
}
|
|
2659
|
+
}
|
|
2660
|
+
}
|
|
2330
2661
|
}
|
|
2331
2662
|
if (data.plan !== undefined) {
|
|
2332
2663
|
if (!(validate22(data.plan, { instancePath: instancePath + "/plan", parentData: data, parentDataProperty: "plan", rootData, dynamicAnchors }))) {
|
|
@@ -2335,36 +2666,36 @@ function validate21(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
2335
2666
|
}
|
|
2336
2667
|
}
|
|
2337
2668
|
if (data.type !== undefined) {
|
|
2338
|
-
let
|
|
2339
|
-
if (typeof
|
|
2340
|
-
const
|
|
2669
|
+
let data2 = data.type;
|
|
2670
|
+
if (typeof data2 !== "string") {
|
|
2671
|
+
const err11 = { instancePath: instancePath + "/type", schemaPath: "#/oneOf/0/properties/type/type", keyword: "type", params: { type: "string" }, message: "must be string" };
|
|
2341
2672
|
if (vErrors === null) {
|
|
2342
|
-
vErrors = [
|
|
2673
|
+
vErrors = [err11];
|
|
2343
2674
|
}
|
|
2344
2675
|
else {
|
|
2345
|
-
vErrors.push(
|
|
2676
|
+
vErrors.push(err11);
|
|
2346
2677
|
}
|
|
2347
2678
|
errors++;
|
|
2348
2679
|
}
|
|
2349
|
-
if ("load" !==
|
|
2350
|
-
const
|
|
2680
|
+
if ("load" !== data2) {
|
|
2681
|
+
const err12 = { instancePath: instancePath + "/type", schemaPath: "#/oneOf/0/properties/type/const", keyword: "const", params: { allowedValue: "load" }, message: "must be equal to constant" };
|
|
2351
2682
|
if (vErrors === null) {
|
|
2352
|
-
vErrors = [
|
|
2683
|
+
vErrors = [err12];
|
|
2353
2684
|
}
|
|
2354
2685
|
else {
|
|
2355
|
-
vErrors.push(
|
|
2686
|
+
vErrors.push(err12);
|
|
2356
2687
|
}
|
|
2357
2688
|
errors++;
|
|
2358
2689
|
}
|
|
2359
2690
|
}
|
|
2360
2691
|
}
|
|
2361
2692
|
else {
|
|
2362
|
-
const
|
|
2693
|
+
const err13 = { instancePath, schemaPath: "#/oneOf/0/type", keyword: "type", params: { type: "object" }, message: "must be object" };
|
|
2363
2694
|
if (vErrors === null) {
|
|
2364
|
-
vErrors = [
|
|
2695
|
+
vErrors = [err13];
|
|
2365
2696
|
}
|
|
2366
2697
|
else {
|
|
2367
|
-
vErrors.push(
|
|
2698
|
+
vErrors.push(err13);
|
|
2368
2699
|
}
|
|
2369
2700
|
errors++;
|
|
2370
2701
|
}
|
|
@@ -2374,110 +2705,110 @@ function validate21(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
2374
2705
|
passing0 = 0;
|
|
2375
2706
|
var props0 = true;
|
|
2376
2707
|
}
|
|
2377
|
-
const
|
|
2708
|
+
const _errs16 = errors;
|
|
2378
2709
|
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
2379
2710
|
if (data.type === undefined) {
|
|
2380
|
-
const
|
|
2711
|
+
const err14 = { instancePath, schemaPath: "#/oneOf/1/required", keyword: "required", params: { missingProperty: "type" }, message: "must have required property '" + "type" + "'" };
|
|
2381
2712
|
if (vErrors === null) {
|
|
2382
|
-
vErrors = [
|
|
2713
|
+
vErrors = [err14];
|
|
2383
2714
|
}
|
|
2384
2715
|
else {
|
|
2385
|
-
vErrors.push(
|
|
2716
|
+
vErrors.push(err14);
|
|
2386
2717
|
}
|
|
2387
2718
|
errors++;
|
|
2388
2719
|
}
|
|
2389
2720
|
if (data.evaluationStart === undefined) {
|
|
2390
|
-
const
|
|
2721
|
+
const err15 = { instancePath, schemaPath: "#/oneOf/1/required", keyword: "required", params: { missingProperty: "evaluationStart" }, message: "must have required property '" + "evaluationStart" + "'" };
|
|
2391
2722
|
if (vErrors === null) {
|
|
2392
|
-
vErrors = [
|
|
2723
|
+
vErrors = [err15];
|
|
2393
2724
|
}
|
|
2394
2725
|
else {
|
|
2395
|
-
vErrors.push(
|
|
2726
|
+
vErrors.push(err15);
|
|
2396
2727
|
}
|
|
2397
2728
|
errors++;
|
|
2398
2729
|
}
|
|
2399
2730
|
for (const key1 in data) {
|
|
2400
2731
|
if (!((key1 === "evaluationStart") || (key1 === "type"))) {
|
|
2401
|
-
const
|
|
2732
|
+
const err16 = { instancePath, schemaPath: "#/oneOf/1/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key1 }, message: "must NOT have additional properties" };
|
|
2402
2733
|
if (vErrors === null) {
|
|
2403
|
-
vErrors = [
|
|
2734
|
+
vErrors = [err16];
|
|
2404
2735
|
}
|
|
2405
2736
|
else {
|
|
2406
|
-
vErrors.push(
|
|
2737
|
+
vErrors.push(err16);
|
|
2407
2738
|
}
|
|
2408
2739
|
errors++;
|
|
2409
2740
|
}
|
|
2410
2741
|
}
|
|
2411
2742
|
if (data.evaluationStart !== undefined) {
|
|
2412
|
-
let
|
|
2413
|
-
if (!(((typeof
|
|
2414
|
-
const
|
|
2743
|
+
let data3 = data.evaluationStart;
|
|
2744
|
+
if (!(((typeof data3 == "number") && (!(data3 % 1) && !isNaN(data3))) && (isFinite(data3)))) {
|
|
2745
|
+
const err17 = { instancePath: instancePath + "/evaluationStart", schemaPath: "#/$defs/WireFrame/type", keyword: "type", params: { type: "integer" }, message: "must be integer" };
|
|
2415
2746
|
if (vErrors === null) {
|
|
2416
|
-
vErrors = [
|
|
2747
|
+
vErrors = [err17];
|
|
2417
2748
|
}
|
|
2418
2749
|
else {
|
|
2419
|
-
vErrors.push(
|
|
2750
|
+
vErrors.push(err17);
|
|
2420
2751
|
}
|
|
2421
2752
|
errors++;
|
|
2422
2753
|
}
|
|
2423
|
-
if ((typeof
|
|
2424
|
-
if (
|
|
2425
|
-
const
|
|
2754
|
+
if ((typeof data3 == "number") && (isFinite(data3))) {
|
|
2755
|
+
if (data3 > 9007199254740991 || isNaN(data3)) {
|
|
2756
|
+
const err18 = { instancePath: instancePath + "/evaluationStart", schemaPath: "#/$defs/WireFrame/maximum", keyword: "maximum", params: { comparison: "<=", limit: 9007199254740991 }, message: "must be <= 9007199254740991" };
|
|
2426
2757
|
if (vErrors === null) {
|
|
2427
|
-
vErrors = [
|
|
2758
|
+
vErrors = [err18];
|
|
2428
2759
|
}
|
|
2429
2760
|
else {
|
|
2430
|
-
vErrors.push(
|
|
2761
|
+
vErrors.push(err18);
|
|
2431
2762
|
}
|
|
2432
2763
|
errors++;
|
|
2433
2764
|
}
|
|
2434
|
-
if (
|
|
2435
|
-
const
|
|
2765
|
+
if (data3 < 0 || isNaN(data3)) {
|
|
2766
|
+
const err19 = { instancePath: instancePath + "/evaluationStart", schemaPath: "#/$defs/WireFrame/minimum", keyword: "minimum", params: { comparison: ">=", limit: 0 }, message: "must be >= 0" };
|
|
2436
2767
|
if (vErrors === null) {
|
|
2437
|
-
vErrors = [
|
|
2768
|
+
vErrors = [err19];
|
|
2438
2769
|
}
|
|
2439
2770
|
else {
|
|
2440
|
-
vErrors.push(
|
|
2771
|
+
vErrors.push(err19);
|
|
2441
2772
|
}
|
|
2442
2773
|
errors++;
|
|
2443
2774
|
}
|
|
2444
2775
|
}
|
|
2445
2776
|
}
|
|
2446
2777
|
if (data.type !== undefined) {
|
|
2447
|
-
let
|
|
2448
|
-
if (typeof
|
|
2449
|
-
const
|
|
2778
|
+
let data4 = data.type;
|
|
2779
|
+
if (typeof data4 !== "string") {
|
|
2780
|
+
const err20 = { instancePath: instancePath + "/type", schemaPath: "#/oneOf/1/properties/type/type", keyword: "type", params: { type: "string" }, message: "must be string" };
|
|
2450
2781
|
if (vErrors === null) {
|
|
2451
|
-
vErrors = [
|
|
2782
|
+
vErrors = [err20];
|
|
2452
2783
|
}
|
|
2453
2784
|
else {
|
|
2454
|
-
vErrors.push(
|
|
2785
|
+
vErrors.push(err20);
|
|
2455
2786
|
}
|
|
2456
2787
|
errors++;
|
|
2457
2788
|
}
|
|
2458
|
-
if ("prepare" !==
|
|
2459
|
-
const
|
|
2789
|
+
if ("prepare" !== data4) {
|
|
2790
|
+
const err21 = { instancePath: instancePath + "/type", schemaPath: "#/oneOf/1/properties/type/const", keyword: "const", params: { allowedValue: "prepare" }, message: "must be equal to constant" };
|
|
2460
2791
|
if (vErrors === null) {
|
|
2461
|
-
vErrors = [
|
|
2792
|
+
vErrors = [err21];
|
|
2462
2793
|
}
|
|
2463
2794
|
else {
|
|
2464
|
-
vErrors.push(
|
|
2795
|
+
vErrors.push(err21);
|
|
2465
2796
|
}
|
|
2466
2797
|
errors++;
|
|
2467
2798
|
}
|
|
2468
2799
|
}
|
|
2469
2800
|
}
|
|
2470
2801
|
else {
|
|
2471
|
-
const
|
|
2802
|
+
const err22 = { instancePath, schemaPath: "#/oneOf/1/type", keyword: "type", params: { type: "object" }, message: "must be object" };
|
|
2472
2803
|
if (vErrors === null) {
|
|
2473
|
-
vErrors = [
|
|
2804
|
+
vErrors = [err22];
|
|
2474
2805
|
}
|
|
2475
2806
|
else {
|
|
2476
|
-
vErrors.push(
|
|
2807
|
+
vErrors.push(err22);
|
|
2477
2808
|
}
|
|
2478
2809
|
errors++;
|
|
2479
2810
|
}
|
|
2480
|
-
var _valid0 =
|
|
2811
|
+
var _valid0 = _errs16 === errors;
|
|
2481
2812
|
if (_valid0 && valid0) {
|
|
2482
2813
|
valid0 = false;
|
|
2483
2814
|
passing0 = [passing0, 1];
|
|
@@ -2490,110 +2821,110 @@ function validate21(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
2490
2821
|
props0 = true;
|
|
2491
2822
|
}
|
|
2492
2823
|
}
|
|
2493
|
-
const
|
|
2824
|
+
const _errs24 = errors;
|
|
2494
2825
|
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
2495
2826
|
if (data.type === undefined) {
|
|
2496
|
-
const
|
|
2827
|
+
const err23 = { instancePath, schemaPath: "#/oneOf/2/required", keyword: "required", params: { missingProperty: "type" }, message: "must have required property '" + "type" + "'" };
|
|
2497
2828
|
if (vErrors === null) {
|
|
2498
|
-
vErrors = [
|
|
2829
|
+
vErrors = [err23];
|
|
2499
2830
|
}
|
|
2500
2831
|
else {
|
|
2501
|
-
vErrors.push(
|
|
2832
|
+
vErrors.push(err23);
|
|
2502
2833
|
}
|
|
2503
2834
|
errors++;
|
|
2504
2835
|
}
|
|
2505
2836
|
if (data.frame === undefined) {
|
|
2506
|
-
const
|
|
2837
|
+
const err24 = { instancePath, schemaPath: "#/oneOf/2/required", keyword: "required", params: { missingProperty: "frame" }, message: "must have required property '" + "frame" + "'" };
|
|
2507
2838
|
if (vErrors === null) {
|
|
2508
|
-
vErrors = [
|
|
2839
|
+
vErrors = [err24];
|
|
2509
2840
|
}
|
|
2510
2841
|
else {
|
|
2511
|
-
vErrors.push(
|
|
2842
|
+
vErrors.push(err24);
|
|
2512
2843
|
}
|
|
2513
2844
|
errors++;
|
|
2514
2845
|
}
|
|
2515
2846
|
for (const key2 in data) {
|
|
2516
2847
|
if (!((key2 === "frame") || (key2 === "type"))) {
|
|
2517
|
-
const
|
|
2848
|
+
const err25 = { instancePath, schemaPath: "#/oneOf/2/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key2 }, message: "must NOT have additional properties" };
|
|
2518
2849
|
if (vErrors === null) {
|
|
2519
|
-
vErrors = [
|
|
2850
|
+
vErrors = [err25];
|
|
2520
2851
|
}
|
|
2521
2852
|
else {
|
|
2522
|
-
vErrors.push(
|
|
2853
|
+
vErrors.push(err25);
|
|
2523
2854
|
}
|
|
2524
2855
|
errors++;
|
|
2525
2856
|
}
|
|
2526
2857
|
}
|
|
2527
2858
|
if (data.frame !== undefined) {
|
|
2528
|
-
let
|
|
2529
|
-
if (!(((typeof
|
|
2530
|
-
const
|
|
2859
|
+
let data5 = data.frame;
|
|
2860
|
+
if (!(((typeof data5 == "number") && (!(data5 % 1) && !isNaN(data5))) && (isFinite(data5)))) {
|
|
2861
|
+
const err26 = { instancePath: instancePath + "/frame", schemaPath: "#/$defs/WireFrame/type", keyword: "type", params: { type: "integer" }, message: "must be integer" };
|
|
2531
2862
|
if (vErrors === null) {
|
|
2532
|
-
vErrors = [
|
|
2863
|
+
vErrors = [err26];
|
|
2533
2864
|
}
|
|
2534
2865
|
else {
|
|
2535
|
-
vErrors.push(
|
|
2866
|
+
vErrors.push(err26);
|
|
2536
2867
|
}
|
|
2537
2868
|
errors++;
|
|
2538
2869
|
}
|
|
2539
|
-
if ((typeof
|
|
2540
|
-
if (
|
|
2541
|
-
const
|
|
2870
|
+
if ((typeof data5 == "number") && (isFinite(data5))) {
|
|
2871
|
+
if (data5 > 9007199254740991 || isNaN(data5)) {
|
|
2872
|
+
const err27 = { instancePath: instancePath + "/frame", schemaPath: "#/$defs/WireFrame/maximum", keyword: "maximum", params: { comparison: "<=", limit: 9007199254740991 }, message: "must be <= 9007199254740991" };
|
|
2542
2873
|
if (vErrors === null) {
|
|
2543
|
-
vErrors = [
|
|
2874
|
+
vErrors = [err27];
|
|
2544
2875
|
}
|
|
2545
2876
|
else {
|
|
2546
|
-
vErrors.push(
|
|
2877
|
+
vErrors.push(err27);
|
|
2547
2878
|
}
|
|
2548
2879
|
errors++;
|
|
2549
2880
|
}
|
|
2550
|
-
if (
|
|
2551
|
-
const
|
|
2881
|
+
if (data5 < 0 || isNaN(data5)) {
|
|
2882
|
+
const err28 = { instancePath: instancePath + "/frame", schemaPath: "#/$defs/WireFrame/minimum", keyword: "minimum", params: { comparison: ">=", limit: 0 }, message: "must be >= 0" };
|
|
2552
2883
|
if (vErrors === null) {
|
|
2553
|
-
vErrors = [
|
|
2884
|
+
vErrors = [err28];
|
|
2554
2885
|
}
|
|
2555
2886
|
else {
|
|
2556
|
-
vErrors.push(
|
|
2887
|
+
vErrors.push(err28);
|
|
2557
2888
|
}
|
|
2558
2889
|
errors++;
|
|
2559
2890
|
}
|
|
2560
2891
|
}
|
|
2561
2892
|
}
|
|
2562
2893
|
if (data.type !== undefined) {
|
|
2563
|
-
let
|
|
2564
|
-
if (typeof
|
|
2565
|
-
const
|
|
2894
|
+
let data6 = data.type;
|
|
2895
|
+
if (typeof data6 !== "string") {
|
|
2896
|
+
const err29 = { instancePath: instancePath + "/type", schemaPath: "#/oneOf/2/properties/type/type", keyword: "type", params: { type: "string" }, message: "must be string" };
|
|
2566
2897
|
if (vErrors === null) {
|
|
2567
|
-
vErrors = [
|
|
2898
|
+
vErrors = [err29];
|
|
2568
2899
|
}
|
|
2569
2900
|
else {
|
|
2570
|
-
vErrors.push(
|
|
2901
|
+
vErrors.push(err29);
|
|
2571
2902
|
}
|
|
2572
2903
|
errors++;
|
|
2573
2904
|
}
|
|
2574
|
-
if ("seek" !==
|
|
2575
|
-
const
|
|
2905
|
+
if ("seek" !== data6) {
|
|
2906
|
+
const err30 = { instancePath: instancePath + "/type", schemaPath: "#/oneOf/2/properties/type/const", keyword: "const", params: { allowedValue: "seek" }, message: "must be equal to constant" };
|
|
2576
2907
|
if (vErrors === null) {
|
|
2577
|
-
vErrors = [
|
|
2908
|
+
vErrors = [err30];
|
|
2578
2909
|
}
|
|
2579
2910
|
else {
|
|
2580
|
-
vErrors.push(
|
|
2911
|
+
vErrors.push(err30);
|
|
2581
2912
|
}
|
|
2582
2913
|
errors++;
|
|
2583
2914
|
}
|
|
2584
2915
|
}
|
|
2585
2916
|
}
|
|
2586
2917
|
else {
|
|
2587
|
-
const
|
|
2918
|
+
const err31 = { instancePath, schemaPath: "#/oneOf/2/type", keyword: "type", params: { type: "object" }, message: "must be object" };
|
|
2588
2919
|
if (vErrors === null) {
|
|
2589
|
-
vErrors = [
|
|
2920
|
+
vErrors = [err31];
|
|
2590
2921
|
}
|
|
2591
2922
|
else {
|
|
2592
|
-
vErrors.push(
|
|
2923
|
+
vErrors.push(err31);
|
|
2593
2924
|
}
|
|
2594
2925
|
errors++;
|
|
2595
2926
|
}
|
|
2596
|
-
var _valid0 =
|
|
2927
|
+
var _valid0 = _errs24 === errors;
|
|
2597
2928
|
if (_valid0 && valid0) {
|
|
2598
2929
|
valid0 = false;
|
|
2599
2930
|
passing0 = [passing0, 2];
|
|
@@ -2606,110 +2937,110 @@ function validate21(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
2606
2937
|
props0 = true;
|
|
2607
2938
|
}
|
|
2608
2939
|
}
|
|
2609
|
-
const
|
|
2940
|
+
const _errs32 = errors;
|
|
2610
2941
|
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
2611
2942
|
if (data.type === undefined) {
|
|
2612
|
-
const
|
|
2943
|
+
const err32 = { instancePath, schemaPath: "#/oneOf/3/required", keyword: "required", params: { missingProperty: "type" }, message: "must have required property '" + "type" + "'" };
|
|
2613
2944
|
if (vErrors === null) {
|
|
2614
|
-
vErrors = [
|
|
2945
|
+
vErrors = [err32];
|
|
2615
2946
|
}
|
|
2616
2947
|
else {
|
|
2617
|
-
vErrors.push(
|
|
2948
|
+
vErrors.push(err32);
|
|
2618
2949
|
}
|
|
2619
2950
|
errors++;
|
|
2620
2951
|
}
|
|
2621
2952
|
if (data.frame === undefined) {
|
|
2622
|
-
const
|
|
2953
|
+
const err33 = { instancePath, schemaPath: "#/oneOf/3/required", keyword: "required", params: { missingProperty: "frame" }, message: "must have required property '" + "frame" + "'" };
|
|
2623
2954
|
if (vErrors === null) {
|
|
2624
|
-
vErrors = [
|
|
2955
|
+
vErrors = [err33];
|
|
2625
2956
|
}
|
|
2626
2957
|
else {
|
|
2627
|
-
vErrors.push(
|
|
2958
|
+
vErrors.push(err33);
|
|
2628
2959
|
}
|
|
2629
2960
|
errors++;
|
|
2630
2961
|
}
|
|
2631
2962
|
for (const key3 in data) {
|
|
2632
2963
|
if (!((key3 === "frame") || (key3 === "type"))) {
|
|
2633
|
-
const
|
|
2964
|
+
const err34 = { instancePath, schemaPath: "#/oneOf/3/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key3 }, message: "must NOT have additional properties" };
|
|
2634
2965
|
if (vErrors === null) {
|
|
2635
|
-
vErrors = [
|
|
2966
|
+
vErrors = [err34];
|
|
2636
2967
|
}
|
|
2637
2968
|
else {
|
|
2638
|
-
vErrors.push(
|
|
2969
|
+
vErrors.push(err34);
|
|
2639
2970
|
}
|
|
2640
2971
|
errors++;
|
|
2641
2972
|
}
|
|
2642
2973
|
}
|
|
2643
2974
|
if (data.frame !== undefined) {
|
|
2644
|
-
let
|
|
2645
|
-
if (!(((typeof
|
|
2646
|
-
const
|
|
2975
|
+
let data7 = data.frame;
|
|
2976
|
+
if (!(((typeof data7 == "number") && (!(data7 % 1) && !isNaN(data7))) && (isFinite(data7)))) {
|
|
2977
|
+
const err35 = { instancePath: instancePath + "/frame", schemaPath: "#/$defs/WireFrame/type", keyword: "type", params: { type: "integer" }, message: "must be integer" };
|
|
2647
2978
|
if (vErrors === null) {
|
|
2648
|
-
vErrors = [
|
|
2979
|
+
vErrors = [err35];
|
|
2649
2980
|
}
|
|
2650
2981
|
else {
|
|
2651
|
-
vErrors.push(
|
|
2982
|
+
vErrors.push(err35);
|
|
2652
2983
|
}
|
|
2653
2984
|
errors++;
|
|
2654
2985
|
}
|
|
2655
|
-
if ((typeof
|
|
2656
|
-
if (
|
|
2657
|
-
const
|
|
2986
|
+
if ((typeof data7 == "number") && (isFinite(data7))) {
|
|
2987
|
+
if (data7 > 9007199254740991 || isNaN(data7)) {
|
|
2988
|
+
const err36 = { instancePath: instancePath + "/frame", schemaPath: "#/$defs/WireFrame/maximum", keyword: "maximum", params: { comparison: "<=", limit: 9007199254740991 }, message: "must be <= 9007199254740991" };
|
|
2658
2989
|
if (vErrors === null) {
|
|
2659
|
-
vErrors = [
|
|
2990
|
+
vErrors = [err36];
|
|
2660
2991
|
}
|
|
2661
2992
|
else {
|
|
2662
|
-
vErrors.push(
|
|
2993
|
+
vErrors.push(err36);
|
|
2663
2994
|
}
|
|
2664
2995
|
errors++;
|
|
2665
2996
|
}
|
|
2666
|
-
if (
|
|
2667
|
-
const
|
|
2997
|
+
if (data7 < 0 || isNaN(data7)) {
|
|
2998
|
+
const err37 = { instancePath: instancePath + "/frame", schemaPath: "#/$defs/WireFrame/minimum", keyword: "minimum", params: { comparison: ">=", limit: 0 }, message: "must be >= 0" };
|
|
2668
2999
|
if (vErrors === null) {
|
|
2669
|
-
vErrors = [
|
|
3000
|
+
vErrors = [err37];
|
|
2670
3001
|
}
|
|
2671
3002
|
else {
|
|
2672
|
-
vErrors.push(
|
|
3003
|
+
vErrors.push(err37);
|
|
2673
3004
|
}
|
|
2674
3005
|
errors++;
|
|
2675
3006
|
}
|
|
2676
3007
|
}
|
|
2677
3008
|
}
|
|
2678
3009
|
if (data.type !== undefined) {
|
|
2679
|
-
let
|
|
2680
|
-
if (typeof
|
|
2681
|
-
const
|
|
3010
|
+
let data8 = data.type;
|
|
3011
|
+
if (typeof data8 !== "string") {
|
|
3012
|
+
const err38 = { instancePath: instancePath + "/type", schemaPath: "#/oneOf/3/properties/type/type", keyword: "type", params: { type: "string" }, message: "must be string" };
|
|
2682
3013
|
if (vErrors === null) {
|
|
2683
|
-
vErrors = [
|
|
3014
|
+
vErrors = [err38];
|
|
2684
3015
|
}
|
|
2685
3016
|
else {
|
|
2686
|
-
vErrors.push(
|
|
3017
|
+
vErrors.push(err38);
|
|
2687
3018
|
}
|
|
2688
3019
|
errors++;
|
|
2689
3020
|
}
|
|
2690
|
-
if ("confirm" !==
|
|
2691
|
-
const
|
|
3021
|
+
if ("confirm" !== data8) {
|
|
3022
|
+
const err39 = { instancePath: instancePath + "/type", schemaPath: "#/oneOf/3/properties/type/const", keyword: "const", params: { allowedValue: "confirm" }, message: "must be equal to constant" };
|
|
2692
3023
|
if (vErrors === null) {
|
|
2693
|
-
vErrors = [
|
|
3024
|
+
vErrors = [err39];
|
|
2694
3025
|
}
|
|
2695
3026
|
else {
|
|
2696
|
-
vErrors.push(
|
|
3027
|
+
vErrors.push(err39);
|
|
2697
3028
|
}
|
|
2698
3029
|
errors++;
|
|
2699
3030
|
}
|
|
2700
3031
|
}
|
|
2701
3032
|
}
|
|
2702
3033
|
else {
|
|
2703
|
-
const
|
|
3034
|
+
const err40 = { instancePath, schemaPath: "#/oneOf/3/type", keyword: "type", params: { type: "object" }, message: "must be object" };
|
|
2704
3035
|
if (vErrors === null) {
|
|
2705
|
-
vErrors = [
|
|
3036
|
+
vErrors = [err40];
|
|
2706
3037
|
}
|
|
2707
3038
|
else {
|
|
2708
|
-
vErrors.push(
|
|
3039
|
+
vErrors.push(err40);
|
|
2709
3040
|
}
|
|
2710
3041
|
errors++;
|
|
2711
3042
|
}
|
|
2712
|
-
var _valid0 =
|
|
3043
|
+
var _valid0 = _errs32 === errors;
|
|
2713
3044
|
if (_valid0 && valid0) {
|
|
2714
3045
|
valid0 = false;
|
|
2715
3046
|
passing0 = [passing0, 3];
|
|
@@ -2722,65 +3053,65 @@ function validate21(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
2722
3053
|
props0 = true;
|
|
2723
3054
|
}
|
|
2724
3055
|
}
|
|
2725
|
-
const
|
|
3056
|
+
const _errs40 = errors;
|
|
2726
3057
|
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
2727
3058
|
if (data.type === undefined) {
|
|
2728
|
-
const
|
|
3059
|
+
const err41 = { instancePath, schemaPath: "#/oneOf/4/required", keyword: "required", params: { missingProperty: "type" }, message: "must have required property '" + "type" + "'" };
|
|
2729
3060
|
if (vErrors === null) {
|
|
2730
|
-
vErrors = [
|
|
3061
|
+
vErrors = [err41];
|
|
2731
3062
|
}
|
|
2732
3063
|
else {
|
|
2733
|
-
vErrors.push(
|
|
3064
|
+
vErrors.push(err41);
|
|
2734
3065
|
}
|
|
2735
3066
|
errors++;
|
|
2736
3067
|
}
|
|
2737
3068
|
for (const key4 in data) {
|
|
2738
3069
|
if (!(key4 === "type")) {
|
|
2739
|
-
const
|
|
3070
|
+
const err42 = { instancePath, schemaPath: "#/oneOf/4/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key4 }, message: "must NOT have additional properties" };
|
|
2740
3071
|
if (vErrors === null) {
|
|
2741
|
-
vErrors = [
|
|
3072
|
+
vErrors = [err42];
|
|
2742
3073
|
}
|
|
2743
3074
|
else {
|
|
2744
|
-
vErrors.push(
|
|
3075
|
+
vErrors.push(err42);
|
|
2745
3076
|
}
|
|
2746
3077
|
errors++;
|
|
2747
3078
|
}
|
|
2748
3079
|
}
|
|
2749
3080
|
if (data.type !== undefined) {
|
|
2750
|
-
let
|
|
2751
|
-
if (typeof
|
|
2752
|
-
const
|
|
3081
|
+
let data9 = data.type;
|
|
3082
|
+
if (typeof data9 !== "string") {
|
|
3083
|
+
const err43 = { instancePath: instancePath + "/type", schemaPath: "#/oneOf/4/properties/type/type", keyword: "type", params: { type: "string" }, message: "must be string" };
|
|
2753
3084
|
if (vErrors === null) {
|
|
2754
|
-
vErrors = [
|
|
3085
|
+
vErrors = [err43];
|
|
2755
3086
|
}
|
|
2756
3087
|
else {
|
|
2757
|
-
vErrors.push(
|
|
3088
|
+
vErrors.push(err43);
|
|
2758
3089
|
}
|
|
2759
3090
|
errors++;
|
|
2760
3091
|
}
|
|
2761
|
-
if ("dispose" !==
|
|
2762
|
-
const
|
|
3092
|
+
if ("dispose" !== data9) {
|
|
3093
|
+
const err44 = { instancePath: instancePath + "/type", schemaPath: "#/oneOf/4/properties/type/const", keyword: "const", params: { allowedValue: "dispose" }, message: "must be equal to constant" };
|
|
2763
3094
|
if (vErrors === null) {
|
|
2764
|
-
vErrors = [
|
|
3095
|
+
vErrors = [err44];
|
|
2765
3096
|
}
|
|
2766
3097
|
else {
|
|
2767
|
-
vErrors.push(
|
|
3098
|
+
vErrors.push(err44);
|
|
2768
3099
|
}
|
|
2769
3100
|
errors++;
|
|
2770
3101
|
}
|
|
2771
3102
|
}
|
|
2772
3103
|
}
|
|
2773
3104
|
else {
|
|
2774
|
-
const
|
|
3105
|
+
const err45 = { instancePath, schemaPath: "#/oneOf/4/type", keyword: "type", params: { type: "object" }, message: "must be object" };
|
|
2775
3106
|
if (vErrors === null) {
|
|
2776
|
-
vErrors = [
|
|
3107
|
+
vErrors = [err45];
|
|
2777
3108
|
}
|
|
2778
3109
|
else {
|
|
2779
|
-
vErrors.push(
|
|
3110
|
+
vErrors.push(err45);
|
|
2780
3111
|
}
|
|
2781
3112
|
errors++;
|
|
2782
3113
|
}
|
|
2783
|
-
var _valid0 =
|
|
3114
|
+
var _valid0 = _errs40 === errors;
|
|
2784
3115
|
if (_valid0 && valid0) {
|
|
2785
3116
|
valid0 = false;
|
|
2786
3117
|
passing0 = [passing0, 4];
|
|
@@ -2798,12 +3129,12 @@ function validate21(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
2798
3129
|
}
|
|
2799
3130
|
}
|
|
2800
3131
|
if (!valid0) {
|
|
2801
|
-
const
|
|
3132
|
+
const err46 = { instancePath, schemaPath: "#/oneOf", keyword: "oneOf", params: { passingSchemas: passing0 }, message: "must match exactly one schema in oneOf" };
|
|
2802
3133
|
if (vErrors === null) {
|
|
2803
|
-
vErrors = [
|
|
3134
|
+
vErrors = [err46];
|
|
2804
3135
|
}
|
|
2805
3136
|
else {
|
|
2806
|
-
vErrors.push(
|
|
3137
|
+
vErrors.push(err46);
|
|
2807
3138
|
}
|
|
2808
3139
|
errors++;
|
|
2809
3140
|
}
|
|
@@ -2824,7 +3155,7 @@ function validate21(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
2824
3155
|
}
|
|
2825
3156
|
validate21.evaluated = { "dynamicProps": true, "dynamicItems": false };
|
|
2826
3157
|
function validate20(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
|
|
2827
|
-
/*# sourceURL="https://onmark.dev/schemas/browser-request-
|
|
3158
|
+
/*# sourceURL="https://onmark.dev/schemas/browser-request-v5.schema.json" */ ;
|
|
2828
3159
|
let vErrors = null;
|
|
2829
3160
|
let errors = 0;
|
|
2830
3161
|
const evaluated0 = validate20.evaluated;
|
|
@@ -2930,8 +3261,8 @@ function validate20(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
2930
3261
|
}
|
|
2931
3262
|
errors++;
|
|
2932
3263
|
}
|
|
2933
|
-
if (
|
|
2934
|
-
const err8 = { instancePath: instancePath + "/version", schemaPath: "#/$defs/ProtocolVersion/const", keyword: "const", params: { allowedValue:
|
|
3264
|
+
if (5 !== data2) {
|
|
3265
|
+
const err8 = { instancePath: instancePath + "/version", schemaPath: "#/$defs/ProtocolVersion/const", keyword: "const", params: { allowedValue: 5 }, message: "must be equal to constant" };
|
|
2935
3266
|
if (vErrors === null) {
|
|
2936
3267
|
vErrors = [err8];
|
|
2937
3268
|
}
|
|
@@ -2965,31 +3296,594 @@ function validate20(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
2965
3296
|
}
|
|
2966
3297
|
}
|
|
2967
3298
|
else {
|
|
2968
|
-
const err11 = { instancePath, schemaPath: "#/type", keyword: "type", params: { type: "object" }, message: "must be object" };
|
|
3299
|
+
const err11 = { instancePath, schemaPath: "#/type", keyword: "type", params: { type: "object" }, message: "must be object" };
|
|
3300
|
+
if (vErrors === null) {
|
|
3301
|
+
vErrors = [err11];
|
|
3302
|
+
}
|
|
3303
|
+
else {
|
|
3304
|
+
vErrors.push(err11);
|
|
3305
|
+
}
|
|
3306
|
+
errors++;
|
|
3307
|
+
}
|
|
3308
|
+
validate20.errors = vErrors;
|
|
3309
|
+
return errors === 0;
|
|
3310
|
+
}
|
|
3311
|
+
validate20.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
|
|
3312
|
+
export const validateBrowserResponse = validate55;
|
|
3313
|
+
const schema62 = { "$defs": { "BrowserEvent": { "description": "Closed events emitted by the browser runtime.", "oneOf": [{ "additionalProperties": false, "description": "The immutable browser plan was accepted.", "properties": { "type": { "const": "loaded", "type": "string" } }, "required": ["type"], "type": "object" }, { "additionalProperties": false, "description": "Resources required at the evaluation start are stable.", "properties": { "evaluationStart": { "$ref": "#/$defs/WireFrame", "description": "Frame at which preparation completed." }, "mediaLayout": { "$ref": "#/$defs/BrowserMediaLayout", "description": "Exact static media layout observed by the browser." }, "type": { "const": "prepared", "type": "string" } }, "required": ["type", "evaluationStart", "mediaLayout"], "type": "object" }, { "additionalProperties": false, "description": "One requested frame has been staged for the compositor.", "properties": { "frame": { "$ref": "#/$defs/WireFrame", "description": "Exact frame represented by staged browser state." }, "type": { "const": "frameStaged", "type": "string" } }, "required": ["type", "frame"], "type": "object" }, { "additionalProperties": false, "description": "The captured payload's staged media passed compositor confirmation.", "properties": { "frame": { "$ref": "#/$defs/WireFrame", "description": "Exact frame confirmed by browser media state." }, "type": { "const": "frameReady", "type": "string" } }, "required": ["type", "frame"], "type": "object" }, { "additionalProperties": false, "description": "The browser rejected a command or could not reach readiness.", "properties": { "code": { "$ref": "#/$defs/ProtocolFailureCode", "description": "Stable machine-readable failure category." }, "message": { "description": "Direct explanation in browser/runtime terms.", "maxLength": 4096, "pattern": "\\S", "type": "string" }, "pendingResources": { "description": "Resources that prevented readiness, in caller-owned deterministic order.", "items": { "maxLength": 1024, "pattern": "\\S", "type": "string" }, "maxItems": 256, "type": "array" }, "type": { "const": "failed", "type": "string" } }, "required": ["type", "code", "message", "pendingResources"], "type": "object" }, { "additionalProperties": false, "description": "The browser session released its resources.", "properties": { "type": { "const": "disposed", "type": "string" } }, "required": ["type"], "type": "object" }] }, "BrowserMediaLayout": { "description": "Canonically ordered layout evidence for browser video placements.", "items": { "$ref": "#/$defs/BrowserMediaPlacement" }, "maxItems": 16, "type": "array" }, "BrowserMediaPlacement": { "additionalProperties": false, "description": "One video element's static, axis-aligned browser layout.", "properties": { "nodeId": { "$ref": "#/$defs/BrowserNodeId" }, "objectFit": { "$ref": "#/$defs/BrowserObjectFit" }, "objectPosition": { "$ref": "#/$defs/BrowserObjectPosition" }, "rectangle": { "$ref": "#/$defs/BrowserPixelRectangle" } }, "required": ["nodeId", "rectangle", "objectFit", "objectPosition"], "type": "object" }, "BrowserNodeId": { "description": "Browser identity for one Timeline element or imported caption.\n\nIDs form dense renderable-semantic preorder within one Browser Plan.\n\nAuthored IDs, rather than this unit-local key, retain cross-projection\nsemantic identity.", "format": "uint32", "maximum": 4294967295, "minimum": 0, "type": "integer" }, "BrowserObjectFit": { "description": "Closed CSS object-fit subset admitted by native media.", "oneOf": [{ "const": "fill", "description": "Distort source pixels to fill the element rectangle.", "type": "string" }, { "const": "contain", "description": "Preserve aspect ratio while fitting completely inside the rectangle.", "type": "string" }, { "const": "cover", "description": "Preserve aspect ratio while covering the complete rectangle.", "type": "string" }] }, "BrowserObjectPosition": { "additionalProperties": false, "description": "Fixed-point CSS object-position, where one million represents 100%.", "properties": { "x": { "format": "uint32", "maximum": 1000000, "minimum": 0, "type": "integer" }, "y": { "format": "uint32", "maximum": 1000000, "minimum": 0, "type": "integer" } }, "required": ["x", "y"], "type": "object" }, "BrowserPixelRectangle": { "additionalProperties": false, "description": "Positive pixel rectangle relative to the output viewport.", "properties": { "height": { "format": "uint32", "minimum": 0, "type": "integer" }, "width": { "format": "uint32", "minimum": 0, "type": "integer" }, "x": { "format": "uint32", "minimum": 0, "type": "integer" }, "y": { "format": "uint32", "minimum": 0, "type": "integer" } }, "required": ["x", "y", "width", "height"], "type": "object" }, "ProtocolFailureCode": { "description": "Stable browser protocol failure category.", "oneOf": [{ "const": "protocolMismatch", "description": "The envelope version is unsupported.", "type": "string" }, { "const": "invalidRequest", "description": "The command violates its wire contract.", "type": "string" }, { "const": "loadFailed", "description": "The immutable plan could not be installed.", "type": "string" }, { "const": "prepareFailed", "description": "Preparation could not stabilize required resources.", "type": "string" }, { "const": "seekFailed", "description": "The requested frame could not be evaluated.", "type": "string" }, { "const": "confirmFailed", "description": "The staged frame could not be confirmed after compositor capture.", "type": "string" }, { "const": "readinessTimeout", "description": "One or more resources missed the readiness deadline.", "type": "string" }, { "const": "internal", "description": "The runtime violated an internal invariant.", "type": "string" }] }, "ProtocolVersion": { "const": 5, "description": "Version of the native-to-browser message contract.", "format": "uint16", "maximum": 65535, "minimum": 0, "type": "integer" }, "RequestId": { "description": "Correlation identity shared by one request and its response events.", "format": "uint32", "maximum": 4294967295, "minimum": 0, "type": "integer" }, "WireFrame": { "description": "Exact frame integer accepted by JavaScript without rounding.", "format": "uint64", "maximum": 9007199254740991, "minimum": 0, "type": "integer" } }, "$id": "https://onmark.dev/schemas/browser-response-v5.schema.json", "$schema": "https://json-schema.org/draft/2020-12/schema", "additionalProperties": false, "description": "One versioned event returned by the browser runtime.", "properties": { "event": { "$ref": "#/$defs/BrowserEvent" }, "requestId": { "$ref": "#/$defs/RequestId" }, "version": { "$ref": "#/$defs/ProtocolVersion" } }, "required": ["version", "requestId", "event"], "title": "BrowserResponse", "type": "object", "x-onmark-max-failure-message-characters": 4096, "x-onmark-max-pending-resource-characters": 1024, "x-onmark-max-pending-resources": 256 };
|
|
3314
|
+
const schema74 = { "description": "Correlation identity shared by one request and its response events.", "format": "uint32", "maximum": 4294967295, "minimum": 0, "type": "integer" };
|
|
3315
|
+
const schema75 = { "const": 5, "description": "Version of the native-to-browser message contract.", "format": "uint16", "maximum": 65535, "minimum": 0, "type": "integer" };
|
|
3316
|
+
const schema63 = { "description": "Closed events emitted by the browser runtime.", "oneOf": [{ "additionalProperties": false, "description": "The immutable browser plan was accepted.", "properties": { "type": { "const": "loaded", "type": "string" } }, "required": ["type"], "type": "object" }, { "additionalProperties": false, "description": "Resources required at the evaluation start are stable.", "properties": { "evaluationStart": { "$ref": "#/$defs/WireFrame", "description": "Frame at which preparation completed." }, "mediaLayout": { "$ref": "#/$defs/BrowserMediaLayout", "description": "Exact static media layout observed by the browser." }, "type": { "const": "prepared", "type": "string" } }, "required": ["type", "evaluationStart", "mediaLayout"], "type": "object" }, { "additionalProperties": false, "description": "One requested frame has been staged for the compositor.", "properties": { "frame": { "$ref": "#/$defs/WireFrame", "description": "Exact frame represented by staged browser state." }, "type": { "const": "frameStaged", "type": "string" } }, "required": ["type", "frame"], "type": "object" }, { "additionalProperties": false, "description": "The captured payload's staged media passed compositor confirmation.", "properties": { "frame": { "$ref": "#/$defs/WireFrame", "description": "Exact frame confirmed by browser media state." }, "type": { "const": "frameReady", "type": "string" } }, "required": ["type", "frame"], "type": "object" }, { "additionalProperties": false, "description": "The browser rejected a command or could not reach readiness.", "properties": { "code": { "$ref": "#/$defs/ProtocolFailureCode", "description": "Stable machine-readable failure category." }, "message": { "description": "Direct explanation in browser/runtime terms.", "maxLength": 4096, "pattern": "\\S", "type": "string" }, "pendingResources": { "description": "Resources that prevented readiness, in caller-owned deterministic order.", "items": { "maxLength": 1024, "pattern": "\\S", "type": "string" }, "maxItems": 256, "type": "array" }, "type": { "const": "failed", "type": "string" } }, "required": ["type", "code", "message", "pendingResources"], "type": "object" }, { "additionalProperties": false, "description": "The browser session released its resources.", "properties": { "type": { "const": "disposed", "type": "string" } }, "required": ["type"], "type": "object" }] };
|
|
3317
|
+
const schema64 = { "description": "Exact frame integer accepted by JavaScript without rounding.", "format": "uint64", "maximum": 9007199254740991, "minimum": 0, "type": "integer" };
|
|
3318
|
+
const schema73 = { "description": "Stable browser protocol failure category.", "oneOf": [{ "const": "protocolMismatch", "description": "The envelope version is unsupported.", "type": "string" }, { "const": "invalidRequest", "description": "The command violates its wire contract.", "type": "string" }, { "const": "loadFailed", "description": "The immutable plan could not be installed.", "type": "string" }, { "const": "prepareFailed", "description": "Preparation could not stabilize required resources.", "type": "string" }, { "const": "seekFailed", "description": "The requested frame could not be evaluated.", "type": "string" }, { "const": "confirmFailed", "description": "The staged frame could not be confirmed after compositor capture.", "type": "string" }, { "const": "readinessTimeout", "description": "One or more resources missed the readiness deadline.", "type": "string" }, { "const": "internal", "description": "The runtime violated an internal invariant.", "type": "string" }] };
|
|
3319
|
+
const schema65 = { "description": "Canonically ordered layout evidence for browser video placements.", "items": { "$ref": "#/$defs/BrowserMediaPlacement" }, "maxItems": 16, "type": "array" };
|
|
3320
|
+
const schema66 = { "additionalProperties": false, "description": "One video element's static, axis-aligned browser layout.", "properties": { "nodeId": { "$ref": "#/$defs/BrowserNodeId" }, "objectFit": { "$ref": "#/$defs/BrowserObjectFit" }, "objectPosition": { "$ref": "#/$defs/BrowserObjectPosition" }, "rectangle": { "$ref": "#/$defs/BrowserPixelRectangle" } }, "required": ["nodeId", "rectangle", "objectFit", "objectPosition"], "type": "object" };
|
|
3321
|
+
const schema67 = { "description": "Browser identity for one Timeline element or imported caption.\n\nIDs form dense renderable-semantic preorder within one Browser Plan.\n\nAuthored IDs, rather than this unit-local key, retain cross-projection\nsemantic identity.", "format": "uint32", "maximum": 4294967295, "minimum": 0, "type": "integer" };
|
|
3322
|
+
const schema68 = { "description": "Closed CSS object-fit subset admitted by native media.", "oneOf": [{ "const": "fill", "description": "Distort source pixels to fill the element rectangle.", "type": "string" }, { "const": "contain", "description": "Preserve aspect ratio while fitting completely inside the rectangle.", "type": "string" }, { "const": "cover", "description": "Preserve aspect ratio while covering the complete rectangle.", "type": "string" }] };
|
|
3323
|
+
const schema69 = { "additionalProperties": false, "description": "Fixed-point CSS object-position, where one million represents 100%.", "properties": { "x": { "format": "uint32", "maximum": 1000000, "minimum": 0, "type": "integer" }, "y": { "format": "uint32", "maximum": 1000000, "minimum": 0, "type": "integer" } }, "required": ["x", "y"], "type": "object" };
|
|
3324
|
+
const schema70 = { "additionalProperties": false, "description": "Positive pixel rectangle relative to the output viewport.", "properties": { "height": { "format": "uint32", "minimum": 0, "type": "integer" }, "width": { "format": "uint32", "minimum": 0, "type": "integer" }, "x": { "format": "uint32", "minimum": 0, "type": "integer" }, "y": { "format": "uint32", "minimum": 0, "type": "integer" } }, "required": ["x", "y", "width", "height"], "type": "object" };
|
|
3325
|
+
function validate58(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
|
|
3326
|
+
let vErrors = null;
|
|
3327
|
+
let errors = 0;
|
|
3328
|
+
const evaluated0 = validate58.evaluated;
|
|
3329
|
+
if (evaluated0.dynamicProps) {
|
|
3330
|
+
evaluated0.props = undefined;
|
|
3331
|
+
}
|
|
3332
|
+
if (evaluated0.dynamicItems) {
|
|
3333
|
+
evaluated0.items = undefined;
|
|
3334
|
+
}
|
|
3335
|
+
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
3336
|
+
if (data.nodeId === undefined) {
|
|
3337
|
+
const err0 = { instancePath, schemaPath: "#/required", keyword: "required", params: { missingProperty: "nodeId" }, message: "must have required property '" + "nodeId" + "'" };
|
|
3338
|
+
if (vErrors === null) {
|
|
3339
|
+
vErrors = [err0];
|
|
3340
|
+
}
|
|
3341
|
+
else {
|
|
3342
|
+
vErrors.push(err0);
|
|
3343
|
+
}
|
|
3344
|
+
errors++;
|
|
3345
|
+
}
|
|
3346
|
+
if (data.rectangle === undefined) {
|
|
3347
|
+
const err1 = { instancePath, schemaPath: "#/required", keyword: "required", params: { missingProperty: "rectangle" }, message: "must have required property '" + "rectangle" + "'" };
|
|
3348
|
+
if (vErrors === null) {
|
|
3349
|
+
vErrors = [err1];
|
|
3350
|
+
}
|
|
3351
|
+
else {
|
|
3352
|
+
vErrors.push(err1);
|
|
3353
|
+
}
|
|
3354
|
+
errors++;
|
|
3355
|
+
}
|
|
3356
|
+
if (data.objectFit === undefined) {
|
|
3357
|
+
const err2 = { instancePath, schemaPath: "#/required", keyword: "required", params: { missingProperty: "objectFit" }, message: "must have required property '" + "objectFit" + "'" };
|
|
3358
|
+
if (vErrors === null) {
|
|
3359
|
+
vErrors = [err2];
|
|
3360
|
+
}
|
|
3361
|
+
else {
|
|
3362
|
+
vErrors.push(err2);
|
|
3363
|
+
}
|
|
3364
|
+
errors++;
|
|
3365
|
+
}
|
|
3366
|
+
if (data.objectPosition === undefined) {
|
|
3367
|
+
const err3 = { instancePath, schemaPath: "#/required", keyword: "required", params: { missingProperty: "objectPosition" }, message: "must have required property '" + "objectPosition" + "'" };
|
|
3368
|
+
if (vErrors === null) {
|
|
3369
|
+
vErrors = [err3];
|
|
3370
|
+
}
|
|
3371
|
+
else {
|
|
3372
|
+
vErrors.push(err3);
|
|
3373
|
+
}
|
|
3374
|
+
errors++;
|
|
3375
|
+
}
|
|
3376
|
+
for (const key0 in data) {
|
|
3377
|
+
if (!((((key0 === "nodeId") || (key0 === "objectFit")) || (key0 === "objectPosition")) || (key0 === "rectangle"))) {
|
|
3378
|
+
const err4 = { instancePath, schemaPath: "#/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key0 }, message: "must NOT have additional properties" };
|
|
3379
|
+
if (vErrors === null) {
|
|
3380
|
+
vErrors = [err4];
|
|
3381
|
+
}
|
|
3382
|
+
else {
|
|
3383
|
+
vErrors.push(err4);
|
|
3384
|
+
}
|
|
3385
|
+
errors++;
|
|
3386
|
+
}
|
|
3387
|
+
}
|
|
3388
|
+
if (data.nodeId !== undefined) {
|
|
3389
|
+
let data0 = data.nodeId;
|
|
3390
|
+
if (!(((typeof data0 == "number") && (!(data0 % 1) && !isNaN(data0))) && (isFinite(data0)))) {
|
|
3391
|
+
const err5 = { instancePath: instancePath + "/nodeId", schemaPath: "#/$defs/BrowserNodeId/type", keyword: "type", params: { type: "integer" }, message: "must be integer" };
|
|
3392
|
+
if (vErrors === null) {
|
|
3393
|
+
vErrors = [err5];
|
|
3394
|
+
}
|
|
3395
|
+
else {
|
|
3396
|
+
vErrors.push(err5);
|
|
3397
|
+
}
|
|
3398
|
+
errors++;
|
|
3399
|
+
}
|
|
3400
|
+
if ((typeof data0 == "number") && (isFinite(data0))) {
|
|
3401
|
+
if (data0 > 4294967295 || isNaN(data0)) {
|
|
3402
|
+
const err6 = { instancePath: instancePath + "/nodeId", schemaPath: "#/$defs/BrowserNodeId/maximum", keyword: "maximum", params: { comparison: "<=", limit: 4294967295 }, message: "must be <= 4294967295" };
|
|
3403
|
+
if (vErrors === null) {
|
|
3404
|
+
vErrors = [err6];
|
|
3405
|
+
}
|
|
3406
|
+
else {
|
|
3407
|
+
vErrors.push(err6);
|
|
3408
|
+
}
|
|
3409
|
+
errors++;
|
|
3410
|
+
}
|
|
3411
|
+
if (data0 < 0 || isNaN(data0)) {
|
|
3412
|
+
const err7 = { instancePath: instancePath + "/nodeId", schemaPath: "#/$defs/BrowserNodeId/minimum", keyword: "minimum", params: { comparison: ">=", limit: 0 }, message: "must be >= 0" };
|
|
3413
|
+
if (vErrors === null) {
|
|
3414
|
+
vErrors = [err7];
|
|
3415
|
+
}
|
|
3416
|
+
else {
|
|
3417
|
+
vErrors.push(err7);
|
|
3418
|
+
}
|
|
3419
|
+
errors++;
|
|
3420
|
+
}
|
|
3421
|
+
}
|
|
3422
|
+
}
|
|
3423
|
+
if (data.objectFit !== undefined) {
|
|
3424
|
+
let data1 = data.objectFit;
|
|
3425
|
+
const _errs7 = errors;
|
|
3426
|
+
let valid3 = false;
|
|
3427
|
+
let passing0 = null;
|
|
3428
|
+
const _errs8 = errors;
|
|
3429
|
+
if (typeof data1 !== "string") {
|
|
3430
|
+
const err8 = { instancePath: instancePath + "/objectFit", schemaPath: "#/$defs/BrowserObjectFit/oneOf/0/type", keyword: "type", params: { type: "string" }, message: "must be string" };
|
|
3431
|
+
if (vErrors === null) {
|
|
3432
|
+
vErrors = [err8];
|
|
3433
|
+
}
|
|
3434
|
+
else {
|
|
3435
|
+
vErrors.push(err8);
|
|
3436
|
+
}
|
|
3437
|
+
errors++;
|
|
3438
|
+
}
|
|
3439
|
+
if ("fill" !== data1) {
|
|
3440
|
+
const err9 = { instancePath: instancePath + "/objectFit", schemaPath: "#/$defs/BrowserObjectFit/oneOf/0/const", keyword: "const", params: { allowedValue: "fill" }, message: "must be equal to constant" };
|
|
3441
|
+
if (vErrors === null) {
|
|
3442
|
+
vErrors = [err9];
|
|
3443
|
+
}
|
|
3444
|
+
else {
|
|
3445
|
+
vErrors.push(err9);
|
|
3446
|
+
}
|
|
3447
|
+
errors++;
|
|
3448
|
+
}
|
|
3449
|
+
var _valid0 = _errs8 === errors;
|
|
3450
|
+
if (_valid0) {
|
|
3451
|
+
valid3 = true;
|
|
3452
|
+
passing0 = 0;
|
|
3453
|
+
}
|
|
3454
|
+
const _errs10 = errors;
|
|
3455
|
+
if (typeof data1 !== "string") {
|
|
3456
|
+
const err10 = { instancePath: instancePath + "/objectFit", schemaPath: "#/$defs/BrowserObjectFit/oneOf/1/type", keyword: "type", params: { type: "string" }, message: "must be string" };
|
|
3457
|
+
if (vErrors === null) {
|
|
3458
|
+
vErrors = [err10];
|
|
3459
|
+
}
|
|
3460
|
+
else {
|
|
3461
|
+
vErrors.push(err10);
|
|
3462
|
+
}
|
|
3463
|
+
errors++;
|
|
3464
|
+
}
|
|
3465
|
+
if ("contain" !== data1) {
|
|
3466
|
+
const err11 = { instancePath: instancePath + "/objectFit", schemaPath: "#/$defs/BrowserObjectFit/oneOf/1/const", keyword: "const", params: { allowedValue: "contain" }, message: "must be equal to constant" };
|
|
3467
|
+
if (vErrors === null) {
|
|
3468
|
+
vErrors = [err11];
|
|
3469
|
+
}
|
|
3470
|
+
else {
|
|
3471
|
+
vErrors.push(err11);
|
|
3472
|
+
}
|
|
3473
|
+
errors++;
|
|
3474
|
+
}
|
|
3475
|
+
var _valid0 = _errs10 === errors;
|
|
3476
|
+
if (_valid0 && valid3) {
|
|
3477
|
+
valid3 = false;
|
|
3478
|
+
passing0 = [passing0, 1];
|
|
3479
|
+
}
|
|
3480
|
+
else {
|
|
3481
|
+
if (_valid0) {
|
|
3482
|
+
valid3 = true;
|
|
3483
|
+
passing0 = 1;
|
|
3484
|
+
}
|
|
3485
|
+
const _errs12 = errors;
|
|
3486
|
+
if (typeof data1 !== "string") {
|
|
3487
|
+
const err12 = { instancePath: instancePath + "/objectFit", schemaPath: "#/$defs/BrowserObjectFit/oneOf/2/type", keyword: "type", params: { type: "string" }, message: "must be string" };
|
|
3488
|
+
if (vErrors === null) {
|
|
3489
|
+
vErrors = [err12];
|
|
3490
|
+
}
|
|
3491
|
+
else {
|
|
3492
|
+
vErrors.push(err12);
|
|
3493
|
+
}
|
|
3494
|
+
errors++;
|
|
3495
|
+
}
|
|
3496
|
+
if ("cover" !== data1) {
|
|
3497
|
+
const err13 = { instancePath: instancePath + "/objectFit", schemaPath: "#/$defs/BrowserObjectFit/oneOf/2/const", keyword: "const", params: { allowedValue: "cover" }, message: "must be equal to constant" };
|
|
3498
|
+
if (vErrors === null) {
|
|
3499
|
+
vErrors = [err13];
|
|
3500
|
+
}
|
|
3501
|
+
else {
|
|
3502
|
+
vErrors.push(err13);
|
|
3503
|
+
}
|
|
3504
|
+
errors++;
|
|
3505
|
+
}
|
|
3506
|
+
var _valid0 = _errs12 === errors;
|
|
3507
|
+
if (_valid0 && valid3) {
|
|
3508
|
+
valid3 = false;
|
|
3509
|
+
passing0 = [passing0, 2];
|
|
3510
|
+
}
|
|
3511
|
+
else {
|
|
3512
|
+
if (_valid0) {
|
|
3513
|
+
valid3 = true;
|
|
3514
|
+
passing0 = 2;
|
|
3515
|
+
}
|
|
3516
|
+
}
|
|
3517
|
+
}
|
|
3518
|
+
if (!valid3) {
|
|
3519
|
+
const err14 = { instancePath: instancePath + "/objectFit", schemaPath: "#/$defs/BrowserObjectFit/oneOf", keyword: "oneOf", params: { passingSchemas: passing0 }, message: "must match exactly one schema in oneOf" };
|
|
3520
|
+
if (vErrors === null) {
|
|
3521
|
+
vErrors = [err14];
|
|
3522
|
+
}
|
|
3523
|
+
else {
|
|
3524
|
+
vErrors.push(err14);
|
|
3525
|
+
}
|
|
3526
|
+
errors++;
|
|
3527
|
+
}
|
|
3528
|
+
else {
|
|
3529
|
+
errors = _errs7;
|
|
3530
|
+
if (vErrors !== null) {
|
|
3531
|
+
if (_errs7) {
|
|
3532
|
+
vErrors.length = _errs7;
|
|
3533
|
+
}
|
|
3534
|
+
else {
|
|
3535
|
+
vErrors = null;
|
|
3536
|
+
}
|
|
3537
|
+
}
|
|
3538
|
+
}
|
|
3539
|
+
}
|
|
3540
|
+
if (data.objectPosition !== undefined) {
|
|
3541
|
+
let data2 = data.objectPosition;
|
|
3542
|
+
if (data2 && typeof data2 == "object" && !Array.isArray(data2)) {
|
|
3543
|
+
if (data2.x === undefined) {
|
|
3544
|
+
const err15 = { instancePath: instancePath + "/objectPosition", schemaPath: "#/$defs/BrowserObjectPosition/required", keyword: "required", params: { missingProperty: "x" }, message: "must have required property '" + "x" + "'" };
|
|
3545
|
+
if (vErrors === null) {
|
|
3546
|
+
vErrors = [err15];
|
|
3547
|
+
}
|
|
3548
|
+
else {
|
|
3549
|
+
vErrors.push(err15);
|
|
3550
|
+
}
|
|
3551
|
+
errors++;
|
|
3552
|
+
}
|
|
3553
|
+
if (data2.y === undefined) {
|
|
3554
|
+
const err16 = { instancePath: instancePath + "/objectPosition", schemaPath: "#/$defs/BrowserObjectPosition/required", keyword: "required", params: { missingProperty: "y" }, message: "must have required property '" + "y" + "'" };
|
|
3555
|
+
if (vErrors === null) {
|
|
3556
|
+
vErrors = [err16];
|
|
3557
|
+
}
|
|
3558
|
+
else {
|
|
3559
|
+
vErrors.push(err16);
|
|
3560
|
+
}
|
|
3561
|
+
errors++;
|
|
3562
|
+
}
|
|
3563
|
+
for (const key1 in data2) {
|
|
3564
|
+
if (!((key1 === "x") || (key1 === "y"))) {
|
|
3565
|
+
const err17 = { instancePath: instancePath + "/objectPosition", schemaPath: "#/$defs/BrowserObjectPosition/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key1 }, message: "must NOT have additional properties" };
|
|
3566
|
+
if (vErrors === null) {
|
|
3567
|
+
vErrors = [err17];
|
|
3568
|
+
}
|
|
3569
|
+
else {
|
|
3570
|
+
vErrors.push(err17);
|
|
3571
|
+
}
|
|
3572
|
+
errors++;
|
|
3573
|
+
}
|
|
3574
|
+
}
|
|
3575
|
+
if (data2.x !== undefined) {
|
|
3576
|
+
let data3 = data2.x;
|
|
3577
|
+
if (!(((typeof data3 == "number") && (!(data3 % 1) && !isNaN(data3))) && (isFinite(data3)))) {
|
|
3578
|
+
const err18 = { instancePath: instancePath + "/objectPosition/x", schemaPath: "#/$defs/BrowserObjectPosition/properties/x/type", keyword: "type", params: { type: "integer" }, message: "must be integer" };
|
|
3579
|
+
if (vErrors === null) {
|
|
3580
|
+
vErrors = [err18];
|
|
3581
|
+
}
|
|
3582
|
+
else {
|
|
3583
|
+
vErrors.push(err18);
|
|
3584
|
+
}
|
|
3585
|
+
errors++;
|
|
3586
|
+
}
|
|
3587
|
+
if ((typeof data3 == "number") && (isFinite(data3))) {
|
|
3588
|
+
if (data3 > 1000000 || isNaN(data3)) {
|
|
3589
|
+
const err19 = { instancePath: instancePath + "/objectPosition/x", schemaPath: "#/$defs/BrowserObjectPosition/properties/x/maximum", keyword: "maximum", params: { comparison: "<=", limit: 1000000 }, message: "must be <= 1000000" };
|
|
3590
|
+
if (vErrors === null) {
|
|
3591
|
+
vErrors = [err19];
|
|
3592
|
+
}
|
|
3593
|
+
else {
|
|
3594
|
+
vErrors.push(err19);
|
|
3595
|
+
}
|
|
3596
|
+
errors++;
|
|
3597
|
+
}
|
|
3598
|
+
if (data3 < 0 || isNaN(data3)) {
|
|
3599
|
+
const err20 = { instancePath: instancePath + "/objectPosition/x", schemaPath: "#/$defs/BrowserObjectPosition/properties/x/minimum", keyword: "minimum", params: { comparison: ">=", limit: 0 }, message: "must be >= 0" };
|
|
3600
|
+
if (vErrors === null) {
|
|
3601
|
+
vErrors = [err20];
|
|
3602
|
+
}
|
|
3603
|
+
else {
|
|
3604
|
+
vErrors.push(err20);
|
|
3605
|
+
}
|
|
3606
|
+
errors++;
|
|
3607
|
+
}
|
|
3608
|
+
}
|
|
3609
|
+
}
|
|
3610
|
+
if (data2.y !== undefined) {
|
|
3611
|
+
let data4 = data2.y;
|
|
3612
|
+
if (!(((typeof data4 == "number") && (!(data4 % 1) && !isNaN(data4))) && (isFinite(data4)))) {
|
|
3613
|
+
const err21 = { instancePath: instancePath + "/objectPosition/y", schemaPath: "#/$defs/BrowserObjectPosition/properties/y/type", keyword: "type", params: { type: "integer" }, message: "must be integer" };
|
|
3614
|
+
if (vErrors === null) {
|
|
3615
|
+
vErrors = [err21];
|
|
3616
|
+
}
|
|
3617
|
+
else {
|
|
3618
|
+
vErrors.push(err21);
|
|
3619
|
+
}
|
|
3620
|
+
errors++;
|
|
3621
|
+
}
|
|
3622
|
+
if ((typeof data4 == "number") && (isFinite(data4))) {
|
|
3623
|
+
if (data4 > 1000000 || isNaN(data4)) {
|
|
3624
|
+
const err22 = { instancePath: instancePath + "/objectPosition/y", schemaPath: "#/$defs/BrowserObjectPosition/properties/y/maximum", keyword: "maximum", params: { comparison: "<=", limit: 1000000 }, message: "must be <= 1000000" };
|
|
3625
|
+
if (vErrors === null) {
|
|
3626
|
+
vErrors = [err22];
|
|
3627
|
+
}
|
|
3628
|
+
else {
|
|
3629
|
+
vErrors.push(err22);
|
|
3630
|
+
}
|
|
3631
|
+
errors++;
|
|
3632
|
+
}
|
|
3633
|
+
if (data4 < 0 || isNaN(data4)) {
|
|
3634
|
+
const err23 = { instancePath: instancePath + "/objectPosition/y", schemaPath: "#/$defs/BrowserObjectPosition/properties/y/minimum", keyword: "minimum", params: { comparison: ">=", limit: 0 }, message: "must be >= 0" };
|
|
3635
|
+
if (vErrors === null) {
|
|
3636
|
+
vErrors = [err23];
|
|
3637
|
+
}
|
|
3638
|
+
else {
|
|
3639
|
+
vErrors.push(err23);
|
|
3640
|
+
}
|
|
3641
|
+
errors++;
|
|
3642
|
+
}
|
|
3643
|
+
}
|
|
3644
|
+
}
|
|
3645
|
+
}
|
|
3646
|
+
else {
|
|
3647
|
+
const err24 = { instancePath: instancePath + "/objectPosition", schemaPath: "#/$defs/BrowserObjectPosition/type", keyword: "type", params: { type: "object" }, message: "must be object" };
|
|
3648
|
+
if (vErrors === null) {
|
|
3649
|
+
vErrors = [err24];
|
|
3650
|
+
}
|
|
3651
|
+
else {
|
|
3652
|
+
vErrors.push(err24);
|
|
3653
|
+
}
|
|
3654
|
+
errors++;
|
|
3655
|
+
}
|
|
3656
|
+
}
|
|
3657
|
+
if (data.rectangle !== undefined) {
|
|
3658
|
+
let data5 = data.rectangle;
|
|
3659
|
+
if (data5 && typeof data5 == "object" && !Array.isArray(data5)) {
|
|
3660
|
+
if (data5.x === undefined) {
|
|
3661
|
+
const err25 = { instancePath: instancePath + "/rectangle", schemaPath: "#/$defs/BrowserPixelRectangle/required", keyword: "required", params: { missingProperty: "x" }, message: "must have required property '" + "x" + "'" };
|
|
3662
|
+
if (vErrors === null) {
|
|
3663
|
+
vErrors = [err25];
|
|
3664
|
+
}
|
|
3665
|
+
else {
|
|
3666
|
+
vErrors.push(err25);
|
|
3667
|
+
}
|
|
3668
|
+
errors++;
|
|
3669
|
+
}
|
|
3670
|
+
if (data5.y === undefined) {
|
|
3671
|
+
const err26 = { instancePath: instancePath + "/rectangle", schemaPath: "#/$defs/BrowserPixelRectangle/required", keyword: "required", params: { missingProperty: "y" }, message: "must have required property '" + "y" + "'" };
|
|
3672
|
+
if (vErrors === null) {
|
|
3673
|
+
vErrors = [err26];
|
|
3674
|
+
}
|
|
3675
|
+
else {
|
|
3676
|
+
vErrors.push(err26);
|
|
3677
|
+
}
|
|
3678
|
+
errors++;
|
|
3679
|
+
}
|
|
3680
|
+
if (data5.width === undefined) {
|
|
3681
|
+
const err27 = { instancePath: instancePath + "/rectangle", schemaPath: "#/$defs/BrowserPixelRectangle/required", keyword: "required", params: { missingProperty: "width" }, message: "must have required property '" + "width" + "'" };
|
|
3682
|
+
if (vErrors === null) {
|
|
3683
|
+
vErrors = [err27];
|
|
3684
|
+
}
|
|
3685
|
+
else {
|
|
3686
|
+
vErrors.push(err27);
|
|
3687
|
+
}
|
|
3688
|
+
errors++;
|
|
3689
|
+
}
|
|
3690
|
+
if (data5.height === undefined) {
|
|
3691
|
+
const err28 = { instancePath: instancePath + "/rectangle", schemaPath: "#/$defs/BrowserPixelRectangle/required", keyword: "required", params: { missingProperty: "height" }, message: "must have required property '" + "height" + "'" };
|
|
3692
|
+
if (vErrors === null) {
|
|
3693
|
+
vErrors = [err28];
|
|
3694
|
+
}
|
|
3695
|
+
else {
|
|
3696
|
+
vErrors.push(err28);
|
|
3697
|
+
}
|
|
3698
|
+
errors++;
|
|
3699
|
+
}
|
|
3700
|
+
for (const key2 in data5) {
|
|
3701
|
+
if (!((((key2 === "height") || (key2 === "width")) || (key2 === "x")) || (key2 === "y"))) {
|
|
3702
|
+
const err29 = { instancePath: instancePath + "/rectangle", schemaPath: "#/$defs/BrowserPixelRectangle/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key2 }, message: "must NOT have additional properties" };
|
|
3703
|
+
if (vErrors === null) {
|
|
3704
|
+
vErrors = [err29];
|
|
3705
|
+
}
|
|
3706
|
+
else {
|
|
3707
|
+
vErrors.push(err29);
|
|
3708
|
+
}
|
|
3709
|
+
errors++;
|
|
3710
|
+
}
|
|
3711
|
+
}
|
|
3712
|
+
if (data5.height !== undefined) {
|
|
3713
|
+
let data6 = data5.height;
|
|
3714
|
+
if (!(((typeof data6 == "number") && (!(data6 % 1) && !isNaN(data6))) && (isFinite(data6)))) {
|
|
3715
|
+
const err30 = { instancePath: instancePath + "/rectangle/height", schemaPath: "#/$defs/BrowserPixelRectangle/properties/height/type", keyword: "type", params: { type: "integer" }, message: "must be integer" };
|
|
3716
|
+
if (vErrors === null) {
|
|
3717
|
+
vErrors = [err30];
|
|
3718
|
+
}
|
|
3719
|
+
else {
|
|
3720
|
+
vErrors.push(err30);
|
|
3721
|
+
}
|
|
3722
|
+
errors++;
|
|
3723
|
+
}
|
|
3724
|
+
if ((typeof data6 == "number") && (isFinite(data6))) {
|
|
3725
|
+
if (data6 < 0 || isNaN(data6)) {
|
|
3726
|
+
const err31 = { instancePath: instancePath + "/rectangle/height", schemaPath: "#/$defs/BrowserPixelRectangle/properties/height/minimum", keyword: "minimum", params: { comparison: ">=", limit: 0 }, message: "must be >= 0" };
|
|
3727
|
+
if (vErrors === null) {
|
|
3728
|
+
vErrors = [err31];
|
|
3729
|
+
}
|
|
3730
|
+
else {
|
|
3731
|
+
vErrors.push(err31);
|
|
3732
|
+
}
|
|
3733
|
+
errors++;
|
|
3734
|
+
}
|
|
3735
|
+
}
|
|
3736
|
+
}
|
|
3737
|
+
if (data5.width !== undefined) {
|
|
3738
|
+
let data7 = data5.width;
|
|
3739
|
+
if (!(((typeof data7 == "number") && (!(data7 % 1) && !isNaN(data7))) && (isFinite(data7)))) {
|
|
3740
|
+
const err32 = { instancePath: instancePath + "/rectangle/width", schemaPath: "#/$defs/BrowserPixelRectangle/properties/width/type", keyword: "type", params: { type: "integer" }, message: "must be integer" };
|
|
3741
|
+
if (vErrors === null) {
|
|
3742
|
+
vErrors = [err32];
|
|
3743
|
+
}
|
|
3744
|
+
else {
|
|
3745
|
+
vErrors.push(err32);
|
|
3746
|
+
}
|
|
3747
|
+
errors++;
|
|
3748
|
+
}
|
|
3749
|
+
if ((typeof data7 == "number") && (isFinite(data7))) {
|
|
3750
|
+
if (data7 < 0 || isNaN(data7)) {
|
|
3751
|
+
const err33 = { instancePath: instancePath + "/rectangle/width", schemaPath: "#/$defs/BrowserPixelRectangle/properties/width/minimum", keyword: "minimum", params: { comparison: ">=", limit: 0 }, message: "must be >= 0" };
|
|
3752
|
+
if (vErrors === null) {
|
|
3753
|
+
vErrors = [err33];
|
|
3754
|
+
}
|
|
3755
|
+
else {
|
|
3756
|
+
vErrors.push(err33);
|
|
3757
|
+
}
|
|
3758
|
+
errors++;
|
|
3759
|
+
}
|
|
3760
|
+
}
|
|
3761
|
+
}
|
|
3762
|
+
if (data5.x !== undefined) {
|
|
3763
|
+
let data8 = data5.x;
|
|
3764
|
+
if (!(((typeof data8 == "number") && (!(data8 % 1) && !isNaN(data8))) && (isFinite(data8)))) {
|
|
3765
|
+
const err34 = { instancePath: instancePath + "/rectangle/x", schemaPath: "#/$defs/BrowserPixelRectangle/properties/x/type", keyword: "type", params: { type: "integer" }, message: "must be integer" };
|
|
3766
|
+
if (vErrors === null) {
|
|
3767
|
+
vErrors = [err34];
|
|
3768
|
+
}
|
|
3769
|
+
else {
|
|
3770
|
+
vErrors.push(err34);
|
|
3771
|
+
}
|
|
3772
|
+
errors++;
|
|
3773
|
+
}
|
|
3774
|
+
if ((typeof data8 == "number") && (isFinite(data8))) {
|
|
3775
|
+
if (data8 < 0 || isNaN(data8)) {
|
|
3776
|
+
const err35 = { instancePath: instancePath + "/rectangle/x", schemaPath: "#/$defs/BrowserPixelRectangle/properties/x/minimum", keyword: "minimum", params: { comparison: ">=", limit: 0 }, message: "must be >= 0" };
|
|
3777
|
+
if (vErrors === null) {
|
|
3778
|
+
vErrors = [err35];
|
|
3779
|
+
}
|
|
3780
|
+
else {
|
|
3781
|
+
vErrors.push(err35);
|
|
3782
|
+
}
|
|
3783
|
+
errors++;
|
|
3784
|
+
}
|
|
3785
|
+
}
|
|
3786
|
+
}
|
|
3787
|
+
if (data5.y !== undefined) {
|
|
3788
|
+
let data9 = data5.y;
|
|
3789
|
+
if (!(((typeof data9 == "number") && (!(data9 % 1) && !isNaN(data9))) && (isFinite(data9)))) {
|
|
3790
|
+
const err36 = { instancePath: instancePath + "/rectangle/y", schemaPath: "#/$defs/BrowserPixelRectangle/properties/y/type", keyword: "type", params: { type: "integer" }, message: "must be integer" };
|
|
3791
|
+
if (vErrors === null) {
|
|
3792
|
+
vErrors = [err36];
|
|
3793
|
+
}
|
|
3794
|
+
else {
|
|
3795
|
+
vErrors.push(err36);
|
|
3796
|
+
}
|
|
3797
|
+
errors++;
|
|
3798
|
+
}
|
|
3799
|
+
if ((typeof data9 == "number") && (isFinite(data9))) {
|
|
3800
|
+
if (data9 < 0 || isNaN(data9)) {
|
|
3801
|
+
const err37 = { instancePath: instancePath + "/rectangle/y", schemaPath: "#/$defs/BrowserPixelRectangle/properties/y/minimum", keyword: "minimum", params: { comparison: ">=", limit: 0 }, message: "must be >= 0" };
|
|
3802
|
+
if (vErrors === null) {
|
|
3803
|
+
vErrors = [err37];
|
|
3804
|
+
}
|
|
3805
|
+
else {
|
|
3806
|
+
vErrors.push(err37);
|
|
3807
|
+
}
|
|
3808
|
+
errors++;
|
|
3809
|
+
}
|
|
3810
|
+
}
|
|
3811
|
+
}
|
|
3812
|
+
}
|
|
3813
|
+
else {
|
|
3814
|
+
const err38 = { instancePath: instancePath + "/rectangle", schemaPath: "#/$defs/BrowserPixelRectangle/type", keyword: "type", params: { type: "object" }, message: "must be object" };
|
|
3815
|
+
if (vErrors === null) {
|
|
3816
|
+
vErrors = [err38];
|
|
3817
|
+
}
|
|
3818
|
+
else {
|
|
3819
|
+
vErrors.push(err38);
|
|
3820
|
+
}
|
|
3821
|
+
errors++;
|
|
3822
|
+
}
|
|
3823
|
+
}
|
|
3824
|
+
}
|
|
3825
|
+
else {
|
|
3826
|
+
const err39 = { instancePath, schemaPath: "#/type", keyword: "type", params: { type: "object" }, message: "must be object" };
|
|
3827
|
+
if (vErrors === null) {
|
|
3828
|
+
vErrors = [err39];
|
|
3829
|
+
}
|
|
3830
|
+
else {
|
|
3831
|
+
vErrors.push(err39);
|
|
3832
|
+
}
|
|
3833
|
+
errors++;
|
|
3834
|
+
}
|
|
3835
|
+
validate58.errors = vErrors;
|
|
3836
|
+
return errors === 0;
|
|
3837
|
+
}
|
|
3838
|
+
validate58.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
|
|
3839
|
+
function validate57(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
|
|
3840
|
+
let vErrors = null;
|
|
3841
|
+
let errors = 0;
|
|
3842
|
+
const evaluated0 = validate57.evaluated;
|
|
3843
|
+
if (evaluated0.dynamicProps) {
|
|
3844
|
+
evaluated0.props = undefined;
|
|
3845
|
+
}
|
|
3846
|
+
if (evaluated0.dynamicItems) {
|
|
3847
|
+
evaluated0.items = undefined;
|
|
3848
|
+
}
|
|
3849
|
+
if (Array.isArray(data)) {
|
|
3850
|
+
if (data.length > 16) {
|
|
3851
|
+
const err0 = { instancePath, schemaPath: "#/maxItems", keyword: "maxItems", params: { limit: 16 }, message: "must NOT have more than 16 items" };
|
|
3852
|
+
if (vErrors === null) {
|
|
3853
|
+
vErrors = [err0];
|
|
3854
|
+
}
|
|
3855
|
+
else {
|
|
3856
|
+
vErrors.push(err0);
|
|
3857
|
+
}
|
|
3858
|
+
errors++;
|
|
3859
|
+
}
|
|
3860
|
+
const len0 = data.length;
|
|
3861
|
+
for (let i0 = 0; i0 < len0; i0++) {
|
|
3862
|
+
if (!(validate58(data[i0], { instancePath: instancePath + "/" + i0, parentData: data, parentDataProperty: i0, rootData, dynamicAnchors }))) {
|
|
3863
|
+
vErrors = vErrors === null ? validate58.errors : vErrors.concat(validate58.errors);
|
|
3864
|
+
errors = vErrors.length;
|
|
3865
|
+
}
|
|
3866
|
+
}
|
|
3867
|
+
}
|
|
3868
|
+
else {
|
|
3869
|
+
const err1 = { instancePath, schemaPath: "#/type", keyword: "type", params: { type: "array" }, message: "must be array" };
|
|
2969
3870
|
if (vErrors === null) {
|
|
2970
|
-
vErrors = [
|
|
3871
|
+
vErrors = [err1];
|
|
2971
3872
|
}
|
|
2972
3873
|
else {
|
|
2973
|
-
vErrors.push(
|
|
3874
|
+
vErrors.push(err1);
|
|
2974
3875
|
}
|
|
2975
3876
|
errors++;
|
|
2976
3877
|
}
|
|
2977
|
-
|
|
3878
|
+
validate57.errors = vErrors;
|
|
2978
3879
|
return errors === 0;
|
|
2979
3880
|
}
|
|
2980
|
-
|
|
2981
|
-
export const validateBrowserResponse = validate51;
|
|
2982
|
-
const schema58 = { "$defs": { "BrowserEvent": { "description": "Closed events emitted by the browser runtime.", "oneOf": [{ "additionalProperties": false, "description": "The immutable browser plan was accepted.", "properties": { "type": { "const": "loaded", "type": "string" } }, "required": ["type"], "type": "object" }, { "additionalProperties": false, "description": "Resources required at the evaluation start are stable.", "properties": { "evaluationStart": { "$ref": "#/$defs/WireFrame", "description": "Frame at which preparation completed." }, "type": { "const": "prepared", "type": "string" } }, "required": ["type", "evaluationStart"], "type": "object" }, { "additionalProperties": false, "description": "One requested frame has been staged for the compositor.", "properties": { "frame": { "$ref": "#/$defs/WireFrame", "description": "Exact frame represented by staged browser state." }, "type": { "const": "frameStaged", "type": "string" } }, "required": ["type", "frame"], "type": "object" }, { "additionalProperties": false, "description": "The captured payload's staged media passed compositor confirmation.", "properties": { "frame": { "$ref": "#/$defs/WireFrame", "description": "Exact frame confirmed by browser media state." }, "type": { "const": "frameReady", "type": "string" } }, "required": ["type", "frame"], "type": "object" }, { "additionalProperties": false, "description": "The browser rejected a command or could not reach readiness.", "properties": { "code": { "$ref": "#/$defs/ProtocolFailureCode", "description": "Stable machine-readable failure category." }, "message": { "description": "Direct explanation in browser/runtime terms.", "maxLength": 4096, "pattern": "\\S", "type": "string" }, "pendingResources": { "description": "Resources that prevented readiness, in caller-owned deterministic order.", "items": { "maxLength": 1024, "pattern": "\\S", "type": "string" }, "maxItems": 256, "type": "array" }, "type": { "const": "failed", "type": "string" } }, "required": ["type", "code", "message", "pendingResources"], "type": "object" }, { "additionalProperties": false, "description": "The browser session released its resources.", "properties": { "type": { "const": "disposed", "type": "string" } }, "required": ["type"], "type": "object" }] }, "ProtocolFailureCode": { "description": "Stable browser protocol failure category.", "oneOf": [{ "const": "protocolMismatch", "description": "The envelope version is unsupported.", "type": "string" }, { "const": "invalidRequest", "description": "The command violates its wire contract.", "type": "string" }, { "const": "loadFailed", "description": "The immutable plan could not be installed.", "type": "string" }, { "const": "prepareFailed", "description": "Preparation could not stabilize required resources.", "type": "string" }, { "const": "seekFailed", "description": "The requested frame could not be evaluated.", "type": "string" }, { "const": "confirmFailed", "description": "The staged frame could not be confirmed after compositor capture.", "type": "string" }, { "const": "readinessTimeout", "description": "One or more resources missed the readiness deadline.", "type": "string" }, { "const": "internal", "description": "The runtime violated an internal invariant.", "type": "string" }] }, "ProtocolVersion": { "const": 3, "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-v3.schema.json", "$schema": "https://json-schema.org/draft/2020-12/schema", "additionalProperties": false, "description": "One versioned event returned by the browser runtime.", "properties": { "event": { "$ref": "#/$defs/BrowserEvent" }, "requestId": { "$ref": "#/$defs/RequestId" }, "version": { "$ref": "#/$defs/ProtocolVersion" } }, "required": ["version", "requestId", "event"], "title": "BrowserResponse", "type": "object", "x-onmark-max-failure-message-characters": 4096, "x-onmark-max-pending-resource-characters": 1024, "x-onmark-max-pending-resources": 256 };
|
|
2983
|
-
const schema64 = { "description": "Correlation identity shared by one request and its response events.", "format": "uint32", "maximum": 4294967295, "minimum": 0, "type": "integer" };
|
|
2984
|
-
const schema65 = { "const": 3, "description": "Version of the native-to-browser message contract.", "format": "uint16", "maximum": 65535, "minimum": 0, "type": "integer" };
|
|
2985
|
-
const schema59 = { "description": "Closed events emitted by the browser runtime.", "oneOf": [{ "additionalProperties": false, "description": "The immutable browser plan was accepted.", "properties": { "type": { "const": "loaded", "type": "string" } }, "required": ["type"], "type": "object" }, { "additionalProperties": false, "description": "Resources required at the evaluation start are stable.", "properties": { "evaluationStart": { "$ref": "#/$defs/WireFrame", "description": "Frame at which preparation completed." }, "type": { "const": "prepared", "type": "string" } }, "required": ["type", "evaluationStart"], "type": "object" }, { "additionalProperties": false, "description": "One requested frame has been staged for the compositor.", "properties": { "frame": { "$ref": "#/$defs/WireFrame", "description": "Exact frame represented by staged browser state." }, "type": { "const": "frameStaged", "type": "string" } }, "required": ["type", "frame"], "type": "object" }, { "additionalProperties": false, "description": "The captured payload's staged media passed compositor confirmation.", "properties": { "frame": { "$ref": "#/$defs/WireFrame", "description": "Exact frame confirmed by browser media state." }, "type": { "const": "frameReady", "type": "string" } }, "required": ["type", "frame"], "type": "object" }, { "additionalProperties": false, "description": "The browser rejected a command or could not reach readiness.", "properties": { "code": { "$ref": "#/$defs/ProtocolFailureCode", "description": "Stable machine-readable failure category." }, "message": { "description": "Direct explanation in browser/runtime terms.", "maxLength": 4096, "pattern": "\\S", "type": "string" }, "pendingResources": { "description": "Resources that prevented readiness, in caller-owned deterministic order.", "items": { "maxLength": 1024, "pattern": "\\S", "type": "string" }, "maxItems": 256, "type": "array" }, "type": { "const": "failed", "type": "string" } }, "required": ["type", "code", "message", "pendingResources"], "type": "object" }, { "additionalProperties": false, "description": "The browser session released its resources.", "properties": { "type": { "const": "disposed", "type": "string" } }, "required": ["type"], "type": "object" }] };
|
|
2986
|
-
const schema60 = { "description": "Exact frame integer accepted by JavaScript without rounding.", "format": "uint64", "maximum": 9007199254740991, "minimum": 0, "type": "integer" };
|
|
2987
|
-
const schema63 = { "description": "Stable browser protocol failure category.", "oneOf": [{ "const": "protocolMismatch", "description": "The envelope version is unsupported.", "type": "string" }, { "const": "invalidRequest", "description": "The command violates its wire contract.", "type": "string" }, { "const": "loadFailed", "description": "The immutable plan could not be installed.", "type": "string" }, { "const": "prepareFailed", "description": "Preparation could not stabilize required resources.", "type": "string" }, { "const": "seekFailed", "description": "The requested frame could not be evaluated.", "type": "string" }, { "const": "confirmFailed", "description": "The staged frame could not be confirmed after compositor capture.", "type": "string" }, { "const": "readinessTimeout", "description": "One or more resources missed the readiness deadline.", "type": "string" }, { "const": "internal", "description": "The runtime violated an internal invariant.", "type": "string" }] };
|
|
3881
|
+
validate57.evaluated = { "items": true, "dynamicProps": false, "dynamicItems": false };
|
|
2988
3882
|
const pattern9 = new RegExp("\\S", "u");
|
|
2989
|
-
function
|
|
3883
|
+
function validate56(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
|
|
2990
3884
|
let vErrors = null;
|
|
2991
3885
|
let errors = 0;
|
|
2992
|
-
const evaluated0 =
|
|
3886
|
+
const evaluated0 = validate56.evaluated;
|
|
2993
3887
|
if (evaluated0.dynamicProps) {
|
|
2994
3888
|
evaluated0.props = undefined;
|
|
2995
3889
|
}
|
|
@@ -3085,14 +3979,24 @@ function validate52(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
3085
3979
|
}
|
|
3086
3980
|
errors++;
|
|
3087
3981
|
}
|
|
3982
|
+
if (data.mediaLayout === undefined) {
|
|
3983
|
+
const err7 = { instancePath, schemaPath: "#/oneOf/1/required", keyword: "required", params: { missingProperty: "mediaLayout" }, message: "must have required property '" + "mediaLayout" + "'" };
|
|
3984
|
+
if (vErrors === null) {
|
|
3985
|
+
vErrors = [err7];
|
|
3986
|
+
}
|
|
3987
|
+
else {
|
|
3988
|
+
vErrors.push(err7);
|
|
3989
|
+
}
|
|
3990
|
+
errors++;
|
|
3991
|
+
}
|
|
3088
3992
|
for (const key1 in data) {
|
|
3089
|
-
if (!((key1 === "evaluationStart") || (key1 === "type"))) {
|
|
3090
|
-
const
|
|
3993
|
+
if (!(((key1 === "evaluationStart") || (key1 === "mediaLayout")) || (key1 === "type"))) {
|
|
3994
|
+
const err8 = { instancePath, schemaPath: "#/oneOf/1/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key1 }, message: "must NOT have additional properties" };
|
|
3091
3995
|
if (vErrors === null) {
|
|
3092
|
-
vErrors = [
|
|
3996
|
+
vErrors = [err8];
|
|
3093
3997
|
}
|
|
3094
3998
|
else {
|
|
3095
|
-
vErrors.push(
|
|
3999
|
+
vErrors.push(err8);
|
|
3096
4000
|
}
|
|
3097
4001
|
errors++;
|
|
3098
4002
|
}
|
|
@@ -3100,69 +4004,75 @@ function validate52(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
3100
4004
|
if (data.evaluationStart !== undefined) {
|
|
3101
4005
|
let data1 = data.evaluationStart;
|
|
3102
4006
|
if (!(((typeof data1 == "number") && (!(data1 % 1) && !isNaN(data1))) && (isFinite(data1)))) {
|
|
3103
|
-
const
|
|
4007
|
+
const err9 = { instancePath: instancePath + "/evaluationStart", schemaPath: "#/$defs/WireFrame/type", keyword: "type", params: { type: "integer" }, message: "must be integer" };
|
|
3104
4008
|
if (vErrors === null) {
|
|
3105
|
-
vErrors = [
|
|
4009
|
+
vErrors = [err9];
|
|
3106
4010
|
}
|
|
3107
4011
|
else {
|
|
3108
|
-
vErrors.push(
|
|
4012
|
+
vErrors.push(err9);
|
|
3109
4013
|
}
|
|
3110
4014
|
errors++;
|
|
3111
4015
|
}
|
|
3112
4016
|
if ((typeof data1 == "number") && (isFinite(data1))) {
|
|
3113
4017
|
if (data1 > 9007199254740991 || isNaN(data1)) {
|
|
3114
|
-
const
|
|
4018
|
+
const err10 = { instancePath: instancePath + "/evaluationStart", schemaPath: "#/$defs/WireFrame/maximum", keyword: "maximum", params: { comparison: "<=", limit: 9007199254740991 }, message: "must be <= 9007199254740991" };
|
|
3115
4019
|
if (vErrors === null) {
|
|
3116
|
-
vErrors = [
|
|
4020
|
+
vErrors = [err10];
|
|
3117
4021
|
}
|
|
3118
4022
|
else {
|
|
3119
|
-
vErrors.push(
|
|
4023
|
+
vErrors.push(err10);
|
|
3120
4024
|
}
|
|
3121
4025
|
errors++;
|
|
3122
4026
|
}
|
|
3123
4027
|
if (data1 < 0 || isNaN(data1)) {
|
|
3124
|
-
const
|
|
4028
|
+
const err11 = { instancePath: instancePath + "/evaluationStart", schemaPath: "#/$defs/WireFrame/minimum", keyword: "minimum", params: { comparison: ">=", limit: 0 }, message: "must be >= 0" };
|
|
3125
4029
|
if (vErrors === null) {
|
|
3126
|
-
vErrors = [
|
|
4030
|
+
vErrors = [err11];
|
|
3127
4031
|
}
|
|
3128
4032
|
else {
|
|
3129
|
-
vErrors.push(
|
|
4033
|
+
vErrors.push(err11);
|
|
3130
4034
|
}
|
|
3131
4035
|
errors++;
|
|
3132
4036
|
}
|
|
3133
4037
|
}
|
|
3134
4038
|
}
|
|
4039
|
+
if (data.mediaLayout !== undefined) {
|
|
4040
|
+
if (!(validate57(data.mediaLayout, { instancePath: instancePath + "/mediaLayout", parentData: data, parentDataProperty: "mediaLayout", rootData, dynamicAnchors }))) {
|
|
4041
|
+
vErrors = vErrors === null ? validate57.errors : vErrors.concat(validate57.errors);
|
|
4042
|
+
errors = vErrors.length;
|
|
4043
|
+
}
|
|
4044
|
+
}
|
|
3135
4045
|
if (data.type !== undefined) {
|
|
3136
|
-
let
|
|
3137
|
-
if (typeof
|
|
3138
|
-
const
|
|
4046
|
+
let data3 = data.type;
|
|
4047
|
+
if (typeof data3 !== "string") {
|
|
4048
|
+
const err12 = { instancePath: instancePath + "/type", schemaPath: "#/oneOf/1/properties/type/type", keyword: "type", params: { type: "string" }, message: "must be string" };
|
|
3139
4049
|
if (vErrors === null) {
|
|
3140
|
-
vErrors = [
|
|
4050
|
+
vErrors = [err12];
|
|
3141
4051
|
}
|
|
3142
4052
|
else {
|
|
3143
|
-
vErrors.push(
|
|
4053
|
+
vErrors.push(err12);
|
|
3144
4054
|
}
|
|
3145
4055
|
errors++;
|
|
3146
4056
|
}
|
|
3147
|
-
if ("prepared" !==
|
|
3148
|
-
const
|
|
4057
|
+
if ("prepared" !== data3) {
|
|
4058
|
+
const err13 = { instancePath: instancePath + "/type", schemaPath: "#/oneOf/1/properties/type/const", keyword: "const", params: { allowedValue: "prepared" }, message: "must be equal to constant" };
|
|
3149
4059
|
if (vErrors === null) {
|
|
3150
|
-
vErrors = [
|
|
4060
|
+
vErrors = [err13];
|
|
3151
4061
|
}
|
|
3152
4062
|
else {
|
|
3153
|
-
vErrors.push(
|
|
4063
|
+
vErrors.push(err13);
|
|
3154
4064
|
}
|
|
3155
4065
|
errors++;
|
|
3156
4066
|
}
|
|
3157
4067
|
}
|
|
3158
4068
|
}
|
|
3159
4069
|
else {
|
|
3160
|
-
const
|
|
4070
|
+
const err14 = { instancePath, schemaPath: "#/oneOf/1/type", keyword: "type", params: { type: "object" }, message: "must be object" };
|
|
3161
4071
|
if (vErrors === null) {
|
|
3162
|
-
vErrors = [
|
|
4072
|
+
vErrors = [err14];
|
|
3163
4073
|
}
|
|
3164
4074
|
else {
|
|
3165
|
-
vErrors.push(
|
|
4075
|
+
vErrors.push(err14);
|
|
3166
4076
|
}
|
|
3167
4077
|
errors++;
|
|
3168
4078
|
}
|
|
@@ -3179,110 +4089,110 @@ function validate52(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
3179
4089
|
props0 = true;
|
|
3180
4090
|
}
|
|
3181
4091
|
}
|
|
3182
|
-
const
|
|
4092
|
+
const _errs15 = errors;
|
|
3183
4093
|
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
3184
4094
|
if (data.type === undefined) {
|
|
3185
|
-
const
|
|
4095
|
+
const err15 = { instancePath, schemaPath: "#/oneOf/2/required", keyword: "required", params: { missingProperty: "type" }, message: "must have required property '" + "type" + "'" };
|
|
3186
4096
|
if (vErrors === null) {
|
|
3187
|
-
vErrors = [
|
|
4097
|
+
vErrors = [err15];
|
|
3188
4098
|
}
|
|
3189
4099
|
else {
|
|
3190
|
-
vErrors.push(
|
|
4100
|
+
vErrors.push(err15);
|
|
3191
4101
|
}
|
|
3192
4102
|
errors++;
|
|
3193
4103
|
}
|
|
3194
4104
|
if (data.frame === undefined) {
|
|
3195
|
-
const
|
|
4105
|
+
const err16 = { instancePath, schemaPath: "#/oneOf/2/required", keyword: "required", params: { missingProperty: "frame" }, message: "must have required property '" + "frame" + "'" };
|
|
3196
4106
|
if (vErrors === null) {
|
|
3197
|
-
vErrors = [
|
|
4107
|
+
vErrors = [err16];
|
|
3198
4108
|
}
|
|
3199
4109
|
else {
|
|
3200
|
-
vErrors.push(
|
|
4110
|
+
vErrors.push(err16);
|
|
3201
4111
|
}
|
|
3202
4112
|
errors++;
|
|
3203
4113
|
}
|
|
3204
4114
|
for (const key2 in data) {
|
|
3205
4115
|
if (!((key2 === "frame") || (key2 === "type"))) {
|
|
3206
|
-
const
|
|
4116
|
+
const err17 = { instancePath, schemaPath: "#/oneOf/2/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key2 }, message: "must NOT have additional properties" };
|
|
3207
4117
|
if (vErrors === null) {
|
|
3208
|
-
vErrors = [
|
|
4118
|
+
vErrors = [err17];
|
|
3209
4119
|
}
|
|
3210
4120
|
else {
|
|
3211
|
-
vErrors.push(
|
|
4121
|
+
vErrors.push(err17);
|
|
3212
4122
|
}
|
|
3213
4123
|
errors++;
|
|
3214
4124
|
}
|
|
3215
4125
|
}
|
|
3216
4126
|
if (data.frame !== undefined) {
|
|
3217
|
-
let
|
|
3218
|
-
if (!(((typeof
|
|
3219
|
-
const
|
|
4127
|
+
let data4 = data.frame;
|
|
4128
|
+
if (!(((typeof data4 == "number") && (!(data4 % 1) && !isNaN(data4))) && (isFinite(data4)))) {
|
|
4129
|
+
const err18 = { instancePath: instancePath + "/frame", schemaPath: "#/$defs/WireFrame/type", keyword: "type", params: { type: "integer" }, message: "must be integer" };
|
|
3220
4130
|
if (vErrors === null) {
|
|
3221
|
-
vErrors = [
|
|
4131
|
+
vErrors = [err18];
|
|
3222
4132
|
}
|
|
3223
4133
|
else {
|
|
3224
|
-
vErrors.push(
|
|
4134
|
+
vErrors.push(err18);
|
|
3225
4135
|
}
|
|
3226
4136
|
errors++;
|
|
3227
4137
|
}
|
|
3228
|
-
if ((typeof
|
|
3229
|
-
if (
|
|
3230
|
-
const
|
|
4138
|
+
if ((typeof data4 == "number") && (isFinite(data4))) {
|
|
4139
|
+
if (data4 > 9007199254740991 || isNaN(data4)) {
|
|
4140
|
+
const err19 = { instancePath: instancePath + "/frame", schemaPath: "#/$defs/WireFrame/maximum", keyword: "maximum", params: { comparison: "<=", limit: 9007199254740991 }, message: "must be <= 9007199254740991" };
|
|
3231
4141
|
if (vErrors === null) {
|
|
3232
|
-
vErrors = [
|
|
4142
|
+
vErrors = [err19];
|
|
3233
4143
|
}
|
|
3234
4144
|
else {
|
|
3235
|
-
vErrors.push(
|
|
4145
|
+
vErrors.push(err19);
|
|
3236
4146
|
}
|
|
3237
4147
|
errors++;
|
|
3238
4148
|
}
|
|
3239
|
-
if (
|
|
3240
|
-
const
|
|
4149
|
+
if (data4 < 0 || isNaN(data4)) {
|
|
4150
|
+
const err20 = { instancePath: instancePath + "/frame", schemaPath: "#/$defs/WireFrame/minimum", keyword: "minimum", params: { comparison: ">=", limit: 0 }, message: "must be >= 0" };
|
|
3241
4151
|
if (vErrors === null) {
|
|
3242
|
-
vErrors = [
|
|
4152
|
+
vErrors = [err20];
|
|
3243
4153
|
}
|
|
3244
4154
|
else {
|
|
3245
|
-
vErrors.push(
|
|
4155
|
+
vErrors.push(err20);
|
|
3246
4156
|
}
|
|
3247
4157
|
errors++;
|
|
3248
4158
|
}
|
|
3249
4159
|
}
|
|
3250
4160
|
}
|
|
3251
4161
|
if (data.type !== undefined) {
|
|
3252
|
-
let
|
|
3253
|
-
if (typeof
|
|
3254
|
-
const
|
|
4162
|
+
let data5 = data.type;
|
|
4163
|
+
if (typeof data5 !== "string") {
|
|
4164
|
+
const err21 = { instancePath: instancePath + "/type", schemaPath: "#/oneOf/2/properties/type/type", keyword: "type", params: { type: "string" }, message: "must be string" };
|
|
3255
4165
|
if (vErrors === null) {
|
|
3256
|
-
vErrors = [
|
|
4166
|
+
vErrors = [err21];
|
|
3257
4167
|
}
|
|
3258
4168
|
else {
|
|
3259
|
-
vErrors.push(
|
|
4169
|
+
vErrors.push(err21);
|
|
3260
4170
|
}
|
|
3261
4171
|
errors++;
|
|
3262
4172
|
}
|
|
3263
|
-
if ("frameStaged" !==
|
|
3264
|
-
const
|
|
4173
|
+
if ("frameStaged" !== data5) {
|
|
4174
|
+
const err22 = { instancePath: instancePath + "/type", schemaPath: "#/oneOf/2/properties/type/const", keyword: "const", params: { allowedValue: "frameStaged" }, message: "must be equal to constant" };
|
|
3265
4175
|
if (vErrors === null) {
|
|
3266
|
-
vErrors = [
|
|
4176
|
+
vErrors = [err22];
|
|
3267
4177
|
}
|
|
3268
4178
|
else {
|
|
3269
|
-
vErrors.push(
|
|
4179
|
+
vErrors.push(err22);
|
|
3270
4180
|
}
|
|
3271
4181
|
errors++;
|
|
3272
4182
|
}
|
|
3273
4183
|
}
|
|
3274
4184
|
}
|
|
3275
4185
|
else {
|
|
3276
|
-
const
|
|
4186
|
+
const err23 = { instancePath, schemaPath: "#/oneOf/2/type", keyword: "type", params: { type: "object" }, message: "must be object" };
|
|
3277
4187
|
if (vErrors === null) {
|
|
3278
|
-
vErrors = [
|
|
4188
|
+
vErrors = [err23];
|
|
3279
4189
|
}
|
|
3280
4190
|
else {
|
|
3281
|
-
vErrors.push(
|
|
4191
|
+
vErrors.push(err23);
|
|
3282
4192
|
}
|
|
3283
4193
|
errors++;
|
|
3284
4194
|
}
|
|
3285
|
-
var _valid0 =
|
|
4195
|
+
var _valid0 = _errs15 === errors;
|
|
3286
4196
|
if (_valid0 && valid0) {
|
|
3287
4197
|
valid0 = false;
|
|
3288
4198
|
passing0 = [passing0, 2];
|
|
@@ -3295,110 +4205,110 @@ function validate52(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
3295
4205
|
props0 = true;
|
|
3296
4206
|
}
|
|
3297
4207
|
}
|
|
3298
|
-
const
|
|
4208
|
+
const _errs23 = errors;
|
|
3299
4209
|
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
3300
4210
|
if (data.type === undefined) {
|
|
3301
|
-
const
|
|
4211
|
+
const err24 = { instancePath, schemaPath: "#/oneOf/3/required", keyword: "required", params: { missingProperty: "type" }, message: "must have required property '" + "type" + "'" };
|
|
3302
4212
|
if (vErrors === null) {
|
|
3303
|
-
vErrors = [
|
|
4213
|
+
vErrors = [err24];
|
|
3304
4214
|
}
|
|
3305
4215
|
else {
|
|
3306
|
-
vErrors.push(
|
|
4216
|
+
vErrors.push(err24);
|
|
3307
4217
|
}
|
|
3308
4218
|
errors++;
|
|
3309
4219
|
}
|
|
3310
4220
|
if (data.frame === undefined) {
|
|
3311
|
-
const
|
|
4221
|
+
const err25 = { instancePath, schemaPath: "#/oneOf/3/required", keyword: "required", params: { missingProperty: "frame" }, message: "must have required property '" + "frame" + "'" };
|
|
3312
4222
|
if (vErrors === null) {
|
|
3313
|
-
vErrors = [
|
|
4223
|
+
vErrors = [err25];
|
|
3314
4224
|
}
|
|
3315
4225
|
else {
|
|
3316
|
-
vErrors.push(
|
|
4226
|
+
vErrors.push(err25);
|
|
3317
4227
|
}
|
|
3318
4228
|
errors++;
|
|
3319
4229
|
}
|
|
3320
4230
|
for (const key3 in data) {
|
|
3321
4231
|
if (!((key3 === "frame") || (key3 === "type"))) {
|
|
3322
|
-
const
|
|
4232
|
+
const err26 = { instancePath, schemaPath: "#/oneOf/3/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key3 }, message: "must NOT have additional properties" };
|
|
3323
4233
|
if (vErrors === null) {
|
|
3324
|
-
vErrors = [
|
|
4234
|
+
vErrors = [err26];
|
|
3325
4235
|
}
|
|
3326
4236
|
else {
|
|
3327
|
-
vErrors.push(
|
|
4237
|
+
vErrors.push(err26);
|
|
3328
4238
|
}
|
|
3329
4239
|
errors++;
|
|
3330
4240
|
}
|
|
3331
4241
|
}
|
|
3332
4242
|
if (data.frame !== undefined) {
|
|
3333
|
-
let
|
|
3334
|
-
if (!(((typeof
|
|
3335
|
-
const
|
|
4243
|
+
let data6 = data.frame;
|
|
4244
|
+
if (!(((typeof data6 == "number") && (!(data6 % 1) && !isNaN(data6))) && (isFinite(data6)))) {
|
|
4245
|
+
const err27 = { instancePath: instancePath + "/frame", schemaPath: "#/$defs/WireFrame/type", keyword: "type", params: { type: "integer" }, message: "must be integer" };
|
|
3336
4246
|
if (vErrors === null) {
|
|
3337
|
-
vErrors = [
|
|
4247
|
+
vErrors = [err27];
|
|
3338
4248
|
}
|
|
3339
4249
|
else {
|
|
3340
|
-
vErrors.push(
|
|
4250
|
+
vErrors.push(err27);
|
|
3341
4251
|
}
|
|
3342
4252
|
errors++;
|
|
3343
4253
|
}
|
|
3344
|
-
if ((typeof
|
|
3345
|
-
if (
|
|
3346
|
-
const
|
|
4254
|
+
if ((typeof data6 == "number") && (isFinite(data6))) {
|
|
4255
|
+
if (data6 > 9007199254740991 || isNaN(data6)) {
|
|
4256
|
+
const err28 = { instancePath: instancePath + "/frame", schemaPath: "#/$defs/WireFrame/maximum", keyword: "maximum", params: { comparison: "<=", limit: 9007199254740991 }, message: "must be <= 9007199254740991" };
|
|
3347
4257
|
if (vErrors === null) {
|
|
3348
|
-
vErrors = [
|
|
4258
|
+
vErrors = [err28];
|
|
3349
4259
|
}
|
|
3350
4260
|
else {
|
|
3351
|
-
vErrors.push(
|
|
4261
|
+
vErrors.push(err28);
|
|
3352
4262
|
}
|
|
3353
4263
|
errors++;
|
|
3354
4264
|
}
|
|
3355
|
-
if (
|
|
3356
|
-
const
|
|
4265
|
+
if (data6 < 0 || isNaN(data6)) {
|
|
4266
|
+
const err29 = { instancePath: instancePath + "/frame", schemaPath: "#/$defs/WireFrame/minimum", keyword: "minimum", params: { comparison: ">=", limit: 0 }, message: "must be >= 0" };
|
|
3357
4267
|
if (vErrors === null) {
|
|
3358
|
-
vErrors = [
|
|
4268
|
+
vErrors = [err29];
|
|
3359
4269
|
}
|
|
3360
4270
|
else {
|
|
3361
|
-
vErrors.push(
|
|
4271
|
+
vErrors.push(err29);
|
|
3362
4272
|
}
|
|
3363
4273
|
errors++;
|
|
3364
4274
|
}
|
|
3365
4275
|
}
|
|
3366
4276
|
}
|
|
3367
4277
|
if (data.type !== undefined) {
|
|
3368
|
-
let
|
|
3369
|
-
if (typeof
|
|
3370
|
-
const
|
|
4278
|
+
let data7 = data.type;
|
|
4279
|
+
if (typeof data7 !== "string") {
|
|
4280
|
+
const err30 = { instancePath: instancePath + "/type", schemaPath: "#/oneOf/3/properties/type/type", keyword: "type", params: { type: "string" }, message: "must be string" };
|
|
3371
4281
|
if (vErrors === null) {
|
|
3372
|
-
vErrors = [
|
|
4282
|
+
vErrors = [err30];
|
|
3373
4283
|
}
|
|
3374
4284
|
else {
|
|
3375
|
-
vErrors.push(
|
|
4285
|
+
vErrors.push(err30);
|
|
3376
4286
|
}
|
|
3377
4287
|
errors++;
|
|
3378
4288
|
}
|
|
3379
|
-
if ("frameReady" !==
|
|
3380
|
-
const
|
|
4289
|
+
if ("frameReady" !== data7) {
|
|
4290
|
+
const err31 = { instancePath: instancePath + "/type", schemaPath: "#/oneOf/3/properties/type/const", keyword: "const", params: { allowedValue: "frameReady" }, message: "must be equal to constant" };
|
|
3381
4291
|
if (vErrors === null) {
|
|
3382
|
-
vErrors = [
|
|
4292
|
+
vErrors = [err31];
|
|
3383
4293
|
}
|
|
3384
4294
|
else {
|
|
3385
|
-
vErrors.push(
|
|
4295
|
+
vErrors.push(err31);
|
|
3386
4296
|
}
|
|
3387
4297
|
errors++;
|
|
3388
4298
|
}
|
|
3389
4299
|
}
|
|
3390
4300
|
}
|
|
3391
4301
|
else {
|
|
3392
|
-
const
|
|
4302
|
+
const err32 = { instancePath, schemaPath: "#/oneOf/3/type", keyword: "type", params: { type: "object" }, message: "must be object" };
|
|
3393
4303
|
if (vErrors === null) {
|
|
3394
|
-
vErrors = [
|
|
4304
|
+
vErrors = [err32];
|
|
3395
4305
|
}
|
|
3396
4306
|
else {
|
|
3397
|
-
vErrors.push(
|
|
4307
|
+
vErrors.push(err32);
|
|
3398
4308
|
}
|
|
3399
4309
|
errors++;
|
|
3400
4310
|
}
|
|
3401
|
-
var _valid0 =
|
|
4311
|
+
var _valid0 = _errs23 === errors;
|
|
3402
4312
|
if (_valid0 && valid0) {
|
|
3403
4313
|
valid0 = false;
|
|
3404
4314
|
passing0 = [passing0, 3];
|
|
@@ -3411,113 +4321,113 @@ function validate52(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
3411
4321
|
props0 = true;
|
|
3412
4322
|
}
|
|
3413
4323
|
}
|
|
3414
|
-
const
|
|
4324
|
+
const _errs31 = errors;
|
|
3415
4325
|
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
3416
4326
|
if (data.type === undefined) {
|
|
3417
|
-
const
|
|
4327
|
+
const err33 = { instancePath, schemaPath: "#/oneOf/4/required", keyword: "required", params: { missingProperty: "type" }, message: "must have required property '" + "type" + "'" };
|
|
3418
4328
|
if (vErrors === null) {
|
|
3419
|
-
vErrors = [
|
|
4329
|
+
vErrors = [err33];
|
|
3420
4330
|
}
|
|
3421
4331
|
else {
|
|
3422
|
-
vErrors.push(
|
|
4332
|
+
vErrors.push(err33);
|
|
3423
4333
|
}
|
|
3424
4334
|
errors++;
|
|
3425
4335
|
}
|
|
3426
4336
|
if (data.code === undefined) {
|
|
3427
|
-
const
|
|
4337
|
+
const err34 = { instancePath, schemaPath: "#/oneOf/4/required", keyword: "required", params: { missingProperty: "code" }, message: "must have required property '" + "code" + "'" };
|
|
3428
4338
|
if (vErrors === null) {
|
|
3429
|
-
vErrors = [
|
|
4339
|
+
vErrors = [err34];
|
|
3430
4340
|
}
|
|
3431
4341
|
else {
|
|
3432
|
-
vErrors.push(
|
|
4342
|
+
vErrors.push(err34);
|
|
3433
4343
|
}
|
|
3434
4344
|
errors++;
|
|
3435
4345
|
}
|
|
3436
4346
|
if (data.message === undefined) {
|
|
3437
|
-
const
|
|
4347
|
+
const err35 = { instancePath, schemaPath: "#/oneOf/4/required", keyword: "required", params: { missingProperty: "message" }, message: "must have required property '" + "message" + "'" };
|
|
3438
4348
|
if (vErrors === null) {
|
|
3439
|
-
vErrors = [
|
|
4349
|
+
vErrors = [err35];
|
|
3440
4350
|
}
|
|
3441
4351
|
else {
|
|
3442
|
-
vErrors.push(
|
|
4352
|
+
vErrors.push(err35);
|
|
3443
4353
|
}
|
|
3444
4354
|
errors++;
|
|
3445
4355
|
}
|
|
3446
4356
|
if (data.pendingResources === undefined) {
|
|
3447
|
-
const
|
|
4357
|
+
const err36 = { instancePath, schemaPath: "#/oneOf/4/required", keyword: "required", params: { missingProperty: "pendingResources" }, message: "must have required property '" + "pendingResources" + "'" };
|
|
3448
4358
|
if (vErrors === null) {
|
|
3449
|
-
vErrors = [
|
|
4359
|
+
vErrors = [err36];
|
|
3450
4360
|
}
|
|
3451
4361
|
else {
|
|
3452
|
-
vErrors.push(
|
|
4362
|
+
vErrors.push(err36);
|
|
3453
4363
|
}
|
|
3454
4364
|
errors++;
|
|
3455
4365
|
}
|
|
3456
4366
|
for (const key4 in data) {
|
|
3457
4367
|
if (!((((key4 === "code") || (key4 === "message")) || (key4 === "pendingResources")) || (key4 === "type"))) {
|
|
3458
|
-
const
|
|
4368
|
+
const err37 = { instancePath, schemaPath: "#/oneOf/4/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key4 }, message: "must NOT have additional properties" };
|
|
3459
4369
|
if (vErrors === null) {
|
|
3460
|
-
vErrors = [
|
|
4370
|
+
vErrors = [err37];
|
|
3461
4371
|
}
|
|
3462
4372
|
else {
|
|
3463
|
-
vErrors.push(
|
|
4373
|
+
vErrors.push(err37);
|
|
3464
4374
|
}
|
|
3465
4375
|
errors++;
|
|
3466
4376
|
}
|
|
3467
4377
|
}
|
|
3468
4378
|
if (data.code !== undefined) {
|
|
3469
|
-
let
|
|
3470
|
-
const
|
|
4379
|
+
let data8 = data.code;
|
|
4380
|
+
const _errs36 = errors;
|
|
3471
4381
|
let valid10 = false;
|
|
3472
4382
|
let passing1 = null;
|
|
3473
|
-
const
|
|
3474
|
-
if (typeof
|
|
3475
|
-
const
|
|
4383
|
+
const _errs37 = errors;
|
|
4384
|
+
if (typeof data8 !== "string") {
|
|
4385
|
+
const err38 = { instancePath: instancePath + "/code", schemaPath: "#/$defs/ProtocolFailureCode/oneOf/0/type", keyword: "type", params: { type: "string" }, message: "must be string" };
|
|
3476
4386
|
if (vErrors === null) {
|
|
3477
|
-
vErrors = [
|
|
4387
|
+
vErrors = [err38];
|
|
3478
4388
|
}
|
|
3479
4389
|
else {
|
|
3480
|
-
vErrors.push(
|
|
4390
|
+
vErrors.push(err38);
|
|
3481
4391
|
}
|
|
3482
4392
|
errors++;
|
|
3483
4393
|
}
|
|
3484
|
-
if ("protocolMismatch" !==
|
|
3485
|
-
const
|
|
4394
|
+
if ("protocolMismatch" !== data8) {
|
|
4395
|
+
const err39 = { instancePath: instancePath + "/code", schemaPath: "#/$defs/ProtocolFailureCode/oneOf/0/const", keyword: "const", params: { allowedValue: "protocolMismatch" }, message: "must be equal to constant" };
|
|
3486
4396
|
if (vErrors === null) {
|
|
3487
|
-
vErrors = [
|
|
4397
|
+
vErrors = [err39];
|
|
3488
4398
|
}
|
|
3489
4399
|
else {
|
|
3490
|
-
vErrors.push(
|
|
4400
|
+
vErrors.push(err39);
|
|
3491
4401
|
}
|
|
3492
4402
|
errors++;
|
|
3493
4403
|
}
|
|
3494
|
-
var _valid1 =
|
|
4404
|
+
var _valid1 = _errs37 === errors;
|
|
3495
4405
|
if (_valid1) {
|
|
3496
4406
|
valid10 = true;
|
|
3497
4407
|
passing1 = 0;
|
|
3498
4408
|
}
|
|
3499
|
-
const
|
|
3500
|
-
if (typeof
|
|
3501
|
-
const
|
|
4409
|
+
const _errs39 = errors;
|
|
4410
|
+
if (typeof data8 !== "string") {
|
|
4411
|
+
const err40 = { instancePath: instancePath + "/code", schemaPath: "#/$defs/ProtocolFailureCode/oneOf/1/type", keyword: "type", params: { type: "string" }, message: "must be string" };
|
|
3502
4412
|
if (vErrors === null) {
|
|
3503
|
-
vErrors = [
|
|
4413
|
+
vErrors = [err40];
|
|
3504
4414
|
}
|
|
3505
4415
|
else {
|
|
3506
|
-
vErrors.push(
|
|
4416
|
+
vErrors.push(err40);
|
|
3507
4417
|
}
|
|
3508
4418
|
errors++;
|
|
3509
4419
|
}
|
|
3510
|
-
if ("invalidRequest" !==
|
|
3511
|
-
const
|
|
4420
|
+
if ("invalidRequest" !== data8) {
|
|
4421
|
+
const err41 = { instancePath: instancePath + "/code", schemaPath: "#/$defs/ProtocolFailureCode/oneOf/1/const", keyword: "const", params: { allowedValue: "invalidRequest" }, message: "must be equal to constant" };
|
|
3512
4422
|
if (vErrors === null) {
|
|
3513
|
-
vErrors = [
|
|
4423
|
+
vErrors = [err41];
|
|
3514
4424
|
}
|
|
3515
4425
|
else {
|
|
3516
|
-
vErrors.push(
|
|
4426
|
+
vErrors.push(err41);
|
|
3517
4427
|
}
|
|
3518
4428
|
errors++;
|
|
3519
4429
|
}
|
|
3520
|
-
var _valid1 =
|
|
4430
|
+
var _valid1 = _errs39 === errors;
|
|
3521
4431
|
if (_valid1 && valid10) {
|
|
3522
4432
|
valid10 = false;
|
|
3523
4433
|
passing1 = [passing1, 1];
|
|
@@ -3527,28 +4437,28 @@ function validate52(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
3527
4437
|
valid10 = true;
|
|
3528
4438
|
passing1 = 1;
|
|
3529
4439
|
}
|
|
3530
|
-
const
|
|
3531
|
-
if (typeof
|
|
3532
|
-
const
|
|
4440
|
+
const _errs41 = errors;
|
|
4441
|
+
if (typeof data8 !== "string") {
|
|
4442
|
+
const err42 = { instancePath: instancePath + "/code", schemaPath: "#/$defs/ProtocolFailureCode/oneOf/2/type", keyword: "type", params: { type: "string" }, message: "must be string" };
|
|
3533
4443
|
if (vErrors === null) {
|
|
3534
|
-
vErrors = [
|
|
4444
|
+
vErrors = [err42];
|
|
3535
4445
|
}
|
|
3536
4446
|
else {
|
|
3537
|
-
vErrors.push(
|
|
4447
|
+
vErrors.push(err42);
|
|
3538
4448
|
}
|
|
3539
4449
|
errors++;
|
|
3540
4450
|
}
|
|
3541
|
-
if ("loadFailed" !==
|
|
3542
|
-
const
|
|
4451
|
+
if ("loadFailed" !== data8) {
|
|
4452
|
+
const err43 = { instancePath: instancePath + "/code", schemaPath: "#/$defs/ProtocolFailureCode/oneOf/2/const", keyword: "const", params: { allowedValue: "loadFailed" }, message: "must be equal to constant" };
|
|
3543
4453
|
if (vErrors === null) {
|
|
3544
|
-
vErrors = [
|
|
4454
|
+
vErrors = [err43];
|
|
3545
4455
|
}
|
|
3546
4456
|
else {
|
|
3547
|
-
vErrors.push(
|
|
4457
|
+
vErrors.push(err43);
|
|
3548
4458
|
}
|
|
3549
4459
|
errors++;
|
|
3550
4460
|
}
|
|
3551
|
-
var _valid1 =
|
|
4461
|
+
var _valid1 = _errs41 === errors;
|
|
3552
4462
|
if (_valid1 && valid10) {
|
|
3553
4463
|
valid10 = false;
|
|
3554
4464
|
passing1 = [passing1, 2];
|
|
@@ -3558,28 +4468,28 @@ function validate52(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
3558
4468
|
valid10 = true;
|
|
3559
4469
|
passing1 = 2;
|
|
3560
4470
|
}
|
|
3561
|
-
const
|
|
3562
|
-
if (typeof
|
|
3563
|
-
const
|
|
4471
|
+
const _errs43 = errors;
|
|
4472
|
+
if (typeof data8 !== "string") {
|
|
4473
|
+
const err44 = { instancePath: instancePath + "/code", schemaPath: "#/$defs/ProtocolFailureCode/oneOf/3/type", keyword: "type", params: { type: "string" }, message: "must be string" };
|
|
3564
4474
|
if (vErrors === null) {
|
|
3565
|
-
vErrors = [
|
|
4475
|
+
vErrors = [err44];
|
|
3566
4476
|
}
|
|
3567
4477
|
else {
|
|
3568
|
-
vErrors.push(
|
|
4478
|
+
vErrors.push(err44);
|
|
3569
4479
|
}
|
|
3570
4480
|
errors++;
|
|
3571
4481
|
}
|
|
3572
|
-
if ("prepareFailed" !==
|
|
3573
|
-
const
|
|
4482
|
+
if ("prepareFailed" !== data8) {
|
|
4483
|
+
const err45 = { instancePath: instancePath + "/code", schemaPath: "#/$defs/ProtocolFailureCode/oneOf/3/const", keyword: "const", params: { allowedValue: "prepareFailed" }, message: "must be equal to constant" };
|
|
3574
4484
|
if (vErrors === null) {
|
|
3575
|
-
vErrors = [
|
|
4485
|
+
vErrors = [err45];
|
|
3576
4486
|
}
|
|
3577
4487
|
else {
|
|
3578
|
-
vErrors.push(
|
|
4488
|
+
vErrors.push(err45);
|
|
3579
4489
|
}
|
|
3580
4490
|
errors++;
|
|
3581
4491
|
}
|
|
3582
|
-
var _valid1 =
|
|
4492
|
+
var _valid1 = _errs43 === errors;
|
|
3583
4493
|
if (_valid1 && valid10) {
|
|
3584
4494
|
valid10 = false;
|
|
3585
4495
|
passing1 = [passing1, 3];
|
|
@@ -3589,28 +4499,28 @@ function validate52(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
3589
4499
|
valid10 = true;
|
|
3590
4500
|
passing1 = 3;
|
|
3591
4501
|
}
|
|
3592
|
-
const
|
|
3593
|
-
if (typeof
|
|
3594
|
-
const
|
|
4502
|
+
const _errs45 = errors;
|
|
4503
|
+
if (typeof data8 !== "string") {
|
|
4504
|
+
const err46 = { instancePath: instancePath + "/code", schemaPath: "#/$defs/ProtocolFailureCode/oneOf/4/type", keyword: "type", params: { type: "string" }, message: "must be string" };
|
|
3595
4505
|
if (vErrors === null) {
|
|
3596
|
-
vErrors = [
|
|
4506
|
+
vErrors = [err46];
|
|
3597
4507
|
}
|
|
3598
4508
|
else {
|
|
3599
|
-
vErrors.push(
|
|
4509
|
+
vErrors.push(err46);
|
|
3600
4510
|
}
|
|
3601
4511
|
errors++;
|
|
3602
4512
|
}
|
|
3603
|
-
if ("seekFailed" !==
|
|
3604
|
-
const
|
|
4513
|
+
if ("seekFailed" !== data8) {
|
|
4514
|
+
const err47 = { instancePath: instancePath + "/code", schemaPath: "#/$defs/ProtocolFailureCode/oneOf/4/const", keyword: "const", params: { allowedValue: "seekFailed" }, message: "must be equal to constant" };
|
|
3605
4515
|
if (vErrors === null) {
|
|
3606
|
-
vErrors = [
|
|
4516
|
+
vErrors = [err47];
|
|
3607
4517
|
}
|
|
3608
4518
|
else {
|
|
3609
|
-
vErrors.push(
|
|
4519
|
+
vErrors.push(err47);
|
|
3610
4520
|
}
|
|
3611
4521
|
errors++;
|
|
3612
4522
|
}
|
|
3613
|
-
var _valid1 =
|
|
4523
|
+
var _valid1 = _errs45 === errors;
|
|
3614
4524
|
if (_valid1 && valid10) {
|
|
3615
4525
|
valid10 = false;
|
|
3616
4526
|
passing1 = [passing1, 4];
|
|
@@ -3620,28 +4530,28 @@ function validate52(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
3620
4530
|
valid10 = true;
|
|
3621
4531
|
passing1 = 4;
|
|
3622
4532
|
}
|
|
3623
|
-
const
|
|
3624
|
-
if (typeof
|
|
3625
|
-
const
|
|
4533
|
+
const _errs47 = errors;
|
|
4534
|
+
if (typeof data8 !== "string") {
|
|
4535
|
+
const err48 = { instancePath: instancePath + "/code", schemaPath: "#/$defs/ProtocolFailureCode/oneOf/5/type", keyword: "type", params: { type: "string" }, message: "must be string" };
|
|
3626
4536
|
if (vErrors === null) {
|
|
3627
|
-
vErrors = [
|
|
4537
|
+
vErrors = [err48];
|
|
3628
4538
|
}
|
|
3629
4539
|
else {
|
|
3630
|
-
vErrors.push(
|
|
4540
|
+
vErrors.push(err48);
|
|
3631
4541
|
}
|
|
3632
4542
|
errors++;
|
|
3633
4543
|
}
|
|
3634
|
-
if ("confirmFailed" !==
|
|
3635
|
-
const
|
|
4544
|
+
if ("confirmFailed" !== data8) {
|
|
4545
|
+
const err49 = { instancePath: instancePath + "/code", schemaPath: "#/$defs/ProtocolFailureCode/oneOf/5/const", keyword: "const", params: { allowedValue: "confirmFailed" }, message: "must be equal to constant" };
|
|
3636
4546
|
if (vErrors === null) {
|
|
3637
|
-
vErrors = [
|
|
4547
|
+
vErrors = [err49];
|
|
3638
4548
|
}
|
|
3639
4549
|
else {
|
|
3640
|
-
vErrors.push(
|
|
4550
|
+
vErrors.push(err49);
|
|
3641
4551
|
}
|
|
3642
4552
|
errors++;
|
|
3643
4553
|
}
|
|
3644
|
-
var _valid1 =
|
|
4554
|
+
var _valid1 = _errs47 === errors;
|
|
3645
4555
|
if (_valid1 && valid10) {
|
|
3646
4556
|
valid10 = false;
|
|
3647
4557
|
passing1 = [passing1, 5];
|
|
@@ -3651,28 +4561,28 @@ function validate52(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
3651
4561
|
valid10 = true;
|
|
3652
4562
|
passing1 = 5;
|
|
3653
4563
|
}
|
|
3654
|
-
const
|
|
3655
|
-
if (typeof
|
|
3656
|
-
const
|
|
4564
|
+
const _errs49 = errors;
|
|
4565
|
+
if (typeof data8 !== "string") {
|
|
4566
|
+
const err50 = { instancePath: instancePath + "/code", schemaPath: "#/$defs/ProtocolFailureCode/oneOf/6/type", keyword: "type", params: { type: "string" }, message: "must be string" };
|
|
3657
4567
|
if (vErrors === null) {
|
|
3658
|
-
vErrors = [
|
|
4568
|
+
vErrors = [err50];
|
|
3659
4569
|
}
|
|
3660
4570
|
else {
|
|
3661
|
-
vErrors.push(
|
|
4571
|
+
vErrors.push(err50);
|
|
3662
4572
|
}
|
|
3663
4573
|
errors++;
|
|
3664
4574
|
}
|
|
3665
|
-
if ("readinessTimeout" !==
|
|
3666
|
-
const
|
|
4575
|
+
if ("readinessTimeout" !== data8) {
|
|
4576
|
+
const err51 = { instancePath: instancePath + "/code", schemaPath: "#/$defs/ProtocolFailureCode/oneOf/6/const", keyword: "const", params: { allowedValue: "readinessTimeout" }, message: "must be equal to constant" };
|
|
3667
4577
|
if (vErrors === null) {
|
|
3668
|
-
vErrors = [
|
|
4578
|
+
vErrors = [err51];
|
|
3669
4579
|
}
|
|
3670
4580
|
else {
|
|
3671
|
-
vErrors.push(
|
|
4581
|
+
vErrors.push(err51);
|
|
3672
4582
|
}
|
|
3673
4583
|
errors++;
|
|
3674
4584
|
}
|
|
3675
|
-
var _valid1 =
|
|
4585
|
+
var _valid1 = _errs49 === errors;
|
|
3676
4586
|
if (_valid1 && valid10) {
|
|
3677
4587
|
valid10 = false;
|
|
3678
4588
|
passing1 = [passing1, 6];
|
|
@@ -3682,28 +4592,28 @@ function validate52(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
3682
4592
|
valid10 = true;
|
|
3683
4593
|
passing1 = 6;
|
|
3684
4594
|
}
|
|
3685
|
-
const
|
|
3686
|
-
if (typeof
|
|
3687
|
-
const
|
|
4595
|
+
const _errs51 = errors;
|
|
4596
|
+
if (typeof data8 !== "string") {
|
|
4597
|
+
const err52 = { instancePath: instancePath + "/code", schemaPath: "#/$defs/ProtocolFailureCode/oneOf/7/type", keyword: "type", params: { type: "string" }, message: "must be string" };
|
|
3688
4598
|
if (vErrors === null) {
|
|
3689
|
-
vErrors = [
|
|
4599
|
+
vErrors = [err52];
|
|
3690
4600
|
}
|
|
3691
4601
|
else {
|
|
3692
|
-
vErrors.push(
|
|
4602
|
+
vErrors.push(err52);
|
|
3693
4603
|
}
|
|
3694
4604
|
errors++;
|
|
3695
4605
|
}
|
|
3696
|
-
if ("internal" !==
|
|
3697
|
-
const
|
|
4606
|
+
if ("internal" !== data8) {
|
|
4607
|
+
const err53 = { instancePath: instancePath + "/code", schemaPath: "#/$defs/ProtocolFailureCode/oneOf/7/const", keyword: "const", params: { allowedValue: "internal" }, message: "must be equal to constant" };
|
|
3698
4608
|
if (vErrors === null) {
|
|
3699
|
-
vErrors = [
|
|
4609
|
+
vErrors = [err53];
|
|
3700
4610
|
}
|
|
3701
4611
|
else {
|
|
3702
|
-
vErrors.push(
|
|
4612
|
+
vErrors.push(err53);
|
|
3703
4613
|
}
|
|
3704
4614
|
errors++;
|
|
3705
4615
|
}
|
|
3706
|
-
var _valid1 =
|
|
4616
|
+
var _valid1 = _errs51 === errors;
|
|
3707
4617
|
if (_valid1 && valid10) {
|
|
3708
4618
|
valid10 = false;
|
|
3709
4619
|
passing1 = [passing1, 7];
|
|
@@ -3721,20 +4631,20 @@ function validate52(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
3721
4631
|
}
|
|
3722
4632
|
}
|
|
3723
4633
|
if (!valid10) {
|
|
3724
|
-
const
|
|
4634
|
+
const err54 = { instancePath: instancePath + "/code", schemaPath: "#/$defs/ProtocolFailureCode/oneOf", keyword: "oneOf", params: { passingSchemas: passing1 }, message: "must match exactly one schema in oneOf" };
|
|
3725
4635
|
if (vErrors === null) {
|
|
3726
|
-
vErrors = [
|
|
4636
|
+
vErrors = [err54];
|
|
3727
4637
|
}
|
|
3728
4638
|
else {
|
|
3729
|
-
vErrors.push(
|
|
4639
|
+
vErrors.push(err54);
|
|
3730
4640
|
}
|
|
3731
4641
|
errors++;
|
|
3732
4642
|
}
|
|
3733
4643
|
else {
|
|
3734
|
-
errors =
|
|
4644
|
+
errors = _errs36;
|
|
3735
4645
|
if (vErrors !== null) {
|
|
3736
|
-
if (
|
|
3737
|
-
vErrors.length =
|
|
4646
|
+
if (_errs36) {
|
|
4647
|
+
vErrors.length = _errs36;
|
|
3738
4648
|
}
|
|
3739
4649
|
else {
|
|
3740
4650
|
vErrors = null;
|
|
@@ -3743,136 +4653,136 @@ function validate52(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
3743
4653
|
}
|
|
3744
4654
|
}
|
|
3745
4655
|
if (data.message !== undefined) {
|
|
3746
|
-
let
|
|
3747
|
-
if (typeof
|
|
3748
|
-
if (func2(
|
|
3749
|
-
const
|
|
4656
|
+
let data9 = data.message;
|
|
4657
|
+
if (typeof data9 === "string") {
|
|
4658
|
+
if (func2(data9) > 4096) {
|
|
4659
|
+
const err55 = { instancePath: instancePath + "/message", schemaPath: "#/oneOf/4/properties/message/maxLength", keyword: "maxLength", params: { limit: 4096 }, message: "must NOT have more than 4096 characters" };
|
|
3750
4660
|
if (vErrors === null) {
|
|
3751
|
-
vErrors = [
|
|
4661
|
+
vErrors = [err55];
|
|
3752
4662
|
}
|
|
3753
4663
|
else {
|
|
3754
|
-
vErrors.push(
|
|
4664
|
+
vErrors.push(err55);
|
|
3755
4665
|
}
|
|
3756
4666
|
errors++;
|
|
3757
4667
|
}
|
|
3758
|
-
if (!pattern9.test(
|
|
3759
|
-
const
|
|
4668
|
+
if (!pattern9.test(data9)) {
|
|
4669
|
+
const err56 = { instancePath: instancePath + "/message", schemaPath: "#/oneOf/4/properties/message/pattern", keyword: "pattern", params: { pattern: "\\S" }, message: "must match pattern \"" + "\\S" + "\"" };
|
|
3760
4670
|
if (vErrors === null) {
|
|
3761
|
-
vErrors = [
|
|
4671
|
+
vErrors = [err56];
|
|
3762
4672
|
}
|
|
3763
4673
|
else {
|
|
3764
|
-
vErrors.push(
|
|
4674
|
+
vErrors.push(err56);
|
|
3765
4675
|
}
|
|
3766
4676
|
errors++;
|
|
3767
4677
|
}
|
|
3768
4678
|
}
|
|
3769
4679
|
else {
|
|
3770
|
-
const
|
|
4680
|
+
const err57 = { instancePath: instancePath + "/message", schemaPath: "#/oneOf/4/properties/message/type", keyword: "type", params: { type: "string" }, message: "must be string" };
|
|
3771
4681
|
if (vErrors === null) {
|
|
3772
|
-
vErrors = [
|
|
4682
|
+
vErrors = [err57];
|
|
3773
4683
|
}
|
|
3774
4684
|
else {
|
|
3775
|
-
vErrors.push(
|
|
4685
|
+
vErrors.push(err57);
|
|
3776
4686
|
}
|
|
3777
4687
|
errors++;
|
|
3778
4688
|
}
|
|
3779
4689
|
}
|
|
3780
4690
|
if (data.pendingResources !== undefined) {
|
|
3781
|
-
let
|
|
3782
|
-
if (Array.isArray(
|
|
3783
|
-
if (
|
|
3784
|
-
const
|
|
4691
|
+
let data10 = data.pendingResources;
|
|
4692
|
+
if (Array.isArray(data10)) {
|
|
4693
|
+
if (data10.length > 256) {
|
|
4694
|
+
const err58 = { instancePath: instancePath + "/pendingResources", schemaPath: "#/oneOf/4/properties/pendingResources/maxItems", keyword: "maxItems", params: { limit: 256 }, message: "must NOT have more than 256 items" };
|
|
3785
4695
|
if (vErrors === null) {
|
|
3786
|
-
vErrors = [
|
|
4696
|
+
vErrors = [err58];
|
|
3787
4697
|
}
|
|
3788
4698
|
else {
|
|
3789
|
-
vErrors.push(
|
|
4699
|
+
vErrors.push(err58);
|
|
3790
4700
|
}
|
|
3791
4701
|
errors++;
|
|
3792
4702
|
}
|
|
3793
|
-
const len0 =
|
|
4703
|
+
const len0 = data10.length;
|
|
3794
4704
|
for (let i0 = 0; i0 < len0; i0++) {
|
|
3795
|
-
let
|
|
3796
|
-
if (typeof
|
|
3797
|
-
if (func2(
|
|
3798
|
-
const
|
|
4705
|
+
let data11 = data10[i0];
|
|
4706
|
+
if (typeof data11 === "string") {
|
|
4707
|
+
if (func2(data11) > 1024) {
|
|
4708
|
+
const err59 = { instancePath: instancePath + "/pendingResources/" + i0, schemaPath: "#/oneOf/4/properties/pendingResources/items/maxLength", keyword: "maxLength", params: { limit: 1024 }, message: "must NOT have more than 1024 characters" };
|
|
3799
4709
|
if (vErrors === null) {
|
|
3800
|
-
vErrors = [
|
|
4710
|
+
vErrors = [err59];
|
|
3801
4711
|
}
|
|
3802
4712
|
else {
|
|
3803
|
-
vErrors.push(
|
|
4713
|
+
vErrors.push(err59);
|
|
3804
4714
|
}
|
|
3805
4715
|
errors++;
|
|
3806
4716
|
}
|
|
3807
|
-
if (!pattern9.test(
|
|
3808
|
-
const
|
|
4717
|
+
if (!pattern9.test(data11)) {
|
|
4718
|
+
const err60 = { instancePath: instancePath + "/pendingResources/" + i0, schemaPath: "#/oneOf/4/properties/pendingResources/items/pattern", keyword: "pattern", params: { pattern: "\\S" }, message: "must match pattern \"" + "\\S" + "\"" };
|
|
3809
4719
|
if (vErrors === null) {
|
|
3810
|
-
vErrors = [
|
|
4720
|
+
vErrors = [err60];
|
|
3811
4721
|
}
|
|
3812
4722
|
else {
|
|
3813
|
-
vErrors.push(
|
|
4723
|
+
vErrors.push(err60);
|
|
3814
4724
|
}
|
|
3815
4725
|
errors++;
|
|
3816
4726
|
}
|
|
3817
4727
|
}
|
|
3818
4728
|
else {
|
|
3819
|
-
const
|
|
4729
|
+
const err61 = { instancePath: instancePath + "/pendingResources/" + i0, schemaPath: "#/oneOf/4/properties/pendingResources/items/type", keyword: "type", params: { type: "string" }, message: "must be string" };
|
|
3820
4730
|
if (vErrors === null) {
|
|
3821
|
-
vErrors = [
|
|
4731
|
+
vErrors = [err61];
|
|
3822
4732
|
}
|
|
3823
4733
|
else {
|
|
3824
|
-
vErrors.push(
|
|
4734
|
+
vErrors.push(err61);
|
|
3825
4735
|
}
|
|
3826
4736
|
errors++;
|
|
3827
4737
|
}
|
|
3828
4738
|
}
|
|
3829
4739
|
}
|
|
3830
4740
|
else {
|
|
3831
|
-
const
|
|
4741
|
+
const err62 = { instancePath: instancePath + "/pendingResources", schemaPath: "#/oneOf/4/properties/pendingResources/type", keyword: "type", params: { type: "array" }, message: "must be array" };
|
|
3832
4742
|
if (vErrors === null) {
|
|
3833
|
-
vErrors = [
|
|
4743
|
+
vErrors = [err62];
|
|
3834
4744
|
}
|
|
3835
4745
|
else {
|
|
3836
|
-
vErrors.push(
|
|
4746
|
+
vErrors.push(err62);
|
|
3837
4747
|
}
|
|
3838
4748
|
errors++;
|
|
3839
4749
|
}
|
|
3840
4750
|
}
|
|
3841
4751
|
if (data.type !== undefined) {
|
|
3842
|
-
let
|
|
3843
|
-
if (typeof
|
|
3844
|
-
const
|
|
4752
|
+
let data12 = data.type;
|
|
4753
|
+
if (typeof data12 !== "string") {
|
|
4754
|
+
const err63 = { instancePath: instancePath + "/type", schemaPath: "#/oneOf/4/properties/type/type", keyword: "type", params: { type: "string" }, message: "must be string" };
|
|
3845
4755
|
if (vErrors === null) {
|
|
3846
|
-
vErrors = [
|
|
4756
|
+
vErrors = [err63];
|
|
3847
4757
|
}
|
|
3848
4758
|
else {
|
|
3849
|
-
vErrors.push(
|
|
4759
|
+
vErrors.push(err63);
|
|
3850
4760
|
}
|
|
3851
4761
|
errors++;
|
|
3852
4762
|
}
|
|
3853
|
-
if ("failed" !==
|
|
3854
|
-
const
|
|
4763
|
+
if ("failed" !== data12) {
|
|
4764
|
+
const err64 = { instancePath: instancePath + "/type", schemaPath: "#/oneOf/4/properties/type/const", keyword: "const", params: { allowedValue: "failed" }, message: "must be equal to constant" };
|
|
3855
4765
|
if (vErrors === null) {
|
|
3856
|
-
vErrors = [
|
|
4766
|
+
vErrors = [err64];
|
|
3857
4767
|
}
|
|
3858
4768
|
else {
|
|
3859
|
-
vErrors.push(
|
|
4769
|
+
vErrors.push(err64);
|
|
3860
4770
|
}
|
|
3861
4771
|
errors++;
|
|
3862
4772
|
}
|
|
3863
4773
|
}
|
|
3864
4774
|
}
|
|
3865
4775
|
else {
|
|
3866
|
-
const
|
|
4776
|
+
const err65 = { instancePath, schemaPath: "#/oneOf/4/type", keyword: "type", params: { type: "object" }, message: "must be object" };
|
|
3867
4777
|
if (vErrors === null) {
|
|
3868
|
-
vErrors = [
|
|
4778
|
+
vErrors = [err65];
|
|
3869
4779
|
}
|
|
3870
4780
|
else {
|
|
3871
|
-
vErrors.push(
|
|
4781
|
+
vErrors.push(err65);
|
|
3872
4782
|
}
|
|
3873
4783
|
errors++;
|
|
3874
4784
|
}
|
|
3875
|
-
var _valid0 =
|
|
4785
|
+
var _valid0 = _errs31 === errors;
|
|
3876
4786
|
if (_valid0 && valid0) {
|
|
3877
4787
|
valid0 = false;
|
|
3878
4788
|
passing0 = [passing0, 4];
|
|
@@ -3885,65 +4795,65 @@ function validate52(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
3885
4795
|
props0 = true;
|
|
3886
4796
|
}
|
|
3887
4797
|
}
|
|
3888
|
-
const
|
|
4798
|
+
const _errs61 = errors;
|
|
3889
4799
|
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
3890
4800
|
if (data.type === undefined) {
|
|
3891
|
-
const
|
|
4801
|
+
const err66 = { instancePath, schemaPath: "#/oneOf/5/required", keyword: "required", params: { missingProperty: "type" }, message: "must have required property '" + "type" + "'" };
|
|
3892
4802
|
if (vErrors === null) {
|
|
3893
|
-
vErrors = [
|
|
4803
|
+
vErrors = [err66];
|
|
3894
4804
|
}
|
|
3895
4805
|
else {
|
|
3896
|
-
vErrors.push(
|
|
4806
|
+
vErrors.push(err66);
|
|
3897
4807
|
}
|
|
3898
4808
|
errors++;
|
|
3899
4809
|
}
|
|
3900
4810
|
for (const key5 in data) {
|
|
3901
4811
|
if (!(key5 === "type")) {
|
|
3902
|
-
const
|
|
4812
|
+
const err67 = { instancePath, schemaPath: "#/oneOf/5/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key5 }, message: "must NOT have additional properties" };
|
|
3903
4813
|
if (vErrors === null) {
|
|
3904
|
-
vErrors = [
|
|
4814
|
+
vErrors = [err67];
|
|
3905
4815
|
}
|
|
3906
4816
|
else {
|
|
3907
|
-
vErrors.push(
|
|
4817
|
+
vErrors.push(err67);
|
|
3908
4818
|
}
|
|
3909
4819
|
errors++;
|
|
3910
4820
|
}
|
|
3911
4821
|
}
|
|
3912
4822
|
if (data.type !== undefined) {
|
|
3913
|
-
let
|
|
3914
|
-
if (typeof
|
|
3915
|
-
const
|
|
4823
|
+
let data13 = data.type;
|
|
4824
|
+
if (typeof data13 !== "string") {
|
|
4825
|
+
const err68 = { instancePath: instancePath + "/type", schemaPath: "#/oneOf/5/properties/type/type", keyword: "type", params: { type: "string" }, message: "must be string" };
|
|
3916
4826
|
if (vErrors === null) {
|
|
3917
|
-
vErrors = [
|
|
4827
|
+
vErrors = [err68];
|
|
3918
4828
|
}
|
|
3919
4829
|
else {
|
|
3920
|
-
vErrors.push(
|
|
4830
|
+
vErrors.push(err68);
|
|
3921
4831
|
}
|
|
3922
4832
|
errors++;
|
|
3923
4833
|
}
|
|
3924
|
-
if ("disposed" !==
|
|
3925
|
-
const
|
|
4834
|
+
if ("disposed" !== data13) {
|
|
4835
|
+
const err69 = { instancePath: instancePath + "/type", schemaPath: "#/oneOf/5/properties/type/const", keyword: "const", params: { allowedValue: "disposed" }, message: "must be equal to constant" };
|
|
3926
4836
|
if (vErrors === null) {
|
|
3927
|
-
vErrors = [
|
|
4837
|
+
vErrors = [err69];
|
|
3928
4838
|
}
|
|
3929
4839
|
else {
|
|
3930
|
-
vErrors.push(
|
|
4840
|
+
vErrors.push(err69);
|
|
3931
4841
|
}
|
|
3932
4842
|
errors++;
|
|
3933
4843
|
}
|
|
3934
4844
|
}
|
|
3935
4845
|
}
|
|
3936
4846
|
else {
|
|
3937
|
-
const
|
|
4847
|
+
const err70 = { instancePath, schemaPath: "#/oneOf/5/type", keyword: "type", params: { type: "object" }, message: "must be object" };
|
|
3938
4848
|
if (vErrors === null) {
|
|
3939
|
-
vErrors = [
|
|
4849
|
+
vErrors = [err70];
|
|
3940
4850
|
}
|
|
3941
4851
|
else {
|
|
3942
|
-
vErrors.push(
|
|
4852
|
+
vErrors.push(err70);
|
|
3943
4853
|
}
|
|
3944
4854
|
errors++;
|
|
3945
4855
|
}
|
|
3946
|
-
var _valid0 =
|
|
4856
|
+
var _valid0 = _errs61 === errors;
|
|
3947
4857
|
if (_valid0 && valid0) {
|
|
3948
4858
|
valid0 = false;
|
|
3949
4859
|
passing0 = [passing0, 5];
|
|
@@ -3962,12 +4872,12 @@ function validate52(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
3962
4872
|
}
|
|
3963
4873
|
}
|
|
3964
4874
|
if (!valid0) {
|
|
3965
|
-
const
|
|
4875
|
+
const err71 = { instancePath, schemaPath: "#/oneOf", keyword: "oneOf", params: { passingSchemas: passing0 }, message: "must match exactly one schema in oneOf" };
|
|
3966
4876
|
if (vErrors === null) {
|
|
3967
|
-
vErrors = [
|
|
4877
|
+
vErrors = [err71];
|
|
3968
4878
|
}
|
|
3969
4879
|
else {
|
|
3970
|
-
vErrors.push(
|
|
4880
|
+
vErrors.push(err71);
|
|
3971
4881
|
}
|
|
3972
4882
|
errors++;
|
|
3973
4883
|
}
|
|
@@ -3982,16 +4892,16 @@ function validate52(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
3982
4892
|
}
|
|
3983
4893
|
}
|
|
3984
4894
|
}
|
|
3985
|
-
|
|
4895
|
+
validate56.errors = vErrors;
|
|
3986
4896
|
evaluated0.props = props0;
|
|
3987
4897
|
return errors === 0;
|
|
3988
4898
|
}
|
|
3989
|
-
|
|
3990
|
-
function
|
|
3991
|
-
/*# sourceURL="https://onmark.dev/schemas/browser-response-
|
|
4899
|
+
validate56.evaluated = { "dynamicProps": true, "dynamicItems": false };
|
|
4900
|
+
function validate55(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
|
|
4901
|
+
/*# sourceURL="https://onmark.dev/schemas/browser-response-v5.schema.json" */ ;
|
|
3992
4902
|
let vErrors = null;
|
|
3993
4903
|
let errors = 0;
|
|
3994
|
-
const evaluated0 =
|
|
4904
|
+
const evaluated0 = validate55.evaluated;
|
|
3995
4905
|
if (evaluated0.dynamicProps) {
|
|
3996
4906
|
evaluated0.props = undefined;
|
|
3997
4907
|
}
|
|
@@ -4042,8 +4952,8 @@ function validate51(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
4042
4952
|
}
|
|
4043
4953
|
}
|
|
4044
4954
|
if (data.event !== undefined) {
|
|
4045
|
-
if (!(
|
|
4046
|
-
vErrors = vErrors === null ?
|
|
4955
|
+
if (!(validate56(data.event, { instancePath: instancePath + "/event", parentData: data, parentDataProperty: "event", rootData, dynamicAnchors }))) {
|
|
4956
|
+
vErrors = vErrors === null ? validate56.errors : vErrors.concat(validate56.errors);
|
|
4047
4957
|
errors = vErrors.length;
|
|
4048
4958
|
}
|
|
4049
4959
|
}
|
|
@@ -4094,8 +5004,8 @@ function validate51(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
4094
5004
|
}
|
|
4095
5005
|
errors++;
|
|
4096
5006
|
}
|
|
4097
|
-
if (
|
|
4098
|
-
const err8 = { instancePath: instancePath + "/version", schemaPath: "#/$defs/ProtocolVersion/const", keyword: "const", params: { allowedValue:
|
|
5007
|
+
if (5 !== data2) {
|
|
5008
|
+
const err8 = { instancePath: instancePath + "/version", schemaPath: "#/$defs/ProtocolVersion/const", keyword: "const", params: { allowedValue: 5 }, message: "must be equal to constant" };
|
|
4099
5009
|
if (vErrors === null) {
|
|
4100
5010
|
vErrors = [err8];
|
|
4101
5011
|
}
|
|
@@ -4138,7 +5048,7 @@ function validate51(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
4138
5048
|
}
|
|
4139
5049
|
errors++;
|
|
4140
5050
|
}
|
|
4141
|
-
|
|
5051
|
+
validate55.errors = vErrors;
|
|
4142
5052
|
return errors === 0;
|
|
4143
5053
|
}
|
|
4144
|
-
|
|
5054
|
+
validate55.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
|