@adobe/ccweb-add-on-manifest 2.4.0 → 2.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/dist/AddOnManifest.d.ts +1 -1
- package/dist/AddOnManifest.d.ts.map +1 -1
- package/dist/AddOnManifest.js.map +1 -1
- package/dist/AddOnManifestTypes.d.ts +14 -2
- package/dist/AddOnManifestTypes.d.ts.map +1 -1
- package/dist/AddOnManifestTypes.js +4 -0
- package/dist/AddOnManifestTypes.js.map +1 -1
- package/dist/AddOnManifestValidator.js.map +1 -1
- package/dist/ValidationUtils.js.map +1 -1
- package/dist/generated/validateManifestSchema.d.mts.map +1 -1
- package/dist/generated/validateManifestSchema.mjs +282 -174
- package/dist/generated/validateManifestSchema.mjs.map +1 -1
- package/dist/index.js.map +1 -1
- package/dist/manifest-field/AddOnManifestApp.d.ts +1 -1
- package/dist/manifest-field/AddOnManifestApp.d.ts.map +1 -1
- package/dist/manifest-field/AddOnManifestApp.js.map +1 -1
- package/dist/manifest-field/AddOnManifestEntrypoint.d.ts +3 -2
- package/dist/manifest-field/AddOnManifestEntrypoint.d.ts.map +1 -1
- package/dist/manifest-field/AddOnManifestEntrypoint.js +10 -0
- package/dist/manifest-field/AddOnManifestEntrypoint.js.map +1 -1
- package/dist/manifest-field/AddOnManifestRequirement.js.map +1 -1
- package/dist/test/utils/TestManifests.d.ts.map +1 -1
- package/dist/test/utils/TestManifests.js +45 -0
- package/dist/test/utils/TestManifests.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
export const validateSchemaV1 = validate10;
|
|
3
|
-
const schema11 = { "$id": "#/definitions/manifestSchemaV1", "type": "object", "properties": { "id": { "type": "string" }, "name": { "anyOf": [{ "type": "string" }, { "type": "object", "properties": { "default": { "type": "string" } }, "required": ["default"], "additionalProperties": true }] }, "version": { "type": "string" }, "manifestVersion": { "type": "number" }, "requirements": { "type": "object", "properties": { "apps": { "type": "array", "items": { "type": "string", "pattern": "^(Express)$" } }, "experimentalApis": { "type": "boolean" } }, "required": ["apps"], "additionalProperties": false }, "icon": { "anyOf": [{ "type": "object", "properties": { "width": { "type": "number" }, "height": { "type": "number" }, "href": { "type": "string" }, "theme": { "type": "array", "items": { "type": "string", "pattern": "^(lightest|light|medium|dark|darkest|all)$" } }, "scale": { "type": "array", "items": { "type": "number" } } }, "required": ["href", "theme"], "additionalProperties": false }, { "type": "array", "items": { "type": "object", "properties": { "width": { "type": "number" }, "height": { "type": "number" }, "href": { "type": "string" }, "theme": { "type": "array", "items": { "type": "string", "pattern": "^(lightest|light|medium|dark|darkest|all)$" } }, "scale": { "type": "array", "items": { "type": "number" } } }, "required": ["href", "theme"], "additionalProperties": false } }] }, "entryPoints": { "type": "array", "items": { "type": "object", "properties": { "type": { "type": "string", "pattern": "^(panel|share|content-hub|mobile.your-stuff.files|mobile.media.audio|mobile.more)$" }, "id": { "type": "string" }, "main": { "type": "string" }, "label": { "anyOf": [{ "type": "string" }, { "type": "object", "properties": { "default": { "type": "string" } }, "required": ["default"], "additionalProperties": true }] }, "permissions": { "type": "object", "properties": { "sandbox": { "type": "array", "items": { "type": "string", "pattern": "^(allow-popups|allow-presentation|allow-downloads|allow-popups-to-escape-sandbox|allow-forms)$" } }, "oauth": { "type": "array", "items": { "type": "string" } }, "microphone": { "type": "string" }, "camera": { "type": "string" } }, "required": [], "additionalProperties": false }, "defaultSize": { "type": "object", "properties": { "width": { "type": "number" }, "height": { "type": "number" } }, "required": ["width", "height"], "additionalProperties": false } }, "required": ["type", "id", "label", "main"], "additionalProperties": false } }, "authorInfo": { "type": "object", "properties": { "name": { "type": "string" }, "email": { "type": "string" }, "url": { "type": "string" } }, "required": ["name", "email"], "additionalProperties": false } }, "required": ["id", "name", "version", "manifestVersion", "requirements", "icon", "entryPoints"], "additionalProperties": false };
|
|
3
|
+
const schema11 = { "$id": "#/definitions/manifestSchemaV1", "type": "object", "properties": { "id": { "type": "string" }, "name": { "anyOf": [{ "type": "string" }, { "type": "object", "properties": { "default": { "type": "string" } }, "required": ["default"], "additionalProperties": true }] }, "version": { "type": "string" }, "manifestVersion": { "type": "number" }, "requirements": { "type": "object", "properties": { "apps": { "type": "array", "items": { "type": "string", "pattern": "^(Express)$" } }, "experimentalApis": { "type": "boolean" } }, "required": ["apps"], "additionalProperties": false }, "icon": { "anyOf": [{ "type": "object", "properties": { "width": { "type": "number" }, "height": { "type": "number" }, "href": { "type": "string" }, "theme": { "type": "array", "items": { "type": "string", "pattern": "^(lightest|light|medium|dark|darkest|all)$" } }, "scale": { "type": "array", "items": { "type": "number" } } }, "required": ["href", "theme"], "additionalProperties": false }, { "type": "array", "items": { "type": "object", "properties": { "width": { "type": "number" }, "height": { "type": "number" }, "href": { "type": "string" }, "theme": { "type": "array", "items": { "type": "string", "pattern": "^(lightest|light|medium|dark|darkest|all)$" } }, "scale": { "type": "array", "items": { "type": "number" } } }, "required": ["href", "theme"], "additionalProperties": false } }] }, "entryPoints": { "type": "array", "items": { "type": "object", "properties": { "type": { "type": "string", "pattern": "^(panel|command|share|content-hub|mobile.your-stuff.files|mobile.media.audio|mobile.more|schedule|contextual.replace|contextual.upload|contextual.bulk-create)$" }, "id": { "type": "string" }, "main": { "type": "string" }, "label": { "anyOf": [{ "type": "string" }, { "type": "object", "properties": { "default": { "type": "string" } }, "required": ["default"], "additionalProperties": true }] }, "permissions": { "type": "object", "properties": { "sandbox": { "type": "array", "items": { "type": "string", "pattern": "^(allow-popups|allow-presentation|allow-downloads|allow-popups-to-escape-sandbox|allow-forms)$" } }, "oauth": { "type": "array", "items": { "type": "string" } }, "microphone": { "type": "string" }, "camera": { "type": "string" } }, "required": [], "additionalProperties": false }, "defaultSize": { "type": "object", "properties": { "width": { "type": "number" }, "height": { "type": "number" } }, "required": ["width", "height"], "additionalProperties": false } }, "required": ["type", "id", "label", "main"], "additionalProperties": false } }, "authorInfo": { "type": "object", "properties": { "name": { "type": "string" }, "email": { "type": "string" }, "url": { "type": "string" } }, "required": ["name", "email"], "additionalProperties": false } }, "required": ["id", "name", "version", "manifestVersion", "requirements", "icon", "entryPoints"], "additionalProperties": false };
|
|
4
4
|
const pattern0 = new RegExp("^(Express)$", "u");
|
|
5
5
|
const pattern1 = new RegExp("^(lightest|light|medium|dark|darkest|all)$", "u");
|
|
6
|
-
const pattern3 = new RegExp("^(panel|share|content-hub|mobile.your-stuff.files|mobile.media.audio|mobile.more)$", "u");
|
|
6
|
+
const pattern3 = new RegExp("^(panel|command|share|content-hub|mobile.your-stuff.files|mobile.media.audio|mobile.more|schedule|contextual.replace|contextual.upload|contextual.bulk-create)$", "u");
|
|
7
7
|
const pattern4 = new RegExp("^(allow-popups|allow-presentation|allow-downloads|allow-popups-to-escape-sandbox|allow-forms)$", "u");
|
|
8
8
|
function validate10(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) { /*# sourceURL="#/definitions/manifestSchemaV1" */ ; let vErrors = null; let errors = 0; if (errors === 0) {
|
|
9
9
|
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
@@ -738,7 +738,7 @@ function validate10(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
738
738
|
if (errors === _errs69) {
|
|
739
739
|
if (typeof data27 === "string") {
|
|
740
740
|
if (!pattern3.test(data27)) {
|
|
741
|
-
validate10.errors = [{ instancePath: instancePath + "/entryPoints/" + i6 + "/type", schemaPath: "#/properties/entryPoints/items/properties/type/pattern", keyword: "pattern", params: { pattern: "^(panel|share|content-hub|mobile.your-stuff.files|mobile.media.audio|mobile.more)$" }, message: "must match pattern \"" + "^(panel|share|content-hub|mobile.your-stuff.files|mobile.media.audio|mobile.more)$" + "\"" }];
|
|
741
|
+
validate10.errors = [{ instancePath: instancePath + "/entryPoints/" + i6 + "/type", schemaPath: "#/properties/entryPoints/items/properties/type/pattern", keyword: "pattern", params: { pattern: "^(panel|command|share|content-hub|mobile.your-stuff.files|mobile.media.audio|mobile.more|schedule|contextual.replace|contextual.upload|contextual.bulk-create)$" }, message: "must match pattern \"" + "^(panel|command|share|content-hub|mobile.your-stuff.files|mobile.media.audio|mobile.more|schedule|contextual.replace|contextual.upload|contextual.bulk-create)$" + "\"" }];
|
|
742
742
|
return false;
|
|
743
743
|
}
|
|
744
744
|
}
|
|
@@ -1165,7 +1165,7 @@ function validate10(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
1165
1165
|
}
|
|
1166
1166
|
} validate10.errors = vErrors; return errors === 0; }
|
|
1167
1167
|
export const validateSchemaDeveloperV1 = validate11;
|
|
1168
|
-
const schema12 = { "$id": "#/definitions/manifestSchemaDeveloperV1", "type": "object", "properties": { "id": { "type": "string" }, "name": { "anyOf": [{ "type": "string" }, { "type": "object", "properties": { "default": { "type": "string" } }, "required": ["default"], "additionalProperties": true }] }, "version": { "type": "string" }, "manifestVersion": { "type": "number" }, "requirements": { "type": "object", "properties": { "apps": { "type": "array", "items": { "type": "string", "pattern": "^(Express)$" } }, "experimentalApis": { "type": "boolean" } }, "required": ["apps"], "additionalProperties": false }, "icon": { "anyOf": [{ "type": "object", "properties": { "width": { "type": "number" }, "height": { "type": "number" }, "href": { "type": "string" }, "theme": { "type": "array", "items": { "type": "string", "pattern": "^(lightest|light|medium|dark|darkest|all)$" } }, "scale": { "type": "array", "items": { "type": "number" } } }, "required": ["href", "theme"], "additionalProperties": false }, { "type": "array", "items": { "type": "object", "properties": { "width": { "type": "number" }, "height": { "type": "number" }, "href": { "type": "string" }, "theme": { "type": "array", "items": { "type": "string", "pattern": "^(lightest|light|medium|dark|darkest|all)$" } }, "scale": { "type": "array", "items": { "type": "number" } } }, "required": ["href", "theme"], "additionalProperties": false } }] }, "entryPoints": { "type": "array", "items": { "type": "object", "properties": { "type": { "type": "string", "pattern": "^(panel|share|content-hub|mobile.your-stuff.files|mobile.media.audio|mobile.more)$" }, "id": { "type": "string" }, "main": { "type": "string" }, "label": { "anyOf": [{ "type": "string" }, { "type": "object", "properties": { "default": { "type": "string" } }, "required": ["default"], "additionalProperties": true }] }, "permissions": { "type": "object", "properties": { "sandbox": { "type": "array", "items": { "type": "string", "pattern": "^(allow-popups|allow-presentation|allow-downloads|allow-popups-to-escape-sandbox|allow-forms)$" } }, "oauth": { "type": "array", "items": { "type": "string" } }, "microphone": { "type": "string" }, "camera": { "type": "string" } }, "required": [], "additionalProperties": false }, "defaultSize": { "type": "object", "properties": { "width": { "type": "number" }, "height": { "type": "number" } }, "required": ["width", "height"], "additionalProperties": false } }, "required": ["type", "id", "label", "main"], "additionalProperties": false } }, "externalURL": { "type": "string" }, "authorInfo": { "type": "object", "properties": { "name": { "type": "string" }, "email": { "type": "string" }, "url": { "type": "string" } }, "required": ["name", "email"], "additionalProperties": false } }, "required": ["id", "entryPoints"], "additionalProperties": true };
|
|
1168
|
+
const schema12 = { "$id": "#/definitions/manifestSchemaDeveloperV1", "type": "object", "properties": { "id": { "type": "string" }, "name": { "anyOf": [{ "type": "string" }, { "type": "object", "properties": { "default": { "type": "string" } }, "required": ["default"], "additionalProperties": true }] }, "version": { "type": "string" }, "manifestVersion": { "type": "number" }, "requirements": { "type": "object", "properties": { "apps": { "type": "array", "items": { "type": "string", "pattern": "^(Express)$" } }, "experimentalApis": { "type": "boolean" } }, "required": ["apps"], "additionalProperties": false }, "icon": { "anyOf": [{ "type": "object", "properties": { "width": { "type": "number" }, "height": { "type": "number" }, "href": { "type": "string" }, "theme": { "type": "array", "items": { "type": "string", "pattern": "^(lightest|light|medium|dark|darkest|all)$" } }, "scale": { "type": "array", "items": { "type": "number" } } }, "required": ["href", "theme"], "additionalProperties": false }, { "type": "array", "items": { "type": "object", "properties": { "width": { "type": "number" }, "height": { "type": "number" }, "href": { "type": "string" }, "theme": { "type": "array", "items": { "type": "string", "pattern": "^(lightest|light|medium|dark|darkest|all)$" } }, "scale": { "type": "array", "items": { "type": "number" } } }, "required": ["href", "theme"], "additionalProperties": false } }] }, "entryPoints": { "type": "array", "items": { "type": "object", "properties": { "type": { "type": "string", "pattern": "^(panel|command|share|content-hub|mobile.your-stuff.files|mobile.media.audio|mobile.more|schedule|contextual.replace|contextual.upload|contextual.bulk-create)$" }, "id": { "type": "string" }, "main": { "type": "string" }, "label": { "anyOf": [{ "type": "string" }, { "type": "object", "properties": { "default": { "type": "string" } }, "required": ["default"], "additionalProperties": true }] }, "permissions": { "type": "object", "properties": { "sandbox": { "type": "array", "items": { "type": "string", "pattern": "^(allow-popups|allow-presentation|allow-downloads|allow-popups-to-escape-sandbox|allow-forms)$" } }, "oauth": { "type": "array", "items": { "type": "string" } }, "microphone": { "type": "string" }, "camera": { "type": "string" } }, "required": [], "additionalProperties": false }, "defaultSize": { "type": "object", "properties": { "width": { "type": "number" }, "height": { "type": "number" } }, "required": ["width", "height"], "additionalProperties": false } }, "required": ["type", "id", "label", "main"], "additionalProperties": false } }, "externalURL": { "type": "string" }, "authorInfo": { "type": "object", "properties": { "name": { "type": "string" }, "email": { "type": "string" }, "url": { "type": "string" } }, "required": ["name", "email"], "additionalProperties": false } }, "required": ["id", "entryPoints"], "additionalProperties": true };
|
|
1169
1169
|
function validate11(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) { /*# sourceURL="#/definitions/manifestSchemaDeveloperV1" */ ; let vErrors = null; let errors = 0; if (errors === 0) {
|
|
1170
1170
|
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
1171
1171
|
let missing0;
|
|
@@ -1890,7 +1890,7 @@ function validate11(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
1890
1890
|
if (errors === _errs69) {
|
|
1891
1891
|
if (typeof data27 === "string") {
|
|
1892
1892
|
if (!pattern3.test(data27)) {
|
|
1893
|
-
validate11.errors = [{ instancePath: instancePath + "/entryPoints/" + i6 + "/type", schemaPath: "#/properties/entryPoints/items/properties/type/pattern", keyword: "pattern", params: { pattern: "^(panel|share|content-hub|mobile.your-stuff.files|mobile.media.audio|mobile.more)$" }, message: "must match pattern \"" + "^(panel|share|content-hub|mobile.your-stuff.files|mobile.media.audio|mobile.more)$" + "\"" }];
|
|
1893
|
+
validate11.errors = [{ instancePath: instancePath + "/entryPoints/" + i6 + "/type", schemaPath: "#/properties/entryPoints/items/properties/type/pattern", keyword: "pattern", params: { pattern: "^(panel|command|share|content-hub|mobile.your-stuff.files|mobile.media.audio|mobile.more|schedule|contextual.replace|contextual.upload|contextual.bulk-create)$" }, message: "must match pattern \"" + "^(panel|command|share|content-hub|mobile.your-stuff.files|mobile.media.audio|mobile.more|schedule|contextual.replace|contextual.upload|contextual.bulk-create)$" + "\"" }];
|
|
1894
1894
|
return false;
|
|
1895
1895
|
}
|
|
1896
1896
|
}
|
|
@@ -2329,7 +2329,7 @@ function validate11(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
2329
2329
|
}
|
|
2330
2330
|
} validate11.errors = vErrors; return errors === 0; }
|
|
2331
2331
|
export const validateSchemaV2 = validate12;
|
|
2332
|
-
const schema13 = { "$id": "#/definitions/manifestSchemaV2", "type": "object", "properties": { "testId": { "type": "string" }, "name": { "type": "string", "pattern": "^[a-zA-Z0-9]+[a-zA-Z0-9 ]{2,44}$" }, "version": { "type": "string", "pattern": "^[0-9]+.[0-9]+.[0-9]+$" }, "manifestVersion": { "type": "number" }, "requirements": { "type": "object", "properties": { "apps": { "type": "array", "items": { "type": "object", "properties": { "name": { "type": "string", "pattern": "^(Express)$" }, "apiVersion": { "type": "number" }, "supportedDeviceClass": { "type": "array", "items": { "type": "string", "pattern": "^(desktop|mobile|app|mobile-ios|mobile-android)$" } } }, "required": ["name", "apiVersion"], "additionalProperties": false } }, "experimentalApis": { "type": "boolean" }, "supportsTouch": { "type": "boolean" }, "renditionPreview": { "type": "boolean" }, "privilegedApis": { "type": "boolean" }, "_blessedPartnerAccess": { "type": "string" }, "trustedPartnerApis": { "type": "object", "properties": { "messaging": { "type": "boolean" }, "expressPrint": { "type": "boolean" }, "toastNotifications": { "type": "boolean" }, "addOnLifecycle": { "type": "boolean" }, "tiktokcml": { "type": "boolean" }, "formSubmission": { "type": "boolean" } }, "required": [], "additionalProperties": false } }, "required": ["apps"], "additionalProperties": false }, "entryPoints": { "type": "array", "items": { "type": "object", "properties": { "type": { "type": "string", "pattern": "^(panel|share|content-hub|mobile.your-stuff.files|mobile.media.audio|mobile.more)$" }, "id": { "type": "string" }, "main": { "type": "string" }, "script": { "type": "string" }, "documentSandbox": { "type": "string" }, "hostDomain": { "type": "string" }, "permissions": { "type": "object", "properties": { "sandbox": { "type": "array", "items": { "type": "string", "pattern": "^(allow-popups|allow-presentation|allow-downloads|allow-popups-to-escape-sandbox|allow-forms)$" } }, "oauth": { "type": "array", "items": { "type": "string" } }, "microphone": { "type": "string" }, "camera": { "type": "string" }, "clipboard": { "type": "array", "items": { "type": "string", "pattern": "^(clipboard-write|clipboard-read)$" } } }, "required": [], "additionalProperties": false }, "defaultSize": { "type": "object", "properties": { "width": { "type": "number" }, "height": { "type": "number" } }, "required": ["width", "height"], "additionalProperties": false }, "discoverable": { "type": "boolean" } }, "required": ["type", "id", "main"], "additionalProperties": false } } }, "required": ["version", "manifestVersion", "requirements", "entryPoints"], "additionalProperties": true };
|
|
2332
|
+
const schema13 = { "$id": "#/definitions/manifestSchemaV2", "type": "object", "properties": { "testId": { "type": "string" }, "name": { "type": "string", "pattern": "^[a-zA-Z0-9]+[a-zA-Z0-9 ]{2,44}$" }, "version": { "type": "string", "pattern": "^[0-9]+.[0-9]+.[0-9]+$" }, "manifestVersion": { "type": "number" }, "requirements": { "type": "object", "properties": { "apps": { "type": "array", "items": { "type": "object", "properties": { "name": { "type": "string", "pattern": "^(Express)$" }, "apiVersion": { "type": "number" }, "supportedDeviceClass": { "type": "array", "items": { "type": "string", "pattern": "^(desktop|mobile|app|mobile-ios|mobile-android)$" } } }, "required": ["name", "apiVersion"], "additionalProperties": false } }, "experimentalApis": { "type": "boolean" }, "supportsTouch": { "type": "boolean" }, "renditionPreview": { "type": "boolean" }, "privilegedApis": { "type": "boolean" }, "_blessedPartnerAccess": { "type": "string" }, "trustedPartnerApis": { "type": "object", "properties": { "messaging": { "type": "boolean" }, "expressPrint": { "type": "boolean" }, "toastNotifications": { "type": "boolean" }, "addOnLifecycle": { "type": "boolean" }, "tiktokcml": { "type": "boolean" }, "formSubmission": { "type": "boolean" } }, "required": [], "additionalProperties": false } }, "required": ["apps"], "additionalProperties": false }, "entryPoints": { "type": "array", "items": { "type": "object", "properties": { "type": { "type": "string", "pattern": "^(panel|command|share|content-hub|mobile.your-stuff.files|mobile.media.audio|mobile.more|schedule|contextual.replace|contextual.upload|contextual.bulk-create)$" }, "id": { "type": "string" }, "main": { "type": "string" }, "script": { "type": "string" }, "documentSandbox": { "type": "string" }, "hostDomain": { "type": "string" }, "commands": { "type": "array", "items": { "type": "object", "properties": { "name": { "type": "string" }, "supportedMimeTypes": { "type": "array", "items": { "type": "string" } }, "discoverable": { "type": "boolean" } }, "required": ["name"], "additionalProperties": false } }, "permissions": { "type": "object", "properties": { "sandbox": { "type": "array", "items": { "type": "string", "pattern": "^(allow-popups|allow-presentation|allow-downloads|allow-popups-to-escape-sandbox|allow-forms)$" } }, "oauth": { "type": "array", "items": { "type": "string" } }, "microphone": { "type": "string" }, "camera": { "type": "string" }, "clipboard": { "type": "array", "items": { "type": "string", "pattern": "^(clipboard-write|clipboard-read)$" } } }, "required": [], "additionalProperties": false }, "defaultSize": { "type": "object", "properties": { "width": { "type": "number" }, "height": { "type": "number" } }, "required": ["width", "height"], "additionalProperties": false }, "discoverable": { "type": "boolean" } }, "required": ["type", "id", "main"], "additionalProperties": false } } }, "required": ["version", "manifestVersion", "requirements", "entryPoints"], "additionalProperties": true };
|
|
2333
2333
|
const pattern10 = new RegExp("^[a-zA-Z0-9]+[a-zA-Z0-9 ]{2,44}$", "u");
|
|
2334
2334
|
const pattern11 = new RegExp("^[0-9]+.[0-9]+.[0-9]+$", "u");
|
|
2335
2335
|
const pattern13 = new RegExp("^(desktop|mobile|app|mobile-ios|mobile-android)$", "u");
|
|
@@ -2771,7 +2771,7 @@ function validate12(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
2771
2771
|
if (errors === _errs56) {
|
|
2772
2772
|
if (typeof data25 === "string") {
|
|
2773
2773
|
if (!pattern3.test(data25)) {
|
|
2774
|
-
validate12.errors = [{ instancePath: instancePath + "/entryPoints/" + i2 + "/type", schemaPath: "#/properties/entryPoints/items/properties/type/pattern", keyword: "pattern", params: { pattern: "^(panel|share|content-hub|mobile.your-stuff.files|mobile.media.audio|mobile.more)$" }, message: "must match pattern \"" + "^(panel|share|content-hub|mobile.your-stuff.files|mobile.media.audio|mobile.more)$" + "\"" }];
|
|
2774
|
+
validate12.errors = [{ instancePath: instancePath + "/entryPoints/" + i2 + "/type", schemaPath: "#/properties/entryPoints/items/properties/type/pattern", keyword: "pattern", params: { pattern: "^(panel|command|share|content-hub|mobile.your-stuff.files|mobile.media.audio|mobile.more|schedule|contextual.replace|contextual.upload|contextual.bulk-create)$" }, message: "must match pattern \"" + "^(panel|command|share|content-hub|mobile.your-stuff.files|mobile.media.audio|mobile.more|schedule|contextual.replace|contextual.upload|contextual.bulk-create)$" + "\"" }];
|
|
2775
2775
|
return false;
|
|
2776
2776
|
}
|
|
2777
2777
|
}
|
|
@@ -2846,239 +2846,347 @@ function validate12(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
2846
2846
|
var valid7 = true;
|
|
2847
2847
|
}
|
|
2848
2848
|
if (valid7) {
|
|
2849
|
-
if (data24.
|
|
2850
|
-
let data31 = data24.
|
|
2849
|
+
if (data24.commands !== undefined) {
|
|
2850
|
+
let data31 = data24.commands;
|
|
2851
2851
|
const _errs68 = errors;
|
|
2852
2852
|
if (errors === _errs68) {
|
|
2853
|
-
if (
|
|
2854
|
-
|
|
2855
|
-
|
|
2856
|
-
|
|
2857
|
-
|
|
2858
|
-
|
|
2859
|
-
|
|
2860
|
-
|
|
2861
|
-
|
|
2862
|
-
|
|
2863
|
-
|
|
2864
|
-
|
|
2865
|
-
|
|
2866
|
-
|
|
2867
|
-
|
|
2868
|
-
|
|
2869
|
-
|
|
2870
|
-
|
|
2871
|
-
|
|
2872
|
-
|
|
2873
|
-
|
|
2874
|
-
|
|
2875
|
-
|
|
2876
|
-
|
|
2877
|
-
|
|
2853
|
+
if (Array.isArray(data31)) {
|
|
2854
|
+
var valid8 = true;
|
|
2855
|
+
const len3 = data31.length;
|
|
2856
|
+
for (let i3 = 0; i3 < len3; i3++) {
|
|
2857
|
+
let data32 = data31[i3];
|
|
2858
|
+
const _errs70 = errors;
|
|
2859
|
+
if (errors === _errs70) {
|
|
2860
|
+
if (data32 && typeof data32 == "object" && !Array.isArray(data32)) {
|
|
2861
|
+
let missing4;
|
|
2862
|
+
if ((data32.name === undefined) && (missing4 = "name")) {
|
|
2863
|
+
validate12.errors = [{ instancePath: instancePath + "/entryPoints/" + i2 + "/commands/" + i3, schemaPath: "#/properties/entryPoints/items/properties/commands/items/required", keyword: "required", params: { missingProperty: missing4 }, message: "must have required property '" + missing4 + "'" }];
|
|
2864
|
+
return false;
|
|
2865
|
+
}
|
|
2866
|
+
else {
|
|
2867
|
+
const _errs72 = errors;
|
|
2868
|
+
for (const key4 in data32) {
|
|
2869
|
+
if (!(((key4 === "name") || (key4 === "supportedMimeTypes")) || (key4 === "discoverable"))) {
|
|
2870
|
+
validate12.errors = [{ instancePath: instancePath + "/entryPoints/" + i2 + "/commands/" + i3, schemaPath: "#/properties/entryPoints/items/properties/commands/items/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key4 }, message: "must NOT have additional properties" }];
|
|
2871
|
+
return false;
|
|
2872
|
+
break;
|
|
2873
|
+
}
|
|
2874
|
+
}
|
|
2875
|
+
if (_errs72 === errors) {
|
|
2876
|
+
if (data32.name !== undefined) {
|
|
2877
|
+
const _errs73 = errors;
|
|
2878
|
+
if (typeof data32.name !== "string") {
|
|
2879
|
+
validate12.errors = [{ instancePath: instancePath + "/entryPoints/" + i2 + "/commands/" + i3 + "/name", schemaPath: "#/properties/entryPoints/items/properties/commands/items/properties/name/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
|
|
2880
|
+
return false;
|
|
2881
|
+
}
|
|
2882
|
+
var valid9 = _errs73 === errors;
|
|
2883
|
+
}
|
|
2884
|
+
else {
|
|
2885
|
+
var valid9 = true;
|
|
2886
|
+
}
|
|
2887
|
+
if (valid9) {
|
|
2888
|
+
if (data32.supportedMimeTypes !== undefined) {
|
|
2889
|
+
let data34 = data32.supportedMimeTypes;
|
|
2890
|
+
const _errs75 = errors;
|
|
2891
|
+
if (errors === _errs75) {
|
|
2892
|
+
if (Array.isArray(data34)) {
|
|
2893
|
+
var valid10 = true;
|
|
2894
|
+
const len4 = data34.length;
|
|
2895
|
+
for (let i4 = 0; i4 < len4; i4++) {
|
|
2896
|
+
const _errs77 = errors;
|
|
2897
|
+
if (typeof data34[i4] !== "string") {
|
|
2898
|
+
validate12.errors = [{ instancePath: instancePath + "/entryPoints/" + i2 + "/commands/" + i3 + "/supportedMimeTypes/" + i4, schemaPath: "#/properties/entryPoints/items/properties/commands/items/properties/supportedMimeTypes/items/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
|
|
2899
|
+
return false;
|
|
2900
|
+
}
|
|
2901
|
+
var valid10 = _errs77 === errors;
|
|
2902
|
+
if (!valid10) {
|
|
2903
|
+
break;
|
|
2904
|
+
}
|
|
2905
|
+
}
|
|
2906
|
+
}
|
|
2907
|
+
else {
|
|
2908
|
+
validate12.errors = [{ instancePath: instancePath + "/entryPoints/" + i2 + "/commands/" + i3 + "/supportedMimeTypes", schemaPath: "#/properties/entryPoints/items/properties/commands/items/properties/supportedMimeTypes/type", keyword: "type", params: { type: "array" }, message: "must be array" }];
|
|
2909
|
+
return false;
|
|
2910
|
+
}
|
|
2878
2911
|
}
|
|
2912
|
+
var valid9 = _errs75 === errors;
|
|
2879
2913
|
}
|
|
2880
2914
|
else {
|
|
2881
|
-
|
|
2882
|
-
|
|
2915
|
+
var valid9 = true;
|
|
2916
|
+
}
|
|
2917
|
+
if (valid9) {
|
|
2918
|
+
if (data32.discoverable !== undefined) {
|
|
2919
|
+
const _errs79 = errors;
|
|
2920
|
+
if (typeof data32.discoverable !== "boolean") {
|
|
2921
|
+
validate12.errors = [{ instancePath: instancePath + "/entryPoints/" + i2 + "/commands/" + i3 + "/discoverable", schemaPath: "#/properties/entryPoints/items/properties/commands/items/properties/discoverable/type", keyword: "type", params: { type: "boolean" }, message: "must be boolean" }];
|
|
2922
|
+
return false;
|
|
2923
|
+
}
|
|
2924
|
+
var valid9 = _errs79 === errors;
|
|
2925
|
+
}
|
|
2926
|
+
else {
|
|
2927
|
+
var valid9 = true;
|
|
2928
|
+
}
|
|
2883
2929
|
}
|
|
2884
|
-
}
|
|
2885
|
-
var valid9 = _errs73 === errors;
|
|
2886
|
-
if (!valid9) {
|
|
2887
|
-
break;
|
|
2888
2930
|
}
|
|
2889
2931
|
}
|
|
2890
2932
|
}
|
|
2891
|
-
else {
|
|
2892
|
-
validate12.errors = [{ instancePath: instancePath + "/entryPoints/" + i2 + "/permissions/sandbox", schemaPath: "#/properties/entryPoints/items/properties/permissions/properties/sandbox/type", keyword: "type", params: { type: "array" }, message: "must be array" }];
|
|
2893
|
-
return false;
|
|
2894
|
-
}
|
|
2895
2933
|
}
|
|
2896
|
-
|
|
2934
|
+
else {
|
|
2935
|
+
validate12.errors = [{ instancePath: instancePath + "/entryPoints/" + i2 + "/commands/" + i3, schemaPath: "#/properties/entryPoints/items/properties/commands/items/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
|
|
2936
|
+
return false;
|
|
2937
|
+
}
|
|
2897
2938
|
}
|
|
2898
|
-
|
|
2899
|
-
|
|
2939
|
+
var valid8 = _errs70 === errors;
|
|
2940
|
+
if (!valid8) {
|
|
2941
|
+
break;
|
|
2900
2942
|
}
|
|
2901
|
-
|
|
2902
|
-
|
|
2903
|
-
|
|
2904
|
-
|
|
2905
|
-
|
|
2906
|
-
|
|
2907
|
-
|
|
2908
|
-
|
|
2909
|
-
|
|
2910
|
-
|
|
2911
|
-
|
|
2912
|
-
|
|
2913
|
-
|
|
2943
|
+
}
|
|
2944
|
+
}
|
|
2945
|
+
else {
|
|
2946
|
+
validate12.errors = [{ instancePath: instancePath + "/entryPoints/" + i2 + "/commands", schemaPath: "#/properties/entryPoints/items/properties/commands/type", keyword: "type", params: { type: "array" }, message: "must be array" }];
|
|
2947
|
+
return false;
|
|
2948
|
+
}
|
|
2949
|
+
}
|
|
2950
|
+
var valid7 = _errs68 === errors;
|
|
2951
|
+
}
|
|
2952
|
+
else {
|
|
2953
|
+
var valid7 = true;
|
|
2954
|
+
}
|
|
2955
|
+
if (valid7) {
|
|
2956
|
+
if (data24.permissions !== undefined) {
|
|
2957
|
+
let data37 = data24.permissions;
|
|
2958
|
+
const _errs81 = errors;
|
|
2959
|
+
if (errors === _errs81) {
|
|
2960
|
+
if (data37 && typeof data37 == "object" && !Array.isArray(data37)) {
|
|
2961
|
+
const _errs83 = errors;
|
|
2962
|
+
for (const key5 in data37) {
|
|
2963
|
+
if (!(((((key5 === "sandbox") || (key5 === "oauth")) || (key5 === "microphone")) || (key5 === "camera")) || (key5 === "clipboard"))) {
|
|
2964
|
+
validate12.errors = [{ instancePath: instancePath + "/entryPoints/" + i2 + "/permissions", schemaPath: "#/properties/entryPoints/items/properties/permissions/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key5 }, message: "must NOT have additional properties" }];
|
|
2965
|
+
return false;
|
|
2966
|
+
break;
|
|
2967
|
+
}
|
|
2968
|
+
}
|
|
2969
|
+
if (_errs83 === errors) {
|
|
2970
|
+
if (data37.sandbox !== undefined) {
|
|
2971
|
+
let data38 = data37.sandbox;
|
|
2972
|
+
const _errs84 = errors;
|
|
2973
|
+
if (errors === _errs84) {
|
|
2974
|
+
if (Array.isArray(data38)) {
|
|
2975
|
+
var valid12 = true;
|
|
2976
|
+
const len5 = data38.length;
|
|
2977
|
+
for (let i5 = 0; i5 < len5; i5++) {
|
|
2978
|
+
let data39 = data38[i5];
|
|
2979
|
+
const _errs86 = errors;
|
|
2980
|
+
if (errors === _errs86) {
|
|
2981
|
+
if (typeof data39 === "string") {
|
|
2982
|
+
if (!pattern4.test(data39)) {
|
|
2983
|
+
validate12.errors = [{ instancePath: instancePath + "/entryPoints/" + i2 + "/permissions/sandbox/" + i5, schemaPath: "#/properties/entryPoints/items/properties/permissions/properties/sandbox/items/pattern", keyword: "pattern", params: { pattern: "^(allow-popups|allow-presentation|allow-downloads|allow-popups-to-escape-sandbox|allow-forms)$" }, message: "must match pattern \"" + "^(allow-popups|allow-presentation|allow-downloads|allow-popups-to-escape-sandbox|allow-forms)$" + "\"" }];
|
|
2984
|
+
return false;
|
|
2985
|
+
}
|
|
2986
|
+
}
|
|
2987
|
+
else {
|
|
2988
|
+
validate12.errors = [{ instancePath: instancePath + "/entryPoints/" + i2 + "/permissions/sandbox/" + i5, schemaPath: "#/properties/entryPoints/items/properties/permissions/properties/sandbox/items/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
|
|
2989
|
+
return false;
|
|
2990
|
+
}
|
|
2914
2991
|
}
|
|
2915
|
-
var
|
|
2916
|
-
if (!
|
|
2992
|
+
var valid12 = _errs86 === errors;
|
|
2993
|
+
if (!valid12) {
|
|
2917
2994
|
break;
|
|
2918
2995
|
}
|
|
2919
2996
|
}
|
|
2920
2997
|
}
|
|
2921
2998
|
else {
|
|
2922
|
-
validate12.errors = [{ instancePath: instancePath + "/entryPoints/" + i2 + "/permissions/
|
|
2999
|
+
validate12.errors = [{ instancePath: instancePath + "/entryPoints/" + i2 + "/permissions/sandbox", schemaPath: "#/properties/entryPoints/items/properties/permissions/properties/sandbox/type", keyword: "type", params: { type: "array" }, message: "must be array" }];
|
|
2923
3000
|
return false;
|
|
2924
3001
|
}
|
|
2925
3002
|
}
|
|
2926
|
-
var
|
|
3003
|
+
var valid11 = _errs84 === errors;
|
|
2927
3004
|
}
|
|
2928
3005
|
else {
|
|
2929
|
-
var
|
|
3006
|
+
var valid11 = true;
|
|
2930
3007
|
}
|
|
2931
|
-
if (
|
|
2932
|
-
if (
|
|
2933
|
-
|
|
2934
|
-
|
|
2935
|
-
|
|
2936
|
-
|
|
3008
|
+
if (valid11) {
|
|
3009
|
+
if (data37.oauth !== undefined) {
|
|
3010
|
+
let data40 = data37.oauth;
|
|
3011
|
+
const _errs88 = errors;
|
|
3012
|
+
if (errors === _errs88) {
|
|
3013
|
+
if (Array.isArray(data40)) {
|
|
3014
|
+
var valid13 = true;
|
|
3015
|
+
const len6 = data40.length;
|
|
3016
|
+
for (let i6 = 0; i6 < len6; i6++) {
|
|
3017
|
+
const _errs90 = errors;
|
|
3018
|
+
if (typeof data40[i6] !== "string") {
|
|
3019
|
+
validate12.errors = [{ instancePath: instancePath + "/entryPoints/" + i2 + "/permissions/oauth/" + i6, schemaPath: "#/properties/entryPoints/items/properties/permissions/properties/oauth/items/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
|
|
3020
|
+
return false;
|
|
3021
|
+
}
|
|
3022
|
+
var valid13 = _errs90 === errors;
|
|
3023
|
+
if (!valid13) {
|
|
3024
|
+
break;
|
|
3025
|
+
}
|
|
3026
|
+
}
|
|
3027
|
+
}
|
|
3028
|
+
else {
|
|
3029
|
+
validate12.errors = [{ instancePath: instancePath + "/entryPoints/" + i2 + "/permissions/oauth", schemaPath: "#/properties/entryPoints/items/properties/permissions/properties/oauth/type", keyword: "type", params: { type: "array" }, message: "must be array" }];
|
|
3030
|
+
return false;
|
|
3031
|
+
}
|
|
2937
3032
|
}
|
|
2938
|
-
var
|
|
3033
|
+
var valid11 = _errs88 === errors;
|
|
2939
3034
|
}
|
|
2940
3035
|
else {
|
|
2941
|
-
var
|
|
3036
|
+
var valid11 = true;
|
|
2942
3037
|
}
|
|
2943
|
-
if (
|
|
2944
|
-
if (
|
|
2945
|
-
const
|
|
2946
|
-
if (typeof
|
|
2947
|
-
validate12.errors = [{ instancePath: instancePath + "/entryPoints/" + i2 + "/permissions/
|
|
3038
|
+
if (valid11) {
|
|
3039
|
+
if (data37.microphone !== undefined) {
|
|
3040
|
+
const _errs92 = errors;
|
|
3041
|
+
if (typeof data37.microphone !== "string") {
|
|
3042
|
+
validate12.errors = [{ instancePath: instancePath + "/entryPoints/" + i2 + "/permissions/microphone", schemaPath: "#/properties/entryPoints/items/properties/permissions/properties/microphone/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
|
|
2948
3043
|
return false;
|
|
2949
3044
|
}
|
|
2950
|
-
var
|
|
3045
|
+
var valid11 = _errs92 === errors;
|
|
2951
3046
|
}
|
|
2952
3047
|
else {
|
|
2953
|
-
var
|
|
3048
|
+
var valid11 = true;
|
|
2954
3049
|
}
|
|
2955
|
-
if (
|
|
2956
|
-
if (
|
|
2957
|
-
|
|
2958
|
-
|
|
2959
|
-
|
|
2960
|
-
|
|
2961
|
-
|
|
2962
|
-
|
|
2963
|
-
|
|
2964
|
-
|
|
2965
|
-
|
|
2966
|
-
|
|
2967
|
-
|
|
2968
|
-
|
|
2969
|
-
|
|
3050
|
+
if (valid11) {
|
|
3051
|
+
if (data37.camera !== undefined) {
|
|
3052
|
+
const _errs94 = errors;
|
|
3053
|
+
if (typeof data37.camera !== "string") {
|
|
3054
|
+
validate12.errors = [{ instancePath: instancePath + "/entryPoints/" + i2 + "/permissions/camera", schemaPath: "#/properties/entryPoints/items/properties/permissions/properties/camera/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
|
|
3055
|
+
return false;
|
|
3056
|
+
}
|
|
3057
|
+
var valid11 = _errs94 === errors;
|
|
3058
|
+
}
|
|
3059
|
+
else {
|
|
3060
|
+
var valid11 = true;
|
|
3061
|
+
}
|
|
3062
|
+
if (valid11) {
|
|
3063
|
+
if (data37.clipboard !== undefined) {
|
|
3064
|
+
let data44 = data37.clipboard;
|
|
3065
|
+
const _errs96 = errors;
|
|
3066
|
+
if (errors === _errs96) {
|
|
3067
|
+
if (Array.isArray(data44)) {
|
|
3068
|
+
var valid14 = true;
|
|
3069
|
+
const len7 = data44.length;
|
|
3070
|
+
for (let i7 = 0; i7 < len7; i7++) {
|
|
3071
|
+
let data45 = data44[i7];
|
|
3072
|
+
const _errs98 = errors;
|
|
3073
|
+
if (errors === _errs98) {
|
|
3074
|
+
if (typeof data45 === "string") {
|
|
3075
|
+
if (!pattern16.test(data45)) {
|
|
3076
|
+
validate12.errors = [{ instancePath: instancePath + "/entryPoints/" + i2 + "/permissions/clipboard/" + i7, schemaPath: "#/properties/entryPoints/items/properties/permissions/properties/clipboard/items/pattern", keyword: "pattern", params: { pattern: "^(clipboard-write|clipboard-read)$" }, message: "must match pattern \"" + "^(clipboard-write|clipboard-read)$" + "\"" }];
|
|
3077
|
+
return false;
|
|
3078
|
+
}
|
|
3079
|
+
}
|
|
3080
|
+
else {
|
|
3081
|
+
validate12.errors = [{ instancePath: instancePath + "/entryPoints/" + i2 + "/permissions/clipboard/" + i7, schemaPath: "#/properties/entryPoints/items/properties/permissions/properties/clipboard/items/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
|
|
2970
3082
|
return false;
|
|
2971
3083
|
}
|
|
2972
3084
|
}
|
|
2973
|
-
|
|
2974
|
-
|
|
2975
|
-
|
|
3085
|
+
var valid14 = _errs98 === errors;
|
|
3086
|
+
if (!valid14) {
|
|
3087
|
+
break;
|
|
2976
3088
|
}
|
|
2977
3089
|
}
|
|
2978
|
-
|
|
2979
|
-
|
|
2980
|
-
|
|
2981
|
-
|
|
3090
|
+
}
|
|
3091
|
+
else {
|
|
3092
|
+
validate12.errors = [{ instancePath: instancePath + "/entryPoints/" + i2 + "/permissions/clipboard", schemaPath: "#/properties/entryPoints/items/properties/permissions/properties/clipboard/type", keyword: "type", params: { type: "array" }, message: "must be array" }];
|
|
3093
|
+
return false;
|
|
2982
3094
|
}
|
|
2983
3095
|
}
|
|
2984
|
-
|
|
2985
|
-
|
|
2986
|
-
|
|
2987
|
-
|
|
3096
|
+
var valid11 = _errs96 === errors;
|
|
3097
|
+
}
|
|
3098
|
+
else {
|
|
3099
|
+
var valid11 = true;
|
|
2988
3100
|
}
|
|
2989
|
-
var valid8 = _errs83 === errors;
|
|
2990
|
-
}
|
|
2991
|
-
else {
|
|
2992
|
-
var valid8 = true;
|
|
2993
3101
|
}
|
|
2994
3102
|
}
|
|
2995
3103
|
}
|
|
2996
3104
|
}
|
|
2997
3105
|
}
|
|
2998
3106
|
}
|
|
3107
|
+
else {
|
|
3108
|
+
validate12.errors = [{ instancePath: instancePath + "/entryPoints/" + i2 + "/permissions", schemaPath: "#/properties/entryPoints/items/properties/permissions/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
|
|
3109
|
+
return false;
|
|
3110
|
+
}
|
|
2999
3111
|
}
|
|
3000
|
-
|
|
3001
|
-
validate12.errors = [{ instancePath: instancePath + "/entryPoints/" + i2 + "/permissions", schemaPath: "#/properties/entryPoints/items/properties/permissions/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
|
|
3002
|
-
return false;
|
|
3003
|
-
}
|
|
3112
|
+
var valid7 = _errs81 === errors;
|
|
3004
3113
|
}
|
|
3005
|
-
|
|
3006
|
-
|
|
3007
|
-
|
|
3008
|
-
|
|
3009
|
-
|
|
3010
|
-
|
|
3011
|
-
|
|
3012
|
-
|
|
3013
|
-
|
|
3014
|
-
|
|
3015
|
-
|
|
3016
|
-
|
|
3017
|
-
|
|
3018
|
-
validate12.errors = [{ instancePath: instancePath + "/entryPoints/" + i2 + "/defaultSize", schemaPath: "#/properties/entryPoints/items/properties/defaultSize/required", keyword: "required", params: { missingProperty: missing4 }, message: "must have required property '" + missing4 + "'" }];
|
|
3019
|
-
return false;
|
|
3020
|
-
}
|
|
3021
|
-
else {
|
|
3022
|
-
const _errs89 = errors;
|
|
3023
|
-
for (const key5 in data40) {
|
|
3024
|
-
if (!((key5 === "width") || (key5 === "height"))) {
|
|
3025
|
-
validate12.errors = [{ instancePath: instancePath + "/entryPoints/" + i2 + "/defaultSize", schemaPath: "#/properties/entryPoints/items/properties/defaultSize/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key5 }, message: "must NOT have additional properties" }];
|
|
3026
|
-
return false;
|
|
3027
|
-
break;
|
|
3028
|
-
}
|
|
3114
|
+
else {
|
|
3115
|
+
var valid7 = true;
|
|
3116
|
+
}
|
|
3117
|
+
if (valid7) {
|
|
3118
|
+
if (data24.defaultSize !== undefined) {
|
|
3119
|
+
let data46 = data24.defaultSize;
|
|
3120
|
+
const _errs100 = errors;
|
|
3121
|
+
if (errors === _errs100) {
|
|
3122
|
+
if (data46 && typeof data46 == "object" && !Array.isArray(data46)) {
|
|
3123
|
+
let missing5;
|
|
3124
|
+
if (((data46.width === undefined) && (missing5 = "width")) || ((data46.height === undefined) && (missing5 = "height"))) {
|
|
3125
|
+
validate12.errors = [{ instancePath: instancePath + "/entryPoints/" + i2 + "/defaultSize", schemaPath: "#/properties/entryPoints/items/properties/defaultSize/required", keyword: "required", params: { missingProperty: missing5 }, message: "must have required property '" + missing5 + "'" }];
|
|
3126
|
+
return false;
|
|
3029
3127
|
}
|
|
3030
|
-
|
|
3031
|
-
|
|
3032
|
-
|
|
3033
|
-
|
|
3034
|
-
|
|
3035
|
-
validate12.errors = [{ instancePath: instancePath + "/entryPoints/" + i2 + "/defaultSize/width", schemaPath: "#/properties/entryPoints/items/properties/defaultSize/properties/width/type", keyword: "type", params: { type: "number" }, message: "must be number" }];
|
|
3128
|
+
else {
|
|
3129
|
+
const _errs102 = errors;
|
|
3130
|
+
for (const key6 in data46) {
|
|
3131
|
+
if (!((key6 === "width") || (key6 === "height"))) {
|
|
3132
|
+
validate12.errors = [{ instancePath: instancePath + "/entryPoints/" + i2 + "/defaultSize", schemaPath: "#/properties/entryPoints/items/properties/defaultSize/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key6 }, message: "must NOT have additional properties" }];
|
|
3036
3133
|
return false;
|
|
3134
|
+
break;
|
|
3037
3135
|
}
|
|
3038
|
-
var valid12 = _errs90 === errors;
|
|
3039
|
-
}
|
|
3040
|
-
else {
|
|
3041
|
-
var valid12 = true;
|
|
3042
3136
|
}
|
|
3043
|
-
if (
|
|
3044
|
-
if (
|
|
3045
|
-
let
|
|
3046
|
-
const
|
|
3047
|
-
if (!((typeof
|
|
3048
|
-
validate12.errors = [{ instancePath: instancePath + "/entryPoints/" + i2 + "/defaultSize/
|
|
3137
|
+
if (_errs102 === errors) {
|
|
3138
|
+
if (data46.width !== undefined) {
|
|
3139
|
+
let data47 = data46.width;
|
|
3140
|
+
const _errs103 = errors;
|
|
3141
|
+
if (!((typeof data47 == "number") && (isFinite(data47)))) {
|
|
3142
|
+
validate12.errors = [{ instancePath: instancePath + "/entryPoints/" + i2 + "/defaultSize/width", schemaPath: "#/properties/entryPoints/items/properties/defaultSize/properties/width/type", keyword: "type", params: { type: "number" }, message: "must be number" }];
|
|
3049
3143
|
return false;
|
|
3050
3144
|
}
|
|
3051
|
-
var
|
|
3145
|
+
var valid15 = _errs103 === errors;
|
|
3052
3146
|
}
|
|
3053
3147
|
else {
|
|
3054
|
-
var
|
|
3148
|
+
var valid15 = true;
|
|
3149
|
+
}
|
|
3150
|
+
if (valid15) {
|
|
3151
|
+
if (data46.height !== undefined) {
|
|
3152
|
+
let data48 = data46.height;
|
|
3153
|
+
const _errs105 = errors;
|
|
3154
|
+
if (!((typeof data48 == "number") && (isFinite(data48)))) {
|
|
3155
|
+
validate12.errors = [{ instancePath: instancePath + "/entryPoints/" + i2 + "/defaultSize/height", schemaPath: "#/properties/entryPoints/items/properties/defaultSize/properties/height/type", keyword: "type", params: { type: "number" }, message: "must be number" }];
|
|
3156
|
+
return false;
|
|
3157
|
+
}
|
|
3158
|
+
var valid15 = _errs105 === errors;
|
|
3159
|
+
}
|
|
3160
|
+
else {
|
|
3161
|
+
var valid15 = true;
|
|
3162
|
+
}
|
|
3055
3163
|
}
|
|
3056
3164
|
}
|
|
3057
3165
|
}
|
|
3058
3166
|
}
|
|
3167
|
+
else {
|
|
3168
|
+
validate12.errors = [{ instancePath: instancePath + "/entryPoints/" + i2 + "/defaultSize", schemaPath: "#/properties/entryPoints/items/properties/defaultSize/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
|
|
3169
|
+
return false;
|
|
3170
|
+
}
|
|
3059
3171
|
}
|
|
3060
|
-
|
|
3061
|
-
validate12.errors = [{ instancePath: instancePath + "/entryPoints/" + i2 + "/defaultSize", schemaPath: "#/properties/entryPoints/items/properties/defaultSize/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
|
|
3062
|
-
return false;
|
|
3063
|
-
}
|
|
3064
|
-
}
|
|
3065
|
-
var valid7 = _errs87 === errors;
|
|
3066
|
-
}
|
|
3067
|
-
else {
|
|
3068
|
-
var valid7 = true;
|
|
3069
|
-
}
|
|
3070
|
-
if (valid7) {
|
|
3071
|
-
if (data24.discoverable !== undefined) {
|
|
3072
|
-
const _errs94 = errors;
|
|
3073
|
-
if (typeof data24.discoverable !== "boolean") {
|
|
3074
|
-
validate12.errors = [{ instancePath: instancePath + "/entryPoints/" + i2 + "/discoverable", schemaPath: "#/properties/entryPoints/items/properties/discoverable/type", keyword: "type", params: { type: "boolean" }, message: "must be boolean" }];
|
|
3075
|
-
return false;
|
|
3076
|
-
}
|
|
3077
|
-
var valid7 = _errs94 === errors;
|
|
3172
|
+
var valid7 = _errs100 === errors;
|
|
3078
3173
|
}
|
|
3079
3174
|
else {
|
|
3080
3175
|
var valid7 = true;
|
|
3081
3176
|
}
|
|
3177
|
+
if (valid7) {
|
|
3178
|
+
if (data24.discoverable !== undefined) {
|
|
3179
|
+
const _errs107 = errors;
|
|
3180
|
+
if (typeof data24.discoverable !== "boolean") {
|
|
3181
|
+
validate12.errors = [{ instancePath: instancePath + "/entryPoints/" + i2 + "/discoverable", schemaPath: "#/properties/entryPoints/items/properties/discoverable/type", keyword: "type", params: { type: "boolean" }, message: "must be boolean" }];
|
|
3182
|
+
return false;
|
|
3183
|
+
}
|
|
3184
|
+
var valid7 = _errs107 === errors;
|
|
3185
|
+
}
|
|
3186
|
+
else {
|
|
3187
|
+
var valid7 = true;
|
|
3188
|
+
}
|
|
3189
|
+
}
|
|
3082
3190
|
}
|
|
3083
3191
|
}
|
|
3084
3192
|
}
|