@zuplo/cli 6.71.23 → 6.71.25
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/node_modules/@fastify/fast-json-stringify-compiler/.github/dependabot.yml +42 -2
- package/node_modules/@fastify/fast-json-stringify-compiler/.github/workflows/ci.yml +6 -1
- package/node_modules/@fastify/fast-json-stringify-compiler/.github/workflows/lock-threads.yml +19 -0
- package/node_modules/@fastify/fast-json-stringify-compiler/LICENSE +1 -1
- package/node_modules/@fastify/fast-json-stringify-compiler/README.md +1 -1
- package/node_modules/@fastify/fast-json-stringify-compiler/node_modules/fast-json-stringify/.gitattributes +2 -0
- package/node_modules/@fastify/fast-json-stringify-compiler/node_modules/fast-json-stringify/.github/dependabot.yml +13 -0
- package/node_modules/@fastify/fast-json-stringify-compiler/node_modules/fast-json-stringify/.github/workflows/ci.yml +33 -0
- package/node_modules/@fastify/fast-json-stringify-compiler/node_modules/fast-json-stringify/.github/workflows/lock-threads.yml +19 -0
- package/node_modules/@fastify/fast-json-stringify-compiler/node_modules/fast-json-stringify/LICENSE +22 -0
- package/node_modules/@fastify/fast-json-stringify-compiler/node_modules/fast-json-stringify/README.md +742 -0
- package/node_modules/@fastify/fast-json-stringify-compiler/node_modules/fast-json-stringify/benchmark/bench-cmp-branch.js +116 -0
- package/node_modules/@fastify/fast-json-stringify-compiler/node_modules/fast-json-stringify/benchmark/bench-cmp-lib.js +339 -0
- package/node_modules/@fastify/fast-json-stringify-compiler/node_modules/fast-json-stringify/benchmark/bench-thread.js +33 -0
- package/node_modules/@fastify/fast-json-stringify-compiler/node_modules/fast-json-stringify/benchmark/bench.js +391 -0
- package/node_modules/@fastify/fast-json-stringify-compiler/node_modules/fast-json-stringify/build/build-schema-validator.js +26 -0
- package/node_modules/@fastify/fast-json-stringify-compiler/node_modules/fast-json-stringify/eslint.config.js +9 -0
- package/node_modules/@fastify/fast-json-stringify-compiler/node_modules/fast-json-stringify/examples/example.js +81 -0
- package/node_modules/@fastify/fast-json-stringify-compiler/node_modules/fast-json-stringify/examples/server.js +42 -0
- package/node_modules/@fastify/fast-json-stringify-compiler/node_modules/fast-json-stringify/index.js +1308 -0
- package/node_modules/@fastify/fast-json-stringify-compiler/node_modules/fast-json-stringify/lib/location.js +24 -0
- package/node_modules/@fastify/fast-json-stringify-compiler/node_modules/fast-json-stringify/lib/merge-schemas.js +9 -0
- package/node_modules/@fastify/fast-json-stringify-compiler/node_modules/fast-json-stringify/lib/schema-validator.js +1134 -0
- package/node_modules/@fastify/fast-json-stringify-compiler/node_modules/fast-json-stringify/lib/serializer.js +141 -0
- package/node_modules/@fastify/fast-json-stringify-compiler/node_modules/fast-json-stringify/lib/standalone.js +34 -0
- package/node_modules/@fastify/fast-json-stringify-compiler/node_modules/fast-json-stringify/lib/validator.js +96 -0
- package/node_modules/@fastify/fast-json-stringify-compiler/node_modules/fast-json-stringify/package.json +89 -0
- package/node_modules/@fastify/fast-json-stringify-compiler/node_modules/fast-json-stringify/test/additionalProperties.test.js +332 -0
- package/node_modules/@fastify/fast-json-stringify-compiler/node_modules/fast-json-stringify/test/allof.test.js +751 -0
- package/node_modules/@fastify/fast-json-stringify-compiler/node_modules/fast-json-stringify/test/any.test.js +231 -0
- package/node_modules/@fastify/fast-json-stringify-compiler/node_modules/fast-json-stringify/test/anyof.test.js +812 -0
- package/node_modules/@fastify/fast-json-stringify-compiler/node_modules/fast-json-stringify/test/array.test.js +688 -0
- package/node_modules/@fastify/fast-json-stringify-compiler/node_modules/fast-json-stringify/test/asNumber.test.js +13 -0
- package/node_modules/@fastify/fast-json-stringify-compiler/node_modules/fast-json-stringify/test/basic.test.js +400 -0
- package/node_modules/@fastify/fast-json-stringify-compiler/node_modules/fast-json-stringify/test/bigint.test.js +76 -0
- package/node_modules/@fastify/fast-json-stringify-compiler/node_modules/fast-json-stringify/test/clean-cache.test.js +47 -0
- package/node_modules/@fastify/fast-json-stringify-compiler/node_modules/fast-json-stringify/test/const.test.js +314 -0
- package/node_modules/@fastify/fast-json-stringify-compiler/node_modules/fast-json-stringify/test/date.test.js +639 -0
- package/node_modules/@fastify/fast-json-stringify-compiler/node_modules/fast-json-stringify/test/debug-mode.test.js +130 -0
- package/node_modules/@fastify/fast-json-stringify-compiler/node_modules/fast-json-stringify/test/defaults.test.js +376 -0
- package/node_modules/@fastify/fast-json-stringify-compiler/node_modules/fast-json-stringify/test/enum.test.js +37 -0
- package/node_modules/@fastify/fast-json-stringify-compiler/node_modules/fast-json-stringify/test/fix-604.test.js +25 -0
- package/node_modules/@fastify/fast-json-stringify-compiler/node_modules/fast-json-stringify/test/fixtures/.keep +0 -0
- package/node_modules/@fastify/fast-json-stringify-compiler/node_modules/fast-json-stringify/test/if-then-else.test.js +540 -0
- package/node_modules/@fastify/fast-json-stringify-compiler/node_modules/fast-json-stringify/test/inferType.test.js +92 -0
- package/node_modules/@fastify/fast-json-stringify-compiler/node_modules/fast-json-stringify/test/infinity.test.js +55 -0
- package/node_modules/@fastify/fast-json-stringify-compiler/node_modules/fast-json-stringify/test/integer.test.js +194 -0
- package/node_modules/@fastify/fast-json-stringify-compiler/node_modules/fast-json-stringify/test/invalidSchema.test.js +38 -0
- package/node_modules/@fastify/fast-json-stringify-compiler/node_modules/fast-json-stringify/test/issue-479.test.js +57 -0
- package/node_modules/@fastify/fast-json-stringify-compiler/node_modules/fast-json-stringify/test/issue-793.test.js +107 -0
- package/node_modules/@fastify/fast-json-stringify-compiler/node_modules/fast-json-stringify/test/issue-794.test.js +177 -0
- package/node_modules/@fastify/fast-json-stringify-compiler/node_modules/fast-json-stringify/test/issue-836.test.js +183 -0
- package/node_modules/@fastify/fast-json-stringify-compiler/node_modules/fast-json-stringify/test/json-add-comma.test.js +57 -0
- package/node_modules/@fastify/fast-json-stringify-compiler/node_modules/fast-json-stringify/test/json-schema-test-suite/README.md +10 -0
- package/node_modules/@fastify/fast-json-stringify-compiler/node_modules/fast-json-stringify/test/json-schema-test-suite/draft4/required.json +54 -0
- package/node_modules/@fastify/fast-json-stringify-compiler/node_modules/fast-json-stringify/test/json-schema-test-suite/draft4.test.js +12 -0
- package/node_modules/@fastify/fast-json-stringify-compiler/node_modules/fast-json-stringify/test/json-schema-test-suite/draft6/required.json +70 -0
- package/node_modules/@fastify/fast-json-stringify-compiler/node_modules/fast-json-stringify/test/json-schema-test-suite/draft6.test.js +12 -0
- package/node_modules/@fastify/fast-json-stringify-compiler/node_modules/fast-json-stringify/test/json-schema-test-suite/draft7/required.json +70 -0
- package/node_modules/@fastify/fast-json-stringify-compiler/node_modules/fast-json-stringify/test/json-schema-test-suite/draft7.test.js +12 -0
- package/node_modules/@fastify/fast-json-stringify-compiler/node_modules/fast-json-stringify/test/json-schema-test-suite/util.js +31 -0
- package/node_modules/@fastify/fast-json-stringify-compiler/node_modules/fast-json-stringify/test/missing-values.test.js +88 -0
- package/node_modules/@fastify/fast-json-stringify-compiler/node_modules/fast-json-stringify/test/multi-type-serializer.test.js +19 -0
- package/node_modules/@fastify/fast-json-stringify-compiler/node_modules/fast-json-stringify/test/nestedObjects.test.js +63 -0
- package/node_modules/@fastify/fast-json-stringify-compiler/node_modules/fast-json-stringify/test/nullable.test.js +543 -0
- package/node_modules/@fastify/fast-json-stringify-compiler/node_modules/fast-json-stringify/test/oneof.test.js +510 -0
- package/node_modules/@fastify/fast-json-stringify-compiler/node_modules/fast-json-stringify/test/patternProperties.test.js +168 -0
- package/node_modules/@fastify/fast-json-stringify-compiler/node_modules/fast-json-stringify/test/recursion.test.js +245 -0
- package/node_modules/@fastify/fast-json-stringify-compiler/node_modules/fast-json-stringify/test/ref.json +12 -0
- package/node_modules/@fastify/fast-json-stringify-compiler/node_modules/fast-json-stringify/test/ref.test.js +2077 -0
- package/node_modules/@fastify/fast-json-stringify-compiler/node_modules/fast-json-stringify/test/regex.test.js +32 -0
- package/node_modules/@fastify/fast-json-stringify-compiler/node_modules/fast-json-stringify/test/required.test.js +204 -0
- package/node_modules/@fastify/fast-json-stringify-compiler/node_modules/fast-json-stringify/test/requiresAjv.test.js +50 -0
- package/node_modules/@fastify/fast-json-stringify-compiler/node_modules/fast-json-stringify/test/sanitize.test.js +141 -0
- package/node_modules/@fastify/fast-json-stringify-compiler/node_modules/fast-json-stringify/test/sanitize2.test.js +18 -0
- package/node_modules/@fastify/fast-json-stringify-compiler/node_modules/fast-json-stringify/test/sanitize3.test.js +17 -0
- package/node_modules/@fastify/fast-json-stringify-compiler/node_modules/fast-json-stringify/test/sanitize4.test.js +16 -0
- package/node_modules/@fastify/fast-json-stringify-compiler/node_modules/fast-json-stringify/test/sanitize5.test.js +16 -0
- package/node_modules/@fastify/fast-json-stringify-compiler/node_modules/fast-json-stringify/test/sanitize6.test.js +22 -0
- package/node_modules/@fastify/fast-json-stringify-compiler/node_modules/fast-json-stringify/test/sanitize7.test.js +68 -0
- package/node_modules/@fastify/fast-json-stringify-compiler/node_modules/fast-json-stringify/test/side-effect.test.js +196 -0
- package/node_modules/@fastify/fast-json-stringify-compiler/node_modules/fast-json-stringify/test/standalone-mode.test.js +219 -0
- package/node_modules/@fastify/fast-json-stringify-compiler/node_modules/fast-json-stringify/test/string.test.js +84 -0
- package/node_modules/@fastify/fast-json-stringify-compiler/node_modules/fast-json-stringify/test/surrogate.test.js +67 -0
- package/node_modules/@fastify/fast-json-stringify-compiler/node_modules/fast-json-stringify/test/toJSON.test.js +203 -0
- package/node_modules/@fastify/fast-json-stringify-compiler/node_modules/fast-json-stringify/test/typebox.test.js +36 -0
- package/node_modules/@fastify/fast-json-stringify-compiler/node_modules/fast-json-stringify/test/typesArray.test.js +550 -0
- package/node_modules/@fastify/fast-json-stringify-compiler/node_modules/fast-json-stringify/test/unknownFormats.test.js +27 -0
- package/node_modules/@fastify/fast-json-stringify-compiler/node_modules/fast-json-stringify/test/webpack.test.js +50 -0
- package/node_modules/@fastify/fast-json-stringify-compiler/node_modules/fast-json-stringify/types/index.d.ts +219 -0
- package/node_modules/@fastify/fast-json-stringify-compiler/node_modules/fast-json-stringify/types/index.tst.ts +259 -0
- package/node_modules/@fastify/fast-json-stringify-compiler/package.json +6 -11
- package/node_modules/@fastify/fast-json-stringify-compiler/types/{index.test-d.ts → index.tst.ts} +34 -32
- package/node_modules/@protobufjs/utf8/CHANGELOG.md +8 -0
- package/node_modules/@protobufjs/utf8/index.js +29 -18
- package/node_modules/@protobufjs/utf8/package.json +2 -2
- package/node_modules/@protobufjs/utf8/tests/index.js +5 -0
- package/node_modules/@zuplo/core/package.json +1 -1
- package/node_modules/@zuplo/graphql/package.json +1 -1
- package/node_modules/@zuplo/openapi-tools/package.json +1 -1
- package/node_modules/@zuplo/otel/package.json +1 -1
- package/node_modules/@zuplo/runtime/out/esm/{chunk-5CYWMN74.js → chunk-MJWTZPC2.js} +90 -90
- package/node_modules/@zuplo/runtime/out/esm/chunk-MJWTZPC2.js.map +1 -0
- package/node_modules/@zuplo/runtime/out/esm/index.js +1 -1
- package/node_modules/@zuplo/runtime/out/esm/index.js.map +1 -1
- package/node_modules/@zuplo/runtime/out/esm/mcp-gateway/index.js +1 -1
- package/node_modules/@zuplo/runtime/out/types/index.d.ts +154 -0
- package/node_modules/@zuplo/runtime/package.json +1 -1
- package/node_modules/hono/dist/adapter/aws-lambda/handler.js +1 -1
- package/node_modules/hono/dist/adapter/bun/websocket.js +3 -1
- package/node_modules/hono/dist/cjs/adapter/aws-lambda/handler.js +1 -1
- package/node_modules/hono/dist/cjs/adapter/bun/websocket.js +3 -1
- package/node_modules/hono/dist/cjs/middleware/serve-static/index.js +1 -1
- package/node_modules/hono/dist/cjs/utils/body.js +12 -4
- package/node_modules/hono/dist/cjs/utils/buffer.js +2 -1
- package/node_modules/hono/dist/cjs/validator/validator.js +3 -3
- package/node_modules/hono/dist/middleware/serve-static/index.js +1 -1
- package/node_modules/hono/dist/types/middleware/context-storage/index.d.ts +2 -2
- package/node_modules/hono/dist/types/utils/body.d.ts +1 -1
- package/node_modules/hono/dist/utils/body.js +12 -4
- package/node_modules/hono/dist/utils/buffer.js +2 -1
- package/node_modules/hono/dist/validator/validator.js +3 -3
- package/node_modules/hono/package.json +8 -7
- package/package.json +6 -6
- package/node_modules/@fastify/fast-json-stringify-compiler/.eslintrc +0 -1
- package/node_modules/@zuplo/runtime/out/esm/chunk-5CYWMN74.js.map +0 -1
- package/node_modules/hono/dist/tsconfig.build.tsbuildinfo +0 -1
- /package/node_modules/@zuplo/runtime/out/esm/{chunk-5CYWMN74.js.LEGAL.txt → chunk-MJWTZPC2.js.LEGAL.txt} +0 -0
|
@@ -0,0 +1,1134 @@
|
|
|
1
|
+
/* CODE GENERATED BY 'build-schema-validator.js' DO NOT EDIT! */
|
|
2
|
+
"use strict";
|
|
3
|
+
module.exports = validate10;
|
|
4
|
+
module.exports.default = validate10;
|
|
5
|
+
const schema11 = {"$schema":"http://json-schema.org/draft-07/schema#","$id":"http://json-schema.org/draft-07/schema#","title":"Core schema meta-schema","definitions":{"schemaArray":{"type":"array","minItems":1,"items":{"$ref":"#"}},"nonNegativeInteger":{"type":"integer","minimum":0},"nonNegativeIntegerDefault0":{"allOf":[{"$ref":"#/definitions/nonNegativeInteger"},{"default":0}]},"simpleTypes":{"enum":["array","boolean","integer","null","number","object","string"]},"stringArray":{"type":"array","items":{"type":"string"},"uniqueItems":true,"default":[]}},"type":["object","boolean"],"properties":{"$id":{"type":"string","format":"uri-reference"},"$schema":{"type":"string","format":"uri"},"$ref":{"type":"string","format":"uri-reference"},"$comment":{"type":"string"},"title":{"type":"string"},"description":{"type":"string"},"default":true,"readOnly":{"type":"boolean","default":false},"examples":{"type":"array","items":true},"multipleOf":{"type":"number","exclusiveMinimum":0},"maximum":{"type":"number"},"exclusiveMaximum":{"type":"number"},"minimum":{"type":"number"},"exclusiveMinimum":{"type":"number"},"maxLength":{"$ref":"#/definitions/nonNegativeInteger"},"minLength":{"$ref":"#/definitions/nonNegativeIntegerDefault0"},"pattern":{"type":"string","format":"regex"},"additionalItems":{"$ref":"#"},"items":{"anyOf":[{"$ref":"#"},{"$ref":"#/definitions/schemaArray"}],"default":true},"maxItems":{"$ref":"#/definitions/nonNegativeInteger"},"minItems":{"$ref":"#/definitions/nonNegativeIntegerDefault0"},"uniqueItems":{"type":"boolean","default":false},"contains":{"$ref":"#"},"maxProperties":{"$ref":"#/definitions/nonNegativeInteger"},"minProperties":{"$ref":"#/definitions/nonNegativeIntegerDefault0"},"required":{"$ref":"#/definitions/stringArray"},"additionalProperties":{"$ref":"#"},"definitions":{"type":"object","additionalProperties":{"$ref":"#"},"default":{}},"properties":{"type":"object","additionalProperties":{"$ref":"#"},"default":{}},"patternProperties":{"type":"object","additionalProperties":{"$ref":"#"},"propertyNames":{"format":"regex"},"default":{}},"dependencies":{"type":"object","additionalProperties":{"anyOf":[{"$ref":"#"},{"$ref":"#/definitions/stringArray"}]}},"propertyNames":{"$ref":"#"},"const":true,"enum":{"type":"array","items":true,"minItems":1,"uniqueItems":true},"type":{"anyOf":[{"$ref":"#/definitions/simpleTypes"},{"type":"array","items":{"$ref":"#/definitions/simpleTypes"},"minItems":1,"uniqueItems":true}]},"format":{"type":"string"},"contentMediaType":{"type":"string"},"contentEncoding":{"type":"string"},"if":{"$ref":"#"},"then":{"$ref":"#"},"else":{"$ref":"#"},"allOf":{"$ref":"#/definitions/schemaArray"},"anyOf":{"$ref":"#/definitions/schemaArray"},"oneOf":{"$ref":"#/definitions/schemaArray"},"not":{"$ref":"#"}},"default":true};
|
|
6
|
+
const schema12 = {"type":"integer","minimum":0};
|
|
7
|
+
const schema18 = {"type":"array","items":{"type":"string"},"uniqueItems":true,"default":[]};
|
|
8
|
+
const schema20 = {"enum":["array","boolean","integer","null","number","object","string"]};
|
|
9
|
+
const formats0 = /^(?:[a-z][a-z0-9+\-.]*:)?(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'"()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?(?:\?(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i;
|
|
10
|
+
const formats2 = require("ajv-formats/dist/formats").fullFormats.uri;
|
|
11
|
+
const formats6 = require("ajv-formats/dist/formats").fullFormats.regex;
|
|
12
|
+
const schema13 = {"allOf":[{"$ref":"#/definitions/nonNegativeInteger"},{"default":0}]};
|
|
13
|
+
|
|
14
|
+
function validate11(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){
|
|
15
|
+
let vErrors = null;
|
|
16
|
+
let errors = 0;
|
|
17
|
+
const _errs1 = errors;
|
|
18
|
+
if(!(((typeof data == "number") && (!(data % 1) && !isNaN(data))) && (isFinite(data)))){
|
|
19
|
+
validate11.errors = [{instancePath,schemaPath:"#/definitions/nonNegativeInteger/type",keyword:"type",params:{type: "integer"},message:"must be integer"}];
|
|
20
|
+
return false;
|
|
21
|
+
}
|
|
22
|
+
if(errors === _errs1){
|
|
23
|
+
if((typeof data == "number") && (isFinite(data))){
|
|
24
|
+
if(data < 0 || isNaN(data)){
|
|
25
|
+
validate11.errors = [{instancePath,schemaPath:"#/definitions/nonNegativeInteger/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"}];
|
|
26
|
+
return false;
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
validate11.errors = vErrors;
|
|
31
|
+
return errors === 0;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
const schema15 = {"type":"array","minItems":1,"items":{"$ref":"#"}};
|
|
35
|
+
const root1 = {validate: validate10};
|
|
36
|
+
|
|
37
|
+
function validate13(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){
|
|
38
|
+
let vErrors = null;
|
|
39
|
+
let errors = 0;
|
|
40
|
+
if(errors === 0){
|
|
41
|
+
if(Array.isArray(data)){
|
|
42
|
+
if(data.length < 1){
|
|
43
|
+
validate13.errors = [{instancePath,schemaPath:"#/minItems",keyword:"minItems",params:{limit: 1},message:"must NOT have fewer than 1 items"}];
|
|
44
|
+
return false;
|
|
45
|
+
}
|
|
46
|
+
else {
|
|
47
|
+
var valid0 = true;
|
|
48
|
+
const len0 = data.length;
|
|
49
|
+
for(let i0=0; i0<len0; i0++){
|
|
50
|
+
const _errs1 = errors;
|
|
51
|
+
if(!(root1.validate(data[i0], {instancePath:instancePath+"/" + i0,parentData:data,parentDataProperty:i0,rootData}))){
|
|
52
|
+
vErrors = vErrors === null ? root1.validate.errors : vErrors.concat(root1.validate.errors);
|
|
53
|
+
errors = vErrors.length;
|
|
54
|
+
}
|
|
55
|
+
var valid0 = _errs1 === errors;
|
|
56
|
+
if(!valid0){
|
|
57
|
+
break;
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
else {
|
|
63
|
+
validate13.errors = [{instancePath,schemaPath:"#/type",keyword:"type",params:{type: "array"},message:"must be array"}];
|
|
64
|
+
return false;
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
validate13.errors = vErrors;
|
|
68
|
+
return errors === 0;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
const func0 = require("ajv/dist/runtime/equal").default;
|
|
72
|
+
|
|
73
|
+
function validate10(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){
|
|
74
|
+
/*# sourceURL="http://json-schema.org/draft-07/schema#" */;
|
|
75
|
+
let vErrors = null;
|
|
76
|
+
let errors = 0;
|
|
77
|
+
if((!(data && typeof data == "object" && !Array.isArray(data))) && (typeof data !== "boolean")){
|
|
78
|
+
validate10.errors = [{instancePath,schemaPath:"#/type",keyword:"type",params:{type: schema11.type},message:"must be object,boolean"}];
|
|
79
|
+
return false;
|
|
80
|
+
}
|
|
81
|
+
if(errors === 0){
|
|
82
|
+
if(data && typeof data == "object" && !Array.isArray(data)){
|
|
83
|
+
if(data.$id !== undefined){
|
|
84
|
+
let data0 = data.$id;
|
|
85
|
+
const _errs1 = errors;
|
|
86
|
+
if(errors === _errs1){
|
|
87
|
+
if(errors === _errs1){
|
|
88
|
+
if(typeof data0 === "string"){
|
|
89
|
+
if(!(formats0.test(data0))){
|
|
90
|
+
validate10.errors = [{instancePath:instancePath+"/$id",schemaPath:"#/properties/%24id/format",keyword:"format",params:{format: "uri-reference"},message:"must match format \""+"uri-reference"+"\""}];
|
|
91
|
+
return false;
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
else {
|
|
95
|
+
validate10.errors = [{instancePath:instancePath+"/$id",schemaPath:"#/properties/%24id/type",keyword:"type",params:{type: "string"},message:"must be string"}];
|
|
96
|
+
return false;
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
var valid0 = _errs1 === errors;
|
|
101
|
+
}
|
|
102
|
+
else {
|
|
103
|
+
var valid0 = true;
|
|
104
|
+
}
|
|
105
|
+
if(valid0){
|
|
106
|
+
if(data.$schema !== undefined){
|
|
107
|
+
let data1 = data.$schema;
|
|
108
|
+
const _errs3 = errors;
|
|
109
|
+
if(errors === _errs3){
|
|
110
|
+
if(errors === _errs3){
|
|
111
|
+
if(typeof data1 === "string"){
|
|
112
|
+
if(!(formats2(data1))){
|
|
113
|
+
validate10.errors = [{instancePath:instancePath+"/$schema",schemaPath:"#/properties/%24schema/format",keyword:"format",params:{format: "uri"},message:"must match format \""+"uri"+"\""}];
|
|
114
|
+
return false;
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
else {
|
|
118
|
+
validate10.errors = [{instancePath:instancePath+"/$schema",schemaPath:"#/properties/%24schema/type",keyword:"type",params:{type: "string"},message:"must be string"}];
|
|
119
|
+
return false;
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
var valid0 = _errs3 === errors;
|
|
124
|
+
}
|
|
125
|
+
else {
|
|
126
|
+
var valid0 = true;
|
|
127
|
+
}
|
|
128
|
+
if(valid0){
|
|
129
|
+
if(data.$ref !== undefined){
|
|
130
|
+
let data2 = data.$ref;
|
|
131
|
+
const _errs5 = errors;
|
|
132
|
+
if(errors === _errs5){
|
|
133
|
+
if(errors === _errs5){
|
|
134
|
+
if(typeof data2 === "string"){
|
|
135
|
+
if(!(formats0.test(data2))){
|
|
136
|
+
validate10.errors = [{instancePath:instancePath+"/$ref",schemaPath:"#/properties/%24ref/format",keyword:"format",params:{format: "uri-reference"},message:"must match format \""+"uri-reference"+"\""}];
|
|
137
|
+
return false;
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
else {
|
|
141
|
+
validate10.errors = [{instancePath:instancePath+"/$ref",schemaPath:"#/properties/%24ref/type",keyword:"type",params:{type: "string"},message:"must be string"}];
|
|
142
|
+
return false;
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
var valid0 = _errs5 === errors;
|
|
147
|
+
}
|
|
148
|
+
else {
|
|
149
|
+
var valid0 = true;
|
|
150
|
+
}
|
|
151
|
+
if(valid0){
|
|
152
|
+
if(data.$comment !== undefined){
|
|
153
|
+
const _errs7 = errors;
|
|
154
|
+
if(typeof data.$comment !== "string"){
|
|
155
|
+
validate10.errors = [{instancePath:instancePath+"/$comment",schemaPath:"#/properties/%24comment/type",keyword:"type",params:{type: "string"},message:"must be string"}];
|
|
156
|
+
return false;
|
|
157
|
+
}
|
|
158
|
+
var valid0 = _errs7 === errors;
|
|
159
|
+
}
|
|
160
|
+
else {
|
|
161
|
+
var valid0 = true;
|
|
162
|
+
}
|
|
163
|
+
if(valid0){
|
|
164
|
+
if(data.title !== undefined){
|
|
165
|
+
const _errs9 = errors;
|
|
166
|
+
if(typeof data.title !== "string"){
|
|
167
|
+
validate10.errors = [{instancePath:instancePath+"/title",schemaPath:"#/properties/title/type",keyword:"type",params:{type: "string"},message:"must be string"}];
|
|
168
|
+
return false;
|
|
169
|
+
}
|
|
170
|
+
var valid0 = _errs9 === errors;
|
|
171
|
+
}
|
|
172
|
+
else {
|
|
173
|
+
var valid0 = true;
|
|
174
|
+
}
|
|
175
|
+
if(valid0){
|
|
176
|
+
if(data.description !== undefined){
|
|
177
|
+
const _errs11 = errors;
|
|
178
|
+
if(typeof data.description !== "string"){
|
|
179
|
+
validate10.errors = [{instancePath:instancePath+"/description",schemaPath:"#/properties/description/type",keyword:"type",params:{type: "string"},message:"must be string"}];
|
|
180
|
+
return false;
|
|
181
|
+
}
|
|
182
|
+
var valid0 = _errs11 === errors;
|
|
183
|
+
}
|
|
184
|
+
else {
|
|
185
|
+
var valid0 = true;
|
|
186
|
+
}
|
|
187
|
+
if(valid0){
|
|
188
|
+
if(data.readOnly !== undefined){
|
|
189
|
+
const _errs13 = errors;
|
|
190
|
+
if(typeof data.readOnly !== "boolean"){
|
|
191
|
+
validate10.errors = [{instancePath:instancePath+"/readOnly",schemaPath:"#/properties/readOnly/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"}];
|
|
192
|
+
return false;
|
|
193
|
+
}
|
|
194
|
+
var valid0 = _errs13 === errors;
|
|
195
|
+
}
|
|
196
|
+
else {
|
|
197
|
+
var valid0 = true;
|
|
198
|
+
}
|
|
199
|
+
if(valid0){
|
|
200
|
+
if(data.examples !== undefined){
|
|
201
|
+
const _errs15 = errors;
|
|
202
|
+
if(errors === _errs15){
|
|
203
|
+
if(!(Array.isArray(data.examples))){
|
|
204
|
+
validate10.errors = [{instancePath:instancePath+"/examples",schemaPath:"#/properties/examples/type",keyword:"type",params:{type: "array"},message:"must be array"}];
|
|
205
|
+
return false;
|
|
206
|
+
}
|
|
207
|
+
}
|
|
208
|
+
var valid0 = _errs15 === errors;
|
|
209
|
+
}
|
|
210
|
+
else {
|
|
211
|
+
var valid0 = true;
|
|
212
|
+
}
|
|
213
|
+
if(valid0){
|
|
214
|
+
if(data.multipleOf !== undefined){
|
|
215
|
+
let data8 = data.multipleOf;
|
|
216
|
+
const _errs17 = errors;
|
|
217
|
+
if(errors === _errs17){
|
|
218
|
+
if((typeof data8 == "number") && (isFinite(data8))){
|
|
219
|
+
if(data8 <= 0 || isNaN(data8)){
|
|
220
|
+
validate10.errors = [{instancePath:instancePath+"/multipleOf",schemaPath:"#/properties/multipleOf/exclusiveMinimum",keyword:"exclusiveMinimum",params:{comparison: ">", limit: 0},message:"must be > 0"}];
|
|
221
|
+
return false;
|
|
222
|
+
}
|
|
223
|
+
}
|
|
224
|
+
else {
|
|
225
|
+
validate10.errors = [{instancePath:instancePath+"/multipleOf",schemaPath:"#/properties/multipleOf/type",keyword:"type",params:{type: "number"},message:"must be number"}];
|
|
226
|
+
return false;
|
|
227
|
+
}
|
|
228
|
+
}
|
|
229
|
+
var valid0 = _errs17 === errors;
|
|
230
|
+
}
|
|
231
|
+
else {
|
|
232
|
+
var valid0 = true;
|
|
233
|
+
}
|
|
234
|
+
if(valid0){
|
|
235
|
+
if(data.maximum !== undefined){
|
|
236
|
+
let data9 = data.maximum;
|
|
237
|
+
const _errs19 = errors;
|
|
238
|
+
if(!((typeof data9 == "number") && (isFinite(data9)))){
|
|
239
|
+
validate10.errors = [{instancePath:instancePath+"/maximum",schemaPath:"#/properties/maximum/type",keyword:"type",params:{type: "number"},message:"must be number"}];
|
|
240
|
+
return false;
|
|
241
|
+
}
|
|
242
|
+
var valid0 = _errs19 === errors;
|
|
243
|
+
}
|
|
244
|
+
else {
|
|
245
|
+
var valid0 = true;
|
|
246
|
+
}
|
|
247
|
+
if(valid0){
|
|
248
|
+
if(data.exclusiveMaximum !== undefined){
|
|
249
|
+
let data10 = data.exclusiveMaximum;
|
|
250
|
+
const _errs21 = errors;
|
|
251
|
+
if(!((typeof data10 == "number") && (isFinite(data10)))){
|
|
252
|
+
validate10.errors = [{instancePath:instancePath+"/exclusiveMaximum",schemaPath:"#/properties/exclusiveMaximum/type",keyword:"type",params:{type: "number"},message:"must be number"}];
|
|
253
|
+
return false;
|
|
254
|
+
}
|
|
255
|
+
var valid0 = _errs21 === errors;
|
|
256
|
+
}
|
|
257
|
+
else {
|
|
258
|
+
var valid0 = true;
|
|
259
|
+
}
|
|
260
|
+
if(valid0){
|
|
261
|
+
if(data.minimum !== undefined){
|
|
262
|
+
let data11 = data.minimum;
|
|
263
|
+
const _errs23 = errors;
|
|
264
|
+
if(!((typeof data11 == "number") && (isFinite(data11)))){
|
|
265
|
+
validate10.errors = [{instancePath:instancePath+"/minimum",schemaPath:"#/properties/minimum/type",keyword:"type",params:{type: "number"},message:"must be number"}];
|
|
266
|
+
return false;
|
|
267
|
+
}
|
|
268
|
+
var valid0 = _errs23 === errors;
|
|
269
|
+
}
|
|
270
|
+
else {
|
|
271
|
+
var valid0 = true;
|
|
272
|
+
}
|
|
273
|
+
if(valid0){
|
|
274
|
+
if(data.exclusiveMinimum !== undefined){
|
|
275
|
+
let data12 = data.exclusiveMinimum;
|
|
276
|
+
const _errs25 = errors;
|
|
277
|
+
if(!((typeof data12 == "number") && (isFinite(data12)))){
|
|
278
|
+
validate10.errors = [{instancePath:instancePath+"/exclusiveMinimum",schemaPath:"#/properties/exclusiveMinimum/type",keyword:"type",params:{type: "number"},message:"must be number"}];
|
|
279
|
+
return false;
|
|
280
|
+
}
|
|
281
|
+
var valid0 = _errs25 === errors;
|
|
282
|
+
}
|
|
283
|
+
else {
|
|
284
|
+
var valid0 = true;
|
|
285
|
+
}
|
|
286
|
+
if(valid0){
|
|
287
|
+
if(data.maxLength !== undefined){
|
|
288
|
+
let data13 = data.maxLength;
|
|
289
|
+
const _errs27 = errors;
|
|
290
|
+
const _errs28 = errors;
|
|
291
|
+
if(!(((typeof data13 == "number") && (!(data13 % 1) && !isNaN(data13))) && (isFinite(data13)))){
|
|
292
|
+
validate10.errors = [{instancePath:instancePath+"/maxLength",schemaPath:"#/definitions/nonNegativeInteger/type",keyword:"type",params:{type: "integer"},message:"must be integer"}];
|
|
293
|
+
return false;
|
|
294
|
+
}
|
|
295
|
+
if(errors === _errs28){
|
|
296
|
+
if((typeof data13 == "number") && (isFinite(data13))){
|
|
297
|
+
if(data13 < 0 || isNaN(data13)){
|
|
298
|
+
validate10.errors = [{instancePath:instancePath+"/maxLength",schemaPath:"#/definitions/nonNegativeInteger/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"}];
|
|
299
|
+
return false;
|
|
300
|
+
}
|
|
301
|
+
}
|
|
302
|
+
}
|
|
303
|
+
var valid0 = _errs27 === errors;
|
|
304
|
+
}
|
|
305
|
+
else {
|
|
306
|
+
var valid0 = true;
|
|
307
|
+
}
|
|
308
|
+
if(valid0){
|
|
309
|
+
if(data.minLength !== undefined){
|
|
310
|
+
const _errs30 = errors;
|
|
311
|
+
if(!(validate11(data.minLength, {instancePath:instancePath+"/minLength",parentData:data,parentDataProperty:"minLength",rootData}))){
|
|
312
|
+
vErrors = vErrors === null ? validate11.errors : vErrors.concat(validate11.errors);
|
|
313
|
+
errors = vErrors.length;
|
|
314
|
+
}
|
|
315
|
+
var valid0 = _errs30 === errors;
|
|
316
|
+
}
|
|
317
|
+
else {
|
|
318
|
+
var valid0 = true;
|
|
319
|
+
}
|
|
320
|
+
if(valid0){
|
|
321
|
+
if(data.pattern !== undefined){
|
|
322
|
+
let data15 = data.pattern;
|
|
323
|
+
const _errs31 = errors;
|
|
324
|
+
if(errors === _errs31){
|
|
325
|
+
if(errors === _errs31){
|
|
326
|
+
if(typeof data15 === "string"){
|
|
327
|
+
if(!(formats6(data15))){
|
|
328
|
+
validate10.errors = [{instancePath:instancePath+"/pattern",schemaPath:"#/properties/pattern/format",keyword:"format",params:{format: "regex"},message:"must match format \""+"regex"+"\""}];
|
|
329
|
+
return false;
|
|
330
|
+
}
|
|
331
|
+
}
|
|
332
|
+
else {
|
|
333
|
+
validate10.errors = [{instancePath:instancePath+"/pattern",schemaPath:"#/properties/pattern/type",keyword:"type",params:{type: "string"},message:"must be string"}];
|
|
334
|
+
return false;
|
|
335
|
+
}
|
|
336
|
+
}
|
|
337
|
+
}
|
|
338
|
+
var valid0 = _errs31 === errors;
|
|
339
|
+
}
|
|
340
|
+
else {
|
|
341
|
+
var valid0 = true;
|
|
342
|
+
}
|
|
343
|
+
if(valid0){
|
|
344
|
+
if(data.additionalItems !== undefined){
|
|
345
|
+
const _errs33 = errors;
|
|
346
|
+
if(!(validate10(data.additionalItems, {instancePath:instancePath+"/additionalItems",parentData:data,parentDataProperty:"additionalItems",rootData}))){
|
|
347
|
+
vErrors = vErrors === null ? validate10.errors : vErrors.concat(validate10.errors);
|
|
348
|
+
errors = vErrors.length;
|
|
349
|
+
}
|
|
350
|
+
var valid0 = _errs33 === errors;
|
|
351
|
+
}
|
|
352
|
+
else {
|
|
353
|
+
var valid0 = true;
|
|
354
|
+
}
|
|
355
|
+
if(valid0){
|
|
356
|
+
if(data.items !== undefined){
|
|
357
|
+
let data17 = data.items;
|
|
358
|
+
const _errs34 = errors;
|
|
359
|
+
const _errs35 = errors;
|
|
360
|
+
let valid2 = false;
|
|
361
|
+
const _errs36 = errors;
|
|
362
|
+
if(!(validate10(data17, {instancePath:instancePath+"/items",parentData:data,parentDataProperty:"items",rootData}))){
|
|
363
|
+
vErrors = vErrors === null ? validate10.errors : vErrors.concat(validate10.errors);
|
|
364
|
+
errors = vErrors.length;
|
|
365
|
+
}
|
|
366
|
+
var _valid0 = _errs36 === errors;
|
|
367
|
+
valid2 = valid2 || _valid0;
|
|
368
|
+
if(!valid2){
|
|
369
|
+
const _errs37 = errors;
|
|
370
|
+
if(!(validate13(data17, {instancePath:instancePath+"/items",parentData:data,parentDataProperty:"items",rootData}))){
|
|
371
|
+
vErrors = vErrors === null ? validate13.errors : vErrors.concat(validate13.errors);
|
|
372
|
+
errors = vErrors.length;
|
|
373
|
+
}
|
|
374
|
+
var _valid0 = _errs37 === errors;
|
|
375
|
+
valid2 = valid2 || _valid0;
|
|
376
|
+
}
|
|
377
|
+
if(!valid2){
|
|
378
|
+
const err0 = {instancePath:instancePath+"/items",schemaPath:"#/properties/items/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};
|
|
379
|
+
if(vErrors === null){
|
|
380
|
+
vErrors = [err0];
|
|
381
|
+
}
|
|
382
|
+
else {
|
|
383
|
+
vErrors.push(err0);
|
|
384
|
+
}
|
|
385
|
+
errors++;
|
|
386
|
+
validate10.errors = vErrors;
|
|
387
|
+
return false;
|
|
388
|
+
}
|
|
389
|
+
else {
|
|
390
|
+
errors = _errs35;
|
|
391
|
+
if(vErrors !== null){
|
|
392
|
+
if(_errs35){
|
|
393
|
+
vErrors.length = _errs35;
|
|
394
|
+
}
|
|
395
|
+
else {
|
|
396
|
+
vErrors = null;
|
|
397
|
+
}
|
|
398
|
+
}
|
|
399
|
+
}
|
|
400
|
+
var valid0 = _errs34 === errors;
|
|
401
|
+
}
|
|
402
|
+
else {
|
|
403
|
+
var valid0 = true;
|
|
404
|
+
}
|
|
405
|
+
if(valid0){
|
|
406
|
+
if(data.maxItems !== undefined){
|
|
407
|
+
let data18 = data.maxItems;
|
|
408
|
+
const _errs38 = errors;
|
|
409
|
+
const _errs39 = errors;
|
|
410
|
+
if(!(((typeof data18 == "number") && (!(data18 % 1) && !isNaN(data18))) && (isFinite(data18)))){
|
|
411
|
+
validate10.errors = [{instancePath:instancePath+"/maxItems",schemaPath:"#/definitions/nonNegativeInteger/type",keyword:"type",params:{type: "integer"},message:"must be integer"}];
|
|
412
|
+
return false;
|
|
413
|
+
}
|
|
414
|
+
if(errors === _errs39){
|
|
415
|
+
if((typeof data18 == "number") && (isFinite(data18))){
|
|
416
|
+
if(data18 < 0 || isNaN(data18)){
|
|
417
|
+
validate10.errors = [{instancePath:instancePath+"/maxItems",schemaPath:"#/definitions/nonNegativeInteger/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"}];
|
|
418
|
+
return false;
|
|
419
|
+
}
|
|
420
|
+
}
|
|
421
|
+
}
|
|
422
|
+
var valid0 = _errs38 === errors;
|
|
423
|
+
}
|
|
424
|
+
else {
|
|
425
|
+
var valid0 = true;
|
|
426
|
+
}
|
|
427
|
+
if(valid0){
|
|
428
|
+
if(data.minItems !== undefined){
|
|
429
|
+
const _errs41 = errors;
|
|
430
|
+
if(!(validate11(data.minItems, {instancePath:instancePath+"/minItems",parentData:data,parentDataProperty:"minItems",rootData}))){
|
|
431
|
+
vErrors = vErrors === null ? validate11.errors : vErrors.concat(validate11.errors);
|
|
432
|
+
errors = vErrors.length;
|
|
433
|
+
}
|
|
434
|
+
var valid0 = _errs41 === errors;
|
|
435
|
+
}
|
|
436
|
+
else {
|
|
437
|
+
var valid0 = true;
|
|
438
|
+
}
|
|
439
|
+
if(valid0){
|
|
440
|
+
if(data.uniqueItems !== undefined){
|
|
441
|
+
const _errs42 = errors;
|
|
442
|
+
if(typeof data.uniqueItems !== "boolean"){
|
|
443
|
+
validate10.errors = [{instancePath:instancePath+"/uniqueItems",schemaPath:"#/properties/uniqueItems/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"}];
|
|
444
|
+
return false;
|
|
445
|
+
}
|
|
446
|
+
var valid0 = _errs42 === errors;
|
|
447
|
+
}
|
|
448
|
+
else {
|
|
449
|
+
var valid0 = true;
|
|
450
|
+
}
|
|
451
|
+
if(valid0){
|
|
452
|
+
if(data.contains !== undefined){
|
|
453
|
+
const _errs44 = errors;
|
|
454
|
+
if(!(validate10(data.contains, {instancePath:instancePath+"/contains",parentData:data,parentDataProperty:"contains",rootData}))){
|
|
455
|
+
vErrors = vErrors === null ? validate10.errors : vErrors.concat(validate10.errors);
|
|
456
|
+
errors = vErrors.length;
|
|
457
|
+
}
|
|
458
|
+
var valid0 = _errs44 === errors;
|
|
459
|
+
}
|
|
460
|
+
else {
|
|
461
|
+
var valid0 = true;
|
|
462
|
+
}
|
|
463
|
+
if(valid0){
|
|
464
|
+
if(data.maxProperties !== undefined){
|
|
465
|
+
let data22 = data.maxProperties;
|
|
466
|
+
const _errs45 = errors;
|
|
467
|
+
const _errs46 = errors;
|
|
468
|
+
if(!(((typeof data22 == "number") && (!(data22 % 1) && !isNaN(data22))) && (isFinite(data22)))){
|
|
469
|
+
validate10.errors = [{instancePath:instancePath+"/maxProperties",schemaPath:"#/definitions/nonNegativeInteger/type",keyword:"type",params:{type: "integer"},message:"must be integer"}];
|
|
470
|
+
return false;
|
|
471
|
+
}
|
|
472
|
+
if(errors === _errs46){
|
|
473
|
+
if((typeof data22 == "number") && (isFinite(data22))){
|
|
474
|
+
if(data22 < 0 || isNaN(data22)){
|
|
475
|
+
validate10.errors = [{instancePath:instancePath+"/maxProperties",schemaPath:"#/definitions/nonNegativeInteger/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"}];
|
|
476
|
+
return false;
|
|
477
|
+
}
|
|
478
|
+
}
|
|
479
|
+
}
|
|
480
|
+
var valid0 = _errs45 === errors;
|
|
481
|
+
}
|
|
482
|
+
else {
|
|
483
|
+
var valid0 = true;
|
|
484
|
+
}
|
|
485
|
+
if(valid0){
|
|
486
|
+
if(data.minProperties !== undefined){
|
|
487
|
+
const _errs48 = errors;
|
|
488
|
+
if(!(validate11(data.minProperties, {instancePath:instancePath+"/minProperties",parentData:data,parentDataProperty:"minProperties",rootData}))){
|
|
489
|
+
vErrors = vErrors === null ? validate11.errors : vErrors.concat(validate11.errors);
|
|
490
|
+
errors = vErrors.length;
|
|
491
|
+
}
|
|
492
|
+
var valid0 = _errs48 === errors;
|
|
493
|
+
}
|
|
494
|
+
else {
|
|
495
|
+
var valid0 = true;
|
|
496
|
+
}
|
|
497
|
+
if(valid0){
|
|
498
|
+
if(data.required !== undefined){
|
|
499
|
+
let data24 = data.required;
|
|
500
|
+
const _errs49 = errors;
|
|
501
|
+
const _errs50 = errors;
|
|
502
|
+
if(errors === _errs50){
|
|
503
|
+
if(Array.isArray(data24)){
|
|
504
|
+
var valid6 = true;
|
|
505
|
+
const len0 = data24.length;
|
|
506
|
+
for(let i0=0; i0<len0; i0++){
|
|
507
|
+
const _errs52 = errors;
|
|
508
|
+
if(typeof data24[i0] !== "string"){
|
|
509
|
+
validate10.errors = [{instancePath:instancePath+"/required/" + i0,schemaPath:"#/definitions/stringArray/items/type",keyword:"type",params:{type: "string"},message:"must be string"}];
|
|
510
|
+
return false;
|
|
511
|
+
}
|
|
512
|
+
var valid6 = _errs52 === errors;
|
|
513
|
+
if(!valid6){
|
|
514
|
+
break;
|
|
515
|
+
}
|
|
516
|
+
}
|
|
517
|
+
if(valid6){
|
|
518
|
+
let i1 = data24.length;
|
|
519
|
+
let j0;
|
|
520
|
+
if(i1 > 1){
|
|
521
|
+
const indices0 = {};
|
|
522
|
+
for(;i1--;){
|
|
523
|
+
let item0 = data24[i1];
|
|
524
|
+
if(typeof item0 !== "string"){
|
|
525
|
+
continue;
|
|
526
|
+
}
|
|
527
|
+
if(typeof indices0[item0] == "number"){
|
|
528
|
+
j0 = indices0[item0];
|
|
529
|
+
validate10.errors = [{instancePath:instancePath+"/required",schemaPath:"#/definitions/stringArray/uniqueItems",keyword:"uniqueItems",params:{i: i1, j: j0},message:"must NOT have duplicate items (items ## "+j0+" and "+i1+" are identical)"}];
|
|
530
|
+
return false;
|
|
531
|
+
break;
|
|
532
|
+
}
|
|
533
|
+
indices0[item0] = i1;
|
|
534
|
+
}
|
|
535
|
+
}
|
|
536
|
+
}
|
|
537
|
+
}
|
|
538
|
+
else {
|
|
539
|
+
validate10.errors = [{instancePath:instancePath+"/required",schemaPath:"#/definitions/stringArray/type",keyword:"type",params:{type: "array"},message:"must be array"}];
|
|
540
|
+
return false;
|
|
541
|
+
}
|
|
542
|
+
}
|
|
543
|
+
var valid0 = _errs49 === errors;
|
|
544
|
+
}
|
|
545
|
+
else {
|
|
546
|
+
var valid0 = true;
|
|
547
|
+
}
|
|
548
|
+
if(valid0){
|
|
549
|
+
if(data.additionalProperties !== undefined){
|
|
550
|
+
const _errs54 = errors;
|
|
551
|
+
if(!(validate10(data.additionalProperties, {instancePath:instancePath+"/additionalProperties",parentData:data,parentDataProperty:"additionalProperties",rootData}))){
|
|
552
|
+
vErrors = vErrors === null ? validate10.errors : vErrors.concat(validate10.errors);
|
|
553
|
+
errors = vErrors.length;
|
|
554
|
+
}
|
|
555
|
+
var valid0 = _errs54 === errors;
|
|
556
|
+
}
|
|
557
|
+
else {
|
|
558
|
+
var valid0 = true;
|
|
559
|
+
}
|
|
560
|
+
if(valid0){
|
|
561
|
+
if(data.definitions !== undefined){
|
|
562
|
+
let data27 = data.definitions;
|
|
563
|
+
const _errs55 = errors;
|
|
564
|
+
if(errors === _errs55){
|
|
565
|
+
if(data27 && typeof data27 == "object" && !Array.isArray(data27)){
|
|
566
|
+
for(const key0 in data27){
|
|
567
|
+
const _errs58 = errors;
|
|
568
|
+
if(!(validate10(data27[key0], {instancePath:instancePath+"/definitions/" + key0.replace(/~/g, "~0").replace(/\//g, "~1"),parentData:data27,parentDataProperty:key0,rootData}))){
|
|
569
|
+
vErrors = vErrors === null ? validate10.errors : vErrors.concat(validate10.errors);
|
|
570
|
+
errors = vErrors.length;
|
|
571
|
+
}
|
|
572
|
+
var valid8 = _errs58 === errors;
|
|
573
|
+
if(!valid8){
|
|
574
|
+
break;
|
|
575
|
+
}
|
|
576
|
+
}
|
|
577
|
+
}
|
|
578
|
+
else {
|
|
579
|
+
validate10.errors = [{instancePath:instancePath+"/definitions",schemaPath:"#/properties/definitions/type",keyword:"type",params:{type: "object"},message:"must be object"}];
|
|
580
|
+
return false;
|
|
581
|
+
}
|
|
582
|
+
}
|
|
583
|
+
var valid0 = _errs55 === errors;
|
|
584
|
+
}
|
|
585
|
+
else {
|
|
586
|
+
var valid0 = true;
|
|
587
|
+
}
|
|
588
|
+
if(valid0){
|
|
589
|
+
if(data.properties !== undefined){
|
|
590
|
+
let data29 = data.properties;
|
|
591
|
+
const _errs59 = errors;
|
|
592
|
+
if(errors === _errs59){
|
|
593
|
+
if(data29 && typeof data29 == "object" && !Array.isArray(data29)){
|
|
594
|
+
for(const key1 in data29){
|
|
595
|
+
const _errs62 = errors;
|
|
596
|
+
if(!(validate10(data29[key1], {instancePath:instancePath+"/properties/" + key1.replace(/~/g, "~0").replace(/\//g, "~1"),parentData:data29,parentDataProperty:key1,rootData}))){
|
|
597
|
+
vErrors = vErrors === null ? validate10.errors : vErrors.concat(validate10.errors);
|
|
598
|
+
errors = vErrors.length;
|
|
599
|
+
}
|
|
600
|
+
var valid9 = _errs62 === errors;
|
|
601
|
+
if(!valid9){
|
|
602
|
+
break;
|
|
603
|
+
}
|
|
604
|
+
}
|
|
605
|
+
}
|
|
606
|
+
else {
|
|
607
|
+
validate10.errors = [{instancePath:instancePath+"/properties",schemaPath:"#/properties/properties/type",keyword:"type",params:{type: "object"},message:"must be object"}];
|
|
608
|
+
return false;
|
|
609
|
+
}
|
|
610
|
+
}
|
|
611
|
+
var valid0 = _errs59 === errors;
|
|
612
|
+
}
|
|
613
|
+
else {
|
|
614
|
+
var valid0 = true;
|
|
615
|
+
}
|
|
616
|
+
if(valid0){
|
|
617
|
+
if(data.patternProperties !== undefined){
|
|
618
|
+
let data31 = data.patternProperties;
|
|
619
|
+
const _errs63 = errors;
|
|
620
|
+
if(errors === _errs63){
|
|
621
|
+
if(data31 && typeof data31 == "object" && !Array.isArray(data31)){
|
|
622
|
+
for(const key2 in data31){
|
|
623
|
+
const _errs65 = errors;
|
|
624
|
+
if(errors === _errs65){
|
|
625
|
+
if(typeof key2 === "string"){
|
|
626
|
+
if(!(formats6(key2))){
|
|
627
|
+
const err1 = {instancePath:instancePath+"/patternProperties",schemaPath:"#/properties/patternProperties/propertyNames/format",keyword:"format",params:{format: "regex"},message:"must match format \""+"regex"+"\"",propertyName:key2};
|
|
628
|
+
if(vErrors === null){
|
|
629
|
+
vErrors = [err1];
|
|
630
|
+
}
|
|
631
|
+
else {
|
|
632
|
+
vErrors.push(err1);
|
|
633
|
+
}
|
|
634
|
+
errors++;
|
|
635
|
+
}
|
|
636
|
+
}
|
|
637
|
+
}
|
|
638
|
+
var valid10 = _errs65 === errors;
|
|
639
|
+
if(!valid10){
|
|
640
|
+
const err2 = {instancePath:instancePath+"/patternProperties",schemaPath:"#/properties/patternProperties/propertyNames",keyword:"propertyNames",params:{propertyName: key2},message:"property name must be valid"};
|
|
641
|
+
if(vErrors === null){
|
|
642
|
+
vErrors = [err2];
|
|
643
|
+
}
|
|
644
|
+
else {
|
|
645
|
+
vErrors.push(err2);
|
|
646
|
+
}
|
|
647
|
+
errors++;
|
|
648
|
+
validate10.errors = vErrors;
|
|
649
|
+
return false;
|
|
650
|
+
break;
|
|
651
|
+
}
|
|
652
|
+
}
|
|
653
|
+
if(valid10){
|
|
654
|
+
for(const key3 in data31){
|
|
655
|
+
const _errs67 = errors;
|
|
656
|
+
if(!(validate10(data31[key3], {instancePath:instancePath+"/patternProperties/" + key3.replace(/~/g, "~0").replace(/\//g, "~1"),parentData:data31,parentDataProperty:key3,rootData}))){
|
|
657
|
+
vErrors = vErrors === null ? validate10.errors : vErrors.concat(validate10.errors);
|
|
658
|
+
errors = vErrors.length;
|
|
659
|
+
}
|
|
660
|
+
var valid11 = _errs67 === errors;
|
|
661
|
+
if(!valid11){
|
|
662
|
+
break;
|
|
663
|
+
}
|
|
664
|
+
}
|
|
665
|
+
}
|
|
666
|
+
}
|
|
667
|
+
else {
|
|
668
|
+
validate10.errors = [{instancePath:instancePath+"/patternProperties",schemaPath:"#/properties/patternProperties/type",keyword:"type",params:{type: "object"},message:"must be object"}];
|
|
669
|
+
return false;
|
|
670
|
+
}
|
|
671
|
+
}
|
|
672
|
+
var valid0 = _errs63 === errors;
|
|
673
|
+
}
|
|
674
|
+
else {
|
|
675
|
+
var valid0 = true;
|
|
676
|
+
}
|
|
677
|
+
if(valid0){
|
|
678
|
+
if(data.dependencies !== undefined){
|
|
679
|
+
let data33 = data.dependencies;
|
|
680
|
+
const _errs68 = errors;
|
|
681
|
+
if(errors === _errs68){
|
|
682
|
+
if(data33 && typeof data33 == "object" && !Array.isArray(data33)){
|
|
683
|
+
for(const key4 in data33){
|
|
684
|
+
let data34 = data33[key4];
|
|
685
|
+
const _errs71 = errors;
|
|
686
|
+
const _errs72 = errors;
|
|
687
|
+
let valid13 = false;
|
|
688
|
+
const _errs73 = errors;
|
|
689
|
+
if(!(validate10(data34, {instancePath:instancePath+"/dependencies/" + key4.replace(/~/g, "~0").replace(/\//g, "~1"),parentData:data33,parentDataProperty:key4,rootData}))){
|
|
690
|
+
vErrors = vErrors === null ? validate10.errors : vErrors.concat(validate10.errors);
|
|
691
|
+
errors = vErrors.length;
|
|
692
|
+
}
|
|
693
|
+
var _valid1 = _errs73 === errors;
|
|
694
|
+
valid13 = valid13 || _valid1;
|
|
695
|
+
if(!valid13){
|
|
696
|
+
const _errs74 = errors;
|
|
697
|
+
const _errs75 = errors;
|
|
698
|
+
if(errors === _errs75){
|
|
699
|
+
if(Array.isArray(data34)){
|
|
700
|
+
var valid15 = true;
|
|
701
|
+
const len1 = data34.length;
|
|
702
|
+
for(let i2=0; i2<len1; i2++){
|
|
703
|
+
const _errs77 = errors;
|
|
704
|
+
if(typeof data34[i2] !== "string"){
|
|
705
|
+
const err3 = {instancePath:instancePath+"/dependencies/" + key4.replace(/~/g, "~0").replace(/\//g, "~1")+"/" + i2,schemaPath:"#/definitions/stringArray/items/type",keyword:"type",params:{type: "string"},message:"must be string"};
|
|
706
|
+
if(vErrors === null){
|
|
707
|
+
vErrors = [err3];
|
|
708
|
+
}
|
|
709
|
+
else {
|
|
710
|
+
vErrors.push(err3);
|
|
711
|
+
}
|
|
712
|
+
errors++;
|
|
713
|
+
}
|
|
714
|
+
var valid15 = _errs77 === errors;
|
|
715
|
+
if(!valid15){
|
|
716
|
+
break;
|
|
717
|
+
}
|
|
718
|
+
}
|
|
719
|
+
if(valid15){
|
|
720
|
+
let i3 = data34.length;
|
|
721
|
+
let j1;
|
|
722
|
+
if(i3 > 1){
|
|
723
|
+
const indices1 = {};
|
|
724
|
+
for(;i3--;){
|
|
725
|
+
let item1 = data34[i3];
|
|
726
|
+
if(typeof item1 !== "string"){
|
|
727
|
+
continue;
|
|
728
|
+
}
|
|
729
|
+
if(typeof indices1[item1] == "number"){
|
|
730
|
+
j1 = indices1[item1];
|
|
731
|
+
const err4 = {instancePath:instancePath+"/dependencies/" + key4.replace(/~/g, "~0").replace(/\//g, "~1"),schemaPath:"#/definitions/stringArray/uniqueItems",keyword:"uniqueItems",params:{i: i3, j: j1},message:"must NOT have duplicate items (items ## "+j1+" and "+i3+" are identical)"};
|
|
732
|
+
if(vErrors === null){
|
|
733
|
+
vErrors = [err4];
|
|
734
|
+
}
|
|
735
|
+
else {
|
|
736
|
+
vErrors.push(err4);
|
|
737
|
+
}
|
|
738
|
+
errors++;
|
|
739
|
+
break;
|
|
740
|
+
}
|
|
741
|
+
indices1[item1] = i3;
|
|
742
|
+
}
|
|
743
|
+
}
|
|
744
|
+
}
|
|
745
|
+
}
|
|
746
|
+
else {
|
|
747
|
+
const err5 = {instancePath:instancePath+"/dependencies/" + key4.replace(/~/g, "~0").replace(/\//g, "~1"),schemaPath:"#/definitions/stringArray/type",keyword:"type",params:{type: "array"},message:"must be array"};
|
|
748
|
+
if(vErrors === null){
|
|
749
|
+
vErrors = [err5];
|
|
750
|
+
}
|
|
751
|
+
else {
|
|
752
|
+
vErrors.push(err5);
|
|
753
|
+
}
|
|
754
|
+
errors++;
|
|
755
|
+
}
|
|
756
|
+
}
|
|
757
|
+
var _valid1 = _errs74 === errors;
|
|
758
|
+
valid13 = valid13 || _valid1;
|
|
759
|
+
}
|
|
760
|
+
if(!valid13){
|
|
761
|
+
const err6 = {instancePath:instancePath+"/dependencies/" + key4.replace(/~/g, "~0").replace(/\//g, "~1"),schemaPath:"#/properties/dependencies/additionalProperties/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};
|
|
762
|
+
if(vErrors === null){
|
|
763
|
+
vErrors = [err6];
|
|
764
|
+
}
|
|
765
|
+
else {
|
|
766
|
+
vErrors.push(err6);
|
|
767
|
+
}
|
|
768
|
+
errors++;
|
|
769
|
+
validate10.errors = vErrors;
|
|
770
|
+
return false;
|
|
771
|
+
}
|
|
772
|
+
else {
|
|
773
|
+
errors = _errs72;
|
|
774
|
+
if(vErrors !== null){
|
|
775
|
+
if(_errs72){
|
|
776
|
+
vErrors.length = _errs72;
|
|
777
|
+
}
|
|
778
|
+
else {
|
|
779
|
+
vErrors = null;
|
|
780
|
+
}
|
|
781
|
+
}
|
|
782
|
+
}
|
|
783
|
+
var valid12 = _errs71 === errors;
|
|
784
|
+
if(!valid12){
|
|
785
|
+
break;
|
|
786
|
+
}
|
|
787
|
+
}
|
|
788
|
+
}
|
|
789
|
+
else {
|
|
790
|
+
validate10.errors = [{instancePath:instancePath+"/dependencies",schemaPath:"#/properties/dependencies/type",keyword:"type",params:{type: "object"},message:"must be object"}];
|
|
791
|
+
return false;
|
|
792
|
+
}
|
|
793
|
+
}
|
|
794
|
+
var valid0 = _errs68 === errors;
|
|
795
|
+
}
|
|
796
|
+
else {
|
|
797
|
+
var valid0 = true;
|
|
798
|
+
}
|
|
799
|
+
if(valid0){
|
|
800
|
+
if(data.propertyNames !== undefined){
|
|
801
|
+
const _errs79 = errors;
|
|
802
|
+
if(!(validate10(data.propertyNames, {instancePath:instancePath+"/propertyNames",parentData:data,parentDataProperty:"propertyNames",rootData}))){
|
|
803
|
+
vErrors = vErrors === null ? validate10.errors : vErrors.concat(validate10.errors);
|
|
804
|
+
errors = vErrors.length;
|
|
805
|
+
}
|
|
806
|
+
var valid0 = _errs79 === errors;
|
|
807
|
+
}
|
|
808
|
+
else {
|
|
809
|
+
var valid0 = true;
|
|
810
|
+
}
|
|
811
|
+
if(valid0){
|
|
812
|
+
if(data.enum !== undefined){
|
|
813
|
+
let data37 = data.enum;
|
|
814
|
+
const _errs80 = errors;
|
|
815
|
+
if(errors === _errs80){
|
|
816
|
+
if(Array.isArray(data37)){
|
|
817
|
+
if(data37.length < 1){
|
|
818
|
+
validate10.errors = [{instancePath:instancePath+"/enum",schemaPath:"#/properties/enum/minItems",keyword:"minItems",params:{limit: 1},message:"must NOT have fewer than 1 items"}];
|
|
819
|
+
return false;
|
|
820
|
+
}
|
|
821
|
+
else {
|
|
822
|
+
let i4 = data37.length;
|
|
823
|
+
let j2;
|
|
824
|
+
if(i4 > 1){
|
|
825
|
+
outer0:
|
|
826
|
+
for(;i4--;){
|
|
827
|
+
for(j2 = i4; j2--;){
|
|
828
|
+
if(func0(data37[i4], data37[j2])){
|
|
829
|
+
validate10.errors = [{instancePath:instancePath+"/enum",schemaPath:"#/properties/enum/uniqueItems",keyword:"uniqueItems",params:{i: i4, j: j2},message:"must NOT have duplicate items (items ## "+j2+" and "+i4+" are identical)"}];
|
|
830
|
+
return false;
|
|
831
|
+
break outer0;
|
|
832
|
+
}
|
|
833
|
+
}
|
|
834
|
+
}
|
|
835
|
+
}
|
|
836
|
+
}
|
|
837
|
+
}
|
|
838
|
+
else {
|
|
839
|
+
validate10.errors = [{instancePath:instancePath+"/enum",schemaPath:"#/properties/enum/type",keyword:"type",params:{type: "array"},message:"must be array"}];
|
|
840
|
+
return false;
|
|
841
|
+
}
|
|
842
|
+
}
|
|
843
|
+
var valid0 = _errs80 === errors;
|
|
844
|
+
}
|
|
845
|
+
else {
|
|
846
|
+
var valid0 = true;
|
|
847
|
+
}
|
|
848
|
+
if(valid0){
|
|
849
|
+
if(data.type !== undefined){
|
|
850
|
+
let data38 = data.type;
|
|
851
|
+
const _errs82 = errors;
|
|
852
|
+
const _errs83 = errors;
|
|
853
|
+
let valid18 = false;
|
|
854
|
+
const _errs84 = errors;
|
|
855
|
+
if(!(((((((data38 === "array") || (data38 === "boolean")) || (data38 === "integer")) || (data38 === "null")) || (data38 === "number")) || (data38 === "object")) || (data38 === "string"))){
|
|
856
|
+
const err7 = {instancePath:instancePath+"/type",schemaPath:"#/definitions/simpleTypes/enum",keyword:"enum",params:{allowedValues: schema20.enum},message:"must be equal to one of the allowed values"};
|
|
857
|
+
if(vErrors === null){
|
|
858
|
+
vErrors = [err7];
|
|
859
|
+
}
|
|
860
|
+
else {
|
|
861
|
+
vErrors.push(err7);
|
|
862
|
+
}
|
|
863
|
+
errors++;
|
|
864
|
+
}
|
|
865
|
+
var _valid2 = _errs84 === errors;
|
|
866
|
+
valid18 = valid18 || _valid2;
|
|
867
|
+
if(!valid18){
|
|
868
|
+
const _errs86 = errors;
|
|
869
|
+
if(errors === _errs86){
|
|
870
|
+
if(Array.isArray(data38)){
|
|
871
|
+
if(data38.length < 1){
|
|
872
|
+
const err8 = {instancePath:instancePath+"/type",schemaPath:"#/properties/type/anyOf/1/minItems",keyword:"minItems",params:{limit: 1},message:"must NOT have fewer than 1 items"};
|
|
873
|
+
if(vErrors === null){
|
|
874
|
+
vErrors = [err8];
|
|
875
|
+
}
|
|
876
|
+
else {
|
|
877
|
+
vErrors.push(err8);
|
|
878
|
+
}
|
|
879
|
+
errors++;
|
|
880
|
+
}
|
|
881
|
+
else {
|
|
882
|
+
var valid20 = true;
|
|
883
|
+
const len2 = data38.length;
|
|
884
|
+
for(let i5=0; i5<len2; i5++){
|
|
885
|
+
let data39 = data38[i5];
|
|
886
|
+
const _errs88 = errors;
|
|
887
|
+
if(!(((((((data39 === "array") || (data39 === "boolean")) || (data39 === "integer")) || (data39 === "null")) || (data39 === "number")) || (data39 === "object")) || (data39 === "string"))){
|
|
888
|
+
const err9 = {instancePath:instancePath+"/type/" + i5,schemaPath:"#/definitions/simpleTypes/enum",keyword:"enum",params:{allowedValues: schema20.enum},message:"must be equal to one of the allowed values"};
|
|
889
|
+
if(vErrors === null){
|
|
890
|
+
vErrors = [err9];
|
|
891
|
+
}
|
|
892
|
+
else {
|
|
893
|
+
vErrors.push(err9);
|
|
894
|
+
}
|
|
895
|
+
errors++;
|
|
896
|
+
}
|
|
897
|
+
var valid20 = _errs88 === errors;
|
|
898
|
+
if(!valid20){
|
|
899
|
+
break;
|
|
900
|
+
}
|
|
901
|
+
}
|
|
902
|
+
if(valid20){
|
|
903
|
+
let i6 = data38.length;
|
|
904
|
+
let j3;
|
|
905
|
+
if(i6 > 1){
|
|
906
|
+
outer1:
|
|
907
|
+
for(;i6--;){
|
|
908
|
+
for(j3 = i6; j3--;){
|
|
909
|
+
if(func0(data38[i6], data38[j3])){
|
|
910
|
+
const err10 = {instancePath:instancePath+"/type",schemaPath:"#/properties/type/anyOf/1/uniqueItems",keyword:"uniqueItems",params:{i: i6, j: j3},message:"must NOT have duplicate items (items ## "+j3+" and "+i6+" are identical)"};
|
|
911
|
+
if(vErrors === null){
|
|
912
|
+
vErrors = [err10];
|
|
913
|
+
}
|
|
914
|
+
else {
|
|
915
|
+
vErrors.push(err10);
|
|
916
|
+
}
|
|
917
|
+
errors++;
|
|
918
|
+
break outer1;
|
|
919
|
+
}
|
|
920
|
+
}
|
|
921
|
+
}
|
|
922
|
+
}
|
|
923
|
+
}
|
|
924
|
+
}
|
|
925
|
+
}
|
|
926
|
+
else {
|
|
927
|
+
const err11 = {instancePath:instancePath+"/type",schemaPath:"#/properties/type/anyOf/1/type",keyword:"type",params:{type: "array"},message:"must be array"};
|
|
928
|
+
if(vErrors === null){
|
|
929
|
+
vErrors = [err11];
|
|
930
|
+
}
|
|
931
|
+
else {
|
|
932
|
+
vErrors.push(err11);
|
|
933
|
+
}
|
|
934
|
+
errors++;
|
|
935
|
+
}
|
|
936
|
+
}
|
|
937
|
+
var _valid2 = _errs86 === errors;
|
|
938
|
+
valid18 = valid18 || _valid2;
|
|
939
|
+
}
|
|
940
|
+
if(!valid18){
|
|
941
|
+
const err12 = {instancePath:instancePath+"/type",schemaPath:"#/properties/type/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};
|
|
942
|
+
if(vErrors === null){
|
|
943
|
+
vErrors = [err12];
|
|
944
|
+
}
|
|
945
|
+
else {
|
|
946
|
+
vErrors.push(err12);
|
|
947
|
+
}
|
|
948
|
+
errors++;
|
|
949
|
+
validate10.errors = vErrors;
|
|
950
|
+
return false;
|
|
951
|
+
}
|
|
952
|
+
else {
|
|
953
|
+
errors = _errs83;
|
|
954
|
+
if(vErrors !== null){
|
|
955
|
+
if(_errs83){
|
|
956
|
+
vErrors.length = _errs83;
|
|
957
|
+
}
|
|
958
|
+
else {
|
|
959
|
+
vErrors = null;
|
|
960
|
+
}
|
|
961
|
+
}
|
|
962
|
+
}
|
|
963
|
+
var valid0 = _errs82 === errors;
|
|
964
|
+
}
|
|
965
|
+
else {
|
|
966
|
+
var valid0 = true;
|
|
967
|
+
}
|
|
968
|
+
if(valid0){
|
|
969
|
+
if(data.format !== undefined){
|
|
970
|
+
const _errs90 = errors;
|
|
971
|
+
if(typeof data.format !== "string"){
|
|
972
|
+
validate10.errors = [{instancePath:instancePath+"/format",schemaPath:"#/properties/format/type",keyword:"type",params:{type: "string"},message:"must be string"}];
|
|
973
|
+
return false;
|
|
974
|
+
}
|
|
975
|
+
var valid0 = _errs90 === errors;
|
|
976
|
+
}
|
|
977
|
+
else {
|
|
978
|
+
var valid0 = true;
|
|
979
|
+
}
|
|
980
|
+
if(valid0){
|
|
981
|
+
if(data.contentMediaType !== undefined){
|
|
982
|
+
const _errs92 = errors;
|
|
983
|
+
if(typeof data.contentMediaType !== "string"){
|
|
984
|
+
validate10.errors = [{instancePath:instancePath+"/contentMediaType",schemaPath:"#/properties/contentMediaType/type",keyword:"type",params:{type: "string"},message:"must be string"}];
|
|
985
|
+
return false;
|
|
986
|
+
}
|
|
987
|
+
var valid0 = _errs92 === errors;
|
|
988
|
+
}
|
|
989
|
+
else {
|
|
990
|
+
var valid0 = true;
|
|
991
|
+
}
|
|
992
|
+
if(valid0){
|
|
993
|
+
if(data.contentEncoding !== undefined){
|
|
994
|
+
const _errs94 = errors;
|
|
995
|
+
if(typeof data.contentEncoding !== "string"){
|
|
996
|
+
validate10.errors = [{instancePath:instancePath+"/contentEncoding",schemaPath:"#/properties/contentEncoding/type",keyword:"type",params:{type: "string"},message:"must be string"}];
|
|
997
|
+
return false;
|
|
998
|
+
}
|
|
999
|
+
var valid0 = _errs94 === errors;
|
|
1000
|
+
}
|
|
1001
|
+
else {
|
|
1002
|
+
var valid0 = true;
|
|
1003
|
+
}
|
|
1004
|
+
if(valid0){
|
|
1005
|
+
if(data.if !== undefined){
|
|
1006
|
+
const _errs96 = errors;
|
|
1007
|
+
if(!(validate10(data.if, {instancePath:instancePath+"/if",parentData:data,parentDataProperty:"if",rootData}))){
|
|
1008
|
+
vErrors = vErrors === null ? validate10.errors : vErrors.concat(validate10.errors);
|
|
1009
|
+
errors = vErrors.length;
|
|
1010
|
+
}
|
|
1011
|
+
var valid0 = _errs96 === errors;
|
|
1012
|
+
}
|
|
1013
|
+
else {
|
|
1014
|
+
var valid0 = true;
|
|
1015
|
+
}
|
|
1016
|
+
if(valid0){
|
|
1017
|
+
if(data.then !== undefined){
|
|
1018
|
+
const _errs97 = errors;
|
|
1019
|
+
if(!(validate10(data.then, {instancePath:instancePath+"/then",parentData:data,parentDataProperty:"then",rootData}))){
|
|
1020
|
+
vErrors = vErrors === null ? validate10.errors : vErrors.concat(validate10.errors);
|
|
1021
|
+
errors = vErrors.length;
|
|
1022
|
+
}
|
|
1023
|
+
var valid0 = _errs97 === errors;
|
|
1024
|
+
}
|
|
1025
|
+
else {
|
|
1026
|
+
var valid0 = true;
|
|
1027
|
+
}
|
|
1028
|
+
if(valid0){
|
|
1029
|
+
if(data.else !== undefined){
|
|
1030
|
+
const _errs98 = errors;
|
|
1031
|
+
if(!(validate10(data.else, {instancePath:instancePath+"/else",parentData:data,parentDataProperty:"else",rootData}))){
|
|
1032
|
+
vErrors = vErrors === null ? validate10.errors : vErrors.concat(validate10.errors);
|
|
1033
|
+
errors = vErrors.length;
|
|
1034
|
+
}
|
|
1035
|
+
var valid0 = _errs98 === errors;
|
|
1036
|
+
}
|
|
1037
|
+
else {
|
|
1038
|
+
var valid0 = true;
|
|
1039
|
+
}
|
|
1040
|
+
if(valid0){
|
|
1041
|
+
if(data.allOf !== undefined){
|
|
1042
|
+
const _errs99 = errors;
|
|
1043
|
+
if(!(validate13(data.allOf, {instancePath:instancePath+"/allOf",parentData:data,parentDataProperty:"allOf",rootData}))){
|
|
1044
|
+
vErrors = vErrors === null ? validate13.errors : vErrors.concat(validate13.errors);
|
|
1045
|
+
errors = vErrors.length;
|
|
1046
|
+
}
|
|
1047
|
+
var valid0 = _errs99 === errors;
|
|
1048
|
+
}
|
|
1049
|
+
else {
|
|
1050
|
+
var valid0 = true;
|
|
1051
|
+
}
|
|
1052
|
+
if(valid0){
|
|
1053
|
+
if(data.anyOf !== undefined){
|
|
1054
|
+
const _errs100 = errors;
|
|
1055
|
+
if(!(validate13(data.anyOf, {instancePath:instancePath+"/anyOf",parentData:data,parentDataProperty:"anyOf",rootData}))){
|
|
1056
|
+
vErrors = vErrors === null ? validate13.errors : vErrors.concat(validate13.errors);
|
|
1057
|
+
errors = vErrors.length;
|
|
1058
|
+
}
|
|
1059
|
+
var valid0 = _errs100 === errors;
|
|
1060
|
+
}
|
|
1061
|
+
else {
|
|
1062
|
+
var valid0 = true;
|
|
1063
|
+
}
|
|
1064
|
+
if(valid0){
|
|
1065
|
+
if(data.oneOf !== undefined){
|
|
1066
|
+
const _errs101 = errors;
|
|
1067
|
+
if(!(validate13(data.oneOf, {instancePath:instancePath+"/oneOf",parentData:data,parentDataProperty:"oneOf",rootData}))){
|
|
1068
|
+
vErrors = vErrors === null ? validate13.errors : vErrors.concat(validate13.errors);
|
|
1069
|
+
errors = vErrors.length;
|
|
1070
|
+
}
|
|
1071
|
+
var valid0 = _errs101 === errors;
|
|
1072
|
+
}
|
|
1073
|
+
else {
|
|
1074
|
+
var valid0 = true;
|
|
1075
|
+
}
|
|
1076
|
+
if(valid0){
|
|
1077
|
+
if(data.not !== undefined){
|
|
1078
|
+
const _errs102 = errors;
|
|
1079
|
+
if(!(validate10(data.not, {instancePath:instancePath+"/not",parentData:data,parentDataProperty:"not",rootData}))){
|
|
1080
|
+
vErrors = vErrors === null ? validate10.errors : vErrors.concat(validate10.errors);
|
|
1081
|
+
errors = vErrors.length;
|
|
1082
|
+
}
|
|
1083
|
+
var valid0 = _errs102 === errors;
|
|
1084
|
+
}
|
|
1085
|
+
else {
|
|
1086
|
+
var valid0 = true;
|
|
1087
|
+
}
|
|
1088
|
+
}
|
|
1089
|
+
}
|
|
1090
|
+
}
|
|
1091
|
+
}
|
|
1092
|
+
}
|
|
1093
|
+
}
|
|
1094
|
+
}
|
|
1095
|
+
}
|
|
1096
|
+
}
|
|
1097
|
+
}
|
|
1098
|
+
}
|
|
1099
|
+
}
|
|
1100
|
+
}
|
|
1101
|
+
}
|
|
1102
|
+
}
|
|
1103
|
+
}
|
|
1104
|
+
}
|
|
1105
|
+
}
|
|
1106
|
+
}
|
|
1107
|
+
}
|
|
1108
|
+
}
|
|
1109
|
+
}
|
|
1110
|
+
}
|
|
1111
|
+
}
|
|
1112
|
+
}
|
|
1113
|
+
}
|
|
1114
|
+
}
|
|
1115
|
+
}
|
|
1116
|
+
}
|
|
1117
|
+
}
|
|
1118
|
+
}
|
|
1119
|
+
}
|
|
1120
|
+
}
|
|
1121
|
+
}
|
|
1122
|
+
}
|
|
1123
|
+
}
|
|
1124
|
+
}
|
|
1125
|
+
}
|
|
1126
|
+
}
|
|
1127
|
+
}
|
|
1128
|
+
}
|
|
1129
|
+
}
|
|
1130
|
+
}
|
|
1131
|
+
}
|
|
1132
|
+
validate10.errors = vErrors;
|
|
1133
|
+
return errors === 0;
|
|
1134
|
+
}
|