@adobe/ccweb-add-on-manifest 1.3.0 → 2.0.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.
@@ -2329,11 +2329,12 @@ 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)$" } } }, "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" } }, "required": [], "additionalProperties": false } }, "required": ["apps"], "additionalProperties": false }, "entryPoints": { "type": "array", "items": { "type": "object", "properties": { "type": { "type": "string", "pattern": "^(panel|share|content-hub)$" }, "id": { "type": "string" }, "main": { "type": "string" }, "script": { "type": "string" }, "documentSandbox": { "type": "string" }, "permissions": { "type": "object", "properties": { "sandbox": { "type": "array", "items": { "type": "string", "pattern": "^(allow-popups|allow-presentation|allow-downloads|allow-popups-to-escape-sandbox)$" } }, "oauth": { "type": "array", "items": { "type": "string" } }, "microphone": { "type": "string" }, "camera": { "type": "string" }, "analytics": { "type": "boolean" }, "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)$" } } }, "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" } }, "required": [], "additionalProperties": false } }, "required": ["apps"], "additionalProperties": false }, "entryPoints": { "type": "array", "items": { "type": "object", "properties": { "type": { "type": "string", "pattern": "^(panel|share|content-hub)$" }, "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)$" } }, "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)$", "u");
2336
2336
  const pattern16 = new RegExp("^(clipboard-write|clipboard-read)$", "u");
2337
+ const func2 = Object.prototype.hasOwnProperty;
2337
2338
  function validate12(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) { /*# sourceURL="#/definitions/manifestSchemaV2" */ ; let vErrors = null; let errors = 0; if (errors === 0) {
2338
2339
  if (data && typeof data == "object" && !Array.isArray(data)) {
2339
2340
  let missing0;
@@ -2705,7 +2706,7 @@ function validate12(data, { instancePath = "", parentData, parentDataProperty, r
2705
2706
  else {
2706
2707
  const _errs47 = errors;
2707
2708
  for (const key3 in data20) {
2708
- if (!((((((((key3 === "type") || (key3 === "id")) || (key3 === "main")) || (key3 === "script")) || (key3 === "documentSandbox")) || (key3 === "permissions")) || (key3 === "defaultSize")) || (key3 === "discoverable"))) {
2709
+ if (!(func2.call(schema13.properties.entryPoints.items.properties, key3))) {
2709
2710
  validate12.errors = [{ instancePath: instancePath + "/entryPoints/" + i2, schemaPath: "#/properties/entryPoints/items/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key3 }, message: "must NOT have additional properties" }];
2710
2711
  return false;
2711
2712
  break;
@@ -2781,105 +2782,105 @@ function validate12(data, { instancePath = "", parentData, parentDataProperty, r
2781
2782
  var valid7 = true;
2782
2783
  }
2783
2784
  if (valid7) {
2784
- if (data20.permissions !== undefined) {
2785
- let data26 = data20.permissions;
2785
+ if (data20.hostDomain !== undefined) {
2786
2786
  const _errs58 = errors;
2787
- if (errors === _errs58) {
2788
- if (data26 && typeof data26 == "object" && !Array.isArray(data26)) {
2789
- const _errs60 = errors;
2790
- for (const key4 in data26) {
2791
- if (!((((((key4 === "sandbox") || (key4 === "oauth")) || (key4 === "microphone")) || (key4 === "camera")) || (key4 === "analytics")) || (key4 === "clipboard"))) {
2792
- validate12.errors = [{ instancePath: instancePath + "/entryPoints/" + i2 + "/permissions", schemaPath: "#/properties/entryPoints/items/properties/permissions/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key4 }, message: "must NOT have additional properties" }];
2793
- return false;
2794
- break;
2787
+ if (typeof data20.hostDomain !== "string") {
2788
+ validate12.errors = [{ instancePath: instancePath + "/entryPoints/" + i2 + "/hostDomain", schemaPath: "#/properties/entryPoints/items/properties/hostDomain/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
2789
+ return false;
2790
+ }
2791
+ var valid7 = _errs58 === errors;
2792
+ }
2793
+ else {
2794
+ var valid7 = true;
2795
+ }
2796
+ if (valid7) {
2797
+ if (data20.permissions !== undefined) {
2798
+ let data27 = data20.permissions;
2799
+ const _errs60 = errors;
2800
+ if (errors === _errs60) {
2801
+ if (data27 && typeof data27 == "object" && !Array.isArray(data27)) {
2802
+ const _errs62 = errors;
2803
+ for (const key4 in data27) {
2804
+ if (!(((((key4 === "sandbox") || (key4 === "oauth")) || (key4 === "microphone")) || (key4 === "camera")) || (key4 === "clipboard"))) {
2805
+ validate12.errors = [{ instancePath: instancePath + "/entryPoints/" + i2 + "/permissions", schemaPath: "#/properties/entryPoints/items/properties/permissions/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key4 }, message: "must NOT have additional properties" }];
2806
+ return false;
2807
+ break;
2808
+ }
2795
2809
  }
2796
- }
2797
- if (_errs60 === errors) {
2798
- if (data26.sandbox !== undefined) {
2799
- let data27 = data26.sandbox;
2800
- const _errs61 = errors;
2801
- if (errors === _errs61) {
2802
- if (Array.isArray(data27)) {
2803
- var valid9 = true;
2804
- const len3 = data27.length;
2805
- for (let i3 = 0; i3 < len3; i3++) {
2806
- let data28 = data27[i3];
2807
- const _errs63 = errors;
2808
- if (errors === _errs63) {
2809
- if (typeof data28 === "string") {
2810
- if (!pattern4.test(data28)) {
2811
- validate12.errors = [{ instancePath: instancePath + "/entryPoints/" + i2 + "/permissions/sandbox/" + i3, 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)$" }, message: "must match pattern \"" + "^(allow-popups|allow-presentation|allow-downloads|allow-popups-to-escape-sandbox)$" + "\"" }];
2810
+ if (_errs62 === errors) {
2811
+ if (data27.sandbox !== undefined) {
2812
+ let data28 = data27.sandbox;
2813
+ const _errs63 = errors;
2814
+ if (errors === _errs63) {
2815
+ if (Array.isArray(data28)) {
2816
+ var valid9 = true;
2817
+ const len3 = data28.length;
2818
+ for (let i3 = 0; i3 < len3; i3++) {
2819
+ let data29 = data28[i3];
2820
+ const _errs65 = errors;
2821
+ if (errors === _errs65) {
2822
+ if (typeof data29 === "string") {
2823
+ if (!pattern4.test(data29)) {
2824
+ validate12.errors = [{ instancePath: instancePath + "/entryPoints/" + i2 + "/permissions/sandbox/" + i3, 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)$" }, message: "must match pattern \"" + "^(allow-popups|allow-presentation|allow-downloads|allow-popups-to-escape-sandbox)$" + "\"" }];
2825
+ return false;
2826
+ }
2827
+ }
2828
+ else {
2829
+ validate12.errors = [{ instancePath: instancePath + "/entryPoints/" + i2 + "/permissions/sandbox/" + i3, schemaPath: "#/properties/entryPoints/items/properties/permissions/properties/sandbox/items/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
2812
2830
  return false;
2813
2831
  }
2814
2832
  }
2815
- else {
2816
- validate12.errors = [{ instancePath: instancePath + "/entryPoints/" + i2 + "/permissions/sandbox/" + i3, schemaPath: "#/properties/entryPoints/items/properties/permissions/properties/sandbox/items/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
2817
- return false;
2818
- }
2819
- }
2820
- var valid9 = _errs63 === errors;
2821
- if (!valid9) {
2822
- break;
2823
- }
2824
- }
2825
- }
2826
- else {
2827
- 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" }];
2828
- return false;
2829
- }
2830
- }
2831
- var valid8 = _errs61 === errors;
2832
- }
2833
- else {
2834
- var valid8 = true;
2835
- }
2836
- if (valid8) {
2837
- if (data26.oauth !== undefined) {
2838
- let data29 = data26.oauth;
2839
- const _errs65 = errors;
2840
- if (errors === _errs65) {
2841
- if (Array.isArray(data29)) {
2842
- var valid10 = true;
2843
- const len4 = data29.length;
2844
- for (let i4 = 0; i4 < len4; i4++) {
2845
- const _errs67 = errors;
2846
- if (typeof data29[i4] !== "string") {
2847
- validate12.errors = [{ instancePath: instancePath + "/entryPoints/" + i2 + "/permissions/oauth/" + i4, schemaPath: "#/properties/entryPoints/items/properties/permissions/properties/oauth/items/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
2848
- return false;
2849
- }
2850
- var valid10 = _errs67 === errors;
2851
- if (!valid10) {
2833
+ var valid9 = _errs65 === errors;
2834
+ if (!valid9) {
2852
2835
  break;
2853
2836
  }
2854
2837
  }
2855
2838
  }
2856
2839
  else {
2857
- 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" }];
2840
+ 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" }];
2858
2841
  return false;
2859
2842
  }
2860
2843
  }
2861
- var valid8 = _errs65 === errors;
2844
+ var valid8 = _errs63 === errors;
2862
2845
  }
2863
2846
  else {
2864
2847
  var valid8 = true;
2865
2848
  }
2866
2849
  if (valid8) {
2867
- if (data26.microphone !== undefined) {
2868
- const _errs69 = errors;
2869
- if (typeof data26.microphone !== "string") {
2870
- 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" }];
2871
- return false;
2850
+ if (data27.oauth !== undefined) {
2851
+ let data30 = data27.oauth;
2852
+ const _errs67 = errors;
2853
+ if (errors === _errs67) {
2854
+ if (Array.isArray(data30)) {
2855
+ var valid10 = true;
2856
+ const len4 = data30.length;
2857
+ for (let i4 = 0; i4 < len4; i4++) {
2858
+ const _errs69 = errors;
2859
+ if (typeof data30[i4] !== "string") {
2860
+ validate12.errors = [{ instancePath: instancePath + "/entryPoints/" + i2 + "/permissions/oauth/" + i4, schemaPath: "#/properties/entryPoints/items/properties/permissions/properties/oauth/items/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
2861
+ return false;
2862
+ }
2863
+ var valid10 = _errs69 === errors;
2864
+ if (!valid10) {
2865
+ break;
2866
+ }
2867
+ }
2868
+ }
2869
+ else {
2870
+ 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" }];
2871
+ return false;
2872
+ }
2872
2873
  }
2873
- var valid8 = _errs69 === errors;
2874
+ var valid8 = _errs67 === errors;
2874
2875
  }
2875
2876
  else {
2876
2877
  var valid8 = true;
2877
2878
  }
2878
2879
  if (valid8) {
2879
- if (data26.camera !== undefined) {
2880
+ if (data27.microphone !== undefined) {
2880
2881
  const _errs71 = errors;
2881
- if (typeof data26.camera !== "string") {
2882
- 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" }];
2882
+ if (typeof data27.microphone !== "string") {
2883
+ 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" }];
2883
2884
  return false;
2884
2885
  }
2885
2886
  var valid8 = _errs71 === errors;
@@ -2888,10 +2889,10 @@ function validate12(data, { instancePath = "", parentData, parentDataProperty, r
2888
2889
  var valid8 = true;
2889
2890
  }
2890
2891
  if (valid8) {
2891
- if (data26.analytics !== undefined) {
2892
+ if (data27.camera !== undefined) {
2892
2893
  const _errs73 = errors;
2893
- if (typeof data26.analytics !== "boolean") {
2894
- validate12.errors = [{ instancePath: instancePath + "/entryPoints/" + i2 + "/permissions/analytics", schemaPath: "#/properties/entryPoints/items/properties/permissions/properties/analytics/type", keyword: "type", params: { type: "boolean" }, message: "must be boolean" }];
2894
+ if (typeof data27.camera !== "string") {
2895
+ 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" }];
2895
2896
  return false;
2896
2897
  }
2897
2898
  var valid8 = _errs73 === errors;
@@ -2900,8 +2901,8 @@ function validate12(data, { instancePath = "", parentData, parentDataProperty, r
2900
2901
  var valid8 = true;
2901
2902
  }
2902
2903
  if (valid8) {
2903
- if (data26.clipboard !== undefined) {
2904
- let data34 = data26.clipboard;
2904
+ if (data27.clipboard !== undefined) {
2905
+ let data34 = data27.clipboard;
2905
2906
  const _errs75 = errors;
2906
2907
  if (errors === _errs75) {
2907
2908
  if (Array.isArray(data34)) {
@@ -2944,89 +2945,89 @@ function validate12(data, { instancePath = "", parentData, parentDataProperty, r
2944
2945
  }
2945
2946
  }
2946
2947
  }
2948
+ else {
2949
+ validate12.errors = [{ instancePath: instancePath + "/entryPoints/" + i2 + "/permissions", schemaPath: "#/properties/entryPoints/items/properties/permissions/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
2950
+ return false;
2951
+ }
2947
2952
  }
2948
- else {
2949
- validate12.errors = [{ instancePath: instancePath + "/entryPoints/" + i2 + "/permissions", schemaPath: "#/properties/entryPoints/items/properties/permissions/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
2950
- return false;
2951
- }
2953
+ var valid7 = _errs60 === errors;
2952
2954
  }
2953
- var valid7 = _errs58 === errors;
2954
- }
2955
- else {
2956
- var valid7 = true;
2957
- }
2958
- if (valid7) {
2959
- if (data20.defaultSize !== undefined) {
2960
- let data36 = data20.defaultSize;
2961
- const _errs79 = errors;
2962
- if (errors === _errs79) {
2963
- if (data36 && typeof data36 == "object" && !Array.isArray(data36)) {
2964
- let missing4;
2965
- if (((data36.width === undefined) && (missing4 = "width")) || ((data36.height === undefined) && (missing4 = "height"))) {
2966
- 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 + "'" }];
2967
- return false;
2968
- }
2969
- else {
2970
- const _errs81 = errors;
2971
- for (const key5 in data36) {
2972
- if (!((key5 === "width") || (key5 === "height"))) {
2973
- 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" }];
2974
- return false;
2975
- break;
2976
- }
2955
+ else {
2956
+ var valid7 = true;
2957
+ }
2958
+ if (valid7) {
2959
+ if (data20.defaultSize !== undefined) {
2960
+ let data36 = data20.defaultSize;
2961
+ const _errs79 = errors;
2962
+ if (errors === _errs79) {
2963
+ if (data36 && typeof data36 == "object" && !Array.isArray(data36)) {
2964
+ let missing4;
2965
+ if (((data36.width === undefined) && (missing4 = "width")) || ((data36.height === undefined) && (missing4 = "height"))) {
2966
+ 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 + "'" }];
2967
+ return false;
2977
2968
  }
2978
- if (_errs81 === errors) {
2979
- if (data36.width !== undefined) {
2980
- let data37 = data36.width;
2981
- const _errs82 = errors;
2982
- if (!((typeof data37 == "number") && (isFinite(data37)))) {
2983
- 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" }];
2969
+ else {
2970
+ const _errs81 = errors;
2971
+ for (const key5 in data36) {
2972
+ if (!((key5 === "width") || (key5 === "height"))) {
2973
+ 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" }];
2984
2974
  return false;
2975
+ break;
2985
2976
  }
2986
- var valid12 = _errs82 === errors;
2987
- }
2988
- else {
2989
- var valid12 = true;
2990
2977
  }
2991
- if (valid12) {
2992
- if (data36.height !== undefined) {
2993
- let data38 = data36.height;
2994
- const _errs84 = errors;
2995
- if (!((typeof data38 == "number") && (isFinite(data38)))) {
2996
- 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" }];
2978
+ if (_errs81 === errors) {
2979
+ if (data36.width !== undefined) {
2980
+ let data37 = data36.width;
2981
+ const _errs82 = errors;
2982
+ if (!((typeof data37 == "number") && (isFinite(data37)))) {
2983
+ 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" }];
2997
2984
  return false;
2998
2985
  }
2999
- var valid12 = _errs84 === errors;
2986
+ var valid12 = _errs82 === errors;
3000
2987
  }
3001
2988
  else {
3002
2989
  var valid12 = true;
3003
2990
  }
2991
+ if (valid12) {
2992
+ if (data36.height !== undefined) {
2993
+ let data38 = data36.height;
2994
+ const _errs84 = errors;
2995
+ if (!((typeof data38 == "number") && (isFinite(data38)))) {
2996
+ 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" }];
2997
+ return false;
2998
+ }
2999
+ var valid12 = _errs84 === errors;
3000
+ }
3001
+ else {
3002
+ var valid12 = true;
3003
+ }
3004
+ }
3004
3005
  }
3005
3006
  }
3006
3007
  }
3008
+ else {
3009
+ validate12.errors = [{ instancePath: instancePath + "/entryPoints/" + i2 + "/defaultSize", schemaPath: "#/properties/entryPoints/items/properties/defaultSize/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
3010
+ return false;
3011
+ }
3007
3012
  }
3008
- else {
3009
- validate12.errors = [{ instancePath: instancePath + "/entryPoints/" + i2 + "/defaultSize", schemaPath: "#/properties/entryPoints/items/properties/defaultSize/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
3010
- return false;
3011
- }
3012
- }
3013
- var valid7 = _errs79 === errors;
3014
- }
3015
- else {
3016
- var valid7 = true;
3017
- }
3018
- if (valid7) {
3019
- if (data20.discoverable !== undefined) {
3020
- const _errs86 = errors;
3021
- if (typeof data20.discoverable !== "boolean") {
3022
- validate12.errors = [{ instancePath: instancePath + "/entryPoints/" + i2 + "/discoverable", schemaPath: "#/properties/entryPoints/items/properties/discoverable/type", keyword: "type", params: { type: "boolean" }, message: "must be boolean" }];
3023
- return false;
3024
- }
3025
- var valid7 = _errs86 === errors;
3013
+ var valid7 = _errs79 === errors;
3026
3014
  }
3027
3015
  else {
3028
3016
  var valid7 = true;
3029
3017
  }
3018
+ if (valid7) {
3019
+ if (data20.discoverable !== undefined) {
3020
+ const _errs86 = errors;
3021
+ if (typeof data20.discoverable !== "boolean") {
3022
+ validate12.errors = [{ instancePath: instancePath + "/entryPoints/" + i2 + "/discoverable", schemaPath: "#/properties/entryPoints/items/properties/discoverable/type", keyword: "type", params: { type: "boolean" }, message: "must be boolean" }];
3023
+ return false;
3024
+ }
3025
+ var valid7 = _errs86 === errors;
3026
+ }
3027
+ else {
3028
+ var valid7 = true;
3029
+ }
3030
+ }
3030
3031
  }
3031
3032
  }
3032
3033
  }