@honua/app-platform 0.2.3 → 0.2.4
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/control-plane/dataset-import/client.d.ts +32 -0
- package/control-plane/dataset-import/client.d.ts.map +1 -0
- package/control-plane/dataset-import/client.js +112 -0
- package/control-plane/dataset-import/errors.d.ts +5 -0
- package/control-plane/dataset-import/errors.d.ts.map +1 -0
- package/control-plane/dataset-import/errors.js +8 -0
- package/control-plane/dataset-import/file-hash.d.ts +14 -0
- package/control-plane/dataset-import/file-hash.d.ts.map +1 -0
- package/control-plane/dataset-import/file-hash.js +117 -0
- package/control-plane/dataset-import/index.d.ts +10 -0
- package/control-plane/dataset-import/index.d.ts.map +1 -0
- package/control-plane/dataset-import/index.js +4 -0
- package/control-plane/dataset-import/submission-client.d.ts +18 -0
- package/control-plane/dataset-import/submission-client.d.ts.map +1 -0
- package/control-plane/dataset-import/submission-client.js +197 -0
- package/control-plane/dataset-import/transport.d.ts +14 -0
- package/control-plane/dataset-import/transport.d.ts.map +1 -0
- package/control-plane/dataset-import/transport.js +53 -0
- package/control-plane/dataset-import/types.d.ts +150 -0
- package/control-plane/dataset-import/types.d.ts.map +1 -0
- package/control-plane/dataset-import/types.js +1 -0
- package/control-plane/dataset-import/upload-client.d.ts +23 -0
- package/control-plane/dataset-import/upload-client.d.ts.map +1 -0
- package/control-plane/dataset-import/upload-client.js +187 -0
- package/control-plane/index.d.ts +1 -0
- package/control-plane/index.d.ts.map +1 -1
- package/control-plane/index.js +1 -0
- package/core/job-run-lifecycle.d.ts.map +1 -1
- package/core/job-run-lifecycle.js +4 -0
- package/package.json +2 -2
- package/runtime/generated/map-package-schema-meta.d.ts +1 -1
- package/runtime/generated/map-package-schema-meta.js +1 -1
- package/runtime/generated/map-package-schema-validator.d.ts +5 -5
- package/runtime/generated/map-package-schema-validator.d.ts.map +1 -1
- package/runtime/generated/map-package-schema-validator.js +746 -619
- package/runtime/index.d.ts +1 -1
- package/runtime/index.d.ts.map +1 -1
- package/runtime/map-package-fetch.d.ts +1 -0
- package/runtime/map-package-fetch.d.ts.map +1 -1
- package/runtime/map-package-fetch.js +24 -39
- package/runtime/map-package-validation.d.ts +1 -1
- package/runtime/map-package-validation.d.ts.map +1 -1
- package/runtime/map-package-validation.js +27 -1
- package/runtime/map-package.d.ts +16 -0
- package/runtime/map-package.d.ts.map +1 -1
- package/runtime/ogc-styles.d.ts +2 -2
- package/runtime/ogc-styles.d.ts.map +1 -1
- package/runtime/ogc-styles.js +17 -3
- package/runtime/style-compose.d.ts +2 -2
- package/runtime/style-compose.d.ts.map +1 -1
- package/runtime/style-compose.js +26 -3
- package/runtime/style-ref-bindings.d.ts +11 -0
- package/runtime/style-ref-bindings.d.ts.map +1 -0
- package/runtime/style-ref-bindings.js +82 -0
|
@@ -23,1369 +23,1496 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
|
23
23
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
24
24
|
SOFTWARE.
|
|
25
25
|
*/
|
|
26
|
-
/* Generated from schemas/honua-map-package.v1.json; source sha256:
|
|
26
|
+
/* Generated from schemas/honua-map-package.v1.json; source sha256:d25f1ecd7240e71bd606fa10b75ad0b03510afdf6b59a49d77be1e3e048b1465.
|
|
27
27
|
Do not edit. Run "npm run map-package-schema:generate" after changing the schema. */
|
|
28
|
-
function
|
|
29
|
-
|
|
30
|
-
const
|
|
31
|
-
var
|
|
32
|
-
const v = { $schema: "https://json-schema.org/draft/2020-12/schema", $id: "https://honua.io/schemas/honua-map-package.v1.json", type: "object", required: ["mapPackageId", "format", "sourceBindings", "mapSpec"], additionalProperties: !0, properties: { mapPackageId: { type: "string", minLength: 1, maxLength: 256 }, format: { type: "string", const: "honua_map_package.v1" }, status: { type: "string", enum: ["Draft", "Composing", "Ready", "Failed", "Expired"] }, createdAt: { type: "string", maxLength: 64 }, updatedAt: { type: "string", maxLength: 64 }, expiresAt: { type: "string", maxLength: 64 }, templateId: { type: "string", maxLength: 256 }, themeId: { type: "string", maxLength: 256 }, theme: { $ref: "#/$defs/themeSpec" }, previewArtifactId: { type: "string", maxLength: 256 }, sourceBindings: { type: "array", items: { $ref: "#/$defs/sourceBinding" } }, styleRefs: { type: "array", items: { $ref: "#/$defs/styleRef" } }, mapSpec: { $ref: "#/$defs/mapSpec" }, initialView: { $ref: "#/$defs/initialView" }, legend: { type: "array", items: { $ref: "#/$defs/legendEntry" } }, popupBindings: { type: "array", items: { $ref: "#/$defs/popupBinding" } }, labelBindings: { type: "array", items: { $ref: "#/$defs/labelBinding" } }, boundArtifacts: { type: "array", items: { type: "string", maxLength: 256 } }, attribution: { type: "array", items: { $ref: "#/$defs/attribution" } }, widgets: { type: "array", items: { $ref: "#/$defs/widget" } }, dependencies: { type: "array", items: { $ref: "#/$defs/dependency" } }, provenance: { $ref: "#/$defs/provenance" } }, $defs: { sourceBinding: { type: "object", required: ["sourceId", "protocol", "locator"], additionalProperties: !0, properties: { sourceId: { type: "string", minLength: 1, maxLength: 256 }, protocol: { type: "string", enum: ["geoservices_feature_service", "geoservices_map_service", "ogc_features", "ogc_maps", "ogc_tiles", "wfs", "wms", "wmts", "odata", "vector_tile", "raster_tile", "pmtiles", "workspace_artifact"] }, locator: { $ref: "#/$defs/locator" }, filter: { type: "string", maxLength: 8192 }, attribution: { type: "string", maxLength: 1024 }, metadata: { type: "object", additionalProperties: { type: "string", maxLength: 4096 } } } }, locator: { type: "object", additionalProperties: !0, properties: { url: { type: "string", maxLength: 4096 }, serviceId: { type: "string", maxLength: 256 }, layerId: { type: ["integer", "string"] }, collectionId: { type: ["string", "integer"] }, typeName: { type: "string", maxLength: 256 }, entitySet: { type: "string", maxLength: 256 } } }, styleRef: { type: "object", required: ["styleId"], additionalProperties: !0, properties: { styleId: { type: "string", minLength: 1, maxLength: 256 }, label: { type: "string", maxLength: 256 }, presetId: { type: "string", maxLength: 256 }, body: { $ref: "#/$defs/styleRefBody" } } }, styleRefBody: { type: "object", additionalProperties: { $ref: "#/$defs/styleRefLayerOverride" } }, styleRefLayerOverride: { type: "object", additionalProperties: !0, properties: { paint: { type: "object", additionalProperties: !0 }, layout: { type: "object", additionalProperties: !0 }, minzoom: { type: "number" }, maxzoom: { type: "number" }, filter: !0, metadata: { type: "object", additionalProperties: !0 } } }, themeSpec: { type: "object", additionalProperties: !0, properties: { themeId: { type: "string", maxLength: 256 }, tokens: { type: "object", additionalProperties: { type: ["string", "number"] } } } }, mapSpec: { type: "object", required: ["version", "sources", "layers"], additionalProperties: !0, properties: { version: { const: 8 }, name: { type: "string", maxLength: 256 }, metadata: { type: "object", additionalProperties: !0 }, center: { type: "array", minItems: 2, maxItems: 2, items: { type: "number" } }, zoom: { type: "number" }, bearing: { type: "number" }, pitch: { type: "number" }, sources: { type: "object", additionalProperties: { type: "object", required: ["type"], additionalProperties: !0, properties: { type: { type: "string", maxLength: 128 } } } }, layers: { type: "array", items: { type: "object", required: ["id", "type"], additionalProperties: !0, properties: { id: { type: "string", minLength: 1, maxLength: 256 }, type: { type: "string", maxLength: 64 }, source: { type: "string", maxLength: 256 } } } }, sprite: { type: ["string", "array"], items: { type: "object", required: ["id", "url"], additionalProperties: !0, properties: { id: { type: "string", maxLength: 256 }, url: { type: "string", maxLength: 4096 } } } }, glyphs: { type: "string", maxLength: 4096 }, transition: { type: "object", additionalProperties: !0, properties: { duration: { type: "number" }, delay: { type: "number" } } } } }, initialView: { type: "object", additionalProperties: !0, properties: { bbox: { type: "array", minItems: 4, maxItems: 4, items: { type: "number" } }, center: { type: "array", minItems: 2, maxItems: 2, items: { type: "number" } }, zoom: { type: "number" }, pitch: { type: "number" }, bearing: { type: "number" }, crs: { type: "string", maxLength: 256 } } }, legendEntry: { type: "object", required: ["label"], additionalProperties: !0, properties: { label: { type: "string", maxLength: 512 }, color: { type: "string", maxLength: 128 }, minValue: { type: "number" }, maxValue: { type: "number" }, iconUrl: { type: "string", maxLength: 4096 } } }, popupBinding: { type: "object", required: ["sourceId"], additionalProperties: !0, properties: { sourceId: { type: "string", minLength: 1, maxLength: 256 }, fieldName: { type: "string", maxLength: 256 }, template: { type: "string", maxLength: 16384 }, title: { type: "string", maxLength: 512 } } }, labelBinding: { type: "object", required: ["sourceId", "fieldName"], additionalProperties: !0, properties: { sourceId: { type: "string", minLength: 1, maxLength: 256 }, fieldName: { type: "string", minLength: 1, maxLength: 256 }, placement: { type: "string", enum: ["point", "line", "polygon"] } } }, attribution: { type: "object", required: ["text"], additionalProperties: !0, properties: { text: { type: "string", minLength: 1, maxLength: 2048 }, url: { type: "string", maxLength: 4096 }, sourceIds: { type: "array", items: { type: "string", maxLength: 256 } }, required: { type: "boolean" } } }, widget: { type: "object", required: ["widgetId", "type"], additionalProperties: !0, properties: { widgetId: { type: "string", minLength: 1, maxLength: 256 }, type: { type: "string", minLength: 1, maxLength: 128 }, position: { type: "string", enum: ["top-left", "top-right", "bottom-left", "bottom-right"] }, label: { type: "string", maxLength: 512 }, visible: { type: "boolean" }, config: { type: "object", additionalProperties: !0 } } }, dependency: { type: "object", required: ["name"], additionalProperties: !0, properties: { name: { type: "string", minLength: 1, maxLength: 256 }, versionRange: { type: "string", maxLength: 128 }, kind: { type: "string", enum: ["renderer", "protocol", "sdk", "plugin", "font", "sprite", "basemap"] }, optional: { type: "boolean" } } }, provenance: { type: "object", additionalProperties: !0, properties: { generatedBy: { type: "string", maxLength: 256 }, generatorVersion: { type: "string", maxLength: 128 }, generatedAt: { type: "string", maxLength: 64 }, derivedFrom: { type: "array", items: { type: "string", maxLength: 256 } }, notes: { type: "string", maxLength: 4096 } } } } }, q = { type: "object", additionalProperties: !0, properties: { themeId: { type: "string", maxLength: 256 }, tokens: { type: "object", additionalProperties: { type: ["string", "number"] } } } }, x = { type: "object", required: ["version", "sources", "layers"], additionalProperties: !0, properties: { version: { const: 8 }, name: { type: "string", maxLength: 256 }, metadata: { type: "object", additionalProperties: !0 }, center: { type: "array", minItems: 2, maxItems: 2, items: { type: "number" } }, zoom: { type: "number" }, bearing: { type: "number" }, pitch: { type: "number" }, sources: { type: "object", additionalProperties: { type: "object", required: ["type"], additionalProperties: !0, properties: { type: { type: "string", maxLength: 128 } } } }, layers: { type: "array", items: { type: "object", required: ["id", "type"], additionalProperties: !0, properties: { id: { type: "string", minLength: 1, maxLength: 256 }, type: { type: "string", maxLength: 64 }, source: { type: "string", maxLength: 256 } } } }, sprite: { type: ["string", "array"], items: { type: "object", required: ["id", "url"], additionalProperties: !0, properties: { id: { type: "string", maxLength: 256 }, url: { type: "string", maxLength: 4096 } } } }, glyphs: { type: "string", maxLength: 4096 }, transition: { type: "object", additionalProperties: !0, properties: { duration: { type: "number" }, delay: { type: "number" } } } } }, z = { type: "object", additionalProperties: !0, properties: { bbox: { type: "array", minItems: 4, maxItems: 4, items: { type: "number" } }, center: { type: "array", minItems: 2, maxItems: 2, items: { type: "number" } }, zoom: { type: "number" }, pitch: { type: "number" }, bearing: { type: "number" }, crs: { type: "string", maxLength: 256 } } }, O = { type: "object", required: ["label"], additionalProperties: !0, properties: { label: { type: "string", maxLength: 512 }, color: { type: "string", maxLength: 128 }, minValue: { type: "number" }, maxValue: { type: "number" }, iconUrl: { type: "string", maxLength: 4096 } } }, B = { type: "object", required: ["sourceId"], additionalProperties: !0, properties: { sourceId: { type: "string", minLength: 1, maxLength: 256 }, fieldName: { type: "string", maxLength: 256 }, template: { type: "string", maxLength: 16384 }, title: { type: "string", maxLength: 512 } } }, $ = { type: "object", required: ["sourceId", "fieldName"], additionalProperties: !0, properties: { sourceId: { type: "string", minLength: 1, maxLength: 256 }, fieldName: { type: "string", minLength: 1, maxLength: 256 }, placement: { type: "string", enum: ["point", "line", "polygon"] } } }, T = { type: "object", required: ["text"], additionalProperties: !0, properties: { text: { type: "string", minLength: 1, maxLength: 2048 }, url: { type: "string", maxLength: 4096 }, sourceIds: { type: "array", items: { type: "string", maxLength: 256 } }, required: { type: "boolean" } } }, I = { type: "object", required: ["widgetId", "type"], additionalProperties: !0, properties: { widgetId: { type: "string", minLength: 1, maxLength: 256 }, type: { type: "string", minLength: 1, maxLength: 128 }, position: { type: "string", enum: ["top-left", "top-right", "bottom-left", "bottom-right"] }, label: { type: "string", maxLength: 512 }, visible: { type: "boolean" }, config: { type: "object", additionalProperties: !0 } } }, j = { type: "object", required: ["name"], additionalProperties: !0, properties: { name: { type: "string", minLength: 1, maxLength: 256 }, versionRange: { type: "string", maxLength: 128 }, kind: { type: "string", enum: ["renderer", "protocol", "sdk", "plugin", "font", "sprite", "basemap"] }, optional: { type: "boolean" } } }, E = { type: "object", additionalProperties: !0, properties: { generatedBy: { type: "string", maxLength: 256 }, generatorVersion: { type: "string", maxLength: 128 }, generatedAt: { type: "string", maxLength: 64 }, derivedFrom: { type: "array", items: { type: "string", maxLength: 256 } }, notes: { type: "string", maxLength: 4096 } } }, l = N, A = { type: "object", required: ["sourceId", "protocol", "locator"], additionalProperties: !0, properties: { sourceId: { type: "string", minLength: 1, maxLength: 256 }, protocol: { type: "string", enum: ["geoservices_feature_service", "geoservices_map_service", "ogc_features", "ogc_maps", "ogc_tiles", "wfs", "wms", "wmts", "odata", "vector_tile", "raster_tile", "pmtiles", "workspace_artifact"] }, locator: { $ref: "#/$defs/locator" }, filter: { type: "string", maxLength: 8192 }, attribution: { type: "string", maxLength: 1024 }, metadata: { type: "object", additionalProperties: { type: "string", maxLength: 4096 } } } }, S = { type: "object", additionalProperties: !0, properties: { url: { type: "string", maxLength: 4096 }, serviceId: { type: "string", maxLength: 256 }, layerId: { type: ["integer", "string"] }, collectionId: { type: ["string", "integer"] }, typeName: { type: "string", maxLength: 256 }, entitySet: { type: "string", maxLength: 256 } } };
|
|
33
|
-
function
|
|
34
|
-
for (const
|
|
35
|
-
if (m[
|
|
36
|
-
const t = { instancePath: i, schemaPath: "#/required", keyword: "required", params: { missingProperty:
|
|
37
|
-
e === null ? e = [t] : e.push(t),
|
|
28
|
+
function T(m) { const i = m.length; let b = 0, f = 0, h; for (; f < i;)
|
|
29
|
+
b++, h = m.charCodeAt(f++), h >= 55296 && h <= 56319 && f < i && (h = m.charCodeAt(f), (h & 64512) === 56320 && f++); return b; }
|
|
30
|
+
const E = I;
|
|
31
|
+
var D = I;
|
|
32
|
+
const $ = { $schema: "https://json-schema.org/draft/2020-12/schema", $id: "https://honua.io/schemas/honua-map-package.v1.json", type: "object", required: ["mapPackageId", "format", "sourceBindings", "mapSpec"], additionalProperties: !0, properties: { mapPackageId: { type: "string", minLength: 1, maxLength: 256 }, format: { type: "string", const: "honua_map_package.v1" }, status: { type: "string", enum: ["Draft", "Composing", "Ready", "Failed", "Expired"] }, createdAt: { type: "string", maxLength: 64 }, updatedAt: { type: "string", maxLength: 64 }, expiresAt: { type: "string", maxLength: 64 }, templateId: { type: "string", maxLength: 256 }, themeId: { type: "string", maxLength: 256 }, theme: { $ref: "#/$defs/themeSpec" }, previewArtifactId: { type: "string", maxLength: 256 }, sourceBindings: { type: "array", items: { $ref: "#/$defs/sourceBinding" } }, styleRefs: { type: "array", items: { $ref: "#/$defs/styleRef" } }, mapSpec: { $ref: "#/$defs/mapSpec" }, initialView: { $ref: "#/$defs/initialView" }, legend: { type: "array", items: { $ref: "#/$defs/legendEntry" } }, popupBindings: { type: "array", items: { $ref: "#/$defs/popupBinding" } }, labelBindings: { type: "array", items: { $ref: "#/$defs/labelBinding" } }, boundArtifacts: { type: "array", items: { type: "string", maxLength: 256 } }, attribution: { type: "array", items: { $ref: "#/$defs/attribution" } }, widgets: { type: "array", items: { $ref: "#/$defs/widget" } }, dependencies: { type: "array", items: { $ref: "#/$defs/dependency" } }, provenance: { $ref: "#/$defs/provenance" } }, $defs: { sourceBinding: { type: "object", required: ["sourceId", "protocol", "locator"], additionalProperties: !0, properties: { sourceId: { type: "string", minLength: 1, maxLength: 256 }, protocol: { type: "string", enum: ["geoservices_feature_service", "geoservices_map_service", "ogc_features", "ogc_maps", "ogc_tiles", "wfs", "wms", "wmts", "odata", "vector_tile", "raster_tile", "pmtiles", "workspace_artifact"] }, locator: { $ref: "#/$defs/locator" }, filter: { type: "string", maxLength: 8192 }, attribution: { type: "string", maxLength: 1024 }, metadata: { type: "object", additionalProperties: { type: "string", maxLength: 4096 } } } }, locator: { type: "object", additionalProperties: !0, properties: { url: { type: "string", maxLength: 4096 }, serviceId: { type: "string", maxLength: 256 }, layerId: { type: ["integer", "string"] }, collectionId: { type: ["string", "integer"] }, typeName: { type: "string", maxLength: 256 }, entitySet: { type: "string", maxLength: 256 } } }, styleRef: { type: "object", required: ["styleId"], additionalProperties: !0, properties: { styleId: { type: "string", minLength: 1, maxLength: 256 }, label: { type: "string", maxLength: 256 }, presetId: { type: "string", maxLength: 256 }, body: { $ref: "#/$defs/styleRefBody" }, layerBindings: { type: "array", minItems: 1, maxItems: 256, items: { $ref: "#/$defs/styleRefLayerBinding" } } } }, styleRefLayerBinding: { type: "object", required: ["styleLayerId", "targetLayerId", "layerType"], additionalProperties: !0, properties: { styleLayerId: { type: "string", minLength: 1, maxLength: 256 }, targetLayerId: { type: "string", minLength: 1, maxLength: 256 }, layerType: { type: "string", minLength: 1, maxLength: 256 }, properties: { type: "array", minItems: 1, maxItems: 7, uniqueItems: !0, items: { type: "string", enum: ["paint", "layout", "filter", "minzoom", "maxzoom", "metadata", "visibility"] } } } }, styleRefBody: { type: "object", additionalProperties: { $ref: "#/$defs/styleRefLayerOverride" } }, styleRefLayerOverride: { type: "object", additionalProperties: !0, properties: { paint: { type: "object", additionalProperties: !0 }, layout: { type: "object", additionalProperties: !0 }, minzoom: { type: "number" }, maxzoom: { type: "number" }, filter: !0, metadata: { type: "object", additionalProperties: !0 } } }, themeSpec: { type: "object", additionalProperties: !0, properties: { themeId: { type: "string", maxLength: 256 }, tokens: { type: "object", additionalProperties: { type: ["string", "number"] } } } }, mapSpec: { type: "object", required: ["version", "sources", "layers"], additionalProperties: !0, properties: { version: { const: 8 }, name: { type: "string", maxLength: 256 }, metadata: { type: "object", additionalProperties: !0 }, center: { type: "array", minItems: 2, maxItems: 2, items: { type: "number" } }, zoom: { type: "number" }, bearing: { type: "number" }, pitch: { type: "number" }, sources: { type: "object", additionalProperties: { type: "object", required: ["type"], additionalProperties: !0, properties: { type: { type: "string", maxLength: 128 } } } }, layers: { type: "array", items: { type: "object", required: ["id", "type"], additionalProperties: !0, properties: { id: { type: "string", minLength: 1, maxLength: 256 }, type: { type: "string", maxLength: 64 }, source: { type: "string", maxLength: 256 } } } }, sprite: { type: ["string", "array"], items: { type: "object", required: ["id", "url"], additionalProperties: !0, properties: { id: { type: "string", maxLength: 256 }, url: { type: "string", maxLength: 4096 } } } }, glyphs: { type: "string", maxLength: 4096 }, transition: { type: "object", additionalProperties: !0, properties: { duration: { type: "number" }, delay: { type: "number" } } } } }, initialView: { type: "object", additionalProperties: !0, properties: { bbox: { type: "array", minItems: 4, maxItems: 4, items: { type: "number" } }, center: { type: "array", minItems: 2, maxItems: 2, items: { type: "number" } }, zoom: { type: "number" }, pitch: { type: "number" }, bearing: { type: "number" }, crs: { type: "string", maxLength: 256 } } }, legendEntry: { type: "object", required: ["label"], additionalProperties: !0, properties: { label: { type: "string", maxLength: 512 }, color: { type: "string", maxLength: 128 }, minValue: { type: "number" }, maxValue: { type: "number" }, iconUrl: { type: "string", maxLength: 4096 } } }, popupBinding: { type: "object", required: ["sourceId"], additionalProperties: !0, properties: { sourceId: { type: "string", minLength: 1, maxLength: 256 }, fieldName: { type: "string", maxLength: 256 }, template: { type: "string", maxLength: 16384 }, title: { type: "string", maxLength: 512 } } }, labelBinding: { type: "object", required: ["sourceId", "fieldName"], additionalProperties: !0, properties: { sourceId: { type: "string", minLength: 1, maxLength: 256 }, fieldName: { type: "string", minLength: 1, maxLength: 256 }, placement: { type: "string", enum: ["point", "line", "polygon"] } } }, attribution: { type: "object", required: ["text"], additionalProperties: !0, properties: { text: { type: "string", minLength: 1, maxLength: 2048 }, url: { type: "string", maxLength: 4096 }, sourceIds: { type: "array", items: { type: "string", maxLength: 256 } }, required: { type: "boolean" } } }, widget: { type: "object", required: ["widgetId", "type"], additionalProperties: !0, properties: { widgetId: { type: "string", minLength: 1, maxLength: 256 }, type: { type: "string", minLength: 1, maxLength: 128 }, position: { type: "string", enum: ["top-left", "top-right", "bottom-left", "bottom-right"] }, label: { type: "string", maxLength: 512 }, visible: { type: "boolean" }, config: { type: "object", additionalProperties: !0 } } }, dependency: { type: "object", required: ["name"], additionalProperties: !0, properties: { name: { type: "string", minLength: 1, maxLength: 256 }, versionRange: { type: "string", maxLength: 128 }, kind: { type: "string", enum: ["renderer", "protocol", "sdk", "plugin", "font", "sprite", "basemap"] }, optional: { type: "boolean" } } }, provenance: { type: "object", additionalProperties: !0, properties: { generatedBy: { type: "string", maxLength: 256 }, generatorVersion: { type: "string", maxLength: 128 }, generatedAt: { type: "string", maxLength: 64 }, derivedFrom: { type: "array", items: { type: "string", maxLength: 256 } }, notes: { type: "string", maxLength: 4096 } } } } }, O = { type: "object", additionalProperties: !0, properties: { themeId: { type: "string", maxLength: 256 }, tokens: { type: "object", additionalProperties: { type: ["string", "number"] } } } }, v = { type: "object", required: ["version", "sources", "layers"], additionalProperties: !0, properties: { version: { const: 8 }, name: { type: "string", maxLength: 256 }, metadata: { type: "object", additionalProperties: !0 }, center: { type: "array", minItems: 2, maxItems: 2, items: { type: "number" } }, zoom: { type: "number" }, bearing: { type: "number" }, pitch: { type: "number" }, sources: { type: "object", additionalProperties: { type: "object", required: ["type"], additionalProperties: !0, properties: { type: { type: "string", maxLength: 128 } } } }, layers: { type: "array", items: { type: "object", required: ["id", "type"], additionalProperties: !0, properties: { id: { type: "string", minLength: 1, maxLength: 256 }, type: { type: "string", maxLength: 64 }, source: { type: "string", maxLength: 256 } } } }, sprite: { type: ["string", "array"], items: { type: "object", required: ["id", "url"], additionalProperties: !0, properties: { id: { type: "string", maxLength: 256 }, url: { type: "string", maxLength: 4096 } } } }, glyphs: { type: "string", maxLength: 4096 }, transition: { type: "object", additionalProperties: !0, properties: { duration: { type: "number" }, delay: { type: "number" } } } } }, F = { type: "object", additionalProperties: !0, properties: { bbox: { type: "array", minItems: 4, maxItems: 4, items: { type: "number" } }, center: { type: "array", minItems: 2, maxItems: 2, items: { type: "number" } }, zoom: { type: "number" }, pitch: { type: "number" }, bearing: { type: "number" }, crs: { type: "string", maxLength: 256 } } }, V = { type: "object", required: ["label"], additionalProperties: !0, properties: { label: { type: "string", maxLength: 512 }, color: { type: "string", maxLength: 128 }, minValue: { type: "number" }, maxValue: { type: "number" }, iconUrl: { type: "string", maxLength: 4096 } } }, R = { type: "object", required: ["sourceId"], additionalProperties: !0, properties: { sourceId: { type: "string", minLength: 1, maxLength: 256 }, fieldName: { type: "string", maxLength: 256 }, template: { type: "string", maxLength: 16384 }, title: { type: "string", maxLength: 512 } } }, j = { type: "object", required: ["sourceId", "fieldName"], additionalProperties: !0, properties: { sourceId: { type: "string", minLength: 1, maxLength: 256 }, fieldName: { type: "string", minLength: 1, maxLength: 256 }, placement: { type: "string", enum: ["point", "line", "polygon"] } } }, _ = { type: "object", required: ["text"], additionalProperties: !0, properties: { text: { type: "string", minLength: 1, maxLength: 2048 }, url: { type: "string", maxLength: 4096 }, sourceIds: { type: "array", items: { type: "string", maxLength: 256 } }, required: { type: "boolean" } } }, A = { type: "object", required: ["widgetId", "type"], additionalProperties: !0, properties: { widgetId: { type: "string", minLength: 1, maxLength: 256 }, type: { type: "string", minLength: 1, maxLength: 128 }, position: { type: "string", enum: ["top-left", "top-right", "bottom-left", "bottom-right"] }, label: { type: "string", maxLength: 512 }, visible: { type: "boolean" }, config: { type: "object", additionalProperties: !0 } } }, B = { type: "object", required: ["name"], additionalProperties: !0, properties: { name: { type: "string", minLength: 1, maxLength: 256 }, versionRange: { type: "string", maxLength: 128 }, kind: { type: "string", enum: ["renderer", "protocol", "sdk", "plugin", "font", "sprite", "basemap"] }, optional: { type: "boolean" } } }, U = { type: "object", additionalProperties: !0, properties: { generatedBy: { type: "string", maxLength: 256 }, generatorVersion: { type: "string", maxLength: 128 }, generatedAt: { type: "string", maxLength: 64 }, derivedFrom: { type: "array", items: { type: "string", maxLength: 256 } }, notes: { type: "string", maxLength: 4096 } } }, l = T, N = { type: "object", required: ["sourceId", "protocol", "locator"], additionalProperties: !0, properties: { sourceId: { type: "string", minLength: 1, maxLength: 256 }, protocol: { type: "string", enum: ["geoservices_feature_service", "geoservices_map_service", "ogc_features", "ogc_maps", "ogc_tiles", "wfs", "wms", "wmts", "odata", "vector_tile", "raster_tile", "pmtiles", "workspace_artifact"] }, locator: { $ref: "#/$defs/locator" }, filter: { type: "string", maxLength: 8192 }, attribution: { type: "string", maxLength: 1024 }, metadata: { type: "object", additionalProperties: { type: "string", maxLength: 4096 } } } }, q = { type: "object", additionalProperties: !0, properties: { url: { type: "string", maxLength: 4096 }, serviceId: { type: "string", maxLength: 256 }, layerId: { type: ["integer", "string"] }, collectionId: { type: ["string", "integer"] }, typeName: { type: "string", maxLength: 256 }, entitySet: { type: "string", maxLength: 256 } } };
|
|
33
|
+
function L(m, { instancePath: i = "", parentData: b, parentDataProperty: f, rootData: h = m, dynamicAnchors: w = {} } = {}) { let e = null, s = 0; const u = L.evaluated; if (u.dynamicProps && (u.props = void 0), u.dynamicItems && (u.items = void 0), m && typeof m == "object" && !Array.isArray(m)) {
|
|
34
|
+
for (const n of N.required)
|
|
35
|
+
if (m[n] === void 0) {
|
|
36
|
+
const t = { instancePath: i, schemaPath: "#/required", keyword: "required", params: { missingProperty: n }, message: "must have required property '" + n + "'" };
|
|
37
|
+
e === null ? e = [t] : e.push(t), s++;
|
|
38
38
|
}
|
|
39
39
|
if (m.sourceId !== void 0) {
|
|
40
|
-
let
|
|
41
|
-
if (typeof
|
|
42
|
-
if (l(
|
|
40
|
+
let n = m.sourceId;
|
|
41
|
+
if (typeof n == "string") {
|
|
42
|
+
if (l(n) > 256) {
|
|
43
43
|
const t = { instancePath: i + "/sourceId", schemaPath: "#/properties/sourceId/maxLength", keyword: "maxLength", params: { limit: 256 }, message: "must NOT have more than 256 characters" };
|
|
44
|
-
e === null ? e = [t] : e.push(t),
|
|
44
|
+
e === null ? e = [t] : e.push(t), s++;
|
|
45
45
|
}
|
|
46
|
-
if (l(
|
|
46
|
+
if (l(n) < 1) {
|
|
47
47
|
const t = { instancePath: i + "/sourceId", schemaPath: "#/properties/sourceId/minLength", keyword: "minLength", params: { limit: 1 }, message: "must NOT have fewer than 1 characters" };
|
|
48
|
-
e === null ? e = [t] : e.push(t),
|
|
48
|
+
e === null ? e = [t] : e.push(t), s++;
|
|
49
49
|
}
|
|
50
50
|
}
|
|
51
51
|
else {
|
|
52
52
|
const t = { instancePath: i + "/sourceId", schemaPath: "#/properties/sourceId/type", keyword: "type", params: { type: "string" }, message: "must be string" };
|
|
53
|
-
e === null ? e = [t] : e.push(t),
|
|
53
|
+
e === null ? e = [t] : e.push(t), s++;
|
|
54
54
|
}
|
|
55
55
|
}
|
|
56
56
|
if (m.protocol !== void 0) {
|
|
57
|
-
let
|
|
58
|
-
if (typeof
|
|
57
|
+
let n = m.protocol;
|
|
58
|
+
if (typeof n != "string") {
|
|
59
59
|
const t = { instancePath: i + "/protocol", schemaPath: "#/properties/protocol/type", keyword: "type", params: { type: "string" }, message: "must be string" };
|
|
60
|
-
e === null ? e = [t] : e.push(t),
|
|
60
|
+
e === null ? e = [t] : e.push(t), s++;
|
|
61
61
|
}
|
|
62
|
-
if (!(
|
|
63
|
-
const t = { instancePath: i + "/protocol", schemaPath: "#/properties/protocol/enum", keyword: "enum", params: { allowedValues:
|
|
64
|
-
e === null ? e = [t] : e.push(t),
|
|
62
|
+
if (!(n === "geoservices_feature_service" || n === "geoservices_map_service" || n === "ogc_features" || n === "ogc_maps" || n === "ogc_tiles" || n === "wfs" || n === "wms" || n === "wmts" || n === "odata" || n === "vector_tile" || n === "raster_tile" || n === "pmtiles" || n === "workspace_artifact")) {
|
|
63
|
+
const t = { instancePath: i + "/protocol", schemaPath: "#/properties/protocol/enum", keyword: "enum", params: { allowedValues: N.properties.protocol.enum }, message: "must be equal to one of the allowed values" };
|
|
64
|
+
e === null ? e = [t] : e.push(t), s++;
|
|
65
65
|
}
|
|
66
66
|
}
|
|
67
67
|
if (m.locator !== void 0) {
|
|
68
|
-
let
|
|
69
|
-
if (
|
|
70
|
-
if (
|
|
71
|
-
let t =
|
|
68
|
+
let n = m.locator;
|
|
69
|
+
if (n && typeof n == "object" && !Array.isArray(n)) {
|
|
70
|
+
if (n.url !== void 0) {
|
|
71
|
+
let t = n.url;
|
|
72
72
|
if (typeof t == "string") {
|
|
73
73
|
if (l(t) > 4096) {
|
|
74
74
|
const r = { instancePath: i + "/locator/url", schemaPath: "#/$defs/locator/properties/url/maxLength", keyword: "maxLength", params: { limit: 4096 }, message: "must NOT have more than 4096 characters" };
|
|
75
|
-
e === null ? e = [r] : e.push(r),
|
|
75
|
+
e === null ? e = [r] : e.push(r), s++;
|
|
76
76
|
}
|
|
77
77
|
}
|
|
78
78
|
else {
|
|
79
79
|
const r = { instancePath: i + "/locator/url", schemaPath: "#/$defs/locator/properties/url/type", keyword: "type", params: { type: "string" }, message: "must be string" };
|
|
80
|
-
e === null ? e = [r] : e.push(r),
|
|
80
|
+
e === null ? e = [r] : e.push(r), s++;
|
|
81
81
|
}
|
|
82
82
|
}
|
|
83
|
-
if (
|
|
84
|
-
let t =
|
|
83
|
+
if (n.serviceId !== void 0) {
|
|
84
|
+
let t = n.serviceId;
|
|
85
85
|
if (typeof t == "string") {
|
|
86
86
|
if (l(t) > 256) {
|
|
87
87
|
const r = { instancePath: i + "/locator/serviceId", schemaPath: "#/$defs/locator/properties/serviceId/maxLength", keyword: "maxLength", params: { limit: 256 }, message: "must NOT have more than 256 characters" };
|
|
88
|
-
e === null ? e = [r] : e.push(r),
|
|
88
|
+
e === null ? e = [r] : e.push(r), s++;
|
|
89
89
|
}
|
|
90
90
|
}
|
|
91
91
|
else {
|
|
92
92
|
const r = { instancePath: i + "/locator/serviceId", schemaPath: "#/$defs/locator/properties/serviceId/type", keyword: "type", params: { type: "string" }, message: "must be string" };
|
|
93
|
-
e === null ? e = [r] : e.push(r),
|
|
93
|
+
e === null ? e = [r] : e.push(r), s++;
|
|
94
94
|
}
|
|
95
95
|
}
|
|
96
|
-
if (
|
|
97
|
-
let t =
|
|
96
|
+
if (n.layerId !== void 0) {
|
|
97
|
+
let t = n.layerId;
|
|
98
98
|
if (!(typeof t == "number" && !(t % 1) && !isNaN(t)) && typeof t != "string") {
|
|
99
|
-
const r = { instancePath: i + "/locator/layerId", schemaPath: "#/$defs/locator/properties/layerId/type", keyword: "type", params: { type:
|
|
100
|
-
e === null ? e = [r] : e.push(r),
|
|
99
|
+
const r = { instancePath: i + "/locator/layerId", schemaPath: "#/$defs/locator/properties/layerId/type", keyword: "type", params: { type: q.properties.layerId.type }, message: "must be integer,string" };
|
|
100
|
+
e === null ? e = [r] : e.push(r), s++;
|
|
101
101
|
}
|
|
102
102
|
}
|
|
103
|
-
if (
|
|
104
|
-
let t =
|
|
103
|
+
if (n.collectionId !== void 0) {
|
|
104
|
+
let t = n.collectionId;
|
|
105
105
|
if (typeof t != "string" && !(typeof t == "number" && !(t % 1) && !isNaN(t))) {
|
|
106
|
-
const r = { instancePath: i + "/locator/collectionId", schemaPath: "#/$defs/locator/properties/collectionId/type", keyword: "type", params: { type:
|
|
107
|
-
e === null ? e = [r] : e.push(r),
|
|
106
|
+
const r = { instancePath: i + "/locator/collectionId", schemaPath: "#/$defs/locator/properties/collectionId/type", keyword: "type", params: { type: q.properties.collectionId.type }, message: "must be string,integer" };
|
|
107
|
+
e === null ? e = [r] : e.push(r), s++;
|
|
108
108
|
}
|
|
109
109
|
}
|
|
110
|
-
if (
|
|
111
|
-
let t =
|
|
110
|
+
if (n.typeName !== void 0) {
|
|
111
|
+
let t = n.typeName;
|
|
112
112
|
if (typeof t == "string") {
|
|
113
113
|
if (l(t) > 256) {
|
|
114
114
|
const r = { instancePath: i + "/locator/typeName", schemaPath: "#/$defs/locator/properties/typeName/maxLength", keyword: "maxLength", params: { limit: 256 }, message: "must NOT have more than 256 characters" };
|
|
115
|
-
e === null ? e = [r] : e.push(r),
|
|
115
|
+
e === null ? e = [r] : e.push(r), s++;
|
|
116
116
|
}
|
|
117
117
|
}
|
|
118
118
|
else {
|
|
119
119
|
const r = { instancePath: i + "/locator/typeName", schemaPath: "#/$defs/locator/properties/typeName/type", keyword: "type", params: { type: "string" }, message: "must be string" };
|
|
120
|
-
e === null ? e = [r] : e.push(r),
|
|
120
|
+
e === null ? e = [r] : e.push(r), s++;
|
|
121
121
|
}
|
|
122
122
|
}
|
|
123
|
-
if (
|
|
124
|
-
let t =
|
|
123
|
+
if (n.entitySet !== void 0) {
|
|
124
|
+
let t = n.entitySet;
|
|
125
125
|
if (typeof t == "string") {
|
|
126
126
|
if (l(t) > 256) {
|
|
127
127
|
const r = { instancePath: i + "/locator/entitySet", schemaPath: "#/$defs/locator/properties/entitySet/maxLength", keyword: "maxLength", params: { limit: 256 }, message: "must NOT have more than 256 characters" };
|
|
128
|
-
e === null ? e = [r] : e.push(r),
|
|
128
|
+
e === null ? e = [r] : e.push(r), s++;
|
|
129
129
|
}
|
|
130
130
|
}
|
|
131
131
|
else {
|
|
132
132
|
const r = { instancePath: i + "/locator/entitySet", schemaPath: "#/$defs/locator/properties/entitySet/type", keyword: "type", params: { type: "string" }, message: "must be string" };
|
|
133
|
-
e === null ? e = [r] : e.push(r),
|
|
133
|
+
e === null ? e = [r] : e.push(r), s++;
|
|
134
134
|
}
|
|
135
135
|
}
|
|
136
136
|
}
|
|
137
137
|
else {
|
|
138
138
|
const t = { instancePath: i + "/locator", schemaPath: "#/$defs/locator/type", keyword: "type", params: { type: "object" }, message: "must be object" };
|
|
139
|
-
e === null ? e = [t] : e.push(t),
|
|
139
|
+
e === null ? e = [t] : e.push(t), s++;
|
|
140
140
|
}
|
|
141
141
|
}
|
|
142
142
|
if (m.filter !== void 0) {
|
|
143
|
-
let
|
|
144
|
-
if (typeof
|
|
145
|
-
if (l(
|
|
143
|
+
let n = m.filter;
|
|
144
|
+
if (typeof n == "string") {
|
|
145
|
+
if (l(n) > 8192) {
|
|
146
146
|
const t = { instancePath: i + "/filter", schemaPath: "#/properties/filter/maxLength", keyword: "maxLength", params: { limit: 8192 }, message: "must NOT have more than 8192 characters" };
|
|
147
|
-
e === null ? e = [t] : e.push(t),
|
|
147
|
+
e === null ? e = [t] : e.push(t), s++;
|
|
148
148
|
}
|
|
149
149
|
}
|
|
150
150
|
else {
|
|
151
151
|
const t = { instancePath: i + "/filter", schemaPath: "#/properties/filter/type", keyword: "type", params: { type: "string" }, message: "must be string" };
|
|
152
|
-
e === null ? e = [t] : e.push(t),
|
|
152
|
+
e === null ? e = [t] : e.push(t), s++;
|
|
153
153
|
}
|
|
154
154
|
}
|
|
155
155
|
if (m.attribution !== void 0) {
|
|
156
|
-
let
|
|
157
|
-
if (typeof
|
|
158
|
-
if (l(
|
|
156
|
+
let n = m.attribution;
|
|
157
|
+
if (typeof n == "string") {
|
|
158
|
+
if (l(n) > 1024) {
|
|
159
159
|
const t = { instancePath: i + "/attribution", schemaPath: "#/properties/attribution/maxLength", keyword: "maxLength", params: { limit: 1024 }, message: "must NOT have more than 1024 characters" };
|
|
160
|
-
e === null ? e = [t] : e.push(t),
|
|
160
|
+
e === null ? e = [t] : e.push(t), s++;
|
|
161
161
|
}
|
|
162
162
|
}
|
|
163
163
|
else {
|
|
164
164
|
const t = { instancePath: i + "/attribution", schemaPath: "#/properties/attribution/type", keyword: "type", params: { type: "string" }, message: "must be string" };
|
|
165
|
-
e === null ? e = [t] : e.push(t),
|
|
165
|
+
e === null ? e = [t] : e.push(t), s++;
|
|
166
166
|
}
|
|
167
167
|
}
|
|
168
168
|
if (m.metadata !== void 0) {
|
|
169
|
-
let
|
|
170
|
-
if (
|
|
171
|
-
for (const t in
|
|
172
|
-
let r =
|
|
169
|
+
let n = m.metadata;
|
|
170
|
+
if (n && typeof n == "object" && !Array.isArray(n))
|
|
171
|
+
for (const t in n) {
|
|
172
|
+
let r = n[t];
|
|
173
173
|
if (typeof r == "string") {
|
|
174
174
|
if (l(r) > 4096) {
|
|
175
175
|
const o = { instancePath: i + "/metadata/" + t.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "#/properties/metadata/additionalProperties/maxLength", keyword: "maxLength", params: { limit: 4096 }, message: "must NOT have more than 4096 characters" };
|
|
176
|
-
e === null ? e = [o] : e.push(o),
|
|
176
|
+
e === null ? e = [o] : e.push(o), s++;
|
|
177
177
|
}
|
|
178
178
|
}
|
|
179
179
|
else {
|
|
180
180
|
const o = { instancePath: i + "/metadata/" + t.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "#/properties/metadata/additionalProperties/type", keyword: "type", params: { type: "string" }, message: "must be string" };
|
|
181
|
-
e === null ? e = [o] : e.push(o),
|
|
181
|
+
e === null ? e = [o] : e.push(o), s++;
|
|
182
182
|
}
|
|
183
183
|
}
|
|
184
184
|
else {
|
|
185
185
|
const t = { instancePath: i + "/metadata", schemaPath: "#/properties/metadata/type", keyword: "type", params: { type: "object" }, message: "must be object" };
|
|
186
|
-
e === null ? e = [t] : e.push(t),
|
|
186
|
+
e === null ? e = [t] : e.push(t), s++;
|
|
187
187
|
}
|
|
188
188
|
}
|
|
189
189
|
}
|
|
190
190
|
else {
|
|
191
|
-
const
|
|
192
|
-
e === null ? e = [
|
|
193
|
-
} return
|
|
194
|
-
|
|
195
|
-
const
|
|
196
|
-
function
|
|
197
|
-
for (const
|
|
198
|
-
let t = m[
|
|
191
|
+
const n = { instancePath: i, schemaPath: "#/type", keyword: "type", params: { type: "object" }, message: "must be object" };
|
|
192
|
+
e === null ? e = [n] : e.push(n), s++;
|
|
193
|
+
} return L.errors = e, s === 0; }
|
|
194
|
+
L.evaluated = { props: !0, dynamicProps: !1, dynamicItems: !1 };
|
|
195
|
+
const z = { type: "object", required: ["styleId"], additionalProperties: !0, properties: { styleId: { type: "string", minLength: 1, maxLength: 256 }, label: { type: "string", maxLength: 256 }, presetId: { type: "string", maxLength: 256 }, body: { $ref: "#/$defs/styleRefBody" }, layerBindings: { type: "array", minItems: 1, maxItems: 256, items: { $ref: "#/$defs/styleRefLayerBinding" } } } }, S = { type: "object", required: ["styleLayerId", "targetLayerId", "layerType"], additionalProperties: !0, properties: { styleLayerId: { type: "string", minLength: 1, maxLength: 256 }, targetLayerId: { type: "string", minLength: 1, maxLength: 256 }, layerType: { type: "string", minLength: 1, maxLength: 256 }, properties: { type: "array", minItems: 1, maxItems: 7, uniqueItems: !0, items: { type: "string", enum: ["paint", "layout", "filter", "minzoom", "maxzoom", "metadata", "visibility"] } } } }, C = { type: "object", additionalProperties: { $ref: "#/$defs/styleRefLayerOverride" } }, G = { type: "object", additionalProperties: !0, properties: { paint: { type: "object", additionalProperties: !0 }, layout: { type: "object", additionalProperties: !0 }, minzoom: { type: "number" }, maxzoom: { type: "number" }, filter: !0, metadata: { type: "object", additionalProperties: !0 } } };
|
|
196
|
+
function x(m, { instancePath: i = "", parentData: b, parentDataProperty: f, rootData: h = m, dynamicAnchors: w = {} } = {}) { let e = null, s = 0; const u = x.evaluated; if (u.dynamicProps && (u.props = void 0), u.dynamicItems && (u.items = void 0), m && typeof m == "object" && !Array.isArray(m))
|
|
197
|
+
for (const n in m) {
|
|
198
|
+
let t = m[n];
|
|
199
199
|
if (t && typeof t == "object" && !Array.isArray(t)) {
|
|
200
200
|
if (t.paint !== void 0) {
|
|
201
201
|
let r = t.paint;
|
|
202
202
|
if (!(r && typeof r == "object" && !Array.isArray(r))) {
|
|
203
|
-
const o = { instancePath: i + "/" +
|
|
204
|
-
e === null ? e = [o] : e.push(o),
|
|
203
|
+
const o = { instancePath: i + "/" + n.replace(/~/g, "~0").replace(/\//g, "~1") + "/paint", schemaPath: "#/$defs/styleRefLayerOverride/properties/paint/type", keyword: "type", params: { type: "object" }, message: "must be object" };
|
|
204
|
+
e === null ? e = [o] : e.push(o), s++;
|
|
205
205
|
}
|
|
206
206
|
}
|
|
207
207
|
if (t.layout !== void 0) {
|
|
208
208
|
let r = t.layout;
|
|
209
209
|
if (!(r && typeof r == "object" && !Array.isArray(r))) {
|
|
210
|
-
const o = { instancePath: i + "/" +
|
|
211
|
-
e === null ? e = [o] : e.push(o),
|
|
210
|
+
const o = { instancePath: i + "/" + n.replace(/~/g, "~0").replace(/\//g, "~1") + "/layout", schemaPath: "#/$defs/styleRefLayerOverride/properties/layout/type", keyword: "type", params: { type: "object" }, message: "must be object" };
|
|
211
|
+
e === null ? e = [o] : e.push(o), s++;
|
|
212
212
|
}
|
|
213
213
|
}
|
|
214
214
|
if (t.minzoom !== void 0 && typeof t.minzoom != "number") {
|
|
215
|
-
const r = { instancePath: i + "/" +
|
|
216
|
-
e === null ? e = [r] : e.push(r),
|
|
215
|
+
const r = { instancePath: i + "/" + n.replace(/~/g, "~0").replace(/\//g, "~1") + "/minzoom", schemaPath: "#/$defs/styleRefLayerOverride/properties/minzoom/type", keyword: "type", params: { type: "number" }, message: "must be number" };
|
|
216
|
+
e === null ? e = [r] : e.push(r), s++;
|
|
217
217
|
}
|
|
218
218
|
if (t.maxzoom !== void 0 && typeof t.maxzoom != "number") {
|
|
219
|
-
const r = { instancePath: i + "/" +
|
|
220
|
-
e === null ? e = [r] : e.push(r),
|
|
219
|
+
const r = { instancePath: i + "/" + n.replace(/~/g, "~0").replace(/\//g, "~1") + "/maxzoom", schemaPath: "#/$defs/styleRefLayerOverride/properties/maxzoom/type", keyword: "type", params: { type: "number" }, message: "must be number" };
|
|
220
|
+
e === null ? e = [r] : e.push(r), s++;
|
|
221
221
|
}
|
|
222
222
|
if (t.metadata !== void 0) {
|
|
223
223
|
let r = t.metadata;
|
|
224
224
|
if (!(r && typeof r == "object" && !Array.isArray(r))) {
|
|
225
|
-
const o = { instancePath: i + "/" +
|
|
226
|
-
e === null ? e = [o] : e.push(o),
|
|
225
|
+
const o = { instancePath: i + "/" + n.replace(/~/g, "~0").replace(/\//g, "~1") + "/metadata", schemaPath: "#/$defs/styleRefLayerOverride/properties/metadata/type", keyword: "type", params: { type: "object" }, message: "must be object" };
|
|
226
|
+
e === null ? e = [o] : e.push(o), s++;
|
|
227
227
|
}
|
|
228
228
|
}
|
|
229
229
|
}
|
|
230
230
|
else {
|
|
231
|
-
const r = { instancePath: i + "/" +
|
|
232
|
-
e === null ? e = [r] : e.push(r),
|
|
231
|
+
const r = { instancePath: i + "/" + n.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "#/$defs/styleRefLayerOverride/type", keyword: "type", params: { type: "object" }, message: "must be object" };
|
|
232
|
+
e === null ? e = [r] : e.push(r), s++;
|
|
233
233
|
}
|
|
234
234
|
}
|
|
235
235
|
else {
|
|
236
|
-
const
|
|
237
|
-
e === null ? e = [
|
|
238
|
-
} return
|
|
239
|
-
|
|
240
|
-
function
|
|
241
|
-
for (const
|
|
242
|
-
if (m[
|
|
243
|
-
const t = { instancePath: i, schemaPath: "#/required", keyword: "required", params: { missingProperty:
|
|
244
|
-
e === null ? e = [t] : e.push(t),
|
|
236
|
+
const n = { instancePath: i, schemaPath: "#/type", keyword: "type", params: { type: "object" }, message: "must be object" };
|
|
237
|
+
e === null ? e = [n] : e.push(n), s++;
|
|
238
|
+
} return x.errors = e, s === 0; }
|
|
239
|
+
x.evaluated = { props: !0, dynamicProps: !1, dynamicItems: !1 };
|
|
240
|
+
function k(m, { instancePath: i = "", parentData: b, parentDataProperty: f, rootData: h = m, dynamicAnchors: w = {} } = {}) { let e = null, s = 0; const u = k.evaluated; if (u.dynamicProps && (u.props = void 0), u.dynamicItems && (u.items = void 0), m && typeof m == "object" && !Array.isArray(m)) {
|
|
241
|
+
for (const n of z.required)
|
|
242
|
+
if (m[n] === void 0) {
|
|
243
|
+
const t = { instancePath: i, schemaPath: "#/required", keyword: "required", params: { missingProperty: n }, message: "must have required property '" + n + "'" };
|
|
244
|
+
e === null ? e = [t] : e.push(t), s++;
|
|
245
245
|
}
|
|
246
246
|
if (m.styleId !== void 0) {
|
|
247
|
-
let
|
|
248
|
-
if (typeof
|
|
249
|
-
if (l(
|
|
247
|
+
let n = m.styleId;
|
|
248
|
+
if (typeof n == "string") {
|
|
249
|
+
if (l(n) > 256) {
|
|
250
250
|
const t = { instancePath: i + "/styleId", schemaPath: "#/properties/styleId/maxLength", keyword: "maxLength", params: { limit: 256 }, message: "must NOT have more than 256 characters" };
|
|
251
|
-
e === null ? e = [t] : e.push(t),
|
|
251
|
+
e === null ? e = [t] : e.push(t), s++;
|
|
252
252
|
}
|
|
253
|
-
if (l(
|
|
253
|
+
if (l(n) < 1) {
|
|
254
254
|
const t = { instancePath: i + "/styleId", schemaPath: "#/properties/styleId/minLength", keyword: "minLength", params: { limit: 1 }, message: "must NOT have fewer than 1 characters" };
|
|
255
|
-
e === null ? e = [t] : e.push(t),
|
|
255
|
+
e === null ? e = [t] : e.push(t), s++;
|
|
256
256
|
}
|
|
257
257
|
}
|
|
258
258
|
else {
|
|
259
259
|
const t = { instancePath: i + "/styleId", schemaPath: "#/properties/styleId/type", keyword: "type", params: { type: "string" }, message: "must be string" };
|
|
260
|
-
e === null ? e = [t] : e.push(t),
|
|
260
|
+
e === null ? e = [t] : e.push(t), s++;
|
|
261
261
|
}
|
|
262
262
|
}
|
|
263
263
|
if (m.label !== void 0) {
|
|
264
|
-
let
|
|
265
|
-
if (typeof
|
|
266
|
-
if (l(
|
|
264
|
+
let n = m.label;
|
|
265
|
+
if (typeof n == "string") {
|
|
266
|
+
if (l(n) > 256) {
|
|
267
267
|
const t = { instancePath: i + "/label", schemaPath: "#/properties/label/maxLength", keyword: "maxLength", params: { limit: 256 }, message: "must NOT have more than 256 characters" };
|
|
268
|
-
e === null ? e = [t] : e.push(t),
|
|
268
|
+
e === null ? e = [t] : e.push(t), s++;
|
|
269
269
|
}
|
|
270
270
|
}
|
|
271
271
|
else {
|
|
272
272
|
const t = { instancePath: i + "/label", schemaPath: "#/properties/label/type", keyword: "type", params: { type: "string" }, message: "must be string" };
|
|
273
|
-
e === null ? e = [t] : e.push(t),
|
|
273
|
+
e === null ? e = [t] : e.push(t), s++;
|
|
274
274
|
}
|
|
275
275
|
}
|
|
276
276
|
if (m.presetId !== void 0) {
|
|
277
|
-
let
|
|
278
|
-
if (typeof
|
|
279
|
-
if (l(
|
|
277
|
+
let n = m.presetId;
|
|
278
|
+
if (typeof n == "string") {
|
|
279
|
+
if (l(n) > 256) {
|
|
280
280
|
const t = { instancePath: i + "/presetId", schemaPath: "#/properties/presetId/maxLength", keyword: "maxLength", params: { limit: 256 }, message: "must NOT have more than 256 characters" };
|
|
281
|
-
e === null ? e = [t] : e.push(t),
|
|
281
|
+
e === null ? e = [t] : e.push(t), s++;
|
|
282
282
|
}
|
|
283
283
|
}
|
|
284
284
|
else {
|
|
285
285
|
const t = { instancePath: i + "/presetId", schemaPath: "#/properties/presetId/type", keyword: "type", params: { type: "string" }, message: "must be string" };
|
|
286
|
-
e === null ? e = [t] : e.push(t),
|
|
286
|
+
e === null ? e = [t] : e.push(t), s++;
|
|
287
|
+
}
|
|
288
|
+
}
|
|
289
|
+
if (m.body !== void 0 && (x(m.body, { instancePath: i + "/body", parentData: m, parentDataProperty: "body", rootData: h, dynamicAnchors: w }) || (e = e === null ? x.errors : e.concat(x.errors), s = e.length)), m.layerBindings !== void 0) {
|
|
290
|
+
let n = m.layerBindings;
|
|
291
|
+
if (Array.isArray(n)) {
|
|
292
|
+
if (n.length > 256) {
|
|
293
|
+
const r = { instancePath: i + "/layerBindings", schemaPath: "#/properties/layerBindings/maxItems", keyword: "maxItems", params: { limit: 256 }, message: "must NOT have more than 256 items" };
|
|
294
|
+
e === null ? e = [r] : e.push(r), s++;
|
|
295
|
+
}
|
|
296
|
+
if (n.length < 1) {
|
|
297
|
+
const r = { instancePath: i + "/layerBindings", schemaPath: "#/properties/layerBindings/minItems", keyword: "minItems", params: { limit: 1 }, message: "must NOT have fewer than 1 items" };
|
|
298
|
+
e === null ? e = [r] : e.push(r), s++;
|
|
299
|
+
}
|
|
300
|
+
const t = n.length;
|
|
301
|
+
for (let r = 0; r < t; r++) {
|
|
302
|
+
let o = n[r];
|
|
303
|
+
if (o && typeof o == "object" && !Array.isArray(o)) {
|
|
304
|
+
for (const p of S.required)
|
|
305
|
+
if (o[p] === void 0) {
|
|
306
|
+
const a = { instancePath: i + "/layerBindings/" + r, schemaPath: "#/$defs/styleRefLayerBinding/required", keyword: "required", params: { missingProperty: p }, message: "must have required property '" + p + "'" };
|
|
307
|
+
e === null ? e = [a] : e.push(a), s++;
|
|
308
|
+
}
|
|
309
|
+
if (o.styleLayerId !== void 0) {
|
|
310
|
+
let p = o.styleLayerId;
|
|
311
|
+
if (typeof p == "string") {
|
|
312
|
+
if (l(p) > 256) {
|
|
313
|
+
const a = { instancePath: i + "/layerBindings/" + r + "/styleLayerId", schemaPath: "#/$defs/styleRefLayerBinding/properties/styleLayerId/maxLength", keyword: "maxLength", params: { limit: 256 }, message: "must NOT have more than 256 characters" };
|
|
314
|
+
e === null ? e = [a] : e.push(a), s++;
|
|
315
|
+
}
|
|
316
|
+
if (l(p) < 1) {
|
|
317
|
+
const a = { instancePath: i + "/layerBindings/" + r + "/styleLayerId", schemaPath: "#/$defs/styleRefLayerBinding/properties/styleLayerId/minLength", keyword: "minLength", params: { limit: 1 }, message: "must NOT have fewer than 1 characters" };
|
|
318
|
+
e === null ? e = [a] : e.push(a), s++;
|
|
319
|
+
}
|
|
320
|
+
}
|
|
321
|
+
else {
|
|
322
|
+
const a = { instancePath: i + "/layerBindings/" + r + "/styleLayerId", schemaPath: "#/$defs/styleRefLayerBinding/properties/styleLayerId/type", keyword: "type", params: { type: "string" }, message: "must be string" };
|
|
323
|
+
e === null ? e = [a] : e.push(a), s++;
|
|
324
|
+
}
|
|
325
|
+
}
|
|
326
|
+
if (o.targetLayerId !== void 0) {
|
|
327
|
+
let p = o.targetLayerId;
|
|
328
|
+
if (typeof p == "string") {
|
|
329
|
+
if (l(p) > 256) {
|
|
330
|
+
const a = { instancePath: i + "/layerBindings/" + r + "/targetLayerId", schemaPath: "#/$defs/styleRefLayerBinding/properties/targetLayerId/maxLength", keyword: "maxLength", params: { limit: 256 }, message: "must NOT have more than 256 characters" };
|
|
331
|
+
e === null ? e = [a] : e.push(a), s++;
|
|
332
|
+
}
|
|
333
|
+
if (l(p) < 1) {
|
|
334
|
+
const a = { instancePath: i + "/layerBindings/" + r + "/targetLayerId", schemaPath: "#/$defs/styleRefLayerBinding/properties/targetLayerId/minLength", keyword: "minLength", params: { limit: 1 }, message: "must NOT have fewer than 1 characters" };
|
|
335
|
+
e === null ? e = [a] : e.push(a), s++;
|
|
336
|
+
}
|
|
337
|
+
}
|
|
338
|
+
else {
|
|
339
|
+
const a = { instancePath: i + "/layerBindings/" + r + "/targetLayerId", schemaPath: "#/$defs/styleRefLayerBinding/properties/targetLayerId/type", keyword: "type", params: { type: "string" }, message: "must be string" };
|
|
340
|
+
e === null ? e = [a] : e.push(a), s++;
|
|
341
|
+
}
|
|
342
|
+
}
|
|
343
|
+
if (o.layerType !== void 0) {
|
|
344
|
+
let p = o.layerType;
|
|
345
|
+
if (typeof p == "string") {
|
|
346
|
+
if (l(p) > 256) {
|
|
347
|
+
const a = { instancePath: i + "/layerBindings/" + r + "/layerType", schemaPath: "#/$defs/styleRefLayerBinding/properties/layerType/maxLength", keyword: "maxLength", params: { limit: 256 }, message: "must NOT have more than 256 characters" };
|
|
348
|
+
e === null ? e = [a] : e.push(a), s++;
|
|
349
|
+
}
|
|
350
|
+
if (l(p) < 1) {
|
|
351
|
+
const a = { instancePath: i + "/layerBindings/" + r + "/layerType", schemaPath: "#/$defs/styleRefLayerBinding/properties/layerType/minLength", keyword: "minLength", params: { limit: 1 }, message: "must NOT have fewer than 1 characters" };
|
|
352
|
+
e === null ? e = [a] : e.push(a), s++;
|
|
353
|
+
}
|
|
354
|
+
}
|
|
355
|
+
else {
|
|
356
|
+
const a = { instancePath: i + "/layerBindings/" + r + "/layerType", schemaPath: "#/$defs/styleRefLayerBinding/properties/layerType/type", keyword: "type", params: { type: "string" }, message: "must be string" };
|
|
357
|
+
e === null ? e = [a] : e.push(a), s++;
|
|
358
|
+
}
|
|
359
|
+
}
|
|
360
|
+
if (o.properties !== void 0) {
|
|
361
|
+
let p = o.properties;
|
|
362
|
+
if (Array.isArray(p)) {
|
|
363
|
+
if (p.length > 7) {
|
|
364
|
+
const y = { instancePath: i + "/layerBindings/" + r + "/properties", schemaPath: "#/$defs/styleRefLayerBinding/properties/properties/maxItems", keyword: "maxItems", params: { limit: 7 }, message: "must NOT have more than 7 items" };
|
|
365
|
+
e === null ? e = [y] : e.push(y), s++;
|
|
366
|
+
}
|
|
367
|
+
if (p.length < 1) {
|
|
368
|
+
const y = { instancePath: i + "/layerBindings/" + r + "/properties", schemaPath: "#/$defs/styleRefLayerBinding/properties/properties/minItems", keyword: "minItems", params: { limit: 1 }, message: "must NOT have fewer than 1 items" };
|
|
369
|
+
e === null ? e = [y] : e.push(y), s++;
|
|
370
|
+
}
|
|
371
|
+
const a = p.length;
|
|
372
|
+
for (let y = 0; y < a; y++) {
|
|
373
|
+
let c = p[y];
|
|
374
|
+
if (typeof c != "string") {
|
|
375
|
+
const g = { instancePath: i + "/layerBindings/" + r + "/properties/" + y, schemaPath: "#/$defs/styleRefLayerBinding/properties/properties/items/type", keyword: "type", params: { type: "string" }, message: "must be string" };
|
|
376
|
+
e === null ? e = [g] : e.push(g), s++;
|
|
377
|
+
}
|
|
378
|
+
if (!(c === "paint" || c === "layout" || c === "filter" || c === "minzoom" || c === "maxzoom" || c === "metadata" || c === "visibility")) {
|
|
379
|
+
const g = { instancePath: i + "/layerBindings/" + r + "/properties/" + y, schemaPath: "#/$defs/styleRefLayerBinding/properties/properties/items/enum", keyword: "enum", params: { allowedValues: S.properties.properties.items.enum }, message: "must be equal to one of the allowed values" };
|
|
380
|
+
e === null ? e = [g] : e.push(g), s++;
|
|
381
|
+
}
|
|
382
|
+
}
|
|
383
|
+
let d = p.length, P;
|
|
384
|
+
if (d > 1) {
|
|
385
|
+
const y = {};
|
|
386
|
+
for (; d--;) {
|
|
387
|
+
let c = p[d];
|
|
388
|
+
if (typeof c == "string") {
|
|
389
|
+
if (typeof y[c] == "number") {
|
|
390
|
+
P = y[c];
|
|
391
|
+
const g = { instancePath: i + "/layerBindings/" + r + "/properties", schemaPath: "#/$defs/styleRefLayerBinding/properties/properties/uniqueItems", keyword: "uniqueItems", params: { i: d, j: P }, message: "must NOT have duplicate items (items ## " + P + " and " + d + " are identical)" };
|
|
392
|
+
e === null ? e = [g] : e.push(g), s++;
|
|
393
|
+
break;
|
|
394
|
+
}
|
|
395
|
+
y[c] = d;
|
|
396
|
+
}
|
|
397
|
+
}
|
|
398
|
+
}
|
|
399
|
+
}
|
|
400
|
+
else {
|
|
401
|
+
const a = { instancePath: i + "/layerBindings/" + r + "/properties", schemaPath: "#/$defs/styleRefLayerBinding/properties/properties/type", keyword: "type", params: { type: "array" }, message: "must be array" };
|
|
402
|
+
e === null ? e = [a] : e.push(a), s++;
|
|
403
|
+
}
|
|
404
|
+
}
|
|
405
|
+
}
|
|
406
|
+
else {
|
|
407
|
+
const p = { instancePath: i + "/layerBindings/" + r, schemaPath: "#/$defs/styleRefLayerBinding/type", keyword: "type", params: { type: "object" }, message: "must be object" };
|
|
408
|
+
e === null ? e = [p] : e.push(p), s++;
|
|
409
|
+
}
|
|
410
|
+
}
|
|
411
|
+
}
|
|
412
|
+
else {
|
|
413
|
+
const t = { instancePath: i + "/layerBindings", schemaPath: "#/properties/layerBindings/type", keyword: "type", params: { type: "array" }, message: "must be array" };
|
|
414
|
+
e === null ? e = [t] : e.push(t), s++;
|
|
287
415
|
}
|
|
288
416
|
}
|
|
289
|
-
m.body !== void 0 && (b(m.body, { instancePath: i + "/body", parentData: m, parentDataProperty: "body", rootData: u, dynamicAnchors: f }) || (e = e === null ? b.errors : e.concat(b.errors), a = e.length));
|
|
290
417
|
}
|
|
291
418
|
else {
|
|
292
|
-
const
|
|
293
|
-
e === null ? e = [
|
|
294
|
-
} return
|
|
295
|
-
|
|
296
|
-
function
|
|
297
|
-
for (const
|
|
298
|
-
if (m[
|
|
299
|
-
const t = { instancePath: i, schemaPath: "#/required", keyword: "required", params: { missingProperty:
|
|
300
|
-
e === null ? e = [t] : e.push(t),
|
|
419
|
+
const n = { instancePath: i, schemaPath: "#/type", keyword: "type", params: { type: "object" }, message: "must be object" };
|
|
420
|
+
e === null ? e = [n] : e.push(n), s++;
|
|
421
|
+
} return k.errors = e, s === 0; }
|
|
422
|
+
k.evaluated = { props: !0, dynamicProps: !1, dynamicItems: !1 };
|
|
423
|
+
function I(m, { instancePath: i = "", parentData: b, parentDataProperty: f, rootData: h = m, dynamicAnchors: w = {} } = {}) { let e = null, s = 0; const u = I.evaluated; if (u.dynamicProps && (u.props = void 0), u.dynamicItems && (u.items = void 0), m && typeof m == "object" && !Array.isArray(m)) {
|
|
424
|
+
for (const n of $.required)
|
|
425
|
+
if (m[n] === void 0) {
|
|
426
|
+
const t = { instancePath: i, schemaPath: "#/required", keyword: "required", params: { missingProperty: n }, message: "must have required property '" + n + "'" };
|
|
427
|
+
e === null ? e = [t] : e.push(t), s++;
|
|
301
428
|
}
|
|
302
429
|
if (m.mapPackageId !== void 0) {
|
|
303
|
-
let
|
|
304
|
-
if (typeof
|
|
305
|
-
if (l(
|
|
430
|
+
let n = m.mapPackageId;
|
|
431
|
+
if (typeof n == "string") {
|
|
432
|
+
if (l(n) > 256) {
|
|
306
433
|
const t = { instancePath: i + "/mapPackageId", schemaPath: "#/properties/mapPackageId/maxLength", keyword: "maxLength", params: { limit: 256 }, message: "must NOT have more than 256 characters" };
|
|
307
|
-
e === null ? e = [t] : e.push(t),
|
|
434
|
+
e === null ? e = [t] : e.push(t), s++;
|
|
308
435
|
}
|
|
309
|
-
if (l(
|
|
436
|
+
if (l(n) < 1) {
|
|
310
437
|
const t = { instancePath: i + "/mapPackageId", schemaPath: "#/properties/mapPackageId/minLength", keyword: "minLength", params: { limit: 1 }, message: "must NOT have fewer than 1 characters" };
|
|
311
|
-
e === null ? e = [t] : e.push(t),
|
|
438
|
+
e === null ? e = [t] : e.push(t), s++;
|
|
312
439
|
}
|
|
313
440
|
}
|
|
314
441
|
else {
|
|
315
442
|
const t = { instancePath: i + "/mapPackageId", schemaPath: "#/properties/mapPackageId/type", keyword: "type", params: { type: "string" }, message: "must be string" };
|
|
316
|
-
e === null ? e = [t] : e.push(t),
|
|
443
|
+
e === null ? e = [t] : e.push(t), s++;
|
|
317
444
|
}
|
|
318
445
|
}
|
|
319
446
|
if (m.format !== void 0) {
|
|
320
|
-
let
|
|
321
|
-
if (typeof
|
|
447
|
+
let n = m.format;
|
|
448
|
+
if (typeof n != "string") {
|
|
322
449
|
const t = { instancePath: i + "/format", schemaPath: "#/properties/format/type", keyword: "type", params: { type: "string" }, message: "must be string" };
|
|
323
|
-
e === null ? e = [t] : e.push(t),
|
|
450
|
+
e === null ? e = [t] : e.push(t), s++;
|
|
324
451
|
}
|
|
325
|
-
if (
|
|
452
|
+
if (n !== "honua_map_package.v1") {
|
|
326
453
|
const t = { instancePath: i + "/format", schemaPath: "#/properties/format/const", keyword: "const", params: { allowedValue: "honua_map_package.v1" }, message: "must be equal to constant" };
|
|
327
|
-
e === null ? e = [t] : e.push(t),
|
|
454
|
+
e === null ? e = [t] : e.push(t), s++;
|
|
328
455
|
}
|
|
329
456
|
}
|
|
330
457
|
if (m.status !== void 0) {
|
|
331
|
-
let
|
|
332
|
-
if (typeof
|
|
458
|
+
let n = m.status;
|
|
459
|
+
if (typeof n != "string") {
|
|
333
460
|
const t = { instancePath: i + "/status", schemaPath: "#/properties/status/type", keyword: "type", params: { type: "string" }, message: "must be string" };
|
|
334
|
-
e === null ? e = [t] : e.push(t),
|
|
461
|
+
e === null ? e = [t] : e.push(t), s++;
|
|
335
462
|
}
|
|
336
|
-
if (!(
|
|
337
|
-
const t = { instancePath: i + "/status", schemaPath: "#/properties/status/enum", keyword: "enum", params: { allowedValues:
|
|
338
|
-
e === null ? e = [t] : e.push(t),
|
|
463
|
+
if (!(n === "Draft" || n === "Composing" || n === "Ready" || n === "Failed" || n === "Expired")) {
|
|
464
|
+
const t = { instancePath: i + "/status", schemaPath: "#/properties/status/enum", keyword: "enum", params: { allowedValues: $.properties.status.enum }, message: "must be equal to one of the allowed values" };
|
|
465
|
+
e === null ? e = [t] : e.push(t), s++;
|
|
339
466
|
}
|
|
340
467
|
}
|
|
341
468
|
if (m.createdAt !== void 0) {
|
|
342
|
-
let
|
|
343
|
-
if (typeof
|
|
344
|
-
if (l(
|
|
469
|
+
let n = m.createdAt;
|
|
470
|
+
if (typeof n == "string") {
|
|
471
|
+
if (l(n) > 64) {
|
|
345
472
|
const t = { instancePath: i + "/createdAt", schemaPath: "#/properties/createdAt/maxLength", keyword: "maxLength", params: { limit: 64 }, message: "must NOT have more than 64 characters" };
|
|
346
|
-
e === null ? e = [t] : e.push(t),
|
|
473
|
+
e === null ? e = [t] : e.push(t), s++;
|
|
347
474
|
}
|
|
348
475
|
}
|
|
349
476
|
else {
|
|
350
477
|
const t = { instancePath: i + "/createdAt", schemaPath: "#/properties/createdAt/type", keyword: "type", params: { type: "string" }, message: "must be string" };
|
|
351
|
-
e === null ? e = [t] : e.push(t),
|
|
478
|
+
e === null ? e = [t] : e.push(t), s++;
|
|
352
479
|
}
|
|
353
480
|
}
|
|
354
481
|
if (m.updatedAt !== void 0) {
|
|
355
|
-
let
|
|
356
|
-
if (typeof
|
|
357
|
-
if (l(
|
|
482
|
+
let n = m.updatedAt;
|
|
483
|
+
if (typeof n == "string") {
|
|
484
|
+
if (l(n) > 64) {
|
|
358
485
|
const t = { instancePath: i + "/updatedAt", schemaPath: "#/properties/updatedAt/maxLength", keyword: "maxLength", params: { limit: 64 }, message: "must NOT have more than 64 characters" };
|
|
359
|
-
e === null ? e = [t] : e.push(t),
|
|
486
|
+
e === null ? e = [t] : e.push(t), s++;
|
|
360
487
|
}
|
|
361
488
|
}
|
|
362
489
|
else {
|
|
363
490
|
const t = { instancePath: i + "/updatedAt", schemaPath: "#/properties/updatedAt/type", keyword: "type", params: { type: "string" }, message: "must be string" };
|
|
364
|
-
e === null ? e = [t] : e.push(t),
|
|
491
|
+
e === null ? e = [t] : e.push(t), s++;
|
|
365
492
|
}
|
|
366
493
|
}
|
|
367
494
|
if (m.expiresAt !== void 0) {
|
|
368
|
-
let
|
|
369
|
-
if (typeof
|
|
370
|
-
if (l(
|
|
495
|
+
let n = m.expiresAt;
|
|
496
|
+
if (typeof n == "string") {
|
|
497
|
+
if (l(n) > 64) {
|
|
371
498
|
const t = { instancePath: i + "/expiresAt", schemaPath: "#/properties/expiresAt/maxLength", keyword: "maxLength", params: { limit: 64 }, message: "must NOT have more than 64 characters" };
|
|
372
|
-
e === null ? e = [t] : e.push(t),
|
|
499
|
+
e === null ? e = [t] : e.push(t), s++;
|
|
373
500
|
}
|
|
374
501
|
}
|
|
375
502
|
else {
|
|
376
503
|
const t = { instancePath: i + "/expiresAt", schemaPath: "#/properties/expiresAt/type", keyword: "type", params: { type: "string" }, message: "must be string" };
|
|
377
|
-
e === null ? e = [t] : e.push(t),
|
|
504
|
+
e === null ? e = [t] : e.push(t), s++;
|
|
378
505
|
}
|
|
379
506
|
}
|
|
380
507
|
if (m.templateId !== void 0) {
|
|
381
|
-
let
|
|
382
|
-
if (typeof
|
|
383
|
-
if (l(
|
|
508
|
+
let n = m.templateId;
|
|
509
|
+
if (typeof n == "string") {
|
|
510
|
+
if (l(n) > 256) {
|
|
384
511
|
const t = { instancePath: i + "/templateId", schemaPath: "#/properties/templateId/maxLength", keyword: "maxLength", params: { limit: 256 }, message: "must NOT have more than 256 characters" };
|
|
385
|
-
e === null ? e = [t] : e.push(t),
|
|
512
|
+
e === null ? e = [t] : e.push(t), s++;
|
|
386
513
|
}
|
|
387
514
|
}
|
|
388
515
|
else {
|
|
389
516
|
const t = { instancePath: i + "/templateId", schemaPath: "#/properties/templateId/type", keyword: "type", params: { type: "string" }, message: "must be string" };
|
|
390
|
-
e === null ? e = [t] : e.push(t),
|
|
517
|
+
e === null ? e = [t] : e.push(t), s++;
|
|
391
518
|
}
|
|
392
519
|
}
|
|
393
520
|
if (m.themeId !== void 0) {
|
|
394
|
-
let
|
|
395
|
-
if (typeof
|
|
396
|
-
if (l(
|
|
521
|
+
let n = m.themeId;
|
|
522
|
+
if (typeof n == "string") {
|
|
523
|
+
if (l(n) > 256) {
|
|
397
524
|
const t = { instancePath: i + "/themeId", schemaPath: "#/properties/themeId/maxLength", keyword: "maxLength", params: { limit: 256 }, message: "must NOT have more than 256 characters" };
|
|
398
|
-
e === null ? e = [t] : e.push(t),
|
|
525
|
+
e === null ? e = [t] : e.push(t), s++;
|
|
399
526
|
}
|
|
400
527
|
}
|
|
401
528
|
else {
|
|
402
529
|
const t = { instancePath: i + "/themeId", schemaPath: "#/properties/themeId/type", keyword: "type", params: { type: "string" }, message: "must be string" };
|
|
403
|
-
e === null ? e = [t] : e.push(t),
|
|
530
|
+
e === null ? e = [t] : e.push(t), s++;
|
|
404
531
|
}
|
|
405
532
|
}
|
|
406
533
|
if (m.theme !== void 0) {
|
|
407
|
-
let
|
|
408
|
-
if (
|
|
409
|
-
if (
|
|
410
|
-
let t =
|
|
534
|
+
let n = m.theme;
|
|
535
|
+
if (n && typeof n == "object" && !Array.isArray(n)) {
|
|
536
|
+
if (n.themeId !== void 0) {
|
|
537
|
+
let t = n.themeId;
|
|
411
538
|
if (typeof t == "string") {
|
|
412
539
|
if (l(t) > 256) {
|
|
413
540
|
const r = { instancePath: i + "/theme/themeId", schemaPath: "#/$defs/themeSpec/properties/themeId/maxLength", keyword: "maxLength", params: { limit: 256 }, message: "must NOT have more than 256 characters" };
|
|
414
|
-
e === null ? e = [r] : e.push(r),
|
|
541
|
+
e === null ? e = [r] : e.push(r), s++;
|
|
415
542
|
}
|
|
416
543
|
}
|
|
417
544
|
else {
|
|
418
545
|
const r = { instancePath: i + "/theme/themeId", schemaPath: "#/$defs/themeSpec/properties/themeId/type", keyword: "type", params: { type: "string" }, message: "must be string" };
|
|
419
|
-
e === null ? e = [r] : e.push(r),
|
|
546
|
+
e === null ? e = [r] : e.push(r), s++;
|
|
420
547
|
}
|
|
421
548
|
}
|
|
422
|
-
if (
|
|
423
|
-
let t =
|
|
549
|
+
if (n.tokens !== void 0) {
|
|
550
|
+
let t = n.tokens;
|
|
424
551
|
if (t && typeof t == "object" && !Array.isArray(t))
|
|
425
552
|
for (const r in t) {
|
|
426
553
|
let o = t[r];
|
|
427
554
|
if (typeof o != "string" && typeof o != "number") {
|
|
428
|
-
const
|
|
429
|
-
e === null ? e = [
|
|
555
|
+
const p = { instancePath: i + "/theme/tokens/" + r.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "#/$defs/themeSpec/properties/tokens/additionalProperties/type", keyword: "type", params: { type: O.properties.tokens.additionalProperties.type }, message: "must be string,number" };
|
|
556
|
+
e === null ? e = [p] : e.push(p), s++;
|
|
430
557
|
}
|
|
431
558
|
}
|
|
432
559
|
else {
|
|
433
560
|
const r = { instancePath: i + "/theme/tokens", schemaPath: "#/$defs/themeSpec/properties/tokens/type", keyword: "type", params: { type: "object" }, message: "must be object" };
|
|
434
|
-
e === null ? e = [r] : e.push(r),
|
|
561
|
+
e === null ? e = [r] : e.push(r), s++;
|
|
435
562
|
}
|
|
436
563
|
}
|
|
437
564
|
}
|
|
438
565
|
else {
|
|
439
566
|
const t = { instancePath: i + "/theme", schemaPath: "#/$defs/themeSpec/type", keyword: "type", params: { type: "object" }, message: "must be object" };
|
|
440
|
-
e === null ? e = [t] : e.push(t),
|
|
567
|
+
e === null ? e = [t] : e.push(t), s++;
|
|
441
568
|
}
|
|
442
569
|
}
|
|
443
570
|
if (m.previewArtifactId !== void 0) {
|
|
444
|
-
let
|
|
445
|
-
if (typeof
|
|
446
|
-
if (l(
|
|
571
|
+
let n = m.previewArtifactId;
|
|
572
|
+
if (typeof n == "string") {
|
|
573
|
+
if (l(n) > 256) {
|
|
447
574
|
const t = { instancePath: i + "/previewArtifactId", schemaPath: "#/properties/previewArtifactId/maxLength", keyword: "maxLength", params: { limit: 256 }, message: "must NOT have more than 256 characters" };
|
|
448
|
-
e === null ? e = [t] : e.push(t),
|
|
575
|
+
e === null ? e = [t] : e.push(t), s++;
|
|
449
576
|
}
|
|
450
577
|
}
|
|
451
578
|
else {
|
|
452
579
|
const t = { instancePath: i + "/previewArtifactId", schemaPath: "#/properties/previewArtifactId/type", keyword: "type", params: { type: "string" }, message: "must be string" };
|
|
453
|
-
e === null ? e = [t] : e.push(t),
|
|
580
|
+
e === null ? e = [t] : e.push(t), s++;
|
|
454
581
|
}
|
|
455
582
|
}
|
|
456
583
|
if (m.sourceBindings !== void 0) {
|
|
457
|
-
let
|
|
458
|
-
if (Array.isArray(
|
|
459
|
-
const t =
|
|
584
|
+
let n = m.sourceBindings;
|
|
585
|
+
if (Array.isArray(n)) {
|
|
586
|
+
const t = n.length;
|
|
460
587
|
for (let r = 0; r < t; r++)
|
|
461
|
-
|
|
588
|
+
L(n[r], { instancePath: i + "/sourceBindings/" + r, parentData: n, parentDataProperty: r, rootData: h, dynamicAnchors: w }) || (e = e === null ? L.errors : e.concat(L.errors), s = e.length);
|
|
462
589
|
}
|
|
463
590
|
else {
|
|
464
591
|
const t = { instancePath: i + "/sourceBindings", schemaPath: "#/properties/sourceBindings/type", keyword: "type", params: { type: "array" }, message: "must be array" };
|
|
465
|
-
e === null ? e = [t] : e.push(t),
|
|
592
|
+
e === null ? e = [t] : e.push(t), s++;
|
|
466
593
|
}
|
|
467
594
|
}
|
|
468
595
|
if (m.styleRefs !== void 0) {
|
|
469
|
-
let
|
|
470
|
-
if (Array.isArray(
|
|
471
|
-
const t =
|
|
596
|
+
let n = m.styleRefs;
|
|
597
|
+
if (Array.isArray(n)) {
|
|
598
|
+
const t = n.length;
|
|
472
599
|
for (let r = 0; r < t; r++)
|
|
473
|
-
|
|
600
|
+
k(n[r], { instancePath: i + "/styleRefs/" + r, parentData: n, parentDataProperty: r, rootData: h, dynamicAnchors: w }) || (e = e === null ? k.errors : e.concat(k.errors), s = e.length);
|
|
474
601
|
}
|
|
475
602
|
else {
|
|
476
603
|
const t = { instancePath: i + "/styleRefs", schemaPath: "#/properties/styleRefs/type", keyword: "type", params: { type: "array" }, message: "must be array" };
|
|
477
|
-
e === null ? e = [t] : e.push(t),
|
|
604
|
+
e === null ? e = [t] : e.push(t), s++;
|
|
478
605
|
}
|
|
479
606
|
}
|
|
480
607
|
if (m.mapSpec !== void 0) {
|
|
481
|
-
let
|
|
482
|
-
if (
|
|
483
|
-
for (const t of
|
|
484
|
-
if (
|
|
608
|
+
let n = m.mapSpec;
|
|
609
|
+
if (n && typeof n == "object" && !Array.isArray(n)) {
|
|
610
|
+
for (const t of v.required)
|
|
611
|
+
if (n[t] === void 0) {
|
|
485
612
|
const r = { instancePath: i + "/mapSpec", schemaPath: "#/$defs/mapSpec/required", keyword: "required", params: { missingProperty: t }, message: "must have required property '" + t + "'" };
|
|
486
|
-
e === null ? e = [r] : e.push(r),
|
|
613
|
+
e === null ? e = [r] : e.push(r), s++;
|
|
487
614
|
}
|
|
488
|
-
if (
|
|
615
|
+
if (n.version !== void 0 && n.version !== 8) {
|
|
489
616
|
const t = { instancePath: i + "/mapSpec/version", schemaPath: "#/$defs/mapSpec/properties/version/const", keyword: "const", params: { allowedValue: 8 }, message: "must be equal to constant" };
|
|
490
|
-
e === null ? e = [t] : e.push(t),
|
|
617
|
+
e === null ? e = [t] : e.push(t), s++;
|
|
491
618
|
}
|
|
492
|
-
if (
|
|
493
|
-
let t =
|
|
619
|
+
if (n.name !== void 0) {
|
|
620
|
+
let t = n.name;
|
|
494
621
|
if (typeof t == "string") {
|
|
495
622
|
if (l(t) > 256) {
|
|
496
623
|
const r = { instancePath: i + "/mapSpec/name", schemaPath: "#/$defs/mapSpec/properties/name/maxLength", keyword: "maxLength", params: { limit: 256 }, message: "must NOT have more than 256 characters" };
|
|
497
|
-
e === null ? e = [r] : e.push(r),
|
|
624
|
+
e === null ? e = [r] : e.push(r), s++;
|
|
498
625
|
}
|
|
499
626
|
}
|
|
500
627
|
else {
|
|
501
628
|
const r = { instancePath: i + "/mapSpec/name", schemaPath: "#/$defs/mapSpec/properties/name/type", keyword: "type", params: { type: "string" }, message: "must be string" };
|
|
502
|
-
e === null ? e = [r] : e.push(r),
|
|
629
|
+
e === null ? e = [r] : e.push(r), s++;
|
|
503
630
|
}
|
|
504
631
|
}
|
|
505
|
-
if (
|
|
506
|
-
let t =
|
|
632
|
+
if (n.metadata !== void 0) {
|
|
633
|
+
let t = n.metadata;
|
|
507
634
|
if (!(t && typeof t == "object" && !Array.isArray(t))) {
|
|
508
635
|
const r = { instancePath: i + "/mapSpec/metadata", schemaPath: "#/$defs/mapSpec/properties/metadata/type", keyword: "type", params: { type: "object" }, message: "must be object" };
|
|
509
|
-
e === null ? e = [r] : e.push(r),
|
|
636
|
+
e === null ? e = [r] : e.push(r), s++;
|
|
510
637
|
}
|
|
511
638
|
}
|
|
512
|
-
if (
|
|
513
|
-
let t =
|
|
639
|
+
if (n.center !== void 0) {
|
|
640
|
+
let t = n.center;
|
|
514
641
|
if (Array.isArray(t)) {
|
|
515
642
|
if (t.length > 2) {
|
|
516
643
|
const o = { instancePath: i + "/mapSpec/center", schemaPath: "#/$defs/mapSpec/properties/center/maxItems", keyword: "maxItems", params: { limit: 2 }, message: "must NOT have more than 2 items" };
|
|
517
|
-
e === null ? e = [o] : e.push(o),
|
|
644
|
+
e === null ? e = [o] : e.push(o), s++;
|
|
518
645
|
}
|
|
519
646
|
if (t.length < 2) {
|
|
520
647
|
const o = { instancePath: i + "/mapSpec/center", schemaPath: "#/$defs/mapSpec/properties/center/minItems", keyword: "minItems", params: { limit: 2 }, message: "must NOT have fewer than 2 items" };
|
|
521
|
-
e === null ? e = [o] : e.push(o),
|
|
648
|
+
e === null ? e = [o] : e.push(o), s++;
|
|
522
649
|
}
|
|
523
650
|
const r = t.length;
|
|
524
651
|
for (let o = 0; o < r; o++)
|
|
525
652
|
if (typeof t[o] != "number") {
|
|
526
|
-
const
|
|
527
|
-
e === null ? e = [
|
|
653
|
+
const p = { instancePath: i + "/mapSpec/center/" + o, schemaPath: "#/$defs/mapSpec/properties/center/items/type", keyword: "type", params: { type: "number" }, message: "must be number" };
|
|
654
|
+
e === null ? e = [p] : e.push(p), s++;
|
|
528
655
|
}
|
|
529
656
|
}
|
|
530
657
|
else {
|
|
531
658
|
const r = { instancePath: i + "/mapSpec/center", schemaPath: "#/$defs/mapSpec/properties/center/type", keyword: "type", params: { type: "array" }, message: "must be array" };
|
|
532
|
-
e === null ? e = [r] : e.push(r),
|
|
659
|
+
e === null ? e = [r] : e.push(r), s++;
|
|
533
660
|
}
|
|
534
661
|
}
|
|
535
|
-
if (
|
|
662
|
+
if (n.zoom !== void 0 && typeof n.zoom != "number") {
|
|
536
663
|
const t = { instancePath: i + "/mapSpec/zoom", schemaPath: "#/$defs/mapSpec/properties/zoom/type", keyword: "type", params: { type: "number" }, message: "must be number" };
|
|
537
|
-
e === null ? e = [t] : e.push(t),
|
|
664
|
+
e === null ? e = [t] : e.push(t), s++;
|
|
538
665
|
}
|
|
539
|
-
if (
|
|
666
|
+
if (n.bearing !== void 0 && typeof n.bearing != "number") {
|
|
540
667
|
const t = { instancePath: i + "/mapSpec/bearing", schemaPath: "#/$defs/mapSpec/properties/bearing/type", keyword: "type", params: { type: "number" }, message: "must be number" };
|
|
541
|
-
e === null ? e = [t] : e.push(t),
|
|
668
|
+
e === null ? e = [t] : e.push(t), s++;
|
|
542
669
|
}
|
|
543
|
-
if (
|
|
670
|
+
if (n.pitch !== void 0 && typeof n.pitch != "number") {
|
|
544
671
|
const t = { instancePath: i + "/mapSpec/pitch", schemaPath: "#/$defs/mapSpec/properties/pitch/type", keyword: "type", params: { type: "number" }, message: "must be number" };
|
|
545
|
-
e === null ? e = [t] : e.push(t),
|
|
672
|
+
e === null ? e = [t] : e.push(t), s++;
|
|
546
673
|
}
|
|
547
|
-
if (
|
|
548
|
-
let t =
|
|
674
|
+
if (n.sources !== void 0) {
|
|
675
|
+
let t = n.sources;
|
|
549
676
|
if (t && typeof t == "object" && !Array.isArray(t))
|
|
550
677
|
for (const r in t) {
|
|
551
678
|
let o = t[r];
|
|
552
679
|
if (o && typeof o == "object" && !Array.isArray(o)) {
|
|
553
|
-
for (const
|
|
554
|
-
if (o[
|
|
555
|
-
const
|
|
556
|
-
e === null ? e = [
|
|
680
|
+
for (const p of v.properties.sources.additionalProperties.required)
|
|
681
|
+
if (o[p] === void 0) {
|
|
682
|
+
const a = { instancePath: i + "/mapSpec/sources/" + r.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "#/$defs/mapSpec/properties/sources/additionalProperties/required", keyword: "required", params: { missingProperty: p }, message: "must have required property '" + p + "'" };
|
|
683
|
+
e === null ? e = [a] : e.push(a), s++;
|
|
557
684
|
}
|
|
558
685
|
if (o.type !== void 0) {
|
|
559
|
-
let
|
|
560
|
-
if (typeof
|
|
561
|
-
if (l(
|
|
562
|
-
const
|
|
563
|
-
e === null ? e = [
|
|
686
|
+
let p = o.type;
|
|
687
|
+
if (typeof p == "string") {
|
|
688
|
+
if (l(p) > 128) {
|
|
689
|
+
const a = { instancePath: i + "/mapSpec/sources/" + r.replace(/~/g, "~0").replace(/\//g, "~1") + "/type", schemaPath: "#/$defs/mapSpec/properties/sources/additionalProperties/properties/type/maxLength", keyword: "maxLength", params: { limit: 128 }, message: "must NOT have more than 128 characters" };
|
|
690
|
+
e === null ? e = [a] : e.push(a), s++;
|
|
564
691
|
}
|
|
565
692
|
}
|
|
566
693
|
else {
|
|
567
|
-
const
|
|
568
|
-
e === null ? e = [
|
|
694
|
+
const a = { instancePath: i + "/mapSpec/sources/" + r.replace(/~/g, "~0").replace(/\//g, "~1") + "/type", schemaPath: "#/$defs/mapSpec/properties/sources/additionalProperties/properties/type/type", keyword: "type", params: { type: "string" }, message: "must be string" };
|
|
695
|
+
e === null ? e = [a] : e.push(a), s++;
|
|
569
696
|
}
|
|
570
697
|
}
|
|
571
698
|
}
|
|
572
699
|
else {
|
|
573
|
-
const
|
|
574
|
-
e === null ? e = [
|
|
700
|
+
const p = { instancePath: i + "/mapSpec/sources/" + r.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "#/$defs/mapSpec/properties/sources/additionalProperties/type", keyword: "type", params: { type: "object" }, message: "must be object" };
|
|
701
|
+
e === null ? e = [p] : e.push(p), s++;
|
|
575
702
|
}
|
|
576
703
|
}
|
|
577
704
|
else {
|
|
578
705
|
const r = { instancePath: i + "/mapSpec/sources", schemaPath: "#/$defs/mapSpec/properties/sources/type", keyword: "type", params: { type: "object" }, message: "must be object" };
|
|
579
|
-
e === null ? e = [r] : e.push(r),
|
|
706
|
+
e === null ? e = [r] : e.push(r), s++;
|
|
580
707
|
}
|
|
581
708
|
}
|
|
582
|
-
if (
|
|
583
|
-
let t =
|
|
709
|
+
if (n.layers !== void 0) {
|
|
710
|
+
let t = n.layers;
|
|
584
711
|
if (Array.isArray(t)) {
|
|
585
712
|
const r = t.length;
|
|
586
713
|
for (let o = 0; o < r; o++) {
|
|
587
|
-
let
|
|
588
|
-
if (
|
|
589
|
-
for (const
|
|
590
|
-
if (
|
|
591
|
-
const d = { instancePath: i + "/mapSpec/layers/" + o, schemaPath: "#/$defs/mapSpec/properties/layers/items/required", keyword: "required", params: { missingProperty:
|
|
592
|
-
e === null ? e = [d] : e.push(d),
|
|
714
|
+
let p = t[o];
|
|
715
|
+
if (p && typeof p == "object" && !Array.isArray(p)) {
|
|
716
|
+
for (const a of v.properties.layers.items.required)
|
|
717
|
+
if (p[a] === void 0) {
|
|
718
|
+
const d = { instancePath: i + "/mapSpec/layers/" + o, schemaPath: "#/$defs/mapSpec/properties/layers/items/required", keyword: "required", params: { missingProperty: a }, message: "must have required property '" + a + "'" };
|
|
719
|
+
e === null ? e = [d] : e.push(d), s++;
|
|
593
720
|
}
|
|
594
|
-
if (
|
|
595
|
-
let
|
|
596
|
-
if (typeof
|
|
597
|
-
if (l(
|
|
721
|
+
if (p.id !== void 0) {
|
|
722
|
+
let a = p.id;
|
|
723
|
+
if (typeof a == "string") {
|
|
724
|
+
if (l(a) > 256) {
|
|
598
725
|
const d = { instancePath: i + "/mapSpec/layers/" + o + "/id", schemaPath: "#/$defs/mapSpec/properties/layers/items/properties/id/maxLength", keyword: "maxLength", params: { limit: 256 }, message: "must NOT have more than 256 characters" };
|
|
599
|
-
e === null ? e = [d] : e.push(d),
|
|
726
|
+
e === null ? e = [d] : e.push(d), s++;
|
|
600
727
|
}
|
|
601
|
-
if (l(
|
|
728
|
+
if (l(a) < 1) {
|
|
602
729
|
const d = { instancePath: i + "/mapSpec/layers/" + o + "/id", schemaPath: "#/$defs/mapSpec/properties/layers/items/properties/id/minLength", keyword: "minLength", params: { limit: 1 }, message: "must NOT have fewer than 1 characters" };
|
|
603
|
-
e === null ? e = [d] : e.push(d),
|
|
730
|
+
e === null ? e = [d] : e.push(d), s++;
|
|
604
731
|
}
|
|
605
732
|
}
|
|
606
733
|
else {
|
|
607
734
|
const d = { instancePath: i + "/mapSpec/layers/" + o + "/id", schemaPath: "#/$defs/mapSpec/properties/layers/items/properties/id/type", keyword: "type", params: { type: "string" }, message: "must be string" };
|
|
608
|
-
e === null ? e = [d] : e.push(d),
|
|
735
|
+
e === null ? e = [d] : e.push(d), s++;
|
|
609
736
|
}
|
|
610
737
|
}
|
|
611
|
-
if (
|
|
612
|
-
let
|
|
613
|
-
if (typeof
|
|
614
|
-
if (l(
|
|
738
|
+
if (p.type !== void 0) {
|
|
739
|
+
let a = p.type;
|
|
740
|
+
if (typeof a == "string") {
|
|
741
|
+
if (l(a) > 64) {
|
|
615
742
|
const d = { instancePath: i + "/mapSpec/layers/" + o + "/type", schemaPath: "#/$defs/mapSpec/properties/layers/items/properties/type/maxLength", keyword: "maxLength", params: { limit: 64 }, message: "must NOT have more than 64 characters" };
|
|
616
|
-
e === null ? e = [d] : e.push(d),
|
|
743
|
+
e === null ? e = [d] : e.push(d), s++;
|
|
617
744
|
}
|
|
618
745
|
}
|
|
619
746
|
else {
|
|
620
747
|
const d = { instancePath: i + "/mapSpec/layers/" + o + "/type", schemaPath: "#/$defs/mapSpec/properties/layers/items/properties/type/type", keyword: "type", params: { type: "string" }, message: "must be string" };
|
|
621
|
-
e === null ? e = [d] : e.push(d),
|
|
748
|
+
e === null ? e = [d] : e.push(d), s++;
|
|
622
749
|
}
|
|
623
750
|
}
|
|
624
|
-
if (
|
|
625
|
-
let
|
|
626
|
-
if (typeof
|
|
627
|
-
if (l(
|
|
751
|
+
if (p.source !== void 0) {
|
|
752
|
+
let a = p.source;
|
|
753
|
+
if (typeof a == "string") {
|
|
754
|
+
if (l(a) > 256) {
|
|
628
755
|
const d = { instancePath: i + "/mapSpec/layers/" + o + "/source", schemaPath: "#/$defs/mapSpec/properties/layers/items/properties/source/maxLength", keyword: "maxLength", params: { limit: 256 }, message: "must NOT have more than 256 characters" };
|
|
629
|
-
e === null ? e = [d] : e.push(d),
|
|
756
|
+
e === null ? e = [d] : e.push(d), s++;
|
|
630
757
|
}
|
|
631
758
|
}
|
|
632
759
|
else {
|
|
633
760
|
const d = { instancePath: i + "/mapSpec/layers/" + o + "/source", schemaPath: "#/$defs/mapSpec/properties/layers/items/properties/source/type", keyword: "type", params: { type: "string" }, message: "must be string" };
|
|
634
|
-
e === null ? e = [d] : e.push(d),
|
|
761
|
+
e === null ? e = [d] : e.push(d), s++;
|
|
635
762
|
}
|
|
636
763
|
}
|
|
637
764
|
}
|
|
638
765
|
else {
|
|
639
|
-
const
|
|
640
|
-
e === null ? e = [
|
|
766
|
+
const a = { instancePath: i + "/mapSpec/layers/" + o, schemaPath: "#/$defs/mapSpec/properties/layers/items/type", keyword: "type", params: { type: "object" }, message: "must be object" };
|
|
767
|
+
e === null ? e = [a] : e.push(a), s++;
|
|
641
768
|
}
|
|
642
769
|
}
|
|
643
770
|
}
|
|
644
771
|
else {
|
|
645
772
|
const r = { instancePath: i + "/mapSpec/layers", schemaPath: "#/$defs/mapSpec/properties/layers/type", keyword: "type", params: { type: "array" }, message: "must be array" };
|
|
646
|
-
e === null ? e = [r] : e.push(r),
|
|
773
|
+
e === null ? e = [r] : e.push(r), s++;
|
|
647
774
|
}
|
|
648
775
|
}
|
|
649
|
-
if (
|
|
650
|
-
let t =
|
|
776
|
+
if (n.sprite !== void 0) {
|
|
777
|
+
let t = n.sprite;
|
|
651
778
|
if (typeof t != "string" && !Array.isArray(t)) {
|
|
652
|
-
const r = { instancePath: i + "/mapSpec/sprite", schemaPath: "#/$defs/mapSpec/properties/sprite/type", keyword: "type", params: { type:
|
|
653
|
-
e === null ? e = [r] : e.push(r),
|
|
779
|
+
const r = { instancePath: i + "/mapSpec/sprite", schemaPath: "#/$defs/mapSpec/properties/sprite/type", keyword: "type", params: { type: v.properties.sprite.type }, message: "must be string,array" };
|
|
780
|
+
e === null ? e = [r] : e.push(r), s++;
|
|
654
781
|
}
|
|
655
782
|
if (Array.isArray(t)) {
|
|
656
783
|
const r = t.length;
|
|
657
784
|
for (let o = 0; o < r; o++) {
|
|
658
|
-
let
|
|
659
|
-
if (
|
|
660
|
-
for (const
|
|
661
|
-
if (
|
|
662
|
-
const d = { instancePath: i + "/mapSpec/sprite/" + o, schemaPath: "#/$defs/mapSpec/properties/sprite/items/required", keyword: "required", params: { missingProperty:
|
|
663
|
-
e === null ? e = [d] : e.push(d),
|
|
785
|
+
let p = t[o];
|
|
786
|
+
if (p && typeof p == "object" && !Array.isArray(p)) {
|
|
787
|
+
for (const a of v.properties.sprite.items.required)
|
|
788
|
+
if (p[a] === void 0) {
|
|
789
|
+
const d = { instancePath: i + "/mapSpec/sprite/" + o, schemaPath: "#/$defs/mapSpec/properties/sprite/items/required", keyword: "required", params: { missingProperty: a }, message: "must have required property '" + a + "'" };
|
|
790
|
+
e === null ? e = [d] : e.push(d), s++;
|
|
664
791
|
}
|
|
665
|
-
if (
|
|
666
|
-
let
|
|
667
|
-
if (typeof
|
|
668
|
-
if (l(
|
|
792
|
+
if (p.id !== void 0) {
|
|
793
|
+
let a = p.id;
|
|
794
|
+
if (typeof a == "string") {
|
|
795
|
+
if (l(a) > 256) {
|
|
669
796
|
const d = { instancePath: i + "/mapSpec/sprite/" + o + "/id", schemaPath: "#/$defs/mapSpec/properties/sprite/items/properties/id/maxLength", keyword: "maxLength", params: { limit: 256 }, message: "must NOT have more than 256 characters" };
|
|
670
|
-
e === null ? e = [d] : e.push(d),
|
|
797
|
+
e === null ? e = [d] : e.push(d), s++;
|
|
671
798
|
}
|
|
672
799
|
}
|
|
673
800
|
else {
|
|
674
801
|
const d = { instancePath: i + "/mapSpec/sprite/" + o + "/id", schemaPath: "#/$defs/mapSpec/properties/sprite/items/properties/id/type", keyword: "type", params: { type: "string" }, message: "must be string" };
|
|
675
|
-
e === null ? e = [d] : e.push(d),
|
|
802
|
+
e === null ? e = [d] : e.push(d), s++;
|
|
676
803
|
}
|
|
677
804
|
}
|
|
678
|
-
if (
|
|
679
|
-
let
|
|
680
|
-
if (typeof
|
|
681
|
-
if (l(
|
|
805
|
+
if (p.url !== void 0) {
|
|
806
|
+
let a = p.url;
|
|
807
|
+
if (typeof a == "string") {
|
|
808
|
+
if (l(a) > 4096) {
|
|
682
809
|
const d = { instancePath: i + "/mapSpec/sprite/" + o + "/url", schemaPath: "#/$defs/mapSpec/properties/sprite/items/properties/url/maxLength", keyword: "maxLength", params: { limit: 4096 }, message: "must NOT have more than 4096 characters" };
|
|
683
|
-
e === null ? e = [d] : e.push(d),
|
|
810
|
+
e === null ? e = [d] : e.push(d), s++;
|
|
684
811
|
}
|
|
685
812
|
}
|
|
686
813
|
else {
|
|
687
814
|
const d = { instancePath: i + "/mapSpec/sprite/" + o + "/url", schemaPath: "#/$defs/mapSpec/properties/sprite/items/properties/url/type", keyword: "type", params: { type: "string" }, message: "must be string" };
|
|
688
|
-
e === null ? e = [d] : e.push(d),
|
|
815
|
+
e === null ? e = [d] : e.push(d), s++;
|
|
689
816
|
}
|
|
690
817
|
}
|
|
691
818
|
}
|
|
692
819
|
else {
|
|
693
|
-
const
|
|
694
|
-
e === null ? e = [
|
|
820
|
+
const a = { instancePath: i + "/mapSpec/sprite/" + o, schemaPath: "#/$defs/mapSpec/properties/sprite/items/type", keyword: "type", params: { type: "object" }, message: "must be object" };
|
|
821
|
+
e === null ? e = [a] : e.push(a), s++;
|
|
695
822
|
}
|
|
696
823
|
}
|
|
697
824
|
}
|
|
698
825
|
}
|
|
699
|
-
if (
|
|
700
|
-
let t =
|
|
826
|
+
if (n.glyphs !== void 0) {
|
|
827
|
+
let t = n.glyphs;
|
|
701
828
|
if (typeof t == "string") {
|
|
702
829
|
if (l(t) > 4096) {
|
|
703
830
|
const r = { instancePath: i + "/mapSpec/glyphs", schemaPath: "#/$defs/mapSpec/properties/glyphs/maxLength", keyword: "maxLength", params: { limit: 4096 }, message: "must NOT have more than 4096 characters" };
|
|
704
|
-
e === null ? e = [r] : e.push(r),
|
|
831
|
+
e === null ? e = [r] : e.push(r), s++;
|
|
705
832
|
}
|
|
706
833
|
}
|
|
707
834
|
else {
|
|
708
835
|
const r = { instancePath: i + "/mapSpec/glyphs", schemaPath: "#/$defs/mapSpec/properties/glyphs/type", keyword: "type", params: { type: "string" }, message: "must be string" };
|
|
709
|
-
e === null ? e = [r] : e.push(r),
|
|
836
|
+
e === null ? e = [r] : e.push(r), s++;
|
|
710
837
|
}
|
|
711
838
|
}
|
|
712
|
-
if (
|
|
713
|
-
let t =
|
|
839
|
+
if (n.transition !== void 0) {
|
|
840
|
+
let t = n.transition;
|
|
714
841
|
if (t && typeof t == "object" && !Array.isArray(t)) {
|
|
715
842
|
if (t.duration !== void 0 && typeof t.duration != "number") {
|
|
716
843
|
const r = { instancePath: i + "/mapSpec/transition/duration", schemaPath: "#/$defs/mapSpec/properties/transition/properties/duration/type", keyword: "type", params: { type: "number" }, message: "must be number" };
|
|
717
|
-
e === null ? e = [r] : e.push(r),
|
|
844
|
+
e === null ? e = [r] : e.push(r), s++;
|
|
718
845
|
}
|
|
719
846
|
if (t.delay !== void 0 && typeof t.delay != "number") {
|
|
720
847
|
const r = { instancePath: i + "/mapSpec/transition/delay", schemaPath: "#/$defs/mapSpec/properties/transition/properties/delay/type", keyword: "type", params: { type: "number" }, message: "must be number" };
|
|
721
|
-
e === null ? e = [r] : e.push(r),
|
|
848
|
+
e === null ? e = [r] : e.push(r), s++;
|
|
722
849
|
}
|
|
723
850
|
}
|
|
724
851
|
else {
|
|
725
852
|
const r = { instancePath: i + "/mapSpec/transition", schemaPath: "#/$defs/mapSpec/properties/transition/type", keyword: "type", params: { type: "object" }, message: "must be object" };
|
|
726
|
-
e === null ? e = [r] : e.push(r),
|
|
853
|
+
e === null ? e = [r] : e.push(r), s++;
|
|
727
854
|
}
|
|
728
855
|
}
|
|
729
856
|
}
|
|
730
857
|
else {
|
|
731
858
|
const t = { instancePath: i + "/mapSpec", schemaPath: "#/$defs/mapSpec/type", keyword: "type", params: { type: "object" }, message: "must be object" };
|
|
732
|
-
e === null ? e = [t] : e.push(t),
|
|
859
|
+
e === null ? e = [t] : e.push(t), s++;
|
|
733
860
|
}
|
|
734
861
|
}
|
|
735
862
|
if (m.initialView !== void 0) {
|
|
736
|
-
let
|
|
737
|
-
if (
|
|
738
|
-
if (
|
|
739
|
-
let t =
|
|
863
|
+
let n = m.initialView;
|
|
864
|
+
if (n && typeof n == "object" && !Array.isArray(n)) {
|
|
865
|
+
if (n.bbox !== void 0) {
|
|
866
|
+
let t = n.bbox;
|
|
740
867
|
if (Array.isArray(t)) {
|
|
741
868
|
if (t.length > 4) {
|
|
742
869
|
const o = { instancePath: i + "/initialView/bbox", schemaPath: "#/$defs/initialView/properties/bbox/maxItems", keyword: "maxItems", params: { limit: 4 }, message: "must NOT have more than 4 items" };
|
|
743
|
-
e === null ? e = [o] : e.push(o),
|
|
870
|
+
e === null ? e = [o] : e.push(o), s++;
|
|
744
871
|
}
|
|
745
872
|
if (t.length < 4) {
|
|
746
873
|
const o = { instancePath: i + "/initialView/bbox", schemaPath: "#/$defs/initialView/properties/bbox/minItems", keyword: "minItems", params: { limit: 4 }, message: "must NOT have fewer than 4 items" };
|
|
747
|
-
e === null ? e = [o] : e.push(o),
|
|
874
|
+
e === null ? e = [o] : e.push(o), s++;
|
|
748
875
|
}
|
|
749
876
|
const r = t.length;
|
|
750
877
|
for (let o = 0; o < r; o++)
|
|
751
878
|
if (typeof t[o] != "number") {
|
|
752
|
-
const
|
|
753
|
-
e === null ? e = [
|
|
879
|
+
const p = { instancePath: i + "/initialView/bbox/" + o, schemaPath: "#/$defs/initialView/properties/bbox/items/type", keyword: "type", params: { type: "number" }, message: "must be number" };
|
|
880
|
+
e === null ? e = [p] : e.push(p), s++;
|
|
754
881
|
}
|
|
755
882
|
}
|
|
756
883
|
else {
|
|
757
884
|
const r = { instancePath: i + "/initialView/bbox", schemaPath: "#/$defs/initialView/properties/bbox/type", keyword: "type", params: { type: "array" }, message: "must be array" };
|
|
758
|
-
e === null ? e = [r] : e.push(r),
|
|
885
|
+
e === null ? e = [r] : e.push(r), s++;
|
|
759
886
|
}
|
|
760
887
|
}
|
|
761
|
-
if (
|
|
762
|
-
let t =
|
|
888
|
+
if (n.center !== void 0) {
|
|
889
|
+
let t = n.center;
|
|
763
890
|
if (Array.isArray(t)) {
|
|
764
891
|
if (t.length > 2) {
|
|
765
892
|
const o = { instancePath: i + "/initialView/center", schemaPath: "#/$defs/initialView/properties/center/maxItems", keyword: "maxItems", params: { limit: 2 }, message: "must NOT have more than 2 items" };
|
|
766
|
-
e === null ? e = [o] : e.push(o),
|
|
893
|
+
e === null ? e = [o] : e.push(o), s++;
|
|
767
894
|
}
|
|
768
895
|
if (t.length < 2) {
|
|
769
896
|
const o = { instancePath: i + "/initialView/center", schemaPath: "#/$defs/initialView/properties/center/minItems", keyword: "minItems", params: { limit: 2 }, message: "must NOT have fewer than 2 items" };
|
|
770
|
-
e === null ? e = [o] : e.push(o),
|
|
897
|
+
e === null ? e = [o] : e.push(o), s++;
|
|
771
898
|
}
|
|
772
899
|
const r = t.length;
|
|
773
900
|
for (let o = 0; o < r; o++)
|
|
774
901
|
if (typeof t[o] != "number") {
|
|
775
|
-
const
|
|
776
|
-
e === null ? e = [
|
|
902
|
+
const p = { instancePath: i + "/initialView/center/" + o, schemaPath: "#/$defs/initialView/properties/center/items/type", keyword: "type", params: { type: "number" }, message: "must be number" };
|
|
903
|
+
e === null ? e = [p] : e.push(p), s++;
|
|
777
904
|
}
|
|
778
905
|
}
|
|
779
906
|
else {
|
|
780
907
|
const r = { instancePath: i + "/initialView/center", schemaPath: "#/$defs/initialView/properties/center/type", keyword: "type", params: { type: "array" }, message: "must be array" };
|
|
781
|
-
e === null ? e = [r] : e.push(r),
|
|
908
|
+
e === null ? e = [r] : e.push(r), s++;
|
|
782
909
|
}
|
|
783
910
|
}
|
|
784
|
-
if (
|
|
911
|
+
if (n.zoom !== void 0 && typeof n.zoom != "number") {
|
|
785
912
|
const t = { instancePath: i + "/initialView/zoom", schemaPath: "#/$defs/initialView/properties/zoom/type", keyword: "type", params: { type: "number" }, message: "must be number" };
|
|
786
|
-
e === null ? e = [t] : e.push(t),
|
|
913
|
+
e === null ? e = [t] : e.push(t), s++;
|
|
787
914
|
}
|
|
788
|
-
if (
|
|
915
|
+
if (n.pitch !== void 0 && typeof n.pitch != "number") {
|
|
789
916
|
const t = { instancePath: i + "/initialView/pitch", schemaPath: "#/$defs/initialView/properties/pitch/type", keyword: "type", params: { type: "number" }, message: "must be number" };
|
|
790
|
-
e === null ? e = [t] : e.push(t),
|
|
917
|
+
e === null ? e = [t] : e.push(t), s++;
|
|
791
918
|
}
|
|
792
|
-
if (
|
|
919
|
+
if (n.bearing !== void 0 && typeof n.bearing != "number") {
|
|
793
920
|
const t = { instancePath: i + "/initialView/bearing", schemaPath: "#/$defs/initialView/properties/bearing/type", keyword: "type", params: { type: "number" }, message: "must be number" };
|
|
794
|
-
e === null ? e = [t] : e.push(t),
|
|
921
|
+
e === null ? e = [t] : e.push(t), s++;
|
|
795
922
|
}
|
|
796
|
-
if (
|
|
797
|
-
let t =
|
|
923
|
+
if (n.crs !== void 0) {
|
|
924
|
+
let t = n.crs;
|
|
798
925
|
if (typeof t == "string") {
|
|
799
926
|
if (l(t) > 256) {
|
|
800
927
|
const r = { instancePath: i + "/initialView/crs", schemaPath: "#/$defs/initialView/properties/crs/maxLength", keyword: "maxLength", params: { limit: 256 }, message: "must NOT have more than 256 characters" };
|
|
801
|
-
e === null ? e = [r] : e.push(r),
|
|
928
|
+
e === null ? e = [r] : e.push(r), s++;
|
|
802
929
|
}
|
|
803
930
|
}
|
|
804
931
|
else {
|
|
805
932
|
const r = { instancePath: i + "/initialView/crs", schemaPath: "#/$defs/initialView/properties/crs/type", keyword: "type", params: { type: "string" }, message: "must be string" };
|
|
806
|
-
e === null ? e = [r] : e.push(r),
|
|
933
|
+
e === null ? e = [r] : e.push(r), s++;
|
|
807
934
|
}
|
|
808
935
|
}
|
|
809
936
|
}
|
|
810
937
|
else {
|
|
811
938
|
const t = { instancePath: i + "/initialView", schemaPath: "#/$defs/initialView/type", keyword: "type", params: { type: "object" }, message: "must be object" };
|
|
812
|
-
e === null ? e = [t] : e.push(t),
|
|
939
|
+
e === null ? e = [t] : e.push(t), s++;
|
|
813
940
|
}
|
|
814
941
|
}
|
|
815
942
|
if (m.legend !== void 0) {
|
|
816
|
-
let
|
|
817
|
-
if (Array.isArray(
|
|
818
|
-
const t =
|
|
943
|
+
let n = m.legend;
|
|
944
|
+
if (Array.isArray(n)) {
|
|
945
|
+
const t = n.length;
|
|
819
946
|
for (let r = 0; r < t; r++) {
|
|
820
|
-
let o =
|
|
947
|
+
let o = n[r];
|
|
821
948
|
if (o && typeof o == "object" && !Array.isArray(o)) {
|
|
822
|
-
for (const
|
|
823
|
-
if (o[
|
|
824
|
-
const
|
|
825
|
-
e === null ? e = [
|
|
949
|
+
for (const p of V.required)
|
|
950
|
+
if (o[p] === void 0) {
|
|
951
|
+
const a = { instancePath: i + "/legend/" + r, schemaPath: "#/$defs/legendEntry/required", keyword: "required", params: { missingProperty: p }, message: "must have required property '" + p + "'" };
|
|
952
|
+
e === null ? e = [a] : e.push(a), s++;
|
|
826
953
|
}
|
|
827
954
|
if (o.label !== void 0) {
|
|
828
|
-
let
|
|
829
|
-
if (typeof
|
|
830
|
-
if (l(
|
|
831
|
-
const
|
|
832
|
-
e === null ? e = [
|
|
955
|
+
let p = o.label;
|
|
956
|
+
if (typeof p == "string") {
|
|
957
|
+
if (l(p) > 512) {
|
|
958
|
+
const a = { instancePath: i + "/legend/" + r + "/label", schemaPath: "#/$defs/legendEntry/properties/label/maxLength", keyword: "maxLength", params: { limit: 512 }, message: "must NOT have more than 512 characters" };
|
|
959
|
+
e === null ? e = [a] : e.push(a), s++;
|
|
833
960
|
}
|
|
834
961
|
}
|
|
835
962
|
else {
|
|
836
|
-
const
|
|
837
|
-
e === null ? e = [
|
|
963
|
+
const a = { instancePath: i + "/legend/" + r + "/label", schemaPath: "#/$defs/legendEntry/properties/label/type", keyword: "type", params: { type: "string" }, message: "must be string" };
|
|
964
|
+
e === null ? e = [a] : e.push(a), s++;
|
|
838
965
|
}
|
|
839
966
|
}
|
|
840
967
|
if (o.color !== void 0) {
|
|
841
|
-
let
|
|
842
|
-
if (typeof
|
|
843
|
-
if (l(
|
|
844
|
-
const
|
|
845
|
-
e === null ? e = [
|
|
968
|
+
let p = o.color;
|
|
969
|
+
if (typeof p == "string") {
|
|
970
|
+
if (l(p) > 128) {
|
|
971
|
+
const a = { instancePath: i + "/legend/" + r + "/color", schemaPath: "#/$defs/legendEntry/properties/color/maxLength", keyword: "maxLength", params: { limit: 128 }, message: "must NOT have more than 128 characters" };
|
|
972
|
+
e === null ? e = [a] : e.push(a), s++;
|
|
846
973
|
}
|
|
847
974
|
}
|
|
848
975
|
else {
|
|
849
|
-
const
|
|
850
|
-
e === null ? e = [
|
|
976
|
+
const a = { instancePath: i + "/legend/" + r + "/color", schemaPath: "#/$defs/legendEntry/properties/color/type", keyword: "type", params: { type: "string" }, message: "must be string" };
|
|
977
|
+
e === null ? e = [a] : e.push(a), s++;
|
|
851
978
|
}
|
|
852
979
|
}
|
|
853
980
|
if (o.minValue !== void 0 && typeof o.minValue != "number") {
|
|
854
|
-
const
|
|
855
|
-
e === null ? e = [
|
|
981
|
+
const p = { instancePath: i + "/legend/" + r + "/minValue", schemaPath: "#/$defs/legendEntry/properties/minValue/type", keyword: "type", params: { type: "number" }, message: "must be number" };
|
|
982
|
+
e === null ? e = [p] : e.push(p), s++;
|
|
856
983
|
}
|
|
857
984
|
if (o.maxValue !== void 0 && typeof o.maxValue != "number") {
|
|
858
|
-
const
|
|
859
|
-
e === null ? e = [
|
|
985
|
+
const p = { instancePath: i + "/legend/" + r + "/maxValue", schemaPath: "#/$defs/legendEntry/properties/maxValue/type", keyword: "type", params: { type: "number" }, message: "must be number" };
|
|
986
|
+
e === null ? e = [p] : e.push(p), s++;
|
|
860
987
|
}
|
|
861
988
|
if (o.iconUrl !== void 0) {
|
|
862
|
-
let
|
|
863
|
-
if (typeof
|
|
864
|
-
if (l(
|
|
865
|
-
const
|
|
866
|
-
e === null ? e = [
|
|
989
|
+
let p = o.iconUrl;
|
|
990
|
+
if (typeof p == "string") {
|
|
991
|
+
if (l(p) > 4096) {
|
|
992
|
+
const a = { instancePath: i + "/legend/" + r + "/iconUrl", schemaPath: "#/$defs/legendEntry/properties/iconUrl/maxLength", keyword: "maxLength", params: { limit: 4096 }, message: "must NOT have more than 4096 characters" };
|
|
993
|
+
e === null ? e = [a] : e.push(a), s++;
|
|
867
994
|
}
|
|
868
995
|
}
|
|
869
996
|
else {
|
|
870
|
-
const
|
|
871
|
-
e === null ? e = [
|
|
997
|
+
const a = { instancePath: i + "/legend/" + r + "/iconUrl", schemaPath: "#/$defs/legendEntry/properties/iconUrl/type", keyword: "type", params: { type: "string" }, message: "must be string" };
|
|
998
|
+
e === null ? e = [a] : e.push(a), s++;
|
|
872
999
|
}
|
|
873
1000
|
}
|
|
874
1001
|
}
|
|
875
1002
|
else {
|
|
876
|
-
const
|
|
877
|
-
e === null ? e = [
|
|
1003
|
+
const p = { instancePath: i + "/legend/" + r, schemaPath: "#/$defs/legendEntry/type", keyword: "type", params: { type: "object" }, message: "must be object" };
|
|
1004
|
+
e === null ? e = [p] : e.push(p), s++;
|
|
878
1005
|
}
|
|
879
1006
|
}
|
|
880
1007
|
}
|
|
881
1008
|
else {
|
|
882
1009
|
const t = { instancePath: i + "/legend", schemaPath: "#/properties/legend/type", keyword: "type", params: { type: "array" }, message: "must be array" };
|
|
883
|
-
e === null ? e = [t] : e.push(t),
|
|
1010
|
+
e === null ? e = [t] : e.push(t), s++;
|
|
884
1011
|
}
|
|
885
1012
|
}
|
|
886
1013
|
if (m.popupBindings !== void 0) {
|
|
887
|
-
let
|
|
888
|
-
if (Array.isArray(
|
|
889
|
-
const t =
|
|
1014
|
+
let n = m.popupBindings;
|
|
1015
|
+
if (Array.isArray(n)) {
|
|
1016
|
+
const t = n.length;
|
|
890
1017
|
for (let r = 0; r < t; r++) {
|
|
891
|
-
let o =
|
|
1018
|
+
let o = n[r];
|
|
892
1019
|
if (o && typeof o == "object" && !Array.isArray(o)) {
|
|
893
|
-
for (const
|
|
894
|
-
if (o[
|
|
895
|
-
const
|
|
896
|
-
e === null ? e = [
|
|
1020
|
+
for (const p of R.required)
|
|
1021
|
+
if (o[p] === void 0) {
|
|
1022
|
+
const a = { instancePath: i + "/popupBindings/" + r, schemaPath: "#/$defs/popupBinding/required", keyword: "required", params: { missingProperty: p }, message: "must have required property '" + p + "'" };
|
|
1023
|
+
e === null ? e = [a] : e.push(a), s++;
|
|
897
1024
|
}
|
|
898
1025
|
if (o.sourceId !== void 0) {
|
|
899
|
-
let
|
|
900
|
-
if (typeof
|
|
901
|
-
if (l(
|
|
902
|
-
const
|
|
903
|
-
e === null ? e = [
|
|
1026
|
+
let p = o.sourceId;
|
|
1027
|
+
if (typeof p == "string") {
|
|
1028
|
+
if (l(p) > 256) {
|
|
1029
|
+
const a = { instancePath: i + "/popupBindings/" + r + "/sourceId", schemaPath: "#/$defs/popupBinding/properties/sourceId/maxLength", keyword: "maxLength", params: { limit: 256 }, message: "must NOT have more than 256 characters" };
|
|
1030
|
+
e === null ? e = [a] : e.push(a), s++;
|
|
904
1031
|
}
|
|
905
|
-
if (l(
|
|
906
|
-
const
|
|
907
|
-
e === null ? e = [
|
|
1032
|
+
if (l(p) < 1) {
|
|
1033
|
+
const a = { instancePath: i + "/popupBindings/" + r + "/sourceId", schemaPath: "#/$defs/popupBinding/properties/sourceId/minLength", keyword: "minLength", params: { limit: 1 }, message: "must NOT have fewer than 1 characters" };
|
|
1034
|
+
e === null ? e = [a] : e.push(a), s++;
|
|
908
1035
|
}
|
|
909
1036
|
}
|
|
910
1037
|
else {
|
|
911
|
-
const
|
|
912
|
-
e === null ? e = [
|
|
1038
|
+
const a = { instancePath: i + "/popupBindings/" + r + "/sourceId", schemaPath: "#/$defs/popupBinding/properties/sourceId/type", keyword: "type", params: { type: "string" }, message: "must be string" };
|
|
1039
|
+
e === null ? e = [a] : e.push(a), s++;
|
|
913
1040
|
}
|
|
914
1041
|
}
|
|
915
1042
|
if (o.fieldName !== void 0) {
|
|
916
|
-
let
|
|
917
|
-
if (typeof
|
|
918
|
-
if (l(
|
|
919
|
-
const
|
|
920
|
-
e === null ? e = [
|
|
1043
|
+
let p = o.fieldName;
|
|
1044
|
+
if (typeof p == "string") {
|
|
1045
|
+
if (l(p) > 256) {
|
|
1046
|
+
const a = { instancePath: i + "/popupBindings/" + r + "/fieldName", schemaPath: "#/$defs/popupBinding/properties/fieldName/maxLength", keyword: "maxLength", params: { limit: 256 }, message: "must NOT have more than 256 characters" };
|
|
1047
|
+
e === null ? e = [a] : e.push(a), s++;
|
|
921
1048
|
}
|
|
922
1049
|
}
|
|
923
1050
|
else {
|
|
924
|
-
const
|
|
925
|
-
e === null ? e = [
|
|
1051
|
+
const a = { instancePath: i + "/popupBindings/" + r + "/fieldName", schemaPath: "#/$defs/popupBinding/properties/fieldName/type", keyword: "type", params: { type: "string" }, message: "must be string" };
|
|
1052
|
+
e === null ? e = [a] : e.push(a), s++;
|
|
926
1053
|
}
|
|
927
1054
|
}
|
|
928
1055
|
if (o.template !== void 0) {
|
|
929
|
-
let
|
|
930
|
-
if (typeof
|
|
931
|
-
if (l(
|
|
932
|
-
const
|
|
933
|
-
e === null ? e = [
|
|
1056
|
+
let p = o.template;
|
|
1057
|
+
if (typeof p == "string") {
|
|
1058
|
+
if (l(p) > 16384) {
|
|
1059
|
+
const a = { instancePath: i + "/popupBindings/" + r + "/template", schemaPath: "#/$defs/popupBinding/properties/template/maxLength", keyword: "maxLength", params: { limit: 16384 }, message: "must NOT have more than 16384 characters" };
|
|
1060
|
+
e === null ? e = [a] : e.push(a), s++;
|
|
934
1061
|
}
|
|
935
1062
|
}
|
|
936
1063
|
else {
|
|
937
|
-
const
|
|
938
|
-
e === null ? e = [
|
|
1064
|
+
const a = { instancePath: i + "/popupBindings/" + r + "/template", schemaPath: "#/$defs/popupBinding/properties/template/type", keyword: "type", params: { type: "string" }, message: "must be string" };
|
|
1065
|
+
e === null ? e = [a] : e.push(a), s++;
|
|
939
1066
|
}
|
|
940
1067
|
}
|
|
941
1068
|
if (o.title !== void 0) {
|
|
942
|
-
let
|
|
943
|
-
if (typeof
|
|
944
|
-
if (l(
|
|
945
|
-
const
|
|
946
|
-
e === null ? e = [
|
|
1069
|
+
let p = o.title;
|
|
1070
|
+
if (typeof p == "string") {
|
|
1071
|
+
if (l(p) > 512) {
|
|
1072
|
+
const a = { instancePath: i + "/popupBindings/" + r + "/title", schemaPath: "#/$defs/popupBinding/properties/title/maxLength", keyword: "maxLength", params: { limit: 512 }, message: "must NOT have more than 512 characters" };
|
|
1073
|
+
e === null ? e = [a] : e.push(a), s++;
|
|
947
1074
|
}
|
|
948
1075
|
}
|
|
949
1076
|
else {
|
|
950
|
-
const
|
|
951
|
-
e === null ? e = [
|
|
1077
|
+
const a = { instancePath: i + "/popupBindings/" + r + "/title", schemaPath: "#/$defs/popupBinding/properties/title/type", keyword: "type", params: { type: "string" }, message: "must be string" };
|
|
1078
|
+
e === null ? e = [a] : e.push(a), s++;
|
|
952
1079
|
}
|
|
953
1080
|
}
|
|
954
1081
|
}
|
|
955
1082
|
else {
|
|
956
|
-
const
|
|
957
|
-
e === null ? e = [
|
|
1083
|
+
const p = { instancePath: i + "/popupBindings/" + r, schemaPath: "#/$defs/popupBinding/type", keyword: "type", params: { type: "object" }, message: "must be object" };
|
|
1084
|
+
e === null ? e = [p] : e.push(p), s++;
|
|
958
1085
|
}
|
|
959
1086
|
}
|
|
960
1087
|
}
|
|
961
1088
|
else {
|
|
962
1089
|
const t = { instancePath: i + "/popupBindings", schemaPath: "#/properties/popupBindings/type", keyword: "type", params: { type: "array" }, message: "must be array" };
|
|
963
|
-
e === null ? e = [t] : e.push(t),
|
|
1090
|
+
e === null ? e = [t] : e.push(t), s++;
|
|
964
1091
|
}
|
|
965
1092
|
}
|
|
966
1093
|
if (m.labelBindings !== void 0) {
|
|
967
|
-
let
|
|
968
|
-
if (Array.isArray(
|
|
969
|
-
const t =
|
|
1094
|
+
let n = m.labelBindings;
|
|
1095
|
+
if (Array.isArray(n)) {
|
|
1096
|
+
const t = n.length;
|
|
970
1097
|
for (let r = 0; r < t; r++) {
|
|
971
|
-
let o =
|
|
1098
|
+
let o = n[r];
|
|
972
1099
|
if (o && typeof o == "object" && !Array.isArray(o)) {
|
|
973
|
-
for (const
|
|
974
|
-
if (o[
|
|
975
|
-
const
|
|
976
|
-
e === null ? e = [
|
|
1100
|
+
for (const p of j.required)
|
|
1101
|
+
if (o[p] === void 0) {
|
|
1102
|
+
const a = { instancePath: i + "/labelBindings/" + r, schemaPath: "#/$defs/labelBinding/required", keyword: "required", params: { missingProperty: p }, message: "must have required property '" + p + "'" };
|
|
1103
|
+
e === null ? e = [a] : e.push(a), s++;
|
|
977
1104
|
}
|
|
978
1105
|
if (o.sourceId !== void 0) {
|
|
979
|
-
let
|
|
980
|
-
if (typeof
|
|
981
|
-
if (l(
|
|
982
|
-
const
|
|
983
|
-
e === null ? e = [
|
|
1106
|
+
let p = o.sourceId;
|
|
1107
|
+
if (typeof p == "string") {
|
|
1108
|
+
if (l(p) > 256) {
|
|
1109
|
+
const a = { instancePath: i + "/labelBindings/" + r + "/sourceId", schemaPath: "#/$defs/labelBinding/properties/sourceId/maxLength", keyword: "maxLength", params: { limit: 256 }, message: "must NOT have more than 256 characters" };
|
|
1110
|
+
e === null ? e = [a] : e.push(a), s++;
|
|
984
1111
|
}
|
|
985
|
-
if (l(
|
|
986
|
-
const
|
|
987
|
-
e === null ? e = [
|
|
1112
|
+
if (l(p) < 1) {
|
|
1113
|
+
const a = { instancePath: i + "/labelBindings/" + r + "/sourceId", schemaPath: "#/$defs/labelBinding/properties/sourceId/minLength", keyword: "minLength", params: { limit: 1 }, message: "must NOT have fewer than 1 characters" };
|
|
1114
|
+
e === null ? e = [a] : e.push(a), s++;
|
|
988
1115
|
}
|
|
989
1116
|
}
|
|
990
1117
|
else {
|
|
991
|
-
const
|
|
992
|
-
e === null ? e = [
|
|
1118
|
+
const a = { instancePath: i + "/labelBindings/" + r + "/sourceId", schemaPath: "#/$defs/labelBinding/properties/sourceId/type", keyword: "type", params: { type: "string" }, message: "must be string" };
|
|
1119
|
+
e === null ? e = [a] : e.push(a), s++;
|
|
993
1120
|
}
|
|
994
1121
|
}
|
|
995
1122
|
if (o.fieldName !== void 0) {
|
|
996
|
-
let
|
|
997
|
-
if (typeof
|
|
998
|
-
if (l(
|
|
999
|
-
const
|
|
1000
|
-
e === null ? e = [
|
|
1123
|
+
let p = o.fieldName;
|
|
1124
|
+
if (typeof p == "string") {
|
|
1125
|
+
if (l(p) > 256) {
|
|
1126
|
+
const a = { instancePath: i + "/labelBindings/" + r + "/fieldName", schemaPath: "#/$defs/labelBinding/properties/fieldName/maxLength", keyword: "maxLength", params: { limit: 256 }, message: "must NOT have more than 256 characters" };
|
|
1127
|
+
e === null ? e = [a] : e.push(a), s++;
|
|
1001
1128
|
}
|
|
1002
|
-
if (l(
|
|
1003
|
-
const
|
|
1004
|
-
e === null ? e = [
|
|
1129
|
+
if (l(p) < 1) {
|
|
1130
|
+
const a = { instancePath: i + "/labelBindings/" + r + "/fieldName", schemaPath: "#/$defs/labelBinding/properties/fieldName/minLength", keyword: "minLength", params: { limit: 1 }, message: "must NOT have fewer than 1 characters" };
|
|
1131
|
+
e === null ? e = [a] : e.push(a), s++;
|
|
1005
1132
|
}
|
|
1006
1133
|
}
|
|
1007
1134
|
else {
|
|
1008
|
-
const
|
|
1009
|
-
e === null ? e = [
|
|
1135
|
+
const a = { instancePath: i + "/labelBindings/" + r + "/fieldName", schemaPath: "#/$defs/labelBinding/properties/fieldName/type", keyword: "type", params: { type: "string" }, message: "must be string" };
|
|
1136
|
+
e === null ? e = [a] : e.push(a), s++;
|
|
1010
1137
|
}
|
|
1011
1138
|
}
|
|
1012
1139
|
if (o.placement !== void 0) {
|
|
1013
|
-
let
|
|
1014
|
-
if (typeof
|
|
1015
|
-
const
|
|
1016
|
-
e === null ? e = [
|
|
1140
|
+
let p = o.placement;
|
|
1141
|
+
if (typeof p != "string") {
|
|
1142
|
+
const a = { instancePath: i + "/labelBindings/" + r + "/placement", schemaPath: "#/$defs/labelBinding/properties/placement/type", keyword: "type", params: { type: "string" }, message: "must be string" };
|
|
1143
|
+
e === null ? e = [a] : e.push(a), s++;
|
|
1017
1144
|
}
|
|
1018
|
-
if (!(
|
|
1019
|
-
const
|
|
1020
|
-
e === null ? e = [
|
|
1145
|
+
if (!(p === "point" || p === "line" || p === "polygon")) {
|
|
1146
|
+
const a = { instancePath: i + "/labelBindings/" + r + "/placement", schemaPath: "#/$defs/labelBinding/properties/placement/enum", keyword: "enum", params: { allowedValues: j.properties.placement.enum }, message: "must be equal to one of the allowed values" };
|
|
1147
|
+
e === null ? e = [a] : e.push(a), s++;
|
|
1021
1148
|
}
|
|
1022
1149
|
}
|
|
1023
1150
|
}
|
|
1024
1151
|
else {
|
|
1025
|
-
const
|
|
1026
|
-
e === null ? e = [
|
|
1152
|
+
const p = { instancePath: i + "/labelBindings/" + r, schemaPath: "#/$defs/labelBinding/type", keyword: "type", params: { type: "object" }, message: "must be object" };
|
|
1153
|
+
e === null ? e = [p] : e.push(p), s++;
|
|
1027
1154
|
}
|
|
1028
1155
|
}
|
|
1029
1156
|
}
|
|
1030
1157
|
else {
|
|
1031
1158
|
const t = { instancePath: i + "/labelBindings", schemaPath: "#/properties/labelBindings/type", keyword: "type", params: { type: "array" }, message: "must be array" };
|
|
1032
|
-
e === null ? e = [t] : e.push(t),
|
|
1159
|
+
e === null ? e = [t] : e.push(t), s++;
|
|
1033
1160
|
}
|
|
1034
1161
|
}
|
|
1035
1162
|
if (m.boundArtifacts !== void 0) {
|
|
1036
|
-
let
|
|
1037
|
-
if (Array.isArray(
|
|
1038
|
-
const t =
|
|
1163
|
+
let n = m.boundArtifacts;
|
|
1164
|
+
if (Array.isArray(n)) {
|
|
1165
|
+
const t = n.length;
|
|
1039
1166
|
for (let r = 0; r < t; r++) {
|
|
1040
|
-
let o =
|
|
1167
|
+
let o = n[r];
|
|
1041
1168
|
if (typeof o == "string") {
|
|
1042
1169
|
if (l(o) > 256) {
|
|
1043
|
-
const
|
|
1044
|
-
e === null ? e = [
|
|
1170
|
+
const p = { instancePath: i + "/boundArtifacts/" + r, schemaPath: "#/properties/boundArtifacts/items/maxLength", keyword: "maxLength", params: { limit: 256 }, message: "must NOT have more than 256 characters" };
|
|
1171
|
+
e === null ? e = [p] : e.push(p), s++;
|
|
1045
1172
|
}
|
|
1046
1173
|
}
|
|
1047
1174
|
else {
|
|
1048
|
-
const
|
|
1049
|
-
e === null ? e = [
|
|
1175
|
+
const p = { instancePath: i + "/boundArtifacts/" + r, schemaPath: "#/properties/boundArtifacts/items/type", keyword: "type", params: { type: "string" }, message: "must be string" };
|
|
1176
|
+
e === null ? e = [p] : e.push(p), s++;
|
|
1050
1177
|
}
|
|
1051
1178
|
}
|
|
1052
1179
|
}
|
|
1053
1180
|
else {
|
|
1054
1181
|
const t = { instancePath: i + "/boundArtifacts", schemaPath: "#/properties/boundArtifacts/type", keyword: "type", params: { type: "array" }, message: "must be array" };
|
|
1055
|
-
e === null ? e = [t] : e.push(t),
|
|
1182
|
+
e === null ? e = [t] : e.push(t), s++;
|
|
1056
1183
|
}
|
|
1057
1184
|
}
|
|
1058
1185
|
if (m.attribution !== void 0) {
|
|
1059
|
-
let
|
|
1060
|
-
if (Array.isArray(
|
|
1061
|
-
const t =
|
|
1186
|
+
let n = m.attribution;
|
|
1187
|
+
if (Array.isArray(n)) {
|
|
1188
|
+
const t = n.length;
|
|
1062
1189
|
for (let r = 0; r < t; r++) {
|
|
1063
|
-
let o =
|
|
1190
|
+
let o = n[r];
|
|
1064
1191
|
if (o && typeof o == "object" && !Array.isArray(o)) {
|
|
1065
|
-
for (const
|
|
1066
|
-
if (o[
|
|
1067
|
-
const
|
|
1068
|
-
e === null ? e = [
|
|
1192
|
+
for (const p of _.required)
|
|
1193
|
+
if (o[p] === void 0) {
|
|
1194
|
+
const a = { instancePath: i + "/attribution/" + r, schemaPath: "#/$defs/attribution/required", keyword: "required", params: { missingProperty: p }, message: "must have required property '" + p + "'" };
|
|
1195
|
+
e === null ? e = [a] : e.push(a), s++;
|
|
1069
1196
|
}
|
|
1070
1197
|
if (o.text !== void 0) {
|
|
1071
|
-
let
|
|
1072
|
-
if (typeof
|
|
1073
|
-
if (l(
|
|
1074
|
-
const
|
|
1075
|
-
e === null ? e = [
|
|
1198
|
+
let p = o.text;
|
|
1199
|
+
if (typeof p == "string") {
|
|
1200
|
+
if (l(p) > 2048) {
|
|
1201
|
+
const a = { instancePath: i + "/attribution/" + r + "/text", schemaPath: "#/$defs/attribution/properties/text/maxLength", keyword: "maxLength", params: { limit: 2048 }, message: "must NOT have more than 2048 characters" };
|
|
1202
|
+
e === null ? e = [a] : e.push(a), s++;
|
|
1076
1203
|
}
|
|
1077
|
-
if (l(
|
|
1078
|
-
const
|
|
1079
|
-
e === null ? e = [
|
|
1204
|
+
if (l(p) < 1) {
|
|
1205
|
+
const a = { instancePath: i + "/attribution/" + r + "/text", schemaPath: "#/$defs/attribution/properties/text/minLength", keyword: "minLength", params: { limit: 1 }, message: "must NOT have fewer than 1 characters" };
|
|
1206
|
+
e === null ? e = [a] : e.push(a), s++;
|
|
1080
1207
|
}
|
|
1081
1208
|
}
|
|
1082
1209
|
else {
|
|
1083
|
-
const
|
|
1084
|
-
e === null ? e = [
|
|
1210
|
+
const a = { instancePath: i + "/attribution/" + r + "/text", schemaPath: "#/$defs/attribution/properties/text/type", keyword: "type", params: { type: "string" }, message: "must be string" };
|
|
1211
|
+
e === null ? e = [a] : e.push(a), s++;
|
|
1085
1212
|
}
|
|
1086
1213
|
}
|
|
1087
1214
|
if (o.url !== void 0) {
|
|
1088
|
-
let
|
|
1089
|
-
if (typeof
|
|
1090
|
-
if (l(
|
|
1091
|
-
const
|
|
1092
|
-
e === null ? e = [
|
|
1215
|
+
let p = o.url;
|
|
1216
|
+
if (typeof p == "string") {
|
|
1217
|
+
if (l(p) > 4096) {
|
|
1218
|
+
const a = { instancePath: i + "/attribution/" + r + "/url", schemaPath: "#/$defs/attribution/properties/url/maxLength", keyword: "maxLength", params: { limit: 4096 }, message: "must NOT have more than 4096 characters" };
|
|
1219
|
+
e === null ? e = [a] : e.push(a), s++;
|
|
1093
1220
|
}
|
|
1094
1221
|
}
|
|
1095
1222
|
else {
|
|
1096
|
-
const
|
|
1097
|
-
e === null ? e = [
|
|
1223
|
+
const a = { instancePath: i + "/attribution/" + r + "/url", schemaPath: "#/$defs/attribution/properties/url/type", keyword: "type", params: { type: "string" }, message: "must be string" };
|
|
1224
|
+
e === null ? e = [a] : e.push(a), s++;
|
|
1098
1225
|
}
|
|
1099
1226
|
}
|
|
1100
1227
|
if (o.sourceIds !== void 0) {
|
|
1101
|
-
let
|
|
1102
|
-
if (Array.isArray(
|
|
1103
|
-
const
|
|
1104
|
-
for (let d = 0; d <
|
|
1105
|
-
let
|
|
1106
|
-
if (typeof
|
|
1107
|
-
if (l(
|
|
1108
|
-
const
|
|
1109
|
-
e === null ? e = [
|
|
1228
|
+
let p = o.sourceIds;
|
|
1229
|
+
if (Array.isArray(p)) {
|
|
1230
|
+
const a = p.length;
|
|
1231
|
+
for (let d = 0; d < a; d++) {
|
|
1232
|
+
let P = p[d];
|
|
1233
|
+
if (typeof P == "string") {
|
|
1234
|
+
if (l(P) > 256) {
|
|
1235
|
+
const y = { instancePath: i + "/attribution/" + r + "/sourceIds/" + d, schemaPath: "#/$defs/attribution/properties/sourceIds/items/maxLength", keyword: "maxLength", params: { limit: 256 }, message: "must NOT have more than 256 characters" };
|
|
1236
|
+
e === null ? e = [y] : e.push(y), s++;
|
|
1110
1237
|
}
|
|
1111
1238
|
}
|
|
1112
1239
|
else {
|
|
1113
|
-
const
|
|
1114
|
-
e === null ? e = [
|
|
1240
|
+
const y = { instancePath: i + "/attribution/" + r + "/sourceIds/" + d, schemaPath: "#/$defs/attribution/properties/sourceIds/items/type", keyword: "type", params: { type: "string" }, message: "must be string" };
|
|
1241
|
+
e === null ? e = [y] : e.push(y), s++;
|
|
1115
1242
|
}
|
|
1116
1243
|
}
|
|
1117
1244
|
}
|
|
1118
1245
|
else {
|
|
1119
|
-
const
|
|
1120
|
-
e === null ? e = [
|
|
1246
|
+
const a = { instancePath: i + "/attribution/" + r + "/sourceIds", schemaPath: "#/$defs/attribution/properties/sourceIds/type", keyword: "type", params: { type: "array" }, message: "must be array" };
|
|
1247
|
+
e === null ? e = [a] : e.push(a), s++;
|
|
1121
1248
|
}
|
|
1122
1249
|
}
|
|
1123
1250
|
if (o.required !== void 0 && typeof o.required != "boolean") {
|
|
1124
|
-
const
|
|
1125
|
-
e === null ? e = [
|
|
1251
|
+
const p = { instancePath: i + "/attribution/" + r + "/required", schemaPath: "#/$defs/attribution/properties/required/type", keyword: "type", params: { type: "boolean" }, message: "must be boolean" };
|
|
1252
|
+
e === null ? e = [p] : e.push(p), s++;
|
|
1126
1253
|
}
|
|
1127
1254
|
}
|
|
1128
1255
|
else {
|
|
1129
|
-
const
|
|
1130
|
-
e === null ? e = [
|
|
1256
|
+
const p = { instancePath: i + "/attribution/" + r, schemaPath: "#/$defs/attribution/type", keyword: "type", params: { type: "object" }, message: "must be object" };
|
|
1257
|
+
e === null ? e = [p] : e.push(p), s++;
|
|
1131
1258
|
}
|
|
1132
1259
|
}
|
|
1133
1260
|
}
|
|
1134
1261
|
else {
|
|
1135
1262
|
const t = { instancePath: i + "/attribution", schemaPath: "#/properties/attribution/type", keyword: "type", params: { type: "array" }, message: "must be array" };
|
|
1136
|
-
e === null ? e = [t] : e.push(t),
|
|
1263
|
+
e === null ? e = [t] : e.push(t), s++;
|
|
1137
1264
|
}
|
|
1138
1265
|
}
|
|
1139
1266
|
if (m.widgets !== void 0) {
|
|
1140
|
-
let
|
|
1141
|
-
if (Array.isArray(
|
|
1142
|
-
const t =
|
|
1267
|
+
let n = m.widgets;
|
|
1268
|
+
if (Array.isArray(n)) {
|
|
1269
|
+
const t = n.length;
|
|
1143
1270
|
for (let r = 0; r < t; r++) {
|
|
1144
|
-
let o =
|
|
1271
|
+
let o = n[r];
|
|
1145
1272
|
if (o && typeof o == "object" && !Array.isArray(o)) {
|
|
1146
|
-
for (const
|
|
1147
|
-
if (o[
|
|
1148
|
-
const
|
|
1149
|
-
e === null ? e = [
|
|
1273
|
+
for (const p of A.required)
|
|
1274
|
+
if (o[p] === void 0) {
|
|
1275
|
+
const a = { instancePath: i + "/widgets/" + r, schemaPath: "#/$defs/widget/required", keyword: "required", params: { missingProperty: p }, message: "must have required property '" + p + "'" };
|
|
1276
|
+
e === null ? e = [a] : e.push(a), s++;
|
|
1150
1277
|
}
|
|
1151
1278
|
if (o.widgetId !== void 0) {
|
|
1152
|
-
let
|
|
1153
|
-
if (typeof
|
|
1154
|
-
if (l(
|
|
1155
|
-
const
|
|
1156
|
-
e === null ? e = [
|
|
1279
|
+
let p = o.widgetId;
|
|
1280
|
+
if (typeof p == "string") {
|
|
1281
|
+
if (l(p) > 256) {
|
|
1282
|
+
const a = { instancePath: i + "/widgets/" + r + "/widgetId", schemaPath: "#/$defs/widget/properties/widgetId/maxLength", keyword: "maxLength", params: { limit: 256 }, message: "must NOT have more than 256 characters" };
|
|
1283
|
+
e === null ? e = [a] : e.push(a), s++;
|
|
1157
1284
|
}
|
|
1158
|
-
if (l(
|
|
1159
|
-
const
|
|
1160
|
-
e === null ? e = [
|
|
1285
|
+
if (l(p) < 1) {
|
|
1286
|
+
const a = { instancePath: i + "/widgets/" + r + "/widgetId", schemaPath: "#/$defs/widget/properties/widgetId/minLength", keyword: "minLength", params: { limit: 1 }, message: "must NOT have fewer than 1 characters" };
|
|
1287
|
+
e === null ? e = [a] : e.push(a), s++;
|
|
1161
1288
|
}
|
|
1162
1289
|
}
|
|
1163
1290
|
else {
|
|
1164
|
-
const
|
|
1165
|
-
e === null ? e = [
|
|
1291
|
+
const a = { instancePath: i + "/widgets/" + r + "/widgetId", schemaPath: "#/$defs/widget/properties/widgetId/type", keyword: "type", params: { type: "string" }, message: "must be string" };
|
|
1292
|
+
e === null ? e = [a] : e.push(a), s++;
|
|
1166
1293
|
}
|
|
1167
1294
|
}
|
|
1168
1295
|
if (o.type !== void 0) {
|
|
1169
|
-
let
|
|
1170
|
-
if (typeof
|
|
1171
|
-
if (l(
|
|
1172
|
-
const
|
|
1173
|
-
e === null ? e = [
|
|
1296
|
+
let p = o.type;
|
|
1297
|
+
if (typeof p == "string") {
|
|
1298
|
+
if (l(p) > 128) {
|
|
1299
|
+
const a = { instancePath: i + "/widgets/" + r + "/type", schemaPath: "#/$defs/widget/properties/type/maxLength", keyword: "maxLength", params: { limit: 128 }, message: "must NOT have more than 128 characters" };
|
|
1300
|
+
e === null ? e = [a] : e.push(a), s++;
|
|
1174
1301
|
}
|
|
1175
|
-
if (l(
|
|
1176
|
-
const
|
|
1177
|
-
e === null ? e = [
|
|
1302
|
+
if (l(p) < 1) {
|
|
1303
|
+
const a = { instancePath: i + "/widgets/" + r + "/type", schemaPath: "#/$defs/widget/properties/type/minLength", keyword: "minLength", params: { limit: 1 }, message: "must NOT have fewer than 1 characters" };
|
|
1304
|
+
e === null ? e = [a] : e.push(a), s++;
|
|
1178
1305
|
}
|
|
1179
1306
|
}
|
|
1180
1307
|
else {
|
|
1181
|
-
const
|
|
1182
|
-
e === null ? e = [
|
|
1308
|
+
const a = { instancePath: i + "/widgets/" + r + "/type", schemaPath: "#/$defs/widget/properties/type/type", keyword: "type", params: { type: "string" }, message: "must be string" };
|
|
1309
|
+
e === null ? e = [a] : e.push(a), s++;
|
|
1183
1310
|
}
|
|
1184
1311
|
}
|
|
1185
1312
|
if (o.position !== void 0) {
|
|
1186
|
-
let
|
|
1187
|
-
if (typeof
|
|
1188
|
-
const
|
|
1189
|
-
e === null ? e = [
|
|
1313
|
+
let p = o.position;
|
|
1314
|
+
if (typeof p != "string") {
|
|
1315
|
+
const a = { instancePath: i + "/widgets/" + r + "/position", schemaPath: "#/$defs/widget/properties/position/type", keyword: "type", params: { type: "string" }, message: "must be string" };
|
|
1316
|
+
e === null ? e = [a] : e.push(a), s++;
|
|
1190
1317
|
}
|
|
1191
|
-
if (!(
|
|
1192
|
-
const
|
|
1193
|
-
e === null ? e = [
|
|
1318
|
+
if (!(p === "top-left" || p === "top-right" || p === "bottom-left" || p === "bottom-right")) {
|
|
1319
|
+
const a = { instancePath: i + "/widgets/" + r + "/position", schemaPath: "#/$defs/widget/properties/position/enum", keyword: "enum", params: { allowedValues: A.properties.position.enum }, message: "must be equal to one of the allowed values" };
|
|
1320
|
+
e === null ? e = [a] : e.push(a), s++;
|
|
1194
1321
|
}
|
|
1195
1322
|
}
|
|
1196
1323
|
if (o.label !== void 0) {
|
|
1197
|
-
let
|
|
1198
|
-
if (typeof
|
|
1199
|
-
if (l(
|
|
1200
|
-
const
|
|
1201
|
-
e === null ? e = [
|
|
1324
|
+
let p = o.label;
|
|
1325
|
+
if (typeof p == "string") {
|
|
1326
|
+
if (l(p) > 512) {
|
|
1327
|
+
const a = { instancePath: i + "/widgets/" + r + "/label", schemaPath: "#/$defs/widget/properties/label/maxLength", keyword: "maxLength", params: { limit: 512 }, message: "must NOT have more than 512 characters" };
|
|
1328
|
+
e === null ? e = [a] : e.push(a), s++;
|
|
1202
1329
|
}
|
|
1203
1330
|
}
|
|
1204
1331
|
else {
|
|
1205
|
-
const
|
|
1206
|
-
e === null ? e = [
|
|
1332
|
+
const a = { instancePath: i + "/widgets/" + r + "/label", schemaPath: "#/$defs/widget/properties/label/type", keyword: "type", params: { type: "string" }, message: "must be string" };
|
|
1333
|
+
e === null ? e = [a] : e.push(a), s++;
|
|
1207
1334
|
}
|
|
1208
1335
|
}
|
|
1209
1336
|
if (o.visible !== void 0 && typeof o.visible != "boolean") {
|
|
1210
|
-
const
|
|
1211
|
-
e === null ? e = [
|
|
1337
|
+
const p = { instancePath: i + "/widgets/" + r + "/visible", schemaPath: "#/$defs/widget/properties/visible/type", keyword: "type", params: { type: "boolean" }, message: "must be boolean" };
|
|
1338
|
+
e === null ? e = [p] : e.push(p), s++;
|
|
1212
1339
|
}
|
|
1213
1340
|
if (o.config !== void 0) {
|
|
1214
|
-
let
|
|
1215
|
-
if (!(
|
|
1216
|
-
const
|
|
1217
|
-
e === null ? e = [
|
|
1341
|
+
let p = o.config;
|
|
1342
|
+
if (!(p && typeof p == "object" && !Array.isArray(p))) {
|
|
1343
|
+
const a = { instancePath: i + "/widgets/" + r + "/config", schemaPath: "#/$defs/widget/properties/config/type", keyword: "type", params: { type: "object" }, message: "must be object" };
|
|
1344
|
+
e === null ? e = [a] : e.push(a), s++;
|
|
1218
1345
|
}
|
|
1219
1346
|
}
|
|
1220
1347
|
}
|
|
1221
1348
|
else {
|
|
1222
|
-
const
|
|
1223
|
-
e === null ? e = [
|
|
1349
|
+
const p = { instancePath: i + "/widgets/" + r, schemaPath: "#/$defs/widget/type", keyword: "type", params: { type: "object" }, message: "must be object" };
|
|
1350
|
+
e === null ? e = [p] : e.push(p), s++;
|
|
1224
1351
|
}
|
|
1225
1352
|
}
|
|
1226
1353
|
}
|
|
1227
1354
|
else {
|
|
1228
1355
|
const t = { instancePath: i + "/widgets", schemaPath: "#/properties/widgets/type", keyword: "type", params: { type: "array" }, message: "must be array" };
|
|
1229
|
-
e === null ? e = [t] : e.push(t),
|
|
1356
|
+
e === null ? e = [t] : e.push(t), s++;
|
|
1230
1357
|
}
|
|
1231
1358
|
}
|
|
1232
1359
|
if (m.dependencies !== void 0) {
|
|
1233
|
-
let
|
|
1234
|
-
if (Array.isArray(
|
|
1235
|
-
const t =
|
|
1360
|
+
let n = m.dependencies;
|
|
1361
|
+
if (Array.isArray(n)) {
|
|
1362
|
+
const t = n.length;
|
|
1236
1363
|
for (let r = 0; r < t; r++) {
|
|
1237
|
-
let o =
|
|
1364
|
+
let o = n[r];
|
|
1238
1365
|
if (o && typeof o == "object" && !Array.isArray(o)) {
|
|
1239
|
-
for (const
|
|
1240
|
-
if (o[
|
|
1241
|
-
const
|
|
1242
|
-
e === null ? e = [
|
|
1366
|
+
for (const p of B.required)
|
|
1367
|
+
if (o[p] === void 0) {
|
|
1368
|
+
const a = { instancePath: i + "/dependencies/" + r, schemaPath: "#/$defs/dependency/required", keyword: "required", params: { missingProperty: p }, message: "must have required property '" + p + "'" };
|
|
1369
|
+
e === null ? e = [a] : e.push(a), s++;
|
|
1243
1370
|
}
|
|
1244
1371
|
if (o.name !== void 0) {
|
|
1245
|
-
let
|
|
1246
|
-
if (typeof
|
|
1247
|
-
if (l(
|
|
1248
|
-
const
|
|
1249
|
-
e === null ? e = [
|
|
1372
|
+
let p = o.name;
|
|
1373
|
+
if (typeof p == "string") {
|
|
1374
|
+
if (l(p) > 256) {
|
|
1375
|
+
const a = { instancePath: i + "/dependencies/" + r + "/name", schemaPath: "#/$defs/dependency/properties/name/maxLength", keyword: "maxLength", params: { limit: 256 }, message: "must NOT have more than 256 characters" };
|
|
1376
|
+
e === null ? e = [a] : e.push(a), s++;
|
|
1250
1377
|
}
|
|
1251
|
-
if (l(
|
|
1252
|
-
const
|
|
1253
|
-
e === null ? e = [
|
|
1378
|
+
if (l(p) < 1) {
|
|
1379
|
+
const a = { instancePath: i + "/dependencies/" + r + "/name", schemaPath: "#/$defs/dependency/properties/name/minLength", keyword: "minLength", params: { limit: 1 }, message: "must NOT have fewer than 1 characters" };
|
|
1380
|
+
e === null ? e = [a] : e.push(a), s++;
|
|
1254
1381
|
}
|
|
1255
1382
|
}
|
|
1256
1383
|
else {
|
|
1257
|
-
const
|
|
1258
|
-
e === null ? e = [
|
|
1384
|
+
const a = { instancePath: i + "/dependencies/" + r + "/name", schemaPath: "#/$defs/dependency/properties/name/type", keyword: "type", params: { type: "string" }, message: "must be string" };
|
|
1385
|
+
e === null ? e = [a] : e.push(a), s++;
|
|
1259
1386
|
}
|
|
1260
1387
|
}
|
|
1261
1388
|
if (o.versionRange !== void 0) {
|
|
1262
|
-
let
|
|
1263
|
-
if (typeof
|
|
1264
|
-
if (l(
|
|
1265
|
-
const
|
|
1266
|
-
e === null ? e = [
|
|
1389
|
+
let p = o.versionRange;
|
|
1390
|
+
if (typeof p == "string") {
|
|
1391
|
+
if (l(p) > 128) {
|
|
1392
|
+
const a = { instancePath: i + "/dependencies/" + r + "/versionRange", schemaPath: "#/$defs/dependency/properties/versionRange/maxLength", keyword: "maxLength", params: { limit: 128 }, message: "must NOT have more than 128 characters" };
|
|
1393
|
+
e === null ? e = [a] : e.push(a), s++;
|
|
1267
1394
|
}
|
|
1268
1395
|
}
|
|
1269
1396
|
else {
|
|
1270
|
-
const
|
|
1271
|
-
e === null ? e = [
|
|
1397
|
+
const a = { instancePath: i + "/dependencies/" + r + "/versionRange", schemaPath: "#/$defs/dependency/properties/versionRange/type", keyword: "type", params: { type: "string" }, message: "must be string" };
|
|
1398
|
+
e === null ? e = [a] : e.push(a), s++;
|
|
1272
1399
|
}
|
|
1273
1400
|
}
|
|
1274
1401
|
if (o.kind !== void 0) {
|
|
1275
|
-
let
|
|
1276
|
-
if (typeof
|
|
1277
|
-
const
|
|
1278
|
-
e === null ? e = [
|
|
1402
|
+
let p = o.kind;
|
|
1403
|
+
if (typeof p != "string") {
|
|
1404
|
+
const a = { instancePath: i + "/dependencies/" + r + "/kind", schemaPath: "#/$defs/dependency/properties/kind/type", keyword: "type", params: { type: "string" }, message: "must be string" };
|
|
1405
|
+
e === null ? e = [a] : e.push(a), s++;
|
|
1279
1406
|
}
|
|
1280
|
-
if (!(
|
|
1281
|
-
const
|
|
1282
|
-
e === null ? e = [
|
|
1407
|
+
if (!(p === "renderer" || p === "protocol" || p === "sdk" || p === "plugin" || p === "font" || p === "sprite" || p === "basemap")) {
|
|
1408
|
+
const a = { instancePath: i + "/dependencies/" + r + "/kind", schemaPath: "#/$defs/dependency/properties/kind/enum", keyword: "enum", params: { allowedValues: B.properties.kind.enum }, message: "must be equal to one of the allowed values" };
|
|
1409
|
+
e === null ? e = [a] : e.push(a), s++;
|
|
1283
1410
|
}
|
|
1284
1411
|
}
|
|
1285
1412
|
if (o.optional !== void 0 && typeof o.optional != "boolean") {
|
|
1286
|
-
const
|
|
1287
|
-
e === null ? e = [
|
|
1413
|
+
const p = { instancePath: i + "/dependencies/" + r + "/optional", schemaPath: "#/$defs/dependency/properties/optional/type", keyword: "type", params: { type: "boolean" }, message: "must be boolean" };
|
|
1414
|
+
e === null ? e = [p] : e.push(p), s++;
|
|
1288
1415
|
}
|
|
1289
1416
|
}
|
|
1290
1417
|
else {
|
|
1291
|
-
const
|
|
1292
|
-
e === null ? e = [
|
|
1418
|
+
const p = { instancePath: i + "/dependencies/" + r, schemaPath: "#/$defs/dependency/type", keyword: "type", params: { type: "object" }, message: "must be object" };
|
|
1419
|
+
e === null ? e = [p] : e.push(p), s++;
|
|
1293
1420
|
}
|
|
1294
1421
|
}
|
|
1295
1422
|
}
|
|
1296
1423
|
else {
|
|
1297
1424
|
const t = { instancePath: i + "/dependencies", schemaPath: "#/properties/dependencies/type", keyword: "type", params: { type: "array" }, message: "must be array" };
|
|
1298
|
-
e === null ? e = [t] : e.push(t),
|
|
1425
|
+
e === null ? e = [t] : e.push(t), s++;
|
|
1299
1426
|
}
|
|
1300
1427
|
}
|
|
1301
1428
|
if (m.provenance !== void 0) {
|
|
1302
|
-
let
|
|
1303
|
-
if (
|
|
1304
|
-
if (
|
|
1305
|
-
let t =
|
|
1429
|
+
let n = m.provenance;
|
|
1430
|
+
if (n && typeof n == "object" && !Array.isArray(n)) {
|
|
1431
|
+
if (n.generatedBy !== void 0) {
|
|
1432
|
+
let t = n.generatedBy;
|
|
1306
1433
|
if (typeof t == "string") {
|
|
1307
1434
|
if (l(t) > 256) {
|
|
1308
1435
|
const r = { instancePath: i + "/provenance/generatedBy", schemaPath: "#/$defs/provenance/properties/generatedBy/maxLength", keyword: "maxLength", params: { limit: 256 }, message: "must NOT have more than 256 characters" };
|
|
1309
|
-
e === null ? e = [r] : e.push(r),
|
|
1436
|
+
e === null ? e = [r] : e.push(r), s++;
|
|
1310
1437
|
}
|
|
1311
1438
|
}
|
|
1312
1439
|
else {
|
|
1313
1440
|
const r = { instancePath: i + "/provenance/generatedBy", schemaPath: "#/$defs/provenance/properties/generatedBy/type", keyword: "type", params: { type: "string" }, message: "must be string" };
|
|
1314
|
-
e === null ? e = [r] : e.push(r),
|
|
1441
|
+
e === null ? e = [r] : e.push(r), s++;
|
|
1315
1442
|
}
|
|
1316
1443
|
}
|
|
1317
|
-
if (
|
|
1318
|
-
let t =
|
|
1444
|
+
if (n.generatorVersion !== void 0) {
|
|
1445
|
+
let t = n.generatorVersion;
|
|
1319
1446
|
if (typeof t == "string") {
|
|
1320
1447
|
if (l(t) > 128) {
|
|
1321
1448
|
const r = { instancePath: i + "/provenance/generatorVersion", schemaPath: "#/$defs/provenance/properties/generatorVersion/maxLength", keyword: "maxLength", params: { limit: 128 }, message: "must NOT have more than 128 characters" };
|
|
1322
|
-
e === null ? e = [r] : e.push(r),
|
|
1449
|
+
e === null ? e = [r] : e.push(r), s++;
|
|
1323
1450
|
}
|
|
1324
1451
|
}
|
|
1325
1452
|
else {
|
|
1326
1453
|
const r = { instancePath: i + "/provenance/generatorVersion", schemaPath: "#/$defs/provenance/properties/generatorVersion/type", keyword: "type", params: { type: "string" }, message: "must be string" };
|
|
1327
|
-
e === null ? e = [r] : e.push(r),
|
|
1454
|
+
e === null ? e = [r] : e.push(r), s++;
|
|
1328
1455
|
}
|
|
1329
1456
|
}
|
|
1330
|
-
if (
|
|
1331
|
-
let t =
|
|
1457
|
+
if (n.generatedAt !== void 0) {
|
|
1458
|
+
let t = n.generatedAt;
|
|
1332
1459
|
if (typeof t == "string") {
|
|
1333
1460
|
if (l(t) > 64) {
|
|
1334
1461
|
const r = { instancePath: i + "/provenance/generatedAt", schemaPath: "#/$defs/provenance/properties/generatedAt/maxLength", keyword: "maxLength", params: { limit: 64 }, message: "must NOT have more than 64 characters" };
|
|
1335
|
-
e === null ? e = [r] : e.push(r),
|
|
1462
|
+
e === null ? e = [r] : e.push(r), s++;
|
|
1336
1463
|
}
|
|
1337
1464
|
}
|
|
1338
1465
|
else {
|
|
1339
1466
|
const r = { instancePath: i + "/provenance/generatedAt", schemaPath: "#/$defs/provenance/properties/generatedAt/type", keyword: "type", params: { type: "string" }, message: "must be string" };
|
|
1340
|
-
e === null ? e = [r] : e.push(r),
|
|
1467
|
+
e === null ? e = [r] : e.push(r), s++;
|
|
1341
1468
|
}
|
|
1342
1469
|
}
|
|
1343
|
-
if (
|
|
1344
|
-
let t =
|
|
1470
|
+
if (n.derivedFrom !== void 0) {
|
|
1471
|
+
let t = n.derivedFrom;
|
|
1345
1472
|
if (Array.isArray(t)) {
|
|
1346
1473
|
const r = t.length;
|
|
1347
1474
|
for (let o = 0; o < r; o++) {
|
|
1348
|
-
let
|
|
1349
|
-
if (typeof
|
|
1350
|
-
if (l(
|
|
1351
|
-
const
|
|
1352
|
-
e === null ? e = [
|
|
1475
|
+
let p = t[o];
|
|
1476
|
+
if (typeof p == "string") {
|
|
1477
|
+
if (l(p) > 256) {
|
|
1478
|
+
const a = { instancePath: i + "/provenance/derivedFrom/" + o, schemaPath: "#/$defs/provenance/properties/derivedFrom/items/maxLength", keyword: "maxLength", params: { limit: 256 }, message: "must NOT have more than 256 characters" };
|
|
1479
|
+
e === null ? e = [a] : e.push(a), s++;
|
|
1353
1480
|
}
|
|
1354
1481
|
}
|
|
1355
1482
|
else {
|
|
1356
|
-
const
|
|
1357
|
-
e === null ? e = [
|
|
1483
|
+
const a = { instancePath: i + "/provenance/derivedFrom/" + o, schemaPath: "#/$defs/provenance/properties/derivedFrom/items/type", keyword: "type", params: { type: "string" }, message: "must be string" };
|
|
1484
|
+
e === null ? e = [a] : e.push(a), s++;
|
|
1358
1485
|
}
|
|
1359
1486
|
}
|
|
1360
1487
|
}
|
|
1361
1488
|
else {
|
|
1362
1489
|
const r = { instancePath: i + "/provenance/derivedFrom", schemaPath: "#/$defs/provenance/properties/derivedFrom/type", keyword: "type", params: { type: "array" }, message: "must be array" };
|
|
1363
|
-
e === null ? e = [r] : e.push(r),
|
|
1490
|
+
e === null ? e = [r] : e.push(r), s++;
|
|
1364
1491
|
}
|
|
1365
1492
|
}
|
|
1366
|
-
if (
|
|
1367
|
-
let t =
|
|
1493
|
+
if (n.notes !== void 0) {
|
|
1494
|
+
let t = n.notes;
|
|
1368
1495
|
if (typeof t == "string") {
|
|
1369
1496
|
if (l(t) > 4096) {
|
|
1370
1497
|
const r = { instancePath: i + "/provenance/notes", schemaPath: "#/$defs/provenance/properties/notes/maxLength", keyword: "maxLength", params: { limit: 4096 }, message: "must NOT have more than 4096 characters" };
|
|
1371
|
-
e === null ? e = [r] : e.push(r),
|
|
1498
|
+
e === null ? e = [r] : e.push(r), s++;
|
|
1372
1499
|
}
|
|
1373
1500
|
}
|
|
1374
1501
|
else {
|
|
1375
1502
|
const r = { instancePath: i + "/provenance/notes", schemaPath: "#/$defs/provenance/properties/notes/type", keyword: "type", params: { type: "string" }, message: "must be string" };
|
|
1376
|
-
e === null ? e = [r] : e.push(r),
|
|
1503
|
+
e === null ? e = [r] : e.push(r), s++;
|
|
1377
1504
|
}
|
|
1378
1505
|
}
|
|
1379
1506
|
}
|
|
1380
1507
|
else {
|
|
1381
1508
|
const t = { instancePath: i + "/provenance", schemaPath: "#/$defs/provenance/type", keyword: "type", params: { type: "object" }, message: "must be object" };
|
|
1382
|
-
e === null ? e = [t] : e.push(t),
|
|
1509
|
+
e === null ? e = [t] : e.push(t), s++;
|
|
1383
1510
|
}
|
|
1384
1511
|
}
|
|
1385
1512
|
}
|
|
1386
1513
|
else {
|
|
1387
|
-
const
|
|
1388
|
-
e === null ? e = [
|
|
1389
|
-
} return
|
|
1390
|
-
|
|
1391
|
-
export {
|
|
1514
|
+
const n = { instancePath: i, schemaPath: "#/type", keyword: "type", params: { type: "object" }, message: "must be object" };
|
|
1515
|
+
e === null ? e = [n] : e.push(n), s++;
|
|
1516
|
+
} return I.errors = e, s === 0; }
|
|
1517
|
+
I.evaluated = { props: !0, dynamicProps: !1, dynamicItems: !1 };
|
|
1518
|
+
export { D as default, E as validate };
|