@3sixty/data-json-ld 0.0.0-stage → 0.20.0-next.1
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/LICENSE +201 -0
- package/README.md +24 -2
- package/dist/es/compiled/validators.js +3895 -0
- package/dist/es/compiled/validators.js.map +1 -0
- package/dist/es/dataTypes/jsonLdDataTypes.js +170 -0
- package/dist/es/dataTypes/jsonLdDataTypes.js.map +1 -0
- package/dist/es/helpers/jsonLdAliasKey.js +4 -0
- package/dist/es/helpers/jsonLdAliasKey.js.map +1 -0
- package/dist/es/helpers/jsonLdExistingProperty.js +4 -0
- package/dist/es/helpers/jsonLdExistingProperty.js.map +1 -0
- package/dist/es/helpers/jsonLdExistingPropertyEither.js +2 -0
- package/dist/es/helpers/jsonLdExistingPropertyEither.js.map +1 -0
- package/dist/es/helpers/jsonLdKeys.js +4 -0
- package/dist/es/helpers/jsonLdKeys.js.map +1 -0
- package/dist/es/helpers/jsonLdObjectWithAliases.js +2 -0
- package/dist/es/helpers/jsonLdObjectWithAliases.js.map +1 -0
- package/dist/es/helpers/jsonLdObjectWithAtId.js +2 -0
- package/dist/es/helpers/jsonLdObjectWithAtId.js.map +1 -0
- package/dist/es/helpers/jsonLdObjectWithAtType.js +2 -0
- package/dist/es/helpers/jsonLdObjectWithAtType.js.map +1 -0
- package/dist/es/helpers/jsonLdObjectWithContext.js +2 -0
- package/dist/es/helpers/jsonLdObjectWithContext.js.map +1 -0
- package/dist/es/helpers/jsonLdObjectWithId.js +2 -0
- package/dist/es/helpers/jsonLdObjectWithId.js.map +1 -0
- package/dist/es/helpers/jsonLdObjectWithNoAtId.js +4 -0
- package/dist/es/helpers/jsonLdObjectWithNoAtId.js.map +1 -0
- package/dist/es/helpers/jsonLdObjectWithNoAtType.js +4 -0
- package/dist/es/helpers/jsonLdObjectWithNoAtType.js.map +1 -0
- package/dist/es/helpers/jsonLdObjectWithNoContext.js +4 -0
- package/dist/es/helpers/jsonLdObjectWithNoContext.js.map +1 -0
- package/dist/es/helpers/jsonLdObjectWithNoId.js +4 -0
- package/dist/es/helpers/jsonLdObjectWithNoId.js.map +1 -0
- package/dist/es/helpers/jsonLdObjectWithNoType.js +4 -0
- package/dist/es/helpers/jsonLdObjectWithNoType.js.map +1 -0
- package/dist/es/helpers/jsonLdObjectWithOptionalAtId.js +2 -0
- package/dist/es/helpers/jsonLdObjectWithOptionalAtId.js.map +1 -0
- package/dist/es/helpers/jsonLdObjectWithOptionalAtType.js +2 -0
- package/dist/es/helpers/jsonLdObjectWithOptionalAtType.js.map +1 -0
- package/dist/es/helpers/jsonLdObjectWithOptionalContext.js +2 -0
- package/dist/es/helpers/jsonLdObjectWithOptionalContext.js.map +1 -0
- package/dist/es/helpers/jsonLdObjectWithOptionalId.js +2 -0
- package/dist/es/helpers/jsonLdObjectWithOptionalId.js.map +1 -0
- package/dist/es/helpers/jsonLdObjectWithOptionalType.js +2 -0
- package/dist/es/helpers/jsonLdObjectWithOptionalType.js.map +1 -0
- package/dist/es/helpers/jsonLdObjectWithType.js +2 -0
- package/dist/es/helpers/jsonLdObjectWithType.js.map +1 -0
- package/dist/es/helpers/jsonLdOptionalKeys.js +4 -0
- package/dist/es/helpers/jsonLdOptionalKeys.js.map +1 -0
- package/dist/es/helpers/jsonLdRequiredKeys.js +2 -0
- package/dist/es/helpers/jsonLdRequiredKeys.js.map +1 -0
- package/dist/es/helpers/jsonLdWithAliases.js +2 -0
- package/dist/es/helpers/jsonLdWithAliases.js.map +1 -0
- package/dist/es/index.js +57 -0
- package/dist/es/index.js.map +1 -0
- package/dist/es/models/IJsonLdContainerType.js +4 -0
- package/dist/es/models/IJsonLdContainerType.js.map +1 -0
- package/dist/es/models/IJsonLdContainerTypeArray.js +2 -0
- package/dist/es/models/IJsonLdContainerTypeArray.js.map +1 -0
- package/dist/es/models/IJsonLdContextDefinition.js +2 -0
- package/dist/es/models/IJsonLdContextDefinition.js.map +1 -0
- package/dist/es/models/IJsonLdContextDefinitionElement.js +2 -0
- package/dist/es/models/IJsonLdContextDefinitionElement.js.map +1 -0
- package/dist/es/models/IJsonLdContextDefinitionRoot.js +2 -0
- package/dist/es/models/IJsonLdContextDefinitionRoot.js.map +1 -0
- package/dist/es/models/IJsonLdDocument.js +2 -0
- package/dist/es/models/IJsonLdDocument.js.map +1 -0
- package/dist/es/models/IJsonLdExpandedTermDefinition.js +2 -0
- package/dist/es/models/IJsonLdExpandedTermDefinition.js.map +1 -0
- package/dist/es/models/IJsonLdGraphObject.js +2 -0
- package/dist/es/models/IJsonLdGraphObject.js.map +1 -0
- package/dist/es/models/IJsonLdIdMap.js +2 -0
- package/dist/es/models/IJsonLdIdMap.js.map +1 -0
- package/dist/es/models/IJsonLdIncludedBlock.js +2 -0
- package/dist/es/models/IJsonLdIncludedBlock.js.map +1 -0
- package/dist/es/models/IJsonLdIndexMap.js +2 -0
- package/dist/es/models/IJsonLdIndexMap.js.map +1 -0
- package/dist/es/models/IJsonLdIndexMapItem.js +2 -0
- package/dist/es/models/IJsonLdIndexMapItem.js.map +1 -0
- package/dist/es/models/IJsonLdJsonArray.js +2 -0
- package/dist/es/models/IJsonLdJsonArray.js.map +1 -0
- package/dist/es/models/IJsonLdJsonObject.js +2 -0
- package/dist/es/models/IJsonLdJsonObject.js.map +1 -0
- package/dist/es/models/IJsonLdJsonPrimitive.js +4 -0
- package/dist/es/models/IJsonLdJsonPrimitive.js.map +1 -0
- package/dist/es/models/IJsonLdJsonValue.js +2 -0
- package/dist/es/models/IJsonLdJsonValue.js.map +1 -0
- package/dist/es/models/IJsonLdLanguageMap.js +4 -0
- package/dist/es/models/IJsonLdLanguageMap.js.map +1 -0
- package/dist/es/models/IJsonLdListObject.js +2 -0
- package/dist/es/models/IJsonLdListObject.js.map +1 -0
- package/dist/es/models/IJsonLdListOrSetItem.js +2 -0
- package/dist/es/models/IJsonLdListOrSetItem.js.map +1 -0
- package/dist/es/models/IJsonLdNodeObject.js +2 -0
- package/dist/es/models/IJsonLdNodeObject.js.map +1 -0
- package/dist/es/models/IJsonLdNodePrimitive.js +2 -0
- package/dist/es/models/IJsonLdNodePrimitive.js.map +1 -0
- package/dist/es/models/IJsonLdObject.js +2 -0
- package/dist/es/models/IJsonLdObject.js.map +1 -0
- package/dist/es/models/IJsonLdSetObject.js +2 -0
- package/dist/es/models/IJsonLdSetObject.js.map +1 -0
- package/dist/es/models/IJsonLdTypeMap.js +2 -0
- package/dist/es/models/IJsonLdTypeMap.js.map +1 -0
- package/dist/es/models/IJsonLdValueObject.js +2 -0
- package/dist/es/models/IJsonLdValueObject.js.map +1 -0
- package/dist/es/models/jsonLdContexts.js +21 -0
- package/dist/es/models/jsonLdContexts.js.map +1 -0
- package/dist/es/models/jsonLdTypes.js +113 -0
- package/dist/es/models/jsonLdTypes.js.map +1 -0
- package/dist/es/schemas/JsonLdContainerType.json +23 -0
- package/dist/es/schemas/JsonLdContainerTypeArray.json +166 -0
- package/dist/es/schemas/JsonLdContextDefinition.json +134 -0
- package/dist/es/schemas/JsonLdContextDefinitionElement.json +17 -0
- package/dist/es/schemas/JsonLdContextDefinitionRoot.json +17 -0
- package/dist/es/schemas/JsonLdDocument.json +48 -0
- package/dist/es/schemas/JsonLdExpandedTermDefinition.json +148 -0
- package/dist/es/schemas/JsonLdGraphObject.json +44 -0
- package/dist/es/schemas/JsonLdIdMap.json +10 -0
- package/dist/es/schemas/JsonLdIncludedBlock.json +17 -0
- package/dist/es/schemas/JsonLdIndexMap.json +20 -0
- package/dist/es/schemas/JsonLdIndexMapItem.json +32 -0
- package/dist/es/schemas/JsonLdJsonArray.json +10 -0
- package/dist/es/schemas/JsonLdJsonObject.json +10 -0
- package/dist/es/schemas/JsonLdJsonPrimitive.json +20 -0
- package/dist/es/schemas/JsonLdJsonValue.json +17 -0
- package/dist/es/schemas/JsonLdLanguageMap.json +23 -0
- package/dist/es/schemas/JsonLdListObject.json +28 -0
- package/dist/es/schemas/JsonLdListOrSetItem.json +26 -0
- package/dist/es/schemas/JsonLdNodeObject.json +40 -0
- package/dist/es/schemas/JsonLdNodePrimitive.json +35 -0
- package/dist/es/schemas/JsonLdObject.json +76 -0
- package/dist/es/schemas/JsonLdSetObject.json +28 -0
- package/dist/es/schemas/JsonLdTypeMap.json +17 -0
- package/dist/es/schemas/JsonLdValueObject.json +125 -0
- package/dist/es/utils/jsonLdHelper.js +301 -0
- package/dist/es/utils/jsonLdHelper.js.map +1 -0
- package/dist/es/utils/jsonLdProcessor.js +507 -0
- package/dist/es/utils/jsonLdProcessor.js.map +1 -0
- package/dist/types/compiled/validators.d.ts +101 -0
- package/dist/types/dataTypes/jsonLdDataTypes.d.ts +9 -0
- package/dist/types/helpers/jsonLdAliasKey.d.ts +4 -0
- package/dist/types/helpers/jsonLdExistingProperty.d.ts +6 -0
- package/dist/types/helpers/jsonLdExistingPropertyEither.d.ts +6 -0
- package/dist/types/helpers/jsonLdKeys.d.ts +4 -0
- package/dist/types/helpers/jsonLdObjectWithAliases.d.ts +7 -0
- package/dist/types/helpers/jsonLdObjectWithAtId.d.ts +7 -0
- package/dist/types/helpers/jsonLdObjectWithAtType.d.ts +7 -0
- package/dist/types/helpers/jsonLdObjectWithContext.d.ts +7 -0
- package/dist/types/helpers/jsonLdObjectWithId.d.ts +7 -0
- package/dist/types/helpers/jsonLdObjectWithNoAtId.d.ts +4 -0
- package/dist/types/helpers/jsonLdObjectWithNoAtType.d.ts +4 -0
- package/dist/types/helpers/jsonLdObjectWithNoContext.d.ts +5 -0
- package/dist/types/helpers/jsonLdObjectWithNoId.d.ts +4 -0
- package/dist/types/helpers/jsonLdObjectWithNoType.d.ts +4 -0
- package/dist/types/helpers/jsonLdObjectWithOptionalAtId.d.ts +7 -0
- package/dist/types/helpers/jsonLdObjectWithOptionalAtType.d.ts +7 -0
- package/dist/types/helpers/jsonLdObjectWithOptionalContext.d.ts +9 -0
- package/dist/types/helpers/jsonLdObjectWithOptionalId.d.ts +7 -0
- package/dist/types/helpers/jsonLdObjectWithOptionalType.d.ts +7 -0
- package/dist/types/helpers/jsonLdObjectWithType.d.ts +7 -0
- package/dist/types/helpers/jsonLdOptionalKeys.d.ts +6 -0
- package/dist/types/helpers/jsonLdRequiredKeys.d.ts +5 -0
- package/dist/types/helpers/jsonLdWithAliases.d.ts +13 -0
- package/dist/types/index.d.ts +54 -0
- package/dist/types/models/IJsonLdContainerType.d.ts +8 -0
- package/dist/types/models/IJsonLdContainerTypeArray.d.ts +9 -0
- package/dist/types/models/IJsonLdContextDefinition.d.ts +24 -0
- package/dist/types/models/IJsonLdContextDefinitionElement.d.ts +9 -0
- package/dist/types/models/IJsonLdContextDefinitionRoot.d.ts +9 -0
- package/dist/types/models/IJsonLdDocument.d.ts +17 -0
- package/dist/types/models/IJsonLdExpandedTermDefinition.d.ts +29 -0
- package/dist/types/models/IJsonLdGraphObject.d.ts +16 -0
- package/dist/types/models/IJsonLdIdMap.d.ts +12 -0
- package/dist/types/models/IJsonLdIncludedBlock.d.ts +10 -0
- package/dist/types/models/IJsonLdIndexMap.d.ts +13 -0
- package/dist/types/models/IJsonLdIndexMapItem.d.ts +12 -0
- package/dist/types/models/IJsonLdJsonArray.d.ts +9 -0
- package/dist/types/models/IJsonLdJsonObject.d.ts +11 -0
- package/dist/types/models/IJsonLdJsonPrimitive.d.ts +8 -0
- package/dist/types/models/IJsonLdJsonValue.d.ts +11 -0
- package/dist/types/models/IJsonLdLanguageMap.d.ts +11 -0
- package/dist/types/models/IJsonLdListObject.d.ts +13 -0
- package/dist/types/models/IJsonLdListOrSetItem.d.ts +10 -0
- package/dist/types/models/IJsonLdNodeObject.d.ts +19 -0
- package/dist/types/models/IJsonLdNodePrimitive.d.ts +13 -0
- package/dist/types/models/IJsonLdObject.d.ts +25 -0
- package/dist/types/models/IJsonLdSetObject.d.ts +13 -0
- package/dist/types/models/IJsonLdTypeMap.d.ts +12 -0
- package/dist/types/models/IJsonLdValueObject.d.ts +26 -0
- package/dist/types/models/jsonLdContexts.d.ts +21 -0
- package/dist/types/models/jsonLdTypes.d.ts +113 -0
- package/dist/types/utils/jsonLdHelper.d.ts +97 -0
- package/dist/types/utils/jsonLdProcessor.d.ts +117 -0
- package/docs/changelog.md +15 -0
- package/docs/examples.md +214 -0
- package/docs/reference/classes/JsonLdDataTypes.md +25 -0
- package/docs/reference/classes/JsonLdHelper.md +371 -0
- package/docs/reference/classes/JsonLdProcessor.md +400 -0
- package/docs/reference/index.md +93 -0
- package/docs/reference/interfaces/IJsonLdContextDefinition.md +73 -0
- package/docs/reference/interfaces/IJsonLdGraphObject.md +31 -0
- package/docs/reference/interfaces/IJsonLdIdMap.md +11 -0
- package/docs/reference/interfaces/IJsonLdIndexMap.md +12 -0
- package/docs/reference/interfaces/IJsonLdJsonObject.md +7 -0
- package/docs/reference/interfaces/IJsonLdLanguageMap.md +11 -0
- package/docs/reference/interfaces/IJsonLdListObject.md +19 -0
- package/docs/reference/interfaces/IJsonLdNodeObject.md +100 -0
- package/docs/reference/interfaces/IJsonLdObject.md +64 -0
- package/docs/reference/interfaces/IJsonLdSetObject.md +19 -0
- package/docs/reference/interfaces/IJsonLdTypeMap.md +11 -0
- package/docs/reference/type-aliases/IJsonLdContainerType.md +5 -0
- package/docs/reference/type-aliases/IJsonLdContainerTypeArray.md +5 -0
- package/docs/reference/type-aliases/IJsonLdContextDefinitionElement.md +5 -0
- package/docs/reference/type-aliases/IJsonLdContextDefinitionRoot.md +5 -0
- package/docs/reference/type-aliases/IJsonLdDocument.md +11 -0
- package/docs/reference/type-aliases/IJsonLdExpandedTermDefinition.md +41 -0
- package/docs/reference/type-aliases/IJsonLdIncludedBlock.md +9 -0
- package/docs/reference/type-aliases/IJsonLdIndexMapItem.md +5 -0
- package/docs/reference/type-aliases/IJsonLdJsonArray.md +5 -0
- package/docs/reference/type-aliases/IJsonLdJsonPrimitive.md +5 -0
- package/docs/reference/type-aliases/IJsonLdJsonValue.md +5 -0
- package/docs/reference/type-aliases/IJsonLdListOrSetItem.md +5 -0
- package/docs/reference/type-aliases/IJsonLdNodePrimitive.md +5 -0
- package/docs/reference/type-aliases/IJsonLdValueObject.md +20 -0
- package/docs/reference/type-aliases/JsonLdAliasKey.md +15 -0
- package/docs/reference/type-aliases/JsonLdContexts.md +5 -0
- package/docs/reference/type-aliases/JsonLdExistingProperty.md +19 -0
- package/docs/reference/type-aliases/JsonLdExistingPropertyEither.md +24 -0
- package/docs/reference/type-aliases/JsonLdKeys.md +11 -0
- package/docs/reference/type-aliases/JsonLdObjectWithAliases.md +16 -0
- package/docs/reference/type-aliases/JsonLdObjectWithAtId.md +21 -0
- package/docs/reference/type-aliases/JsonLdObjectWithAtType.md +21 -0
- package/docs/reference/type-aliases/JsonLdObjectWithContext.md +21 -0
- package/docs/reference/type-aliases/JsonLdObjectWithId.md +21 -0
- package/docs/reference/type-aliases/JsonLdObjectWithNoAtId.md +11 -0
- package/docs/reference/type-aliases/JsonLdObjectWithNoAtType.md +11 -0
- package/docs/reference/type-aliases/JsonLdObjectWithNoContext.md +12 -0
- package/docs/reference/type-aliases/JsonLdObjectWithNoId.md +11 -0
- package/docs/reference/type-aliases/JsonLdObjectWithNoType.md +11 -0
- package/docs/reference/type-aliases/JsonLdObjectWithOptionalAtId.md +21 -0
- package/docs/reference/type-aliases/JsonLdObjectWithOptionalAtType.md +21 -0
- package/docs/reference/type-aliases/JsonLdObjectWithOptionalContext.md +22 -0
- package/docs/reference/type-aliases/JsonLdObjectWithOptionalId.md +21 -0
- package/docs/reference/type-aliases/JsonLdObjectWithOptionalType.md +21 -0
- package/docs/reference/type-aliases/JsonLdObjectWithType.md +21 -0
- package/docs/reference/type-aliases/JsonLdOptionalKeys.md +11 -0
- package/docs/reference/type-aliases/JsonLdRequiredKeys.md +11 -0
- package/docs/reference/type-aliases/JsonLdTypes.md +5 -0
- package/docs/reference/type-aliases/JsonLdWithAliases.md +17 -0
- package/docs/reference/variables/CompiledJsonLdContainerType.md +5 -0
- package/docs/reference/variables/CompiledJsonLdContainerTypeArray.md +5 -0
- package/docs/reference/variables/CompiledJsonLdContextDefinition.md +5 -0
- package/docs/reference/variables/CompiledJsonLdContextDefinitionElement.md +5 -0
- package/docs/reference/variables/CompiledJsonLdContextDefinitionRoot.md +5 -0
- package/docs/reference/variables/CompiledJsonLdDocument.md +5 -0
- package/docs/reference/variables/CompiledJsonLdExpandedTermDefinition.md +5 -0
- package/docs/reference/variables/CompiledJsonLdGraphObject.md +5 -0
- package/docs/reference/variables/CompiledJsonLdIdMap.md +5 -0
- package/docs/reference/variables/CompiledJsonLdIncludedBlock.md +5 -0
- package/docs/reference/variables/CompiledJsonLdIndexMap.md +5 -0
- package/docs/reference/variables/CompiledJsonLdIndexMapItem.md +5 -0
- package/docs/reference/variables/CompiledJsonLdJsonArray.md +5 -0
- package/docs/reference/variables/CompiledJsonLdJsonObject.md +5 -0
- package/docs/reference/variables/CompiledJsonLdJsonPrimitive.md +5 -0
- package/docs/reference/variables/CompiledJsonLdJsonValue.md +5 -0
- package/docs/reference/variables/CompiledJsonLdLanguageMap.md +5 -0
- package/docs/reference/variables/CompiledJsonLdListObject.md +5 -0
- package/docs/reference/variables/CompiledJsonLdListOrSetItem.md +5 -0
- package/docs/reference/variables/CompiledJsonLdNodeObject.md +5 -0
- package/docs/reference/variables/CompiledJsonLdNodePrimitive.md +5 -0
- package/docs/reference/variables/CompiledJsonLdObject.md +5 -0
- package/docs/reference/variables/CompiledJsonLdSetObject.md +5 -0
- package/docs/reference/variables/CompiledJsonLdTypeMap.md +5 -0
- package/docs/reference/variables/CompiledJsonLdValueObject.md +5 -0
- package/docs/reference/variables/JsonLdContexts.md +25 -0
- package/docs/reference/variables/JsonLdTypes.md +163 -0
- package/locales/.validate-ignore +1 -0
- package/locales/en.json +11 -0
- package/package.json +52 -5
|
@@ -0,0 +1,3895 @@
|
|
|
1
|
+
const MESSAGES = ["must be equal to constant", "must match a schema in anyOf", "must NOT have more than 2 items", "must NOT have fewer than 2 items", "must be array", "must NOT have more than 3 items", "must NOT have fewer than 3 items", "must be string", "must be boolean", "must be object", "must be null", "must be number"];
|
|
2
|
+
function createError(instancePath, schemaPath, keyword, params, message) {
|
|
3
|
+
return { instancePath, schemaPath, keyword, params, ["message"]: typeof message === "number" ? MESSAGES[message] : message };
|
|
4
|
+
}
|
|
5
|
+
function pushError(errors, error) {
|
|
6
|
+
if (errors === null) {
|
|
7
|
+
return [error];
|
|
8
|
+
}
|
|
9
|
+
errors.push(error);
|
|
10
|
+
return errors;
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* Compiled validator for the JsonLdDocument schema.
|
|
14
|
+
*/
|
|
15
|
+
export const CompiledJsonLdDocument = validate52;
|
|
16
|
+
const schema24 = { "$schema": "https://json-schema.org/draft/2020-12/schema", "$id": "https://schema.3sixty.global/json-ld/JsonLdContextDefinition", "title": "JsonLdContextDefinition", "description": "A context definition defines a local context in a node object.", "type": "object", "properties": { "@base": { "anyOf": [{ "type": "string" }, { "type": "null" }] }, "@direction": { "anyOf": [{ "const": "ltr" }, { "const": "rtl" }, { "type": "null" }] }, "@import": { "type": "string" }, "@language": { "type": "string" }, "@propagate": { "type": "boolean" }, "@protected": { "type": "boolean" }, "@type": { "type": "object", "properties": { "@container": { "const": "@set" }, "@protected": { "type": "boolean" } }, "required": ["@container"] }, "@version": { "const": "1.1" }, "@vocab": { "anyOf": [{ "type": "string" }, { "type": "null" }] } }, "additionalProperties": { "anyOf": [{ "type": "null" }, { "type": "string" }, { "$ref": "https://schema.3sixty.global/json-ld/JsonLdExpandedTermDefinition" }, { "anyOf": [{ "anyOf": [{ "type": "string" }, { "type": "null" }] }, { "anyOf": [{ "const": "ltr" }, { "const": "rtl" }, { "type": "null" }] }, { "type": "string" }, { "type": "boolean" }, { "type": "object", "properties": { "@container": { "const": "@set" }, "@protected": { "type": "boolean" } }, "required": ["@container"] }, { "const": "1.1" }] }] } };
|
|
17
|
+
const func1 = Object.prototype.hasOwnProperty;
|
|
18
|
+
const wrapper0 = { validate: validate57 };
|
|
19
|
+
function validate59(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
|
|
20
|
+
/*# sourceURL="https://schema.3sixty.global/json-ld/JsonLdContainerType" */ ;
|
|
21
|
+
let vErrors = null;
|
|
22
|
+
let errors = 0;
|
|
23
|
+
const evaluated0 = validate59.evaluated;
|
|
24
|
+
if (evaluated0.dynamicProps) {
|
|
25
|
+
evaluated0.props = undefined;
|
|
26
|
+
}
|
|
27
|
+
if (evaluated0.dynamicItems) {
|
|
28
|
+
evaluated0.items = undefined;
|
|
29
|
+
}
|
|
30
|
+
const _errs0 = errors;
|
|
31
|
+
let valid0 = false;
|
|
32
|
+
const _errs1 = errors;
|
|
33
|
+
if ("@language" !== data) {
|
|
34
|
+
const err0 = createError(instancePath, "#/anyOf/0/const", "const", { allowedValue: "@language" }, 0);
|
|
35
|
+
vErrors = pushError(vErrors, err0);
|
|
36
|
+
errors++;
|
|
37
|
+
}
|
|
38
|
+
var _valid0 = _errs1 === errors;
|
|
39
|
+
valid0 = valid0 || _valid0;
|
|
40
|
+
const _errs2 = errors;
|
|
41
|
+
if ("@index" !== data) {
|
|
42
|
+
const err1 = createError(instancePath, "#/anyOf/1/const", "const", { allowedValue: "@index" }, 0);
|
|
43
|
+
vErrors = pushError(vErrors, err1);
|
|
44
|
+
errors++;
|
|
45
|
+
}
|
|
46
|
+
var _valid0 = _errs2 === errors;
|
|
47
|
+
valid0 = valid0 || _valid0;
|
|
48
|
+
const _errs3 = errors;
|
|
49
|
+
if ("@id" !== data) {
|
|
50
|
+
const err2 = createError(instancePath, "#/anyOf/2/const", "const", { allowedValue: "@id" }, 0);
|
|
51
|
+
vErrors = pushError(vErrors, err2);
|
|
52
|
+
errors++;
|
|
53
|
+
}
|
|
54
|
+
var _valid0 = _errs3 === errors;
|
|
55
|
+
valid0 = valid0 || _valid0;
|
|
56
|
+
const _errs4 = errors;
|
|
57
|
+
if ("@graph" !== data) {
|
|
58
|
+
const err3 = createError(instancePath, "#/anyOf/3/const", "const", { allowedValue: "@graph" }, 0);
|
|
59
|
+
vErrors = pushError(vErrors, err3);
|
|
60
|
+
errors++;
|
|
61
|
+
}
|
|
62
|
+
var _valid0 = _errs4 === errors;
|
|
63
|
+
valid0 = valid0 || _valid0;
|
|
64
|
+
const _errs5 = errors;
|
|
65
|
+
if ("@type" !== data) {
|
|
66
|
+
const err4 = createError(instancePath, "#/anyOf/4/const", "const", { allowedValue: "@type" }, 0);
|
|
67
|
+
vErrors = pushError(vErrors, err4);
|
|
68
|
+
errors++;
|
|
69
|
+
}
|
|
70
|
+
var _valid0 = _errs5 === errors;
|
|
71
|
+
valid0 = valid0 || _valid0;
|
|
72
|
+
if (!valid0) {
|
|
73
|
+
const err5 = createError(instancePath, "#/anyOf", "anyOf", {}, 1);
|
|
74
|
+
vErrors = pushError(vErrors, err5);
|
|
75
|
+
errors++;
|
|
76
|
+
}
|
|
77
|
+
else {
|
|
78
|
+
errors = _errs0;
|
|
79
|
+
if (vErrors !== null) {
|
|
80
|
+
if (_errs0) {
|
|
81
|
+
vErrors.length = _errs0;
|
|
82
|
+
}
|
|
83
|
+
else {
|
|
84
|
+
vErrors = null;
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
validate59.errors = vErrors;
|
|
89
|
+
return errors === 0;
|
|
90
|
+
}
|
|
91
|
+
validate59.evaluated = { "dynamicProps": false, "dynamicItems": false };
|
|
92
|
+
function validate62(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
|
|
93
|
+
/*# sourceURL="https://schema.3sixty.global/json-ld/JsonLdContainerTypeArray" */ ;
|
|
94
|
+
let vErrors = null;
|
|
95
|
+
let errors = 0;
|
|
96
|
+
const evaluated0 = validate62.evaluated;
|
|
97
|
+
if (evaluated0.dynamicProps) {
|
|
98
|
+
evaluated0.props = undefined;
|
|
99
|
+
}
|
|
100
|
+
if (evaluated0.dynamicItems) {
|
|
101
|
+
evaluated0.items = undefined;
|
|
102
|
+
}
|
|
103
|
+
const _errs0 = errors;
|
|
104
|
+
let valid0 = false;
|
|
105
|
+
const _errs1 = errors;
|
|
106
|
+
if (Array.isArray(data)) {
|
|
107
|
+
if (data.length > 2) {
|
|
108
|
+
const err0 = createError(instancePath, "#/anyOf/0/maxItems", "maxItems", { limit: 2 }, 2);
|
|
109
|
+
vErrors = pushError(vErrors, err0);
|
|
110
|
+
errors++;
|
|
111
|
+
}
|
|
112
|
+
if (data.length < 2) {
|
|
113
|
+
const err1 = createError(instancePath, "#/anyOf/0/minItems", "minItems", { limit: 2 }, 3);
|
|
114
|
+
vErrors = pushError(vErrors, err1);
|
|
115
|
+
errors++;
|
|
116
|
+
}
|
|
117
|
+
const len0 = data.length;
|
|
118
|
+
if (len0 > 0) {
|
|
119
|
+
if ("@graph" !== data[0]) {
|
|
120
|
+
const err2 = createError(instancePath + "/0", "#/anyOf/0/prefixItems/0/const", "const", { allowedValue: "@graph" }, 0);
|
|
121
|
+
vErrors = pushError(vErrors, err2);
|
|
122
|
+
errors++;
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
if (len0 > 1) {
|
|
126
|
+
if ("@id" !== data[1]) {
|
|
127
|
+
const err3 = createError(instancePath + "/1", "#/anyOf/0/prefixItems/1/const", "const", { allowedValue: "@id" }, 0);
|
|
128
|
+
vErrors = pushError(vErrors, err3);
|
|
129
|
+
errors++;
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
const len1 = data.length;
|
|
133
|
+
if (!(len1 <= 2)) {
|
|
134
|
+
const err4 = createError(instancePath, "#/anyOf/0/items", "items", { limit: 2 }, 2);
|
|
135
|
+
vErrors = pushError(vErrors, err4);
|
|
136
|
+
errors++;
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
else {
|
|
140
|
+
const err5 = createError(instancePath, "#/anyOf/0/type", "type", { type: "array" }, 4);
|
|
141
|
+
vErrors = pushError(vErrors, err5);
|
|
142
|
+
errors++;
|
|
143
|
+
}
|
|
144
|
+
var _valid0 = _errs1 === errors;
|
|
145
|
+
valid0 = valid0 || _valid0;
|
|
146
|
+
if (_valid0) {
|
|
147
|
+
var items0 = true;
|
|
148
|
+
}
|
|
149
|
+
const _errs5 = errors;
|
|
150
|
+
if (Array.isArray(data)) {
|
|
151
|
+
if (data.length > 2) {
|
|
152
|
+
const err6 = createError(instancePath, "#/anyOf/1/maxItems", "maxItems", { limit: 2 }, 2);
|
|
153
|
+
vErrors = pushError(vErrors, err6);
|
|
154
|
+
errors++;
|
|
155
|
+
}
|
|
156
|
+
if (data.length < 2) {
|
|
157
|
+
const err7 = createError(instancePath, "#/anyOf/1/minItems", "minItems", { limit: 2 }, 3);
|
|
158
|
+
vErrors = pushError(vErrors, err7);
|
|
159
|
+
errors++;
|
|
160
|
+
}
|
|
161
|
+
const len2 = data.length;
|
|
162
|
+
if (len2 > 0) {
|
|
163
|
+
if ("@id" !== data[0]) {
|
|
164
|
+
const err8 = createError(instancePath + "/0", "#/anyOf/1/prefixItems/0/const", "const", { allowedValue: "@id" }, 0);
|
|
165
|
+
vErrors = pushError(vErrors, err8);
|
|
166
|
+
errors++;
|
|
167
|
+
}
|
|
168
|
+
}
|
|
169
|
+
if (len2 > 1) {
|
|
170
|
+
if ("@graph" !== data[1]) {
|
|
171
|
+
const err9 = createError(instancePath + "/1", "#/anyOf/1/prefixItems/1/const", "const", { allowedValue: "@graph" }, 0);
|
|
172
|
+
vErrors = pushError(vErrors, err9);
|
|
173
|
+
errors++;
|
|
174
|
+
}
|
|
175
|
+
}
|
|
176
|
+
const len3 = data.length;
|
|
177
|
+
if (!(len3 <= 2)) {
|
|
178
|
+
const err10 = createError(instancePath, "#/anyOf/1/items", "items", { limit: 2 }, 2);
|
|
179
|
+
vErrors = pushError(vErrors, err10);
|
|
180
|
+
errors++;
|
|
181
|
+
}
|
|
182
|
+
}
|
|
183
|
+
else {
|
|
184
|
+
const err11 = createError(instancePath, "#/anyOf/1/type", "type", { type: "array" }, 4);
|
|
185
|
+
vErrors = pushError(vErrors, err11);
|
|
186
|
+
errors++;
|
|
187
|
+
}
|
|
188
|
+
var _valid0 = _errs5 === errors;
|
|
189
|
+
valid0 = valid0 || _valid0;
|
|
190
|
+
if (_valid0) {
|
|
191
|
+
if (items0 !== true) {
|
|
192
|
+
items0 = true;
|
|
193
|
+
}
|
|
194
|
+
}
|
|
195
|
+
const _errs9 = errors;
|
|
196
|
+
if (Array.isArray(data)) {
|
|
197
|
+
if (data.length > 3) {
|
|
198
|
+
const err12 = createError(instancePath, "#/anyOf/2/maxItems", "maxItems", { limit: 3 }, 5);
|
|
199
|
+
vErrors = pushError(vErrors, err12);
|
|
200
|
+
errors++;
|
|
201
|
+
}
|
|
202
|
+
if (data.length < 3) {
|
|
203
|
+
const err13 = createError(instancePath, "#/anyOf/2/minItems", "minItems", { limit: 3 }, 6);
|
|
204
|
+
vErrors = pushError(vErrors, err13);
|
|
205
|
+
errors++;
|
|
206
|
+
}
|
|
207
|
+
const len4 = data.length;
|
|
208
|
+
if (len4 > 0) {
|
|
209
|
+
if ("@set" !== data[0]) {
|
|
210
|
+
const err14 = createError(instancePath + "/0", "#/anyOf/2/prefixItems/0/const", "const", { allowedValue: "@set" }, 0);
|
|
211
|
+
vErrors = pushError(vErrors, err14);
|
|
212
|
+
errors++;
|
|
213
|
+
}
|
|
214
|
+
}
|
|
215
|
+
if (len4 > 1) {
|
|
216
|
+
if ("@graph" !== data[1]) {
|
|
217
|
+
const err15 = createError(instancePath + "/1", "#/anyOf/2/prefixItems/1/const", "const", { allowedValue: "@graph" }, 0);
|
|
218
|
+
vErrors = pushError(vErrors, err15);
|
|
219
|
+
errors++;
|
|
220
|
+
}
|
|
221
|
+
}
|
|
222
|
+
if (len4 > 2) {
|
|
223
|
+
if ("@id" !== data[2]) {
|
|
224
|
+
const err16 = createError(instancePath + "/2", "#/anyOf/2/prefixItems/2/const", "const", { allowedValue: "@id" }, 0);
|
|
225
|
+
vErrors = pushError(vErrors, err16);
|
|
226
|
+
errors++;
|
|
227
|
+
}
|
|
228
|
+
}
|
|
229
|
+
const len5 = data.length;
|
|
230
|
+
if (!(len5 <= 3)) {
|
|
231
|
+
const err17 = createError(instancePath, "#/anyOf/2/items", "items", { limit: 3 }, 5);
|
|
232
|
+
vErrors = pushError(vErrors, err17);
|
|
233
|
+
errors++;
|
|
234
|
+
}
|
|
235
|
+
}
|
|
236
|
+
else {
|
|
237
|
+
const err18 = createError(instancePath, "#/anyOf/2/type", "type", { type: "array" }, 4);
|
|
238
|
+
vErrors = pushError(vErrors, err18);
|
|
239
|
+
errors++;
|
|
240
|
+
}
|
|
241
|
+
var _valid0 = _errs9 === errors;
|
|
242
|
+
valid0 = valid0 || _valid0;
|
|
243
|
+
if (_valid0) {
|
|
244
|
+
if (items0 !== true) {
|
|
245
|
+
items0 = true;
|
|
246
|
+
}
|
|
247
|
+
}
|
|
248
|
+
const _errs14 = errors;
|
|
249
|
+
if (Array.isArray(data)) {
|
|
250
|
+
if (data.length > 3) {
|
|
251
|
+
const err19 = createError(instancePath, "#/anyOf/3/maxItems", "maxItems", { limit: 3 }, 5);
|
|
252
|
+
vErrors = pushError(vErrors, err19);
|
|
253
|
+
errors++;
|
|
254
|
+
}
|
|
255
|
+
if (data.length < 3) {
|
|
256
|
+
const err20 = createError(instancePath, "#/anyOf/3/minItems", "minItems", { limit: 3 }, 6);
|
|
257
|
+
vErrors = pushError(vErrors, err20);
|
|
258
|
+
errors++;
|
|
259
|
+
}
|
|
260
|
+
const len6 = data.length;
|
|
261
|
+
if (len6 > 0) {
|
|
262
|
+
if ("@set" !== data[0]) {
|
|
263
|
+
const err21 = createError(instancePath + "/0", "#/anyOf/3/prefixItems/0/const", "const", { allowedValue: "@set" }, 0);
|
|
264
|
+
vErrors = pushError(vErrors, err21);
|
|
265
|
+
errors++;
|
|
266
|
+
}
|
|
267
|
+
}
|
|
268
|
+
if (len6 > 1) {
|
|
269
|
+
if ("@id" !== data[1]) {
|
|
270
|
+
const err22 = createError(instancePath + "/1", "#/anyOf/3/prefixItems/1/const", "const", { allowedValue: "@id" }, 0);
|
|
271
|
+
vErrors = pushError(vErrors, err22);
|
|
272
|
+
errors++;
|
|
273
|
+
}
|
|
274
|
+
}
|
|
275
|
+
if (len6 > 2) {
|
|
276
|
+
if ("@graph" !== data[2]) {
|
|
277
|
+
const err23 = createError(instancePath + "/2", "#/anyOf/3/prefixItems/2/const", "const", { allowedValue: "@graph" }, 0);
|
|
278
|
+
vErrors = pushError(vErrors, err23);
|
|
279
|
+
errors++;
|
|
280
|
+
}
|
|
281
|
+
}
|
|
282
|
+
const len7 = data.length;
|
|
283
|
+
if (!(len7 <= 3)) {
|
|
284
|
+
const err24 = createError(instancePath, "#/anyOf/3/items", "items", { limit: 3 }, 5);
|
|
285
|
+
vErrors = pushError(vErrors, err24);
|
|
286
|
+
errors++;
|
|
287
|
+
}
|
|
288
|
+
}
|
|
289
|
+
else {
|
|
290
|
+
const err25 = createError(instancePath, "#/anyOf/3/type", "type", { type: "array" }, 4);
|
|
291
|
+
vErrors = pushError(vErrors, err25);
|
|
292
|
+
errors++;
|
|
293
|
+
}
|
|
294
|
+
var _valid0 = _errs14 === errors;
|
|
295
|
+
valid0 = valid0 || _valid0;
|
|
296
|
+
if (_valid0) {
|
|
297
|
+
if (items0 !== true) {
|
|
298
|
+
items0 = true;
|
|
299
|
+
}
|
|
300
|
+
}
|
|
301
|
+
const _errs19 = errors;
|
|
302
|
+
if (Array.isArray(data)) {
|
|
303
|
+
if (data.length > 3) {
|
|
304
|
+
const err26 = createError(instancePath, "#/anyOf/4/maxItems", "maxItems", { limit: 3 }, 5);
|
|
305
|
+
vErrors = pushError(vErrors, err26);
|
|
306
|
+
errors++;
|
|
307
|
+
}
|
|
308
|
+
if (data.length < 3) {
|
|
309
|
+
const err27 = createError(instancePath, "#/anyOf/4/minItems", "minItems", { limit: 3 }, 6);
|
|
310
|
+
vErrors = pushError(vErrors, err27);
|
|
311
|
+
errors++;
|
|
312
|
+
}
|
|
313
|
+
const len8 = data.length;
|
|
314
|
+
if (len8 > 0) {
|
|
315
|
+
if ("@graph" !== data[0]) {
|
|
316
|
+
const err28 = createError(instancePath + "/0", "#/anyOf/4/prefixItems/0/const", "const", { allowedValue: "@graph" }, 0);
|
|
317
|
+
vErrors = pushError(vErrors, err28);
|
|
318
|
+
errors++;
|
|
319
|
+
}
|
|
320
|
+
}
|
|
321
|
+
if (len8 > 1) {
|
|
322
|
+
if ("@set" !== data[1]) {
|
|
323
|
+
const err29 = createError(instancePath + "/1", "#/anyOf/4/prefixItems/1/const", "const", { allowedValue: "@set" }, 0);
|
|
324
|
+
vErrors = pushError(vErrors, err29);
|
|
325
|
+
errors++;
|
|
326
|
+
}
|
|
327
|
+
}
|
|
328
|
+
if (len8 > 2) {
|
|
329
|
+
if ("@id" !== data[2]) {
|
|
330
|
+
const err30 = createError(instancePath + "/2", "#/anyOf/4/prefixItems/2/const", "const", { allowedValue: "@id" }, 0);
|
|
331
|
+
vErrors = pushError(vErrors, err30);
|
|
332
|
+
errors++;
|
|
333
|
+
}
|
|
334
|
+
}
|
|
335
|
+
const len9 = data.length;
|
|
336
|
+
if (!(len9 <= 3)) {
|
|
337
|
+
const err31 = createError(instancePath, "#/anyOf/4/items", "items", { limit: 3 }, 5);
|
|
338
|
+
vErrors = pushError(vErrors, err31);
|
|
339
|
+
errors++;
|
|
340
|
+
}
|
|
341
|
+
}
|
|
342
|
+
else {
|
|
343
|
+
const err32 = createError(instancePath, "#/anyOf/4/type", "type", { type: "array" }, 4);
|
|
344
|
+
vErrors = pushError(vErrors, err32);
|
|
345
|
+
errors++;
|
|
346
|
+
}
|
|
347
|
+
var _valid0 = _errs19 === errors;
|
|
348
|
+
valid0 = valid0 || _valid0;
|
|
349
|
+
if (_valid0) {
|
|
350
|
+
if (items0 !== true) {
|
|
351
|
+
items0 = true;
|
|
352
|
+
}
|
|
353
|
+
}
|
|
354
|
+
const _errs24 = errors;
|
|
355
|
+
if (Array.isArray(data)) {
|
|
356
|
+
if (data.length > 3) {
|
|
357
|
+
const err33 = createError(instancePath, "#/anyOf/5/maxItems", "maxItems", { limit: 3 }, 5);
|
|
358
|
+
vErrors = pushError(vErrors, err33);
|
|
359
|
+
errors++;
|
|
360
|
+
}
|
|
361
|
+
if (data.length < 3) {
|
|
362
|
+
const err34 = createError(instancePath, "#/anyOf/5/minItems", "minItems", { limit: 3 }, 6);
|
|
363
|
+
vErrors = pushError(vErrors, err34);
|
|
364
|
+
errors++;
|
|
365
|
+
}
|
|
366
|
+
const len10 = data.length;
|
|
367
|
+
if (len10 > 0) {
|
|
368
|
+
if ("@id" !== data[0]) {
|
|
369
|
+
const err35 = createError(instancePath + "/0", "#/anyOf/5/prefixItems/0/const", "const", { allowedValue: "@id" }, 0);
|
|
370
|
+
vErrors = pushError(vErrors, err35);
|
|
371
|
+
errors++;
|
|
372
|
+
}
|
|
373
|
+
}
|
|
374
|
+
if (len10 > 1) {
|
|
375
|
+
if ("@set" !== data[1]) {
|
|
376
|
+
const err36 = createError(instancePath + "/1", "#/anyOf/5/prefixItems/1/const", "const", { allowedValue: "@set" }, 0);
|
|
377
|
+
vErrors = pushError(vErrors, err36);
|
|
378
|
+
errors++;
|
|
379
|
+
}
|
|
380
|
+
}
|
|
381
|
+
if (len10 > 2) {
|
|
382
|
+
if ("@graph" !== data[2]) {
|
|
383
|
+
const err37 = createError(instancePath + "/2", "#/anyOf/5/prefixItems/2/const", "const", { allowedValue: "@graph" }, 0);
|
|
384
|
+
vErrors = pushError(vErrors, err37);
|
|
385
|
+
errors++;
|
|
386
|
+
}
|
|
387
|
+
}
|
|
388
|
+
const len11 = data.length;
|
|
389
|
+
if (!(len11 <= 3)) {
|
|
390
|
+
const err38 = createError(instancePath, "#/anyOf/5/items", "items", { limit: 3 }, 5);
|
|
391
|
+
vErrors = pushError(vErrors, err38);
|
|
392
|
+
errors++;
|
|
393
|
+
}
|
|
394
|
+
}
|
|
395
|
+
else {
|
|
396
|
+
const err39 = createError(instancePath, "#/anyOf/5/type", "type", { type: "array" }, 4);
|
|
397
|
+
vErrors = pushError(vErrors, err39);
|
|
398
|
+
errors++;
|
|
399
|
+
}
|
|
400
|
+
var _valid0 = _errs24 === errors;
|
|
401
|
+
valid0 = valid0 || _valid0;
|
|
402
|
+
if (_valid0) {
|
|
403
|
+
if (items0 !== true) {
|
|
404
|
+
items0 = true;
|
|
405
|
+
}
|
|
406
|
+
}
|
|
407
|
+
const _errs29 = errors;
|
|
408
|
+
if (Array.isArray(data)) {
|
|
409
|
+
if (data.length > 3) {
|
|
410
|
+
const err40 = createError(instancePath, "#/anyOf/6/maxItems", "maxItems", { limit: 3 }, 5);
|
|
411
|
+
vErrors = pushError(vErrors, err40);
|
|
412
|
+
errors++;
|
|
413
|
+
}
|
|
414
|
+
if (data.length < 3) {
|
|
415
|
+
const err41 = createError(instancePath, "#/anyOf/6/minItems", "minItems", { limit: 3 }, 6);
|
|
416
|
+
vErrors = pushError(vErrors, err41);
|
|
417
|
+
errors++;
|
|
418
|
+
}
|
|
419
|
+
const len12 = data.length;
|
|
420
|
+
if (len12 > 0) {
|
|
421
|
+
if ("@graph" !== data[0]) {
|
|
422
|
+
const err42 = createError(instancePath + "/0", "#/anyOf/6/prefixItems/0/const", "const", { allowedValue: "@graph" }, 0);
|
|
423
|
+
vErrors = pushError(vErrors, err42);
|
|
424
|
+
errors++;
|
|
425
|
+
}
|
|
426
|
+
}
|
|
427
|
+
if (len12 > 1) {
|
|
428
|
+
if ("@id" !== data[1]) {
|
|
429
|
+
const err43 = createError(instancePath + "/1", "#/anyOf/6/prefixItems/1/const", "const", { allowedValue: "@id" }, 0);
|
|
430
|
+
vErrors = pushError(vErrors, err43);
|
|
431
|
+
errors++;
|
|
432
|
+
}
|
|
433
|
+
}
|
|
434
|
+
if (len12 > 2) {
|
|
435
|
+
if ("@set" !== data[2]) {
|
|
436
|
+
const err44 = createError(instancePath + "/2", "#/anyOf/6/prefixItems/2/const", "const", { allowedValue: "@set" }, 0);
|
|
437
|
+
vErrors = pushError(vErrors, err44);
|
|
438
|
+
errors++;
|
|
439
|
+
}
|
|
440
|
+
}
|
|
441
|
+
const len13 = data.length;
|
|
442
|
+
if (!(len13 <= 3)) {
|
|
443
|
+
const err45 = createError(instancePath, "#/anyOf/6/items", "items", { limit: 3 }, 5);
|
|
444
|
+
vErrors = pushError(vErrors, err45);
|
|
445
|
+
errors++;
|
|
446
|
+
}
|
|
447
|
+
}
|
|
448
|
+
else {
|
|
449
|
+
const err46 = createError(instancePath, "#/anyOf/6/type", "type", { type: "array" }, 4);
|
|
450
|
+
vErrors = pushError(vErrors, err46);
|
|
451
|
+
errors++;
|
|
452
|
+
}
|
|
453
|
+
var _valid0 = _errs29 === errors;
|
|
454
|
+
valid0 = valid0 || _valid0;
|
|
455
|
+
if (_valid0) {
|
|
456
|
+
if (items0 !== true) {
|
|
457
|
+
items0 = true;
|
|
458
|
+
}
|
|
459
|
+
}
|
|
460
|
+
const _errs34 = errors;
|
|
461
|
+
if (Array.isArray(data)) {
|
|
462
|
+
if (data.length > 3) {
|
|
463
|
+
const err47 = createError(instancePath, "#/anyOf/7/maxItems", "maxItems", { limit: 3 }, 5);
|
|
464
|
+
vErrors = pushError(vErrors, err47);
|
|
465
|
+
errors++;
|
|
466
|
+
}
|
|
467
|
+
if (data.length < 3) {
|
|
468
|
+
const err48 = createError(instancePath, "#/anyOf/7/minItems", "minItems", { limit: 3 }, 6);
|
|
469
|
+
vErrors = pushError(vErrors, err48);
|
|
470
|
+
errors++;
|
|
471
|
+
}
|
|
472
|
+
const len14 = data.length;
|
|
473
|
+
if (len14 > 0) {
|
|
474
|
+
if ("@id" !== data[0]) {
|
|
475
|
+
const err49 = createError(instancePath + "/0", "#/anyOf/7/prefixItems/0/const", "const", { allowedValue: "@id" }, 0);
|
|
476
|
+
vErrors = pushError(vErrors, err49);
|
|
477
|
+
errors++;
|
|
478
|
+
}
|
|
479
|
+
}
|
|
480
|
+
if (len14 > 1) {
|
|
481
|
+
if ("@graph" !== data[1]) {
|
|
482
|
+
const err50 = createError(instancePath + "/1", "#/anyOf/7/prefixItems/1/const", "const", { allowedValue: "@graph" }, 0);
|
|
483
|
+
vErrors = pushError(vErrors, err50);
|
|
484
|
+
errors++;
|
|
485
|
+
}
|
|
486
|
+
}
|
|
487
|
+
if (len14 > 2) {
|
|
488
|
+
if ("@set" !== data[2]) {
|
|
489
|
+
const err51 = createError(instancePath + "/2", "#/anyOf/7/prefixItems/2/const", "const", { allowedValue: "@set" }, 0);
|
|
490
|
+
vErrors = pushError(vErrors, err51);
|
|
491
|
+
errors++;
|
|
492
|
+
}
|
|
493
|
+
}
|
|
494
|
+
const len15 = data.length;
|
|
495
|
+
if (!(len15 <= 3)) {
|
|
496
|
+
const err52 = createError(instancePath, "#/anyOf/7/items", "items", { limit: 3 }, 5);
|
|
497
|
+
vErrors = pushError(vErrors, err52);
|
|
498
|
+
errors++;
|
|
499
|
+
}
|
|
500
|
+
}
|
|
501
|
+
else {
|
|
502
|
+
const err53 = createError(instancePath, "#/anyOf/7/type", "type", { type: "array" }, 4);
|
|
503
|
+
vErrors = pushError(vErrors, err53);
|
|
504
|
+
errors++;
|
|
505
|
+
}
|
|
506
|
+
var _valid0 = _errs34 === errors;
|
|
507
|
+
valid0 = valid0 || _valid0;
|
|
508
|
+
if (_valid0) {
|
|
509
|
+
if (items0 !== true) {
|
|
510
|
+
items0 = true;
|
|
511
|
+
}
|
|
512
|
+
}
|
|
513
|
+
const _errs39 = errors;
|
|
514
|
+
if (Array.isArray(data)) {
|
|
515
|
+
if (data.length > 2) {
|
|
516
|
+
const err54 = createError(instancePath, "#/anyOf/8/maxItems", "maxItems", { limit: 2 }, 2);
|
|
517
|
+
vErrors = pushError(vErrors, err54);
|
|
518
|
+
errors++;
|
|
519
|
+
}
|
|
520
|
+
if (data.length < 2) {
|
|
521
|
+
const err55 = createError(instancePath, "#/anyOf/8/minItems", "minItems", { limit: 2 }, 3);
|
|
522
|
+
vErrors = pushError(vErrors, err55);
|
|
523
|
+
errors++;
|
|
524
|
+
}
|
|
525
|
+
const len16 = data.length;
|
|
526
|
+
if (len16 > 0) {
|
|
527
|
+
if ("@set" !== data[0]) {
|
|
528
|
+
const err56 = createError(instancePath + "/0", "#/anyOf/8/prefixItems/0/const", "const", { allowedValue: "@set" }, 0);
|
|
529
|
+
vErrors = pushError(vErrors, err56);
|
|
530
|
+
errors++;
|
|
531
|
+
}
|
|
532
|
+
}
|
|
533
|
+
if (len16 > 1) {
|
|
534
|
+
if (!(validate59(data[1], { instancePath: instancePath + "/1", parentData: data, parentDataProperty: 1, rootData, dynamicAnchors }))) {
|
|
535
|
+
vErrors = vErrors === null ? validate59.errors : vErrors.concat(validate59.errors);
|
|
536
|
+
errors = vErrors.length;
|
|
537
|
+
}
|
|
538
|
+
}
|
|
539
|
+
const len17 = data.length;
|
|
540
|
+
if (!(len17 <= 2)) {
|
|
541
|
+
const err57 = createError(instancePath, "#/anyOf/8/items", "items", { limit: 2 }, 2);
|
|
542
|
+
vErrors = pushError(vErrors, err57);
|
|
543
|
+
errors++;
|
|
544
|
+
}
|
|
545
|
+
}
|
|
546
|
+
else {
|
|
547
|
+
const err58 = createError(instancePath, "#/anyOf/8/type", "type", { type: "array" }, 4);
|
|
548
|
+
vErrors = pushError(vErrors, err58);
|
|
549
|
+
errors++;
|
|
550
|
+
}
|
|
551
|
+
var _valid0 = _errs39 === errors;
|
|
552
|
+
valid0 = valid0 || _valid0;
|
|
553
|
+
if (_valid0) {
|
|
554
|
+
if (items0 !== true) {
|
|
555
|
+
items0 = true;
|
|
556
|
+
}
|
|
557
|
+
}
|
|
558
|
+
const _errs43 = errors;
|
|
559
|
+
if (Array.isArray(data)) {
|
|
560
|
+
if (data.length > 2) {
|
|
561
|
+
const err59 = createError(instancePath, "#/anyOf/9/maxItems", "maxItems", { limit: 2 }, 2);
|
|
562
|
+
vErrors = pushError(vErrors, err59);
|
|
563
|
+
errors++;
|
|
564
|
+
}
|
|
565
|
+
if (data.length < 2) {
|
|
566
|
+
const err60 = createError(instancePath, "#/anyOf/9/minItems", "minItems", { limit: 2 }, 3);
|
|
567
|
+
vErrors = pushError(vErrors, err60);
|
|
568
|
+
errors++;
|
|
569
|
+
}
|
|
570
|
+
const len18 = data.length;
|
|
571
|
+
if (len18 > 0) {
|
|
572
|
+
if (!(validate59(data[0], { instancePath: instancePath + "/0", parentData: data, parentDataProperty: 0, rootData, dynamicAnchors }))) {
|
|
573
|
+
vErrors = vErrors === null ? validate59.errors : vErrors.concat(validate59.errors);
|
|
574
|
+
errors = vErrors.length;
|
|
575
|
+
}
|
|
576
|
+
}
|
|
577
|
+
if (len18 > 1) {
|
|
578
|
+
if ("@set" !== data[1]) {
|
|
579
|
+
const err61 = createError(instancePath + "/1", "#/anyOf/9/prefixItems/1/const", "const", { allowedValue: "@set" }, 0);
|
|
580
|
+
vErrors = pushError(vErrors, err61);
|
|
581
|
+
errors++;
|
|
582
|
+
}
|
|
583
|
+
}
|
|
584
|
+
const len19 = data.length;
|
|
585
|
+
if (!(len19 <= 2)) {
|
|
586
|
+
const err62 = createError(instancePath, "#/anyOf/9/items", "items", { limit: 2 }, 2);
|
|
587
|
+
vErrors = pushError(vErrors, err62);
|
|
588
|
+
errors++;
|
|
589
|
+
}
|
|
590
|
+
}
|
|
591
|
+
else {
|
|
592
|
+
const err63 = createError(instancePath, "#/anyOf/9/type", "type", { type: "array" }, 4);
|
|
593
|
+
vErrors = pushError(vErrors, err63);
|
|
594
|
+
errors++;
|
|
595
|
+
}
|
|
596
|
+
var _valid0 = _errs43 === errors;
|
|
597
|
+
valid0 = valid0 || _valid0;
|
|
598
|
+
if (_valid0) {
|
|
599
|
+
if (items0 !== true) {
|
|
600
|
+
items0 = true;
|
|
601
|
+
}
|
|
602
|
+
}
|
|
603
|
+
if (!valid0) {
|
|
604
|
+
const err64 = createError(instancePath, "#/anyOf", "anyOf", {}, 1);
|
|
605
|
+
vErrors = pushError(vErrors, err64);
|
|
606
|
+
errors++;
|
|
607
|
+
}
|
|
608
|
+
else {
|
|
609
|
+
errors = _errs0;
|
|
610
|
+
if (vErrors !== null) {
|
|
611
|
+
if (_errs0) {
|
|
612
|
+
vErrors.length = _errs0;
|
|
613
|
+
}
|
|
614
|
+
else {
|
|
615
|
+
vErrors = null;
|
|
616
|
+
}
|
|
617
|
+
}
|
|
618
|
+
}
|
|
619
|
+
validate62.errors = vErrors;
|
|
620
|
+
evaluated0.items = items0;
|
|
621
|
+
return errors === 0;
|
|
622
|
+
}
|
|
623
|
+
validate62.evaluated = { "dynamicProps": false, "dynamicItems": true };
|
|
624
|
+
function validate58(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
|
|
625
|
+
/*# sourceURL="https://schema.3sixty.global/json-ld/JsonLdExpandedTermDefinition" */ ;
|
|
626
|
+
let vErrors = null;
|
|
627
|
+
let errors = 0;
|
|
628
|
+
const evaluated0 = validate58.evaluated;
|
|
629
|
+
if (evaluated0.dynamicProps) {
|
|
630
|
+
evaluated0.props = undefined;
|
|
631
|
+
}
|
|
632
|
+
if (evaluated0.dynamicItems) {
|
|
633
|
+
evaluated0.items = undefined;
|
|
634
|
+
}
|
|
635
|
+
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
636
|
+
if (data["@type"] !== undefined) {
|
|
637
|
+
let data0 = data["@type"];
|
|
638
|
+
const _errs3 = errors;
|
|
639
|
+
let valid2 = false;
|
|
640
|
+
const _errs4 = errors;
|
|
641
|
+
if ("@id" !== data0) {
|
|
642
|
+
const err0 = createError(instancePath + "/@type", "#/allOf/0/properties/%40type/anyOf/0/const", "const", { allowedValue: "@id" }, 0);
|
|
643
|
+
vErrors = pushError(vErrors, err0);
|
|
644
|
+
errors++;
|
|
645
|
+
}
|
|
646
|
+
var _valid0 = _errs4 === errors;
|
|
647
|
+
valid2 = valid2 || _valid0;
|
|
648
|
+
const _errs5 = errors;
|
|
649
|
+
if ("@json" !== data0) {
|
|
650
|
+
const err1 = createError(instancePath + "/@type", "#/allOf/0/properties/%40type/anyOf/1/const", "const", { allowedValue: "@json" }, 0);
|
|
651
|
+
vErrors = pushError(vErrors, err1);
|
|
652
|
+
errors++;
|
|
653
|
+
}
|
|
654
|
+
var _valid0 = _errs5 === errors;
|
|
655
|
+
valid2 = valid2 || _valid0;
|
|
656
|
+
const _errs6 = errors;
|
|
657
|
+
if ("@none" !== data0) {
|
|
658
|
+
const err2 = createError(instancePath + "/@type", "#/allOf/0/properties/%40type/anyOf/2/const", "const", { allowedValue: "@none" }, 0);
|
|
659
|
+
vErrors = pushError(vErrors, err2);
|
|
660
|
+
errors++;
|
|
661
|
+
}
|
|
662
|
+
var _valid0 = _errs6 === errors;
|
|
663
|
+
valid2 = valid2 || _valid0;
|
|
664
|
+
const _errs7 = errors;
|
|
665
|
+
if ("@vocab" !== data0) {
|
|
666
|
+
const err3 = createError(instancePath + "/@type", "#/allOf/0/properties/%40type/anyOf/3/const", "const", { allowedValue: "@vocab" }, 0);
|
|
667
|
+
vErrors = pushError(vErrors, err3);
|
|
668
|
+
errors++;
|
|
669
|
+
}
|
|
670
|
+
var _valid0 = _errs7 === errors;
|
|
671
|
+
valid2 = valid2 || _valid0;
|
|
672
|
+
const _errs8 = errors;
|
|
673
|
+
if (typeof data0 !== "string") {
|
|
674
|
+
const err4 = createError(instancePath + "/@type", "#/allOf/0/properties/%40type/anyOf/4/type", "type", { type: "string" }, 7);
|
|
675
|
+
vErrors = pushError(vErrors, err4);
|
|
676
|
+
errors++;
|
|
677
|
+
}
|
|
678
|
+
var _valid0 = _errs8 === errors;
|
|
679
|
+
valid2 = valid2 || _valid0;
|
|
680
|
+
if (!valid2) {
|
|
681
|
+
const err5 = createError(instancePath + "/@type", "#/allOf/0/properties/%40type/anyOf", "anyOf", {}, 1);
|
|
682
|
+
vErrors = pushError(vErrors, err5);
|
|
683
|
+
errors++;
|
|
684
|
+
}
|
|
685
|
+
else {
|
|
686
|
+
errors = _errs3;
|
|
687
|
+
if (vErrors !== null) {
|
|
688
|
+
if (_errs3) {
|
|
689
|
+
vErrors.length = _errs3;
|
|
690
|
+
}
|
|
691
|
+
else {
|
|
692
|
+
vErrors = null;
|
|
693
|
+
}
|
|
694
|
+
}
|
|
695
|
+
}
|
|
696
|
+
}
|
|
697
|
+
if (data["@language"] !== undefined) {
|
|
698
|
+
if (typeof data["@language"] !== "string") {
|
|
699
|
+
const err6 = createError(instancePath + "/@language", "#/allOf/0/properties/%40language/type", "type", { type: "string" }, 7);
|
|
700
|
+
vErrors = pushError(vErrors, err6);
|
|
701
|
+
errors++;
|
|
702
|
+
}
|
|
703
|
+
}
|
|
704
|
+
if (data["@index"] !== undefined) {
|
|
705
|
+
if (typeof data["@index"] !== "string") {
|
|
706
|
+
const err7 = createError(instancePath + "/@index", "#/allOf/0/properties/%40index/type", "type", { type: "string" }, 7);
|
|
707
|
+
vErrors = pushError(vErrors, err7);
|
|
708
|
+
errors++;
|
|
709
|
+
}
|
|
710
|
+
}
|
|
711
|
+
if (data["@context"] !== undefined) {
|
|
712
|
+
if (!(wrapper0.validate(data["@context"], { instancePath: instancePath + "/@context", parentData: data, parentDataProperty: "@context", rootData, dynamicAnchors }))) {
|
|
713
|
+
vErrors = vErrors === null ? wrapper0.validate.errors : vErrors.concat(wrapper0.validate.errors);
|
|
714
|
+
errors = vErrors.length;
|
|
715
|
+
}
|
|
716
|
+
}
|
|
717
|
+
if (data["@prefix"] !== undefined) {
|
|
718
|
+
if (typeof data["@prefix"] !== "boolean") {
|
|
719
|
+
const err8 = createError(instancePath + "/@prefix", "#/allOf/0/properties/%40prefix/type", "type", { type: "boolean" }, 8);
|
|
720
|
+
vErrors = pushError(vErrors, err8);
|
|
721
|
+
errors++;
|
|
722
|
+
}
|
|
723
|
+
}
|
|
724
|
+
if (data["@propagate"] !== undefined) {
|
|
725
|
+
if (typeof data["@propagate"] !== "boolean") {
|
|
726
|
+
const err9 = createError(instancePath + "/@propagate", "#/allOf/0/properties/%40propagate/type", "type", { type: "boolean" }, 8);
|
|
727
|
+
vErrors = pushError(vErrors, err9);
|
|
728
|
+
errors++;
|
|
729
|
+
}
|
|
730
|
+
}
|
|
731
|
+
if (data["@protected"] !== undefined) {
|
|
732
|
+
if (typeof data["@protected"] !== "boolean") {
|
|
733
|
+
const err10 = createError(instancePath + "/@protected", "#/allOf/0/properties/%40protected/type", "type", { type: "boolean" }, 8);
|
|
734
|
+
vErrors = pushError(vErrors, err10);
|
|
735
|
+
errors++;
|
|
736
|
+
}
|
|
737
|
+
}
|
|
738
|
+
}
|
|
739
|
+
else {
|
|
740
|
+
const err11 = createError(instancePath, "#/allOf/0/type", "type", { type: "object" }, 9);
|
|
741
|
+
vErrors = pushError(vErrors, err11);
|
|
742
|
+
errors++;
|
|
743
|
+
}
|
|
744
|
+
const _errs22 = errors;
|
|
745
|
+
let valid3 = false;
|
|
746
|
+
const _errs23 = errors;
|
|
747
|
+
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
748
|
+
if (data["@id"] !== undefined) {
|
|
749
|
+
let data7 = data["@id"];
|
|
750
|
+
const _errs26 = errors;
|
|
751
|
+
let valid5 = false;
|
|
752
|
+
const _errs27 = errors;
|
|
753
|
+
if (typeof data7 !== "string") {
|
|
754
|
+
const err12 = createError(instancePath + "/@id", "#/allOf/1/anyOf/0/properties/%40id/anyOf/0/type", "type", { type: "string" }, 7);
|
|
755
|
+
vErrors = pushError(vErrors, err12);
|
|
756
|
+
errors++;
|
|
757
|
+
}
|
|
758
|
+
var _valid2 = _errs27 === errors;
|
|
759
|
+
valid5 = valid5 || _valid2;
|
|
760
|
+
const _errs29 = errors;
|
|
761
|
+
if (Array.isArray(data7)) {
|
|
762
|
+
const len0 = data7.length;
|
|
763
|
+
for (let i0 = 0; i0 < len0; i0++) {
|
|
764
|
+
if (typeof data7[i0] !== "string") {
|
|
765
|
+
const err13 = createError(instancePath + "/@id/" + i0, "#/allOf/1/anyOf/0/properties/%40id/anyOf/1/items/type", "type", { type: "string" }, 7);
|
|
766
|
+
vErrors = pushError(vErrors, err13);
|
|
767
|
+
errors++;
|
|
768
|
+
}
|
|
769
|
+
}
|
|
770
|
+
}
|
|
771
|
+
else {
|
|
772
|
+
const err14 = createError(instancePath + "/@id", "#/allOf/1/anyOf/0/properties/%40id/anyOf/1/type", "type", { type: "array" }, 4);
|
|
773
|
+
vErrors = pushError(vErrors, err14);
|
|
774
|
+
errors++;
|
|
775
|
+
}
|
|
776
|
+
var _valid2 = _errs29 === errors;
|
|
777
|
+
valid5 = valid5 || _valid2;
|
|
778
|
+
const _errs33 = errors;
|
|
779
|
+
if (data7 !== null) {
|
|
780
|
+
const err15 = createError(instancePath + "/@id", "#/allOf/1/anyOf/0/properties/%40id/anyOf/2/type", "type", { type: "null" }, 10);
|
|
781
|
+
vErrors = pushError(vErrors, err15);
|
|
782
|
+
errors++;
|
|
783
|
+
}
|
|
784
|
+
var _valid2 = _errs33 === errors;
|
|
785
|
+
valid5 = valid5 || _valid2;
|
|
786
|
+
if (!valid5) {
|
|
787
|
+
const err16 = createError(instancePath + "/@id", "#/allOf/1/anyOf/0/properties/%40id/anyOf", "anyOf", {}, 1);
|
|
788
|
+
vErrors = pushError(vErrors, err16);
|
|
789
|
+
errors++;
|
|
790
|
+
}
|
|
791
|
+
else {
|
|
792
|
+
errors = _errs26;
|
|
793
|
+
if (vErrors !== null) {
|
|
794
|
+
if (_errs26) {
|
|
795
|
+
vErrors.length = _errs26;
|
|
796
|
+
}
|
|
797
|
+
else {
|
|
798
|
+
vErrors = null;
|
|
799
|
+
}
|
|
800
|
+
}
|
|
801
|
+
}
|
|
802
|
+
}
|
|
803
|
+
if (data["@nest"] !== undefined) {
|
|
804
|
+
let data9 = data["@nest"];
|
|
805
|
+
const _errs36 = errors;
|
|
806
|
+
let valid8 = false;
|
|
807
|
+
const _errs37 = errors;
|
|
808
|
+
if ("@nest" !== data9) {
|
|
809
|
+
const err17 = createError(instancePath + "/@nest", "#/allOf/1/anyOf/0/properties/%40nest/anyOf/0/const", "const", { allowedValue: "@nest" }, 0);
|
|
810
|
+
vErrors = pushError(vErrors, err17);
|
|
811
|
+
errors++;
|
|
812
|
+
}
|
|
813
|
+
var _valid3 = _errs37 === errors;
|
|
814
|
+
valid8 = valid8 || _valid3;
|
|
815
|
+
const _errs38 = errors;
|
|
816
|
+
if (typeof data9 !== "string") {
|
|
817
|
+
const err18 = createError(instancePath + "/@nest", "#/allOf/1/anyOf/0/properties/%40nest/anyOf/1/type", "type", { type: "string" }, 7);
|
|
818
|
+
vErrors = pushError(vErrors, err18);
|
|
819
|
+
errors++;
|
|
820
|
+
}
|
|
821
|
+
var _valid3 = _errs38 === errors;
|
|
822
|
+
valid8 = valid8 || _valid3;
|
|
823
|
+
if (!valid8) {
|
|
824
|
+
const err19 = createError(instancePath + "/@nest", "#/allOf/1/anyOf/0/properties/%40nest/anyOf", "anyOf", {}, 1);
|
|
825
|
+
vErrors = pushError(vErrors, err19);
|
|
826
|
+
errors++;
|
|
827
|
+
}
|
|
828
|
+
else {
|
|
829
|
+
errors = _errs36;
|
|
830
|
+
if (vErrors !== null) {
|
|
831
|
+
if (_errs36) {
|
|
832
|
+
vErrors.length = _errs36;
|
|
833
|
+
}
|
|
834
|
+
else {
|
|
835
|
+
vErrors = null;
|
|
836
|
+
}
|
|
837
|
+
}
|
|
838
|
+
}
|
|
839
|
+
}
|
|
840
|
+
if (data["@container"] !== undefined) {
|
|
841
|
+
let data10 = data["@container"];
|
|
842
|
+
const _errs41 = errors;
|
|
843
|
+
let valid9 = false;
|
|
844
|
+
const _errs42 = errors;
|
|
845
|
+
const _errs43 = errors;
|
|
846
|
+
let valid10 = false;
|
|
847
|
+
const _errs44 = errors;
|
|
848
|
+
if ("@list" !== data10) {
|
|
849
|
+
const err20 = createError(instancePath + "/@container", "#/allOf/1/anyOf/0/properties/%40container/anyOf/0/anyOf/0/const", "const", { allowedValue: "@list" }, 0);
|
|
850
|
+
vErrors = pushError(vErrors, err20);
|
|
851
|
+
errors++;
|
|
852
|
+
}
|
|
853
|
+
var _valid5 = _errs44 === errors;
|
|
854
|
+
valid10 = valid10 || _valid5;
|
|
855
|
+
const _errs45 = errors;
|
|
856
|
+
if ("@set" !== data10) {
|
|
857
|
+
const err21 = createError(instancePath + "/@container", "#/allOf/1/anyOf/0/properties/%40container/anyOf/0/anyOf/1/const", "const", { allowedValue: "@set" }, 0);
|
|
858
|
+
vErrors = pushError(vErrors, err21);
|
|
859
|
+
errors++;
|
|
860
|
+
}
|
|
861
|
+
var _valid5 = _errs45 === errors;
|
|
862
|
+
valid10 = valid10 || _valid5;
|
|
863
|
+
const _errs46 = errors;
|
|
864
|
+
if (!(validate59(data10, { instancePath: instancePath + "/@container", parentData: data, parentDataProperty: "@container", rootData, dynamicAnchors }))) {
|
|
865
|
+
vErrors = vErrors === null ? validate59.errors : vErrors.concat(validate59.errors);
|
|
866
|
+
errors = vErrors.length;
|
|
867
|
+
}
|
|
868
|
+
var _valid5 = _errs46 === errors;
|
|
869
|
+
valid10 = valid10 || _valid5;
|
|
870
|
+
if (!valid10) {
|
|
871
|
+
const err22 = createError(instancePath + "/@container", "#/allOf/1/anyOf/0/properties/%40container/anyOf/0/anyOf", "anyOf", {}, 1);
|
|
872
|
+
vErrors = pushError(vErrors, err22);
|
|
873
|
+
errors++;
|
|
874
|
+
}
|
|
875
|
+
else {
|
|
876
|
+
errors = _errs43;
|
|
877
|
+
if (vErrors !== null) {
|
|
878
|
+
if (_errs43) {
|
|
879
|
+
vErrors.length = _errs43;
|
|
880
|
+
}
|
|
881
|
+
else {
|
|
882
|
+
vErrors = null;
|
|
883
|
+
}
|
|
884
|
+
}
|
|
885
|
+
}
|
|
886
|
+
var _valid4 = _errs42 === errors;
|
|
887
|
+
valid9 = valid9 || _valid4;
|
|
888
|
+
const _errs47 = errors;
|
|
889
|
+
if (Array.isArray(data10)) {
|
|
890
|
+
const len1 = data10.length;
|
|
891
|
+
for (let i1 = 0; i1 < len1; i1++) {
|
|
892
|
+
let data11 = data10[i1];
|
|
893
|
+
const _errs50 = errors;
|
|
894
|
+
let valid13 = false;
|
|
895
|
+
const _errs51 = errors;
|
|
896
|
+
if ("@list" !== data11) {
|
|
897
|
+
const err23 = createError(instancePath + "/@container/" + i1, "#/allOf/1/anyOf/0/properties/%40container/anyOf/1/items/anyOf/0/const", "const", { allowedValue: "@list" }, 0);
|
|
898
|
+
vErrors = pushError(vErrors, err23);
|
|
899
|
+
errors++;
|
|
900
|
+
}
|
|
901
|
+
var _valid6 = _errs51 === errors;
|
|
902
|
+
valid13 = valid13 || _valid6;
|
|
903
|
+
const _errs52 = errors;
|
|
904
|
+
if ("@set" !== data11) {
|
|
905
|
+
const err24 = createError(instancePath + "/@container/" + i1, "#/allOf/1/anyOf/0/properties/%40container/anyOf/1/items/anyOf/1/const", "const", { allowedValue: "@set" }, 0);
|
|
906
|
+
vErrors = pushError(vErrors, err24);
|
|
907
|
+
errors++;
|
|
908
|
+
}
|
|
909
|
+
var _valid6 = _errs52 === errors;
|
|
910
|
+
valid13 = valid13 || _valid6;
|
|
911
|
+
const _errs53 = errors;
|
|
912
|
+
if (!(validate59(data11, { instancePath: instancePath + "/@container/" + i1, parentData: data10, parentDataProperty: i1, rootData, dynamicAnchors }))) {
|
|
913
|
+
vErrors = vErrors === null ? validate59.errors : vErrors.concat(validate59.errors);
|
|
914
|
+
errors = vErrors.length;
|
|
915
|
+
}
|
|
916
|
+
var _valid6 = _errs53 === errors;
|
|
917
|
+
valid13 = valid13 || _valid6;
|
|
918
|
+
if (!valid13) {
|
|
919
|
+
const err25 = createError(instancePath + "/@container/" + i1, "#/allOf/1/anyOf/0/properties/%40container/anyOf/1/items/anyOf", "anyOf", {}, 1);
|
|
920
|
+
vErrors = pushError(vErrors, err25);
|
|
921
|
+
errors++;
|
|
922
|
+
}
|
|
923
|
+
else {
|
|
924
|
+
errors = _errs50;
|
|
925
|
+
if (vErrors !== null) {
|
|
926
|
+
if (_errs50) {
|
|
927
|
+
vErrors.length = _errs50;
|
|
928
|
+
}
|
|
929
|
+
else {
|
|
930
|
+
vErrors = null;
|
|
931
|
+
}
|
|
932
|
+
}
|
|
933
|
+
}
|
|
934
|
+
}
|
|
935
|
+
}
|
|
936
|
+
else {
|
|
937
|
+
const err26 = createError(instancePath + "/@container", "#/allOf/1/anyOf/0/properties/%40container/anyOf/1/type", "type", { type: "array" }, 4);
|
|
938
|
+
vErrors = pushError(vErrors, err26);
|
|
939
|
+
errors++;
|
|
940
|
+
}
|
|
941
|
+
var _valid4 = _errs47 === errors;
|
|
942
|
+
valid9 = valid9 || _valid4;
|
|
943
|
+
if (_valid4) {
|
|
944
|
+
var items2 = true;
|
|
945
|
+
}
|
|
946
|
+
const _errs54 = errors;
|
|
947
|
+
if (!(validate62(data10, { instancePath: instancePath + "/@container", parentData: data, parentDataProperty: "@container", rootData, dynamicAnchors }))) {
|
|
948
|
+
vErrors = vErrors === null ? validate62.errors : vErrors.concat(validate62.errors);
|
|
949
|
+
errors = vErrors.length;
|
|
950
|
+
}
|
|
951
|
+
else {
|
|
952
|
+
var items3 = validate62.evaluated.items;
|
|
953
|
+
}
|
|
954
|
+
var _valid4 = _errs54 === errors;
|
|
955
|
+
valid9 = valid9 || _valid4;
|
|
956
|
+
if (_valid4) {
|
|
957
|
+
if (items2 !== true && items3 !== undefined) {
|
|
958
|
+
items2 = items3 === true ? true : items2 > items3 ? items2 : items3;
|
|
959
|
+
}
|
|
960
|
+
}
|
|
961
|
+
const _errs55 = errors;
|
|
962
|
+
if (data10 !== null) {
|
|
963
|
+
const err27 = createError(instancePath + "/@container", "#/allOf/1/anyOf/0/properties/%40container/anyOf/3/type", "type", { type: "null" }, 10);
|
|
964
|
+
vErrors = pushError(vErrors, err27);
|
|
965
|
+
errors++;
|
|
966
|
+
}
|
|
967
|
+
var _valid4 = _errs55 === errors;
|
|
968
|
+
valid9 = valid9 || _valid4;
|
|
969
|
+
if (!valid9) {
|
|
970
|
+
const err28 = createError(instancePath + "/@container", "#/allOf/1/anyOf/0/properties/%40container/anyOf", "anyOf", {}, 1);
|
|
971
|
+
vErrors = pushError(vErrors, err28);
|
|
972
|
+
errors++;
|
|
973
|
+
}
|
|
974
|
+
else {
|
|
975
|
+
errors = _errs41;
|
|
976
|
+
if (vErrors !== null) {
|
|
977
|
+
if (_errs41) {
|
|
978
|
+
vErrors.length = _errs41;
|
|
979
|
+
}
|
|
980
|
+
else {
|
|
981
|
+
vErrors = null;
|
|
982
|
+
}
|
|
983
|
+
}
|
|
984
|
+
}
|
|
985
|
+
}
|
|
986
|
+
}
|
|
987
|
+
else {
|
|
988
|
+
const err29 = createError(instancePath, "#/allOf/1/anyOf/0/type", "type", { type: "object" }, 9);
|
|
989
|
+
vErrors = pushError(vErrors, err29);
|
|
990
|
+
errors++;
|
|
991
|
+
}
|
|
992
|
+
var _valid1 = _errs23 === errors;
|
|
993
|
+
valid3 = valid3 || _valid1;
|
|
994
|
+
if (_valid1) {
|
|
995
|
+
var props1 = {};
|
|
996
|
+
props1["@id"] = true;
|
|
997
|
+
props1["@nest"] = true;
|
|
998
|
+
props1["@container"] = true;
|
|
999
|
+
}
|
|
1000
|
+
const _errs57 = errors;
|
|
1001
|
+
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
1002
|
+
if (data["@reverse"] === undefined) {
|
|
1003
|
+
const err30 = createError(instancePath, "#/allOf/1/anyOf/1/required", "required", { missingProperty: "@reverse" }, "must have required property '" + "@reverse" + "'");
|
|
1004
|
+
vErrors = pushError(vErrors, err30);
|
|
1005
|
+
errors++;
|
|
1006
|
+
}
|
|
1007
|
+
if (data["@reverse"] !== undefined) {
|
|
1008
|
+
if (typeof data["@reverse"] !== "string") {
|
|
1009
|
+
const err31 = createError(instancePath + "/@reverse", "#/allOf/1/anyOf/1/properties/%40reverse/type", "type", { type: "string" }, 7);
|
|
1010
|
+
vErrors = pushError(vErrors, err31);
|
|
1011
|
+
errors++;
|
|
1012
|
+
}
|
|
1013
|
+
}
|
|
1014
|
+
if (data["@container"] !== undefined) {
|
|
1015
|
+
let data13 = data["@container"];
|
|
1016
|
+
const _errs62 = errors;
|
|
1017
|
+
let valid15 = false;
|
|
1018
|
+
const _errs63 = errors;
|
|
1019
|
+
if ("@set" !== data13) {
|
|
1020
|
+
const err32 = createError(instancePath + "/@container", "#/allOf/1/anyOf/1/properties/%40container/anyOf/0/const", "const", { allowedValue: "@set" }, 0);
|
|
1021
|
+
vErrors = pushError(vErrors, err32);
|
|
1022
|
+
errors++;
|
|
1023
|
+
}
|
|
1024
|
+
var _valid7 = _errs63 === errors;
|
|
1025
|
+
valid15 = valid15 || _valid7;
|
|
1026
|
+
const _errs64 = errors;
|
|
1027
|
+
if ("@index" !== data13) {
|
|
1028
|
+
const err33 = createError(instancePath + "/@container", "#/allOf/1/anyOf/1/properties/%40container/anyOf/1/const", "const", { allowedValue: "@index" }, 0);
|
|
1029
|
+
vErrors = pushError(vErrors, err33);
|
|
1030
|
+
errors++;
|
|
1031
|
+
}
|
|
1032
|
+
var _valid7 = _errs64 === errors;
|
|
1033
|
+
valid15 = valid15 || _valid7;
|
|
1034
|
+
const _errs65 = errors;
|
|
1035
|
+
if (data13 !== null) {
|
|
1036
|
+
const err34 = createError(instancePath + "/@container", "#/allOf/1/anyOf/1/properties/%40container/anyOf/2/type", "type", { type: "null" }, 10);
|
|
1037
|
+
vErrors = pushError(vErrors, err34);
|
|
1038
|
+
errors++;
|
|
1039
|
+
}
|
|
1040
|
+
var _valid7 = _errs65 === errors;
|
|
1041
|
+
valid15 = valid15 || _valid7;
|
|
1042
|
+
if (!valid15) {
|
|
1043
|
+
const err35 = createError(instancePath + "/@container", "#/allOf/1/anyOf/1/properties/%40container/anyOf", "anyOf", {}, 1);
|
|
1044
|
+
vErrors = pushError(vErrors, err35);
|
|
1045
|
+
errors++;
|
|
1046
|
+
}
|
|
1047
|
+
else {
|
|
1048
|
+
errors = _errs62;
|
|
1049
|
+
if (vErrors !== null) {
|
|
1050
|
+
if (_errs62) {
|
|
1051
|
+
vErrors.length = _errs62;
|
|
1052
|
+
}
|
|
1053
|
+
else {
|
|
1054
|
+
vErrors = null;
|
|
1055
|
+
}
|
|
1056
|
+
}
|
|
1057
|
+
}
|
|
1058
|
+
}
|
|
1059
|
+
}
|
|
1060
|
+
else {
|
|
1061
|
+
const err36 = createError(instancePath, "#/allOf/1/anyOf/1/type", "type", { type: "object" }, 9);
|
|
1062
|
+
vErrors = pushError(vErrors, err36);
|
|
1063
|
+
errors++;
|
|
1064
|
+
}
|
|
1065
|
+
var _valid1 = _errs57 === errors;
|
|
1066
|
+
valid3 = valid3 || _valid1;
|
|
1067
|
+
if (_valid1) {
|
|
1068
|
+
if (props1 !== true) {
|
|
1069
|
+
props1 = props1 || {};
|
|
1070
|
+
props1["@reverse"] = true;
|
|
1071
|
+
props1["@container"] = true;
|
|
1072
|
+
}
|
|
1073
|
+
}
|
|
1074
|
+
if (!valid3) {
|
|
1075
|
+
const err37 = createError(instancePath, "#/allOf/1/anyOf", "anyOf", {}, 1);
|
|
1076
|
+
vErrors = pushError(vErrors, err37);
|
|
1077
|
+
errors++;
|
|
1078
|
+
}
|
|
1079
|
+
else {
|
|
1080
|
+
errors = _errs22;
|
|
1081
|
+
if (vErrors !== null) {
|
|
1082
|
+
if (_errs22) {
|
|
1083
|
+
vErrors.length = _errs22;
|
|
1084
|
+
}
|
|
1085
|
+
else {
|
|
1086
|
+
vErrors = null;
|
|
1087
|
+
}
|
|
1088
|
+
}
|
|
1089
|
+
}
|
|
1090
|
+
if (props1 !== true) {
|
|
1091
|
+
props1 = props1 || {};
|
|
1092
|
+
props1["@type"] = true;
|
|
1093
|
+
props1["@language"] = true;
|
|
1094
|
+
props1["@index"] = true;
|
|
1095
|
+
props1["@context"] = true;
|
|
1096
|
+
props1["@prefix"] = true;
|
|
1097
|
+
props1["@propagate"] = true;
|
|
1098
|
+
props1["@protected"] = true;
|
|
1099
|
+
}
|
|
1100
|
+
validate58.errors = vErrors;
|
|
1101
|
+
evaluated0.props = props1;
|
|
1102
|
+
return errors === 0;
|
|
1103
|
+
}
|
|
1104
|
+
validate58.evaluated = { "dynamicProps": true, "dynamicItems": false };
|
|
1105
|
+
function validate57(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
|
|
1106
|
+
/*# sourceURL="https://schema.3sixty.global/json-ld/JsonLdContextDefinition" */ ;
|
|
1107
|
+
let vErrors = null;
|
|
1108
|
+
let errors = 0;
|
|
1109
|
+
const evaluated0 = validate57.evaluated;
|
|
1110
|
+
if (evaluated0.dynamicProps) {
|
|
1111
|
+
evaluated0.props = undefined;
|
|
1112
|
+
}
|
|
1113
|
+
if (evaluated0.dynamicItems) {
|
|
1114
|
+
evaluated0.items = undefined;
|
|
1115
|
+
}
|
|
1116
|
+
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
1117
|
+
for (const key0 in data) {
|
|
1118
|
+
if (!(func1.call(schema24.properties, key0))) {
|
|
1119
|
+
let data0 = data[key0];
|
|
1120
|
+
const _errs3 = errors;
|
|
1121
|
+
let valid1 = false;
|
|
1122
|
+
const _errs4 = errors;
|
|
1123
|
+
if (data0 !== null) {
|
|
1124
|
+
const err0 = createError(instancePath + "/" + key0.replace(/~/g, "~0").replace(/\//g, "~1"), "#/additionalProperties/anyOf/0/type", "type", { type: "null" }, 10);
|
|
1125
|
+
vErrors = pushError(vErrors, err0);
|
|
1126
|
+
errors++;
|
|
1127
|
+
}
|
|
1128
|
+
var _valid0 = _errs4 === errors;
|
|
1129
|
+
valid1 = valid1 || _valid0;
|
|
1130
|
+
const _errs6 = errors;
|
|
1131
|
+
if (typeof data0 !== "string") {
|
|
1132
|
+
const err1 = createError(instancePath + "/" + key0.replace(/~/g, "~0").replace(/\//g, "~1"), "#/additionalProperties/anyOf/1/type", "type", { type: "string" }, 7);
|
|
1133
|
+
vErrors = pushError(vErrors, err1);
|
|
1134
|
+
errors++;
|
|
1135
|
+
}
|
|
1136
|
+
var _valid0 = _errs6 === errors;
|
|
1137
|
+
valid1 = valid1 || _valid0;
|
|
1138
|
+
const _errs8 = errors;
|
|
1139
|
+
if (!(validate58(data0, { instancePath: instancePath + "/" + key0.replace(/~/g, "~0").replace(/\//g, "~1"), parentData: data, parentDataProperty: key0, rootData, dynamicAnchors }))) {
|
|
1140
|
+
vErrors = vErrors === null ? validate58.errors : vErrors.concat(validate58.errors);
|
|
1141
|
+
errors = vErrors.length;
|
|
1142
|
+
}
|
|
1143
|
+
else {
|
|
1144
|
+
var props0 = validate58.evaluated.props;
|
|
1145
|
+
}
|
|
1146
|
+
var _valid0 = _errs8 === errors;
|
|
1147
|
+
valid1 = valid1 || _valid0;
|
|
1148
|
+
const _errs9 = errors;
|
|
1149
|
+
const _errs10 = errors;
|
|
1150
|
+
let valid2 = false;
|
|
1151
|
+
const _errs11 = errors;
|
|
1152
|
+
const _errs12 = errors;
|
|
1153
|
+
let valid3 = false;
|
|
1154
|
+
const _errs13 = errors;
|
|
1155
|
+
if (typeof data0 !== "string") {
|
|
1156
|
+
const err2 = createError(instancePath + "/" + key0.replace(/~/g, "~0").replace(/\//g, "~1"), "#/additionalProperties/anyOf/3/anyOf/0/anyOf/0/type", "type", { type: "string" }, 7);
|
|
1157
|
+
vErrors = pushError(vErrors, err2);
|
|
1158
|
+
errors++;
|
|
1159
|
+
}
|
|
1160
|
+
var _valid2 = _errs13 === errors;
|
|
1161
|
+
valid3 = valid3 || _valid2;
|
|
1162
|
+
const _errs15 = errors;
|
|
1163
|
+
if (data0 !== null) {
|
|
1164
|
+
const err3 = createError(instancePath + "/" + key0.replace(/~/g, "~0").replace(/\//g, "~1"), "#/additionalProperties/anyOf/3/anyOf/0/anyOf/1/type", "type", { type: "null" }, 10);
|
|
1165
|
+
vErrors = pushError(vErrors, err3);
|
|
1166
|
+
errors++;
|
|
1167
|
+
}
|
|
1168
|
+
var _valid2 = _errs15 === errors;
|
|
1169
|
+
valid3 = valid3 || _valid2;
|
|
1170
|
+
if (!valid3) {
|
|
1171
|
+
const err4 = createError(instancePath + "/" + key0.replace(/~/g, "~0").replace(/\//g, "~1"), "#/additionalProperties/anyOf/3/anyOf/0/anyOf", "anyOf", {}, 1);
|
|
1172
|
+
vErrors = pushError(vErrors, err4);
|
|
1173
|
+
errors++;
|
|
1174
|
+
}
|
|
1175
|
+
else {
|
|
1176
|
+
errors = _errs12;
|
|
1177
|
+
if (vErrors !== null) {
|
|
1178
|
+
if (_errs12) {
|
|
1179
|
+
vErrors.length = _errs12;
|
|
1180
|
+
}
|
|
1181
|
+
else {
|
|
1182
|
+
vErrors = null;
|
|
1183
|
+
}
|
|
1184
|
+
}
|
|
1185
|
+
}
|
|
1186
|
+
var _valid1 = _errs11 === errors;
|
|
1187
|
+
valid2 = valid2 || _valid1;
|
|
1188
|
+
const _errs17 = errors;
|
|
1189
|
+
const _errs18 = errors;
|
|
1190
|
+
let valid4 = false;
|
|
1191
|
+
const _errs19 = errors;
|
|
1192
|
+
if ("ltr" !== data0) {
|
|
1193
|
+
const err5 = createError(instancePath + "/" + key0.replace(/~/g, "~0").replace(/\//g, "~1"), "#/additionalProperties/anyOf/3/anyOf/1/anyOf/0/const", "const", { allowedValue: "ltr" }, 0);
|
|
1194
|
+
vErrors = pushError(vErrors, err5);
|
|
1195
|
+
errors++;
|
|
1196
|
+
}
|
|
1197
|
+
var _valid3 = _errs19 === errors;
|
|
1198
|
+
valid4 = valid4 || _valid3;
|
|
1199
|
+
const _errs20 = errors;
|
|
1200
|
+
if ("rtl" !== data0) {
|
|
1201
|
+
const err6 = createError(instancePath + "/" + key0.replace(/~/g, "~0").replace(/\//g, "~1"), "#/additionalProperties/anyOf/3/anyOf/1/anyOf/1/const", "const", { allowedValue: "rtl" }, 0);
|
|
1202
|
+
vErrors = pushError(vErrors, err6);
|
|
1203
|
+
errors++;
|
|
1204
|
+
}
|
|
1205
|
+
var _valid3 = _errs20 === errors;
|
|
1206
|
+
valid4 = valid4 || _valid3;
|
|
1207
|
+
const _errs21 = errors;
|
|
1208
|
+
if (data0 !== null) {
|
|
1209
|
+
const err7 = createError(instancePath + "/" + key0.replace(/~/g, "~0").replace(/\//g, "~1"), "#/additionalProperties/anyOf/3/anyOf/1/anyOf/2/type", "type", { type: "null" }, 10);
|
|
1210
|
+
vErrors = pushError(vErrors, err7);
|
|
1211
|
+
errors++;
|
|
1212
|
+
}
|
|
1213
|
+
var _valid3 = _errs21 === errors;
|
|
1214
|
+
valid4 = valid4 || _valid3;
|
|
1215
|
+
if (!valid4) {
|
|
1216
|
+
const err8 = createError(instancePath + "/" + key0.replace(/~/g, "~0").replace(/\//g, "~1"), "#/additionalProperties/anyOf/3/anyOf/1/anyOf", "anyOf", {}, 1);
|
|
1217
|
+
vErrors = pushError(vErrors, err8);
|
|
1218
|
+
errors++;
|
|
1219
|
+
}
|
|
1220
|
+
else {
|
|
1221
|
+
errors = _errs18;
|
|
1222
|
+
if (vErrors !== null) {
|
|
1223
|
+
if (_errs18) {
|
|
1224
|
+
vErrors.length = _errs18;
|
|
1225
|
+
}
|
|
1226
|
+
else {
|
|
1227
|
+
vErrors = null;
|
|
1228
|
+
}
|
|
1229
|
+
}
|
|
1230
|
+
}
|
|
1231
|
+
var _valid1 = _errs17 === errors;
|
|
1232
|
+
valid2 = valid2 || _valid1;
|
|
1233
|
+
const _errs23 = errors;
|
|
1234
|
+
if (typeof data0 !== "string") {
|
|
1235
|
+
const err9 = createError(instancePath + "/" + key0.replace(/~/g, "~0").replace(/\//g, "~1"), "#/additionalProperties/anyOf/3/anyOf/2/type", "type", { type: "string" }, 7);
|
|
1236
|
+
vErrors = pushError(vErrors, err9);
|
|
1237
|
+
errors++;
|
|
1238
|
+
}
|
|
1239
|
+
var _valid1 = _errs23 === errors;
|
|
1240
|
+
valid2 = valid2 || _valid1;
|
|
1241
|
+
const _errs25 = errors;
|
|
1242
|
+
if (typeof data0 !== "boolean") {
|
|
1243
|
+
const err10 = createError(instancePath + "/" + key0.replace(/~/g, "~0").replace(/\//g, "~1"), "#/additionalProperties/anyOf/3/anyOf/3/type", "type", { type: "boolean" }, 8);
|
|
1244
|
+
vErrors = pushError(vErrors, err10);
|
|
1245
|
+
errors++;
|
|
1246
|
+
}
|
|
1247
|
+
var _valid1 = _errs25 === errors;
|
|
1248
|
+
valid2 = valid2 || _valid1;
|
|
1249
|
+
const _errs27 = errors;
|
|
1250
|
+
if (data0 && typeof data0 == "object" && !Array.isArray(data0)) {
|
|
1251
|
+
if (data0["@container"] === undefined) {
|
|
1252
|
+
const err11 = createError(instancePath + "/" + key0.replace(/~/g, "~0").replace(/\//g, "~1"), "#/additionalProperties/anyOf/3/anyOf/4/required", "required", { missingProperty: "@container" }, "must have required property '" + "@container" + "'");
|
|
1253
|
+
vErrors = pushError(vErrors, err11);
|
|
1254
|
+
errors++;
|
|
1255
|
+
}
|
|
1256
|
+
if (data0["@container"] !== undefined) {
|
|
1257
|
+
if ("@set" !== data0["@container"]) {
|
|
1258
|
+
const err12 = createError(instancePath + "/" + key0.replace(/~/g, "~0").replace(/\//g, "~1") + "/@container", "#/additionalProperties/anyOf/3/anyOf/4/properties/%40container/const", "const", { allowedValue: "@set" }, 0);
|
|
1259
|
+
vErrors = pushError(vErrors, err12);
|
|
1260
|
+
errors++;
|
|
1261
|
+
}
|
|
1262
|
+
}
|
|
1263
|
+
if (data0["@protected"] !== undefined) {
|
|
1264
|
+
if (typeof data0["@protected"] !== "boolean") {
|
|
1265
|
+
const err13 = createError(instancePath + "/" + key0.replace(/~/g, "~0").replace(/\//g, "~1") + "/@protected", "#/additionalProperties/anyOf/3/anyOf/4/properties/%40protected/type", "type", { type: "boolean" }, 8);
|
|
1266
|
+
vErrors = pushError(vErrors, err13);
|
|
1267
|
+
errors++;
|
|
1268
|
+
}
|
|
1269
|
+
}
|
|
1270
|
+
}
|
|
1271
|
+
else {
|
|
1272
|
+
const err14 = createError(instancePath + "/" + key0.replace(/~/g, "~0").replace(/\//g, "~1"), "#/additionalProperties/anyOf/3/anyOf/4/type", "type", { type: "object" }, 9);
|
|
1273
|
+
vErrors = pushError(vErrors, err14);
|
|
1274
|
+
errors++;
|
|
1275
|
+
}
|
|
1276
|
+
var _valid1 = _errs27 === errors;
|
|
1277
|
+
valid2 = valid2 || _valid1;
|
|
1278
|
+
if (_valid1) {
|
|
1279
|
+
var props1 = {};
|
|
1280
|
+
props1["@container"] = true;
|
|
1281
|
+
props1["@protected"] = true;
|
|
1282
|
+
}
|
|
1283
|
+
const _errs32 = errors;
|
|
1284
|
+
if ("1.1" !== data0) {
|
|
1285
|
+
const err15 = createError(instancePath + "/" + key0.replace(/~/g, "~0").replace(/\//g, "~1"), "#/additionalProperties/anyOf/3/anyOf/5/const", "const", { allowedValue: "1.1" }, 0);
|
|
1286
|
+
vErrors = pushError(vErrors, err15);
|
|
1287
|
+
errors++;
|
|
1288
|
+
}
|
|
1289
|
+
var _valid1 = _errs32 === errors;
|
|
1290
|
+
valid2 = valid2 || _valid1;
|
|
1291
|
+
if (!valid2) {
|
|
1292
|
+
const err16 = createError(instancePath + "/" + key0.replace(/~/g, "~0").replace(/\//g, "~1"), "#/additionalProperties/anyOf/3/anyOf", "anyOf", {}, 1);
|
|
1293
|
+
vErrors = pushError(vErrors, err16);
|
|
1294
|
+
errors++;
|
|
1295
|
+
}
|
|
1296
|
+
else {
|
|
1297
|
+
errors = _errs10;
|
|
1298
|
+
if (vErrors !== null) {
|
|
1299
|
+
if (_errs10) {
|
|
1300
|
+
vErrors.length = _errs10;
|
|
1301
|
+
}
|
|
1302
|
+
else {
|
|
1303
|
+
vErrors = null;
|
|
1304
|
+
}
|
|
1305
|
+
}
|
|
1306
|
+
}
|
|
1307
|
+
var _valid0 = _errs9 === errors;
|
|
1308
|
+
valid1 = valid1 || _valid0;
|
|
1309
|
+
if (_valid0) {
|
|
1310
|
+
if (props0 !== true && props1 !== undefined) {
|
|
1311
|
+
if (props1 === true) {
|
|
1312
|
+
props0 = true;
|
|
1313
|
+
}
|
|
1314
|
+
else {
|
|
1315
|
+
props0 = props0 || {};
|
|
1316
|
+
Object.assign(props0, props1);
|
|
1317
|
+
}
|
|
1318
|
+
}
|
|
1319
|
+
}
|
|
1320
|
+
if (!valid1) {
|
|
1321
|
+
const err17 = createError(instancePath + "/" + key0.replace(/~/g, "~0").replace(/\//g, "~1"), "#/additionalProperties/anyOf", "anyOf", {}, 1);
|
|
1322
|
+
vErrors = pushError(vErrors, err17);
|
|
1323
|
+
errors++;
|
|
1324
|
+
}
|
|
1325
|
+
else {
|
|
1326
|
+
errors = _errs3;
|
|
1327
|
+
if (vErrors !== null) {
|
|
1328
|
+
if (_errs3) {
|
|
1329
|
+
vErrors.length = _errs3;
|
|
1330
|
+
}
|
|
1331
|
+
else {
|
|
1332
|
+
vErrors = null;
|
|
1333
|
+
}
|
|
1334
|
+
}
|
|
1335
|
+
}
|
|
1336
|
+
}
|
|
1337
|
+
}
|
|
1338
|
+
if (data["@base"] !== undefined) {
|
|
1339
|
+
let data3 = data["@base"];
|
|
1340
|
+
const _errs34 = errors;
|
|
1341
|
+
let valid7 = false;
|
|
1342
|
+
const _errs35 = errors;
|
|
1343
|
+
if (typeof data3 !== "string") {
|
|
1344
|
+
const err18 = createError(instancePath + "/@base", "#/properties/%40base/anyOf/0/type", "type", { type: "string" }, 7);
|
|
1345
|
+
vErrors = pushError(vErrors, err18);
|
|
1346
|
+
errors++;
|
|
1347
|
+
}
|
|
1348
|
+
var _valid4 = _errs35 === errors;
|
|
1349
|
+
valid7 = valid7 || _valid4;
|
|
1350
|
+
const _errs37 = errors;
|
|
1351
|
+
if (data3 !== null) {
|
|
1352
|
+
const err19 = createError(instancePath + "/@base", "#/properties/%40base/anyOf/1/type", "type", { type: "null" }, 10);
|
|
1353
|
+
vErrors = pushError(vErrors, err19);
|
|
1354
|
+
errors++;
|
|
1355
|
+
}
|
|
1356
|
+
var _valid4 = _errs37 === errors;
|
|
1357
|
+
valid7 = valid7 || _valid4;
|
|
1358
|
+
if (!valid7) {
|
|
1359
|
+
const err20 = createError(instancePath + "/@base", "#/properties/%40base/anyOf", "anyOf", {}, 1);
|
|
1360
|
+
vErrors = pushError(vErrors, err20);
|
|
1361
|
+
errors++;
|
|
1362
|
+
}
|
|
1363
|
+
else {
|
|
1364
|
+
errors = _errs34;
|
|
1365
|
+
if (vErrors !== null) {
|
|
1366
|
+
if (_errs34) {
|
|
1367
|
+
vErrors.length = _errs34;
|
|
1368
|
+
}
|
|
1369
|
+
else {
|
|
1370
|
+
vErrors = null;
|
|
1371
|
+
}
|
|
1372
|
+
}
|
|
1373
|
+
}
|
|
1374
|
+
}
|
|
1375
|
+
if (data["@direction"] !== undefined) {
|
|
1376
|
+
let data4 = data["@direction"];
|
|
1377
|
+
const _errs40 = errors;
|
|
1378
|
+
let valid8 = false;
|
|
1379
|
+
const _errs41 = errors;
|
|
1380
|
+
if ("ltr" !== data4) {
|
|
1381
|
+
const err21 = createError(instancePath + "/@direction", "#/properties/%40direction/anyOf/0/const", "const", { allowedValue: "ltr" }, 0);
|
|
1382
|
+
vErrors = pushError(vErrors, err21);
|
|
1383
|
+
errors++;
|
|
1384
|
+
}
|
|
1385
|
+
var _valid5 = _errs41 === errors;
|
|
1386
|
+
valid8 = valid8 || _valid5;
|
|
1387
|
+
const _errs42 = errors;
|
|
1388
|
+
if ("rtl" !== data4) {
|
|
1389
|
+
const err22 = createError(instancePath + "/@direction", "#/properties/%40direction/anyOf/1/const", "const", { allowedValue: "rtl" }, 0);
|
|
1390
|
+
vErrors = pushError(vErrors, err22);
|
|
1391
|
+
errors++;
|
|
1392
|
+
}
|
|
1393
|
+
var _valid5 = _errs42 === errors;
|
|
1394
|
+
valid8 = valid8 || _valid5;
|
|
1395
|
+
const _errs43 = errors;
|
|
1396
|
+
if (data4 !== null) {
|
|
1397
|
+
const err23 = createError(instancePath + "/@direction", "#/properties/%40direction/anyOf/2/type", "type", { type: "null" }, 10);
|
|
1398
|
+
vErrors = pushError(vErrors, err23);
|
|
1399
|
+
errors++;
|
|
1400
|
+
}
|
|
1401
|
+
var _valid5 = _errs43 === errors;
|
|
1402
|
+
valid8 = valid8 || _valid5;
|
|
1403
|
+
if (!valid8) {
|
|
1404
|
+
const err24 = createError(instancePath + "/@direction", "#/properties/%40direction/anyOf", "anyOf", {}, 1);
|
|
1405
|
+
vErrors = pushError(vErrors, err24);
|
|
1406
|
+
errors++;
|
|
1407
|
+
}
|
|
1408
|
+
else {
|
|
1409
|
+
errors = _errs40;
|
|
1410
|
+
if (vErrors !== null) {
|
|
1411
|
+
if (_errs40) {
|
|
1412
|
+
vErrors.length = _errs40;
|
|
1413
|
+
}
|
|
1414
|
+
else {
|
|
1415
|
+
vErrors = null;
|
|
1416
|
+
}
|
|
1417
|
+
}
|
|
1418
|
+
}
|
|
1419
|
+
}
|
|
1420
|
+
if (data["@import"] !== undefined) {
|
|
1421
|
+
if (typeof data["@import"] !== "string") {
|
|
1422
|
+
const err25 = createError(instancePath + "/@import", "#/properties/%40import/type", "type", { type: "string" }, 7);
|
|
1423
|
+
vErrors = pushError(vErrors, err25);
|
|
1424
|
+
errors++;
|
|
1425
|
+
}
|
|
1426
|
+
}
|
|
1427
|
+
if (data["@language"] !== undefined) {
|
|
1428
|
+
if (typeof data["@language"] !== "string") {
|
|
1429
|
+
const err26 = createError(instancePath + "/@language", "#/properties/%40language/type", "type", { type: "string" }, 7);
|
|
1430
|
+
vErrors = pushError(vErrors, err26);
|
|
1431
|
+
errors++;
|
|
1432
|
+
}
|
|
1433
|
+
}
|
|
1434
|
+
if (data["@propagate"] !== undefined) {
|
|
1435
|
+
if (typeof data["@propagate"] !== "boolean") {
|
|
1436
|
+
const err27 = createError(instancePath + "/@propagate", "#/properties/%40propagate/type", "type", { type: "boolean" }, 8);
|
|
1437
|
+
vErrors = pushError(vErrors, err27);
|
|
1438
|
+
errors++;
|
|
1439
|
+
}
|
|
1440
|
+
}
|
|
1441
|
+
if (data["@protected"] !== undefined) {
|
|
1442
|
+
if (typeof data["@protected"] !== "boolean") {
|
|
1443
|
+
const err28 = createError(instancePath + "/@protected", "#/properties/%40protected/type", "type", { type: "boolean" }, 8);
|
|
1444
|
+
vErrors = pushError(vErrors, err28);
|
|
1445
|
+
errors++;
|
|
1446
|
+
}
|
|
1447
|
+
}
|
|
1448
|
+
if (data["@type"] !== undefined) {
|
|
1449
|
+
let data9 = data["@type"];
|
|
1450
|
+
if (data9 && typeof data9 == "object" && !Array.isArray(data9)) {
|
|
1451
|
+
if (data9["@container"] === undefined) {
|
|
1452
|
+
const err29 = createError(instancePath + "/@type", "#/properties/%40type/required", "required", { missingProperty: "@container" }, "must have required property '" + "@container" + "'");
|
|
1453
|
+
vErrors = pushError(vErrors, err29);
|
|
1454
|
+
errors++;
|
|
1455
|
+
}
|
|
1456
|
+
if (data9["@container"] !== undefined) {
|
|
1457
|
+
if ("@set" !== data9["@container"]) {
|
|
1458
|
+
const err30 = createError(instancePath + "/@type/@container", "#/properties/%40type/properties/%40container/const", "const", { allowedValue: "@set" }, 0);
|
|
1459
|
+
vErrors = pushError(vErrors, err30);
|
|
1460
|
+
errors++;
|
|
1461
|
+
}
|
|
1462
|
+
}
|
|
1463
|
+
if (data9["@protected"] !== undefined) {
|
|
1464
|
+
if (typeof data9["@protected"] !== "boolean") {
|
|
1465
|
+
const err31 = createError(instancePath + "/@type/@protected", "#/properties/%40type/properties/%40protected/type", "type", { type: "boolean" }, 8);
|
|
1466
|
+
vErrors = pushError(vErrors, err31);
|
|
1467
|
+
errors++;
|
|
1468
|
+
}
|
|
1469
|
+
}
|
|
1470
|
+
}
|
|
1471
|
+
else {
|
|
1472
|
+
const err32 = createError(instancePath + "/@type", "#/properties/%40type/type", "type", { type: "object" }, 9);
|
|
1473
|
+
vErrors = pushError(vErrors, err32);
|
|
1474
|
+
errors++;
|
|
1475
|
+
}
|
|
1476
|
+
}
|
|
1477
|
+
if (data["@version"] !== undefined) {
|
|
1478
|
+
if ("1.1" !== data["@version"]) {
|
|
1479
|
+
const err33 = createError(instancePath + "/@version", "#/properties/%40version/const", "const", { allowedValue: "1.1" }, 0);
|
|
1480
|
+
vErrors = pushError(vErrors, err33);
|
|
1481
|
+
errors++;
|
|
1482
|
+
}
|
|
1483
|
+
}
|
|
1484
|
+
if (data["@vocab"] !== undefined) {
|
|
1485
|
+
let data13 = data["@vocab"];
|
|
1486
|
+
const _errs60 = errors;
|
|
1487
|
+
let valid10 = false;
|
|
1488
|
+
const _errs61 = errors;
|
|
1489
|
+
if (typeof data13 !== "string") {
|
|
1490
|
+
const err34 = createError(instancePath + "/@vocab", "#/properties/%40vocab/anyOf/0/type", "type", { type: "string" }, 7);
|
|
1491
|
+
vErrors = pushError(vErrors, err34);
|
|
1492
|
+
errors++;
|
|
1493
|
+
}
|
|
1494
|
+
var _valid6 = _errs61 === errors;
|
|
1495
|
+
valid10 = valid10 || _valid6;
|
|
1496
|
+
const _errs63 = errors;
|
|
1497
|
+
if (data13 !== null) {
|
|
1498
|
+
const err35 = createError(instancePath + "/@vocab", "#/properties/%40vocab/anyOf/1/type", "type", { type: "null" }, 10);
|
|
1499
|
+
vErrors = pushError(vErrors, err35);
|
|
1500
|
+
errors++;
|
|
1501
|
+
}
|
|
1502
|
+
var _valid6 = _errs63 === errors;
|
|
1503
|
+
valid10 = valid10 || _valid6;
|
|
1504
|
+
if (!valid10) {
|
|
1505
|
+
const err36 = createError(instancePath + "/@vocab", "#/properties/%40vocab/anyOf", "anyOf", {}, 1);
|
|
1506
|
+
vErrors = pushError(vErrors, err36);
|
|
1507
|
+
errors++;
|
|
1508
|
+
}
|
|
1509
|
+
else {
|
|
1510
|
+
errors = _errs60;
|
|
1511
|
+
if (vErrors !== null) {
|
|
1512
|
+
if (_errs60) {
|
|
1513
|
+
vErrors.length = _errs60;
|
|
1514
|
+
}
|
|
1515
|
+
else {
|
|
1516
|
+
vErrors = null;
|
|
1517
|
+
}
|
|
1518
|
+
}
|
|
1519
|
+
}
|
|
1520
|
+
}
|
|
1521
|
+
}
|
|
1522
|
+
else {
|
|
1523
|
+
const err37 = createError(instancePath, "#/type", "type", { type: "object" }, 9);
|
|
1524
|
+
vErrors = pushError(vErrors, err37);
|
|
1525
|
+
errors++;
|
|
1526
|
+
}
|
|
1527
|
+
validate57.errors = vErrors;
|
|
1528
|
+
return errors === 0;
|
|
1529
|
+
}
|
|
1530
|
+
validate57.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
|
|
1531
|
+
function validate56(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
|
|
1532
|
+
/*# sourceURL="https://schema.3sixty.global/json-ld/JsonLdContextDefinitionElement" */ ;
|
|
1533
|
+
let vErrors = null;
|
|
1534
|
+
let errors = 0;
|
|
1535
|
+
const evaluated0 = validate56.evaluated;
|
|
1536
|
+
if (evaluated0.dynamicProps) {
|
|
1537
|
+
evaluated0.props = undefined;
|
|
1538
|
+
}
|
|
1539
|
+
if (evaluated0.dynamicItems) {
|
|
1540
|
+
evaluated0.items = undefined;
|
|
1541
|
+
}
|
|
1542
|
+
const _errs0 = errors;
|
|
1543
|
+
let valid0 = false;
|
|
1544
|
+
const _errs1 = errors;
|
|
1545
|
+
if (data !== null) {
|
|
1546
|
+
const err0 = createError(instancePath, "#/anyOf/0/type", "type", { type: "null" }, 10);
|
|
1547
|
+
vErrors = pushError(vErrors, err0);
|
|
1548
|
+
errors++;
|
|
1549
|
+
}
|
|
1550
|
+
var _valid0 = _errs1 === errors;
|
|
1551
|
+
valid0 = valid0 || _valid0;
|
|
1552
|
+
const _errs3 = errors;
|
|
1553
|
+
if (typeof data !== "string") {
|
|
1554
|
+
const err1 = createError(instancePath, "#/anyOf/1/type", "type", { type: "string" }, 7);
|
|
1555
|
+
vErrors = pushError(vErrors, err1);
|
|
1556
|
+
errors++;
|
|
1557
|
+
}
|
|
1558
|
+
var _valid0 = _errs3 === errors;
|
|
1559
|
+
valid0 = valid0 || _valid0;
|
|
1560
|
+
const _errs5 = errors;
|
|
1561
|
+
if (!(validate57(data, { instancePath, parentData, parentDataProperty, rootData, dynamicAnchors }))) {
|
|
1562
|
+
vErrors = vErrors === null ? validate57.errors : vErrors.concat(validate57.errors);
|
|
1563
|
+
errors = vErrors.length;
|
|
1564
|
+
}
|
|
1565
|
+
var _valid0 = _errs5 === errors;
|
|
1566
|
+
valid0 = valid0 || _valid0;
|
|
1567
|
+
if (_valid0) {
|
|
1568
|
+
var props0 = true;
|
|
1569
|
+
}
|
|
1570
|
+
if (!valid0) {
|
|
1571
|
+
const err2 = createError(instancePath, "#/anyOf", "anyOf", {}, 1);
|
|
1572
|
+
vErrors = pushError(vErrors, err2);
|
|
1573
|
+
errors++;
|
|
1574
|
+
}
|
|
1575
|
+
else {
|
|
1576
|
+
errors = _errs0;
|
|
1577
|
+
if (vErrors !== null) {
|
|
1578
|
+
if (_errs0) {
|
|
1579
|
+
vErrors.length = _errs0;
|
|
1580
|
+
}
|
|
1581
|
+
else {
|
|
1582
|
+
vErrors = null;
|
|
1583
|
+
}
|
|
1584
|
+
}
|
|
1585
|
+
}
|
|
1586
|
+
validate56.errors = vErrors;
|
|
1587
|
+
evaluated0.props = props0;
|
|
1588
|
+
return errors === 0;
|
|
1589
|
+
}
|
|
1590
|
+
validate56.evaluated = { "dynamicProps": true, "dynamicItems": false };
|
|
1591
|
+
function validate55(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
|
|
1592
|
+
/*# sourceURL="https://schema.3sixty.global/json-ld/JsonLdContextDefinitionRoot" */ ;
|
|
1593
|
+
let vErrors = null;
|
|
1594
|
+
let errors = 0;
|
|
1595
|
+
const evaluated0 = validate55.evaluated;
|
|
1596
|
+
if (evaluated0.dynamicProps) {
|
|
1597
|
+
evaluated0.props = undefined;
|
|
1598
|
+
}
|
|
1599
|
+
if (evaluated0.dynamicItems) {
|
|
1600
|
+
evaluated0.items = undefined;
|
|
1601
|
+
}
|
|
1602
|
+
const _errs0 = errors;
|
|
1603
|
+
let valid0 = false;
|
|
1604
|
+
const _errs1 = errors;
|
|
1605
|
+
if (!(validate56(data, { instancePath, parentData, parentDataProperty, rootData, dynamicAnchors }))) {
|
|
1606
|
+
vErrors = vErrors === null ? validate56.errors : vErrors.concat(validate56.errors);
|
|
1607
|
+
errors = vErrors.length;
|
|
1608
|
+
}
|
|
1609
|
+
else {
|
|
1610
|
+
var props0 = validate56.evaluated.props;
|
|
1611
|
+
}
|
|
1612
|
+
var _valid0 = _errs1 === errors;
|
|
1613
|
+
valid0 = valid0 || _valid0;
|
|
1614
|
+
const _errs2 = errors;
|
|
1615
|
+
if (Array.isArray(data)) {
|
|
1616
|
+
const len0 = data.length;
|
|
1617
|
+
for (let i0 = 0; i0 < len0; i0++) {
|
|
1618
|
+
if (!(validate56(data[i0], { instancePath: instancePath + "/" + i0, parentData: data, parentDataProperty: i0, rootData, dynamicAnchors }))) {
|
|
1619
|
+
vErrors = vErrors === null ? validate56.errors : vErrors.concat(validate56.errors);
|
|
1620
|
+
errors = vErrors.length;
|
|
1621
|
+
}
|
|
1622
|
+
}
|
|
1623
|
+
}
|
|
1624
|
+
else {
|
|
1625
|
+
const err0 = createError(instancePath, "#/anyOf/1/type", "type", { type: "array" }, 4);
|
|
1626
|
+
vErrors = pushError(vErrors, err0);
|
|
1627
|
+
errors++;
|
|
1628
|
+
}
|
|
1629
|
+
var _valid0 = _errs2 === errors;
|
|
1630
|
+
valid0 = valid0 || _valid0;
|
|
1631
|
+
if (_valid0) {
|
|
1632
|
+
var items0 = true;
|
|
1633
|
+
}
|
|
1634
|
+
if (!valid0) {
|
|
1635
|
+
const err1 = createError(instancePath, "#/anyOf", "anyOf", {}, 1);
|
|
1636
|
+
vErrors = pushError(vErrors, err1);
|
|
1637
|
+
errors++;
|
|
1638
|
+
}
|
|
1639
|
+
else {
|
|
1640
|
+
errors = _errs0;
|
|
1641
|
+
if (vErrors !== null) {
|
|
1642
|
+
if (_errs0) {
|
|
1643
|
+
vErrors.length = _errs0;
|
|
1644
|
+
}
|
|
1645
|
+
else {
|
|
1646
|
+
vErrors = null;
|
|
1647
|
+
}
|
|
1648
|
+
}
|
|
1649
|
+
}
|
|
1650
|
+
validate55.errors = vErrors;
|
|
1651
|
+
evaluated0.props = props0;
|
|
1652
|
+
evaluated0.items = items0;
|
|
1653
|
+
return errors === 0;
|
|
1654
|
+
}
|
|
1655
|
+
validate55.evaluated = { "dynamicProps": true, "dynamicItems": true };
|
|
1656
|
+
const wrapper1 = { validate: validate53 };
|
|
1657
|
+
function validate71(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
|
|
1658
|
+
/*# sourceURL="https://schema.3sixty.global/json-ld/JsonLdIncludedBlock" */ ;
|
|
1659
|
+
let vErrors = null;
|
|
1660
|
+
let errors = 0;
|
|
1661
|
+
const evaluated0 = validate71.evaluated;
|
|
1662
|
+
if (evaluated0.dynamicProps) {
|
|
1663
|
+
evaluated0.props = undefined;
|
|
1664
|
+
}
|
|
1665
|
+
if (evaluated0.dynamicItems) {
|
|
1666
|
+
evaluated0.items = undefined;
|
|
1667
|
+
}
|
|
1668
|
+
const _errs0 = errors;
|
|
1669
|
+
let valid0 = false;
|
|
1670
|
+
const _errs1 = errors;
|
|
1671
|
+
if (!(wrapper1.validate(data, { instancePath, parentData, parentDataProperty, rootData, dynamicAnchors }))) {
|
|
1672
|
+
vErrors = vErrors === null ? wrapper1.validate.errors : vErrors.concat(wrapper1.validate.errors);
|
|
1673
|
+
errors = vErrors.length;
|
|
1674
|
+
}
|
|
1675
|
+
else {
|
|
1676
|
+
var props0 = wrapper1.validate.evaluated.props;
|
|
1677
|
+
var items0 = wrapper1.validate.evaluated.items;
|
|
1678
|
+
}
|
|
1679
|
+
var _valid0 = _errs1 === errors;
|
|
1680
|
+
valid0 = valid0 || _valid0;
|
|
1681
|
+
const _errs2 = errors;
|
|
1682
|
+
if (Array.isArray(data)) {
|
|
1683
|
+
const len0 = data.length;
|
|
1684
|
+
for (let i0 = 0; i0 < len0; i0++) {
|
|
1685
|
+
if (!(wrapper1.validate(data[i0], { instancePath: instancePath + "/" + i0, parentData: data, parentDataProperty: i0, rootData, dynamicAnchors }))) {
|
|
1686
|
+
vErrors = vErrors === null ? wrapper1.validate.errors : vErrors.concat(wrapper1.validate.errors);
|
|
1687
|
+
errors = vErrors.length;
|
|
1688
|
+
}
|
|
1689
|
+
}
|
|
1690
|
+
}
|
|
1691
|
+
else {
|
|
1692
|
+
const err0 = createError(instancePath, "#/anyOf/1/type", "type", { type: "array" }, 4);
|
|
1693
|
+
vErrors = pushError(vErrors, err0);
|
|
1694
|
+
errors++;
|
|
1695
|
+
}
|
|
1696
|
+
var _valid0 = _errs2 === errors;
|
|
1697
|
+
valid0 = valid0 || _valid0;
|
|
1698
|
+
if (_valid0) {
|
|
1699
|
+
if (items0 !== true) {
|
|
1700
|
+
items0 = true;
|
|
1701
|
+
}
|
|
1702
|
+
}
|
|
1703
|
+
if (!valid0) {
|
|
1704
|
+
const err1 = createError(instancePath, "#/anyOf", "anyOf", {}, 1);
|
|
1705
|
+
vErrors = pushError(vErrors, err1);
|
|
1706
|
+
errors++;
|
|
1707
|
+
}
|
|
1708
|
+
else {
|
|
1709
|
+
errors = _errs0;
|
|
1710
|
+
if (vErrors !== null) {
|
|
1711
|
+
if (_errs0) {
|
|
1712
|
+
vErrors.length = _errs0;
|
|
1713
|
+
}
|
|
1714
|
+
else {
|
|
1715
|
+
vErrors = null;
|
|
1716
|
+
}
|
|
1717
|
+
}
|
|
1718
|
+
}
|
|
1719
|
+
validate71.errors = vErrors;
|
|
1720
|
+
evaluated0.props = props0;
|
|
1721
|
+
evaluated0.items = items0;
|
|
1722
|
+
return errors === 0;
|
|
1723
|
+
}
|
|
1724
|
+
validate71.evaluated = { "dynamicProps": true, "dynamicItems": true };
|
|
1725
|
+
function validate75(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
|
|
1726
|
+
/*# sourceURL="https://schema.3sixty.global/json-ld/JsonLdJsonPrimitive" */ ;
|
|
1727
|
+
let vErrors = null;
|
|
1728
|
+
let errors = 0;
|
|
1729
|
+
const evaluated0 = validate75.evaluated;
|
|
1730
|
+
if (evaluated0.dynamicProps) {
|
|
1731
|
+
evaluated0.props = undefined;
|
|
1732
|
+
}
|
|
1733
|
+
if (evaluated0.dynamicItems) {
|
|
1734
|
+
evaluated0.items = undefined;
|
|
1735
|
+
}
|
|
1736
|
+
const _errs0 = errors;
|
|
1737
|
+
let valid0 = false;
|
|
1738
|
+
const _errs1 = errors;
|
|
1739
|
+
if (typeof data !== "string") {
|
|
1740
|
+
const err0 = createError(instancePath, "#/anyOf/0/type", "type", { type: "string" }, 7);
|
|
1741
|
+
vErrors = pushError(vErrors, err0);
|
|
1742
|
+
errors++;
|
|
1743
|
+
}
|
|
1744
|
+
var _valid0 = _errs1 === errors;
|
|
1745
|
+
valid0 = valid0 || _valid0;
|
|
1746
|
+
const _errs3 = errors;
|
|
1747
|
+
if (!((typeof data == "number") && (isFinite(data)))) {
|
|
1748
|
+
const err1 = createError(instancePath, "#/anyOf/1/type", "type", { type: "number" }, 11);
|
|
1749
|
+
vErrors = pushError(vErrors, err1);
|
|
1750
|
+
errors++;
|
|
1751
|
+
}
|
|
1752
|
+
var _valid0 = _errs3 === errors;
|
|
1753
|
+
valid0 = valid0 || _valid0;
|
|
1754
|
+
const _errs5 = errors;
|
|
1755
|
+
if (typeof data !== "boolean") {
|
|
1756
|
+
const err2 = createError(instancePath, "#/anyOf/2/type", "type", { type: "boolean" }, 8);
|
|
1757
|
+
vErrors = pushError(vErrors, err2);
|
|
1758
|
+
errors++;
|
|
1759
|
+
}
|
|
1760
|
+
var _valid0 = _errs5 === errors;
|
|
1761
|
+
valid0 = valid0 || _valid0;
|
|
1762
|
+
const _errs7 = errors;
|
|
1763
|
+
if (data !== null) {
|
|
1764
|
+
const err3 = createError(instancePath, "#/anyOf/3/type", "type", { type: "null" }, 10);
|
|
1765
|
+
vErrors = pushError(vErrors, err3);
|
|
1766
|
+
errors++;
|
|
1767
|
+
}
|
|
1768
|
+
var _valid0 = _errs7 === errors;
|
|
1769
|
+
valid0 = valid0 || _valid0;
|
|
1770
|
+
if (!valid0) {
|
|
1771
|
+
const err4 = createError(instancePath, "#/anyOf", "anyOf", {}, 1);
|
|
1772
|
+
vErrors = pushError(vErrors, err4);
|
|
1773
|
+
errors++;
|
|
1774
|
+
}
|
|
1775
|
+
else {
|
|
1776
|
+
errors = _errs0;
|
|
1777
|
+
if (vErrors !== null) {
|
|
1778
|
+
if (_errs0) {
|
|
1779
|
+
vErrors.length = _errs0;
|
|
1780
|
+
}
|
|
1781
|
+
else {
|
|
1782
|
+
vErrors = null;
|
|
1783
|
+
}
|
|
1784
|
+
}
|
|
1785
|
+
}
|
|
1786
|
+
validate75.errors = vErrors;
|
|
1787
|
+
return errors === 0;
|
|
1788
|
+
}
|
|
1789
|
+
validate75.evaluated = { "dynamicProps": false, "dynamicItems": false };
|
|
1790
|
+
const wrapper5 = { validate: validate74 };
|
|
1791
|
+
function validate77(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
|
|
1792
|
+
/*# sourceURL="https://schema.3sixty.global/json-ld/JsonLdJsonArray" */ ;
|
|
1793
|
+
let vErrors = null;
|
|
1794
|
+
let errors = 0;
|
|
1795
|
+
const evaluated0 = validate77.evaluated;
|
|
1796
|
+
if (evaluated0.dynamicProps) {
|
|
1797
|
+
evaluated0.props = undefined;
|
|
1798
|
+
}
|
|
1799
|
+
if (evaluated0.dynamicItems) {
|
|
1800
|
+
evaluated0.items = undefined;
|
|
1801
|
+
}
|
|
1802
|
+
if (Array.isArray(data)) {
|
|
1803
|
+
const len0 = data.length;
|
|
1804
|
+
for (let i0 = 0; i0 < len0; i0++) {
|
|
1805
|
+
if (!(wrapper5.validate(data[i0], { instancePath: instancePath + "/" + i0, parentData: data, parentDataProperty: i0, rootData, dynamicAnchors }))) {
|
|
1806
|
+
vErrors = vErrors === null ? wrapper5.validate.errors : vErrors.concat(wrapper5.validate.errors);
|
|
1807
|
+
errors = vErrors.length;
|
|
1808
|
+
}
|
|
1809
|
+
}
|
|
1810
|
+
}
|
|
1811
|
+
else {
|
|
1812
|
+
const err0 = createError(instancePath, "#/type", "type", { type: "array" }, 4);
|
|
1813
|
+
vErrors = pushError(vErrors, err0);
|
|
1814
|
+
errors++;
|
|
1815
|
+
}
|
|
1816
|
+
validate77.errors = vErrors;
|
|
1817
|
+
return errors === 0;
|
|
1818
|
+
}
|
|
1819
|
+
validate77.evaluated = { "items": true, "dynamicProps": false, "dynamicItems": false };
|
|
1820
|
+
const wrapper6 = { validate: validate73 };
|
|
1821
|
+
function validate74(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
|
|
1822
|
+
/*# sourceURL="https://schema.3sixty.global/json-ld/JsonLdJsonValue" */ ;
|
|
1823
|
+
let vErrors = null;
|
|
1824
|
+
let errors = 0;
|
|
1825
|
+
const evaluated0 = validate74.evaluated;
|
|
1826
|
+
if (evaluated0.dynamicProps) {
|
|
1827
|
+
evaluated0.props = undefined;
|
|
1828
|
+
}
|
|
1829
|
+
if (evaluated0.dynamicItems) {
|
|
1830
|
+
evaluated0.items = undefined;
|
|
1831
|
+
}
|
|
1832
|
+
const _errs0 = errors;
|
|
1833
|
+
let valid0 = false;
|
|
1834
|
+
const _errs1 = errors;
|
|
1835
|
+
if (!(validate75(data, { instancePath, parentData, parentDataProperty, rootData, dynamicAnchors }))) {
|
|
1836
|
+
vErrors = vErrors === null ? validate75.errors : vErrors.concat(validate75.errors);
|
|
1837
|
+
errors = vErrors.length;
|
|
1838
|
+
}
|
|
1839
|
+
var _valid0 = _errs1 === errors;
|
|
1840
|
+
valid0 = valid0 || _valid0;
|
|
1841
|
+
const _errs2 = errors;
|
|
1842
|
+
if (!(validate77(data, { instancePath, parentData, parentDataProperty, rootData, dynamicAnchors }))) {
|
|
1843
|
+
vErrors = vErrors === null ? validate77.errors : vErrors.concat(validate77.errors);
|
|
1844
|
+
errors = vErrors.length;
|
|
1845
|
+
}
|
|
1846
|
+
var _valid0 = _errs2 === errors;
|
|
1847
|
+
valid0 = valid0 || _valid0;
|
|
1848
|
+
if (_valid0) {
|
|
1849
|
+
var items0 = true;
|
|
1850
|
+
}
|
|
1851
|
+
const _errs3 = errors;
|
|
1852
|
+
if (!(wrapper6.validate(data, { instancePath, parentData, parentDataProperty, rootData, dynamicAnchors }))) {
|
|
1853
|
+
vErrors = vErrors === null ? wrapper6.validate.errors : vErrors.concat(wrapper6.validate.errors);
|
|
1854
|
+
errors = vErrors.length;
|
|
1855
|
+
}
|
|
1856
|
+
else {
|
|
1857
|
+
var props0 = wrapper6.validate.evaluated.props;
|
|
1858
|
+
var items1 = wrapper6.validate.evaluated.items;
|
|
1859
|
+
}
|
|
1860
|
+
var _valid0 = _errs3 === errors;
|
|
1861
|
+
valid0 = valid0 || _valid0;
|
|
1862
|
+
if (_valid0) {
|
|
1863
|
+
if (items0 !== true && items1 !== undefined) {
|
|
1864
|
+
items0 = items1 === true ? true : items0 > items1 ? items0 : items1;
|
|
1865
|
+
}
|
|
1866
|
+
}
|
|
1867
|
+
if (!valid0) {
|
|
1868
|
+
const err0 = createError(instancePath, "#/anyOf", "anyOf", {}, 1);
|
|
1869
|
+
vErrors = pushError(vErrors, err0);
|
|
1870
|
+
errors++;
|
|
1871
|
+
}
|
|
1872
|
+
else {
|
|
1873
|
+
errors = _errs0;
|
|
1874
|
+
if (vErrors !== null) {
|
|
1875
|
+
if (_errs0) {
|
|
1876
|
+
vErrors.length = _errs0;
|
|
1877
|
+
}
|
|
1878
|
+
else {
|
|
1879
|
+
vErrors = null;
|
|
1880
|
+
}
|
|
1881
|
+
}
|
|
1882
|
+
}
|
|
1883
|
+
validate74.errors = vErrors;
|
|
1884
|
+
evaluated0.props = props0;
|
|
1885
|
+
evaluated0.items = items0;
|
|
1886
|
+
return errors === 0;
|
|
1887
|
+
}
|
|
1888
|
+
validate74.evaluated = { "dynamicProps": true, "dynamicItems": true };
|
|
1889
|
+
function validate73(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
|
|
1890
|
+
/*# sourceURL="https://schema.3sixty.global/json-ld/JsonLdJsonObject" */ ;
|
|
1891
|
+
let vErrors = null;
|
|
1892
|
+
let errors = 0;
|
|
1893
|
+
const evaluated0 = validate73.evaluated;
|
|
1894
|
+
if (evaluated0.dynamicProps) {
|
|
1895
|
+
evaluated0.props = undefined;
|
|
1896
|
+
}
|
|
1897
|
+
if (evaluated0.dynamicItems) {
|
|
1898
|
+
evaluated0.items = undefined;
|
|
1899
|
+
}
|
|
1900
|
+
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
1901
|
+
for (const key0 in data) {
|
|
1902
|
+
if (!(validate74(data[key0], { instancePath: instancePath + "/" + key0.replace(/~/g, "~0").replace(/\//g, "~1"), parentData: data, parentDataProperty: key0, rootData, dynamicAnchors }))) {
|
|
1903
|
+
vErrors = vErrors === null ? validate74.errors : vErrors.concat(validate74.errors);
|
|
1904
|
+
errors = vErrors.length;
|
|
1905
|
+
}
|
|
1906
|
+
}
|
|
1907
|
+
}
|
|
1908
|
+
else {
|
|
1909
|
+
const err0 = createError(instancePath, "#/type", "type", { type: "object" }, 9);
|
|
1910
|
+
vErrors = pushError(vErrors, err0);
|
|
1911
|
+
errors++;
|
|
1912
|
+
}
|
|
1913
|
+
validate73.errors = vErrors;
|
|
1914
|
+
return errors === 0;
|
|
1915
|
+
}
|
|
1916
|
+
validate73.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
|
|
1917
|
+
function validate54(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
|
|
1918
|
+
/*# sourceURL="https://schema.3sixty.global/json-ld/JsonLdObject" */ ;
|
|
1919
|
+
let vErrors = null;
|
|
1920
|
+
let errors = 0;
|
|
1921
|
+
const evaluated0 = validate54.evaluated;
|
|
1922
|
+
if (evaluated0.dynamicProps) {
|
|
1923
|
+
evaluated0.props = undefined;
|
|
1924
|
+
}
|
|
1925
|
+
if (evaluated0.dynamicItems) {
|
|
1926
|
+
evaluated0.items = undefined;
|
|
1927
|
+
}
|
|
1928
|
+
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
1929
|
+
if (data["@context"] !== undefined) {
|
|
1930
|
+
if (!(validate55(data["@context"], { instancePath: instancePath + "/@context", parentData: data, parentDataProperty: "@context", rootData, dynamicAnchors }))) {
|
|
1931
|
+
vErrors = vErrors === null ? validate55.errors : vErrors.concat(validate55.errors);
|
|
1932
|
+
errors = vErrors.length;
|
|
1933
|
+
}
|
|
1934
|
+
}
|
|
1935
|
+
if (data["@id"] !== undefined) {
|
|
1936
|
+
let data1 = data["@id"];
|
|
1937
|
+
const _errs3 = errors;
|
|
1938
|
+
let valid1 = false;
|
|
1939
|
+
const _errs4 = errors;
|
|
1940
|
+
if (typeof data1 !== "string") {
|
|
1941
|
+
const err0 = createError(instancePath + "/@id", "#/properties/%40id/anyOf/0/type", "type", { type: "string" }, 7);
|
|
1942
|
+
vErrors = pushError(vErrors, err0);
|
|
1943
|
+
errors++;
|
|
1944
|
+
}
|
|
1945
|
+
var _valid0 = _errs4 === errors;
|
|
1946
|
+
valid1 = valid1 || _valid0;
|
|
1947
|
+
const _errs6 = errors;
|
|
1948
|
+
if (Array.isArray(data1)) {
|
|
1949
|
+
const len0 = data1.length;
|
|
1950
|
+
for (let i0 = 0; i0 < len0; i0++) {
|
|
1951
|
+
if (typeof data1[i0] !== "string") {
|
|
1952
|
+
const err1 = createError(instancePath + "/@id/" + i0, "#/properties/%40id/anyOf/1/items/type", "type", { type: "string" }, 7);
|
|
1953
|
+
vErrors = pushError(vErrors, err1);
|
|
1954
|
+
errors++;
|
|
1955
|
+
}
|
|
1956
|
+
}
|
|
1957
|
+
}
|
|
1958
|
+
else {
|
|
1959
|
+
const err2 = createError(instancePath + "/@id", "#/properties/%40id/anyOf/1/type", "type", { type: "array" }, 4);
|
|
1960
|
+
vErrors = pushError(vErrors, err2);
|
|
1961
|
+
errors++;
|
|
1962
|
+
}
|
|
1963
|
+
var _valid0 = _errs6 === errors;
|
|
1964
|
+
valid1 = valid1 || _valid0;
|
|
1965
|
+
if (!valid1) {
|
|
1966
|
+
const err3 = createError(instancePath + "/@id", "#/properties/%40id/anyOf", "anyOf", {}, 1);
|
|
1967
|
+
vErrors = pushError(vErrors, err3);
|
|
1968
|
+
errors++;
|
|
1969
|
+
}
|
|
1970
|
+
else {
|
|
1971
|
+
errors = _errs3;
|
|
1972
|
+
if (vErrors !== null) {
|
|
1973
|
+
if (_errs3) {
|
|
1974
|
+
vErrors.length = _errs3;
|
|
1975
|
+
}
|
|
1976
|
+
else {
|
|
1977
|
+
vErrors = null;
|
|
1978
|
+
}
|
|
1979
|
+
}
|
|
1980
|
+
}
|
|
1981
|
+
}
|
|
1982
|
+
if (data["@included"] !== undefined) {
|
|
1983
|
+
if (!(validate71(data["@included"], { instancePath: instancePath + "/@included", parentData: data, parentDataProperty: "@included", rootData, dynamicAnchors }))) {
|
|
1984
|
+
vErrors = vErrors === null ? validate71.errors : vErrors.concat(validate71.errors);
|
|
1985
|
+
errors = vErrors.length;
|
|
1986
|
+
}
|
|
1987
|
+
}
|
|
1988
|
+
if (data["@graph"] !== undefined) {
|
|
1989
|
+
let data4 = data["@graph"];
|
|
1990
|
+
const _errs12 = errors;
|
|
1991
|
+
let valid4 = false;
|
|
1992
|
+
const _errs13 = errors;
|
|
1993
|
+
if (!(wrapper1.validate(data4, { instancePath: instancePath + "/@graph", parentData: data, parentDataProperty: "@graph", rootData, dynamicAnchors }))) {
|
|
1994
|
+
vErrors = vErrors === null ? wrapper1.validate.errors : vErrors.concat(wrapper1.validate.errors);
|
|
1995
|
+
errors = vErrors.length;
|
|
1996
|
+
}
|
|
1997
|
+
else {
|
|
1998
|
+
var items3 = wrapper1.validate.evaluated.items;
|
|
1999
|
+
}
|
|
2000
|
+
var _valid1 = _errs13 === errors;
|
|
2001
|
+
valid4 = valid4 || _valid1;
|
|
2002
|
+
const _errs14 = errors;
|
|
2003
|
+
if (Array.isArray(data4)) {
|
|
2004
|
+
const len1 = data4.length;
|
|
2005
|
+
for (let i1 = 0; i1 < len1; i1++) {
|
|
2006
|
+
if (!(wrapper1.validate(data4[i1], { instancePath: instancePath + "/@graph/" + i1, parentData: data4, parentDataProperty: i1, rootData, dynamicAnchors }))) {
|
|
2007
|
+
vErrors = vErrors === null ? wrapper1.validate.errors : vErrors.concat(wrapper1.validate.errors);
|
|
2008
|
+
errors = vErrors.length;
|
|
2009
|
+
}
|
|
2010
|
+
}
|
|
2011
|
+
}
|
|
2012
|
+
else {
|
|
2013
|
+
const err4 = createError(instancePath + "/@graph", "#/properties/%40graph/anyOf/1/type", "type", { type: "array" }, 4);
|
|
2014
|
+
vErrors = pushError(vErrors, err4);
|
|
2015
|
+
errors++;
|
|
2016
|
+
}
|
|
2017
|
+
var _valid1 = _errs14 === errors;
|
|
2018
|
+
valid4 = valid4 || _valid1;
|
|
2019
|
+
if (_valid1) {
|
|
2020
|
+
if (items3 !== true) {
|
|
2021
|
+
items3 = true;
|
|
2022
|
+
}
|
|
2023
|
+
}
|
|
2024
|
+
if (!valid4) {
|
|
2025
|
+
const err5 = createError(instancePath + "/@graph", "#/properties/%40graph/anyOf", "anyOf", {}, 1);
|
|
2026
|
+
vErrors = pushError(vErrors, err5);
|
|
2027
|
+
errors++;
|
|
2028
|
+
}
|
|
2029
|
+
else {
|
|
2030
|
+
errors = _errs12;
|
|
2031
|
+
if (vErrors !== null) {
|
|
2032
|
+
if (_errs12) {
|
|
2033
|
+
vErrors.length = _errs12;
|
|
2034
|
+
}
|
|
2035
|
+
else {
|
|
2036
|
+
vErrors = null;
|
|
2037
|
+
}
|
|
2038
|
+
}
|
|
2039
|
+
}
|
|
2040
|
+
}
|
|
2041
|
+
if (data["@nest"] !== undefined) {
|
|
2042
|
+
let data6 = data["@nest"];
|
|
2043
|
+
const _errs18 = errors;
|
|
2044
|
+
let valid7 = false;
|
|
2045
|
+
const _errs19 = errors;
|
|
2046
|
+
if (!(validate73(data6, { instancePath: instancePath + "/@nest", parentData: data, parentDataProperty: "@nest", rootData, dynamicAnchors }))) {
|
|
2047
|
+
vErrors = vErrors === null ? validate73.errors : vErrors.concat(validate73.errors);
|
|
2048
|
+
errors = vErrors.length;
|
|
2049
|
+
}
|
|
2050
|
+
var _valid2 = _errs19 === errors;
|
|
2051
|
+
valid7 = valid7 || _valid2;
|
|
2052
|
+
const _errs20 = errors;
|
|
2053
|
+
if (Array.isArray(data6)) {
|
|
2054
|
+
const len2 = data6.length;
|
|
2055
|
+
for (let i2 = 0; i2 < len2; i2++) {
|
|
2056
|
+
if (!(validate73(data6[i2], { instancePath: instancePath + "/@nest/" + i2, parentData: data6, parentDataProperty: i2, rootData, dynamicAnchors }))) {
|
|
2057
|
+
vErrors = vErrors === null ? validate73.errors : vErrors.concat(validate73.errors);
|
|
2058
|
+
errors = vErrors.length;
|
|
2059
|
+
}
|
|
2060
|
+
}
|
|
2061
|
+
}
|
|
2062
|
+
else {
|
|
2063
|
+
const err6 = createError(instancePath + "/@nest", "#/properties/%40nest/anyOf/1/type", "type", { type: "array" }, 4);
|
|
2064
|
+
vErrors = pushError(vErrors, err6);
|
|
2065
|
+
errors++;
|
|
2066
|
+
}
|
|
2067
|
+
var _valid2 = _errs20 === errors;
|
|
2068
|
+
valid7 = valid7 || _valid2;
|
|
2069
|
+
if (!valid7) {
|
|
2070
|
+
const err7 = createError(instancePath + "/@nest", "#/properties/%40nest/anyOf", "anyOf", {}, 1);
|
|
2071
|
+
vErrors = pushError(vErrors, err7);
|
|
2072
|
+
errors++;
|
|
2073
|
+
}
|
|
2074
|
+
else {
|
|
2075
|
+
errors = _errs18;
|
|
2076
|
+
if (vErrors !== null) {
|
|
2077
|
+
if (_errs18) {
|
|
2078
|
+
vErrors.length = _errs18;
|
|
2079
|
+
}
|
|
2080
|
+
else {
|
|
2081
|
+
vErrors = null;
|
|
2082
|
+
}
|
|
2083
|
+
}
|
|
2084
|
+
}
|
|
2085
|
+
}
|
|
2086
|
+
if (data["@type"] !== undefined) {
|
|
2087
|
+
let data8 = data["@type"];
|
|
2088
|
+
const _errs24 = errors;
|
|
2089
|
+
let valid10 = false;
|
|
2090
|
+
const _errs25 = errors;
|
|
2091
|
+
if (typeof data8 !== "string") {
|
|
2092
|
+
const err8 = createError(instancePath + "/@type", "#/properties/%40type/anyOf/0/type", "type", { type: "string" }, 7);
|
|
2093
|
+
vErrors = pushError(vErrors, err8);
|
|
2094
|
+
errors++;
|
|
2095
|
+
}
|
|
2096
|
+
var _valid3 = _errs25 === errors;
|
|
2097
|
+
valid10 = valid10 || _valid3;
|
|
2098
|
+
const _errs27 = errors;
|
|
2099
|
+
if (Array.isArray(data8)) {
|
|
2100
|
+
const len3 = data8.length;
|
|
2101
|
+
for (let i3 = 0; i3 < len3; i3++) {
|
|
2102
|
+
if (typeof data8[i3] !== "string") {
|
|
2103
|
+
const err9 = createError(instancePath + "/@type/" + i3, "#/properties/%40type/anyOf/1/items/type", "type", { type: "string" }, 7);
|
|
2104
|
+
vErrors = pushError(vErrors, err9);
|
|
2105
|
+
errors++;
|
|
2106
|
+
}
|
|
2107
|
+
}
|
|
2108
|
+
}
|
|
2109
|
+
else {
|
|
2110
|
+
const err10 = createError(instancePath + "/@type", "#/properties/%40type/anyOf/1/type", "type", { type: "array" }, 4);
|
|
2111
|
+
vErrors = pushError(vErrors, err10);
|
|
2112
|
+
errors++;
|
|
2113
|
+
}
|
|
2114
|
+
var _valid3 = _errs27 === errors;
|
|
2115
|
+
valid10 = valid10 || _valid3;
|
|
2116
|
+
if (!valid10) {
|
|
2117
|
+
const err11 = createError(instancePath + "/@type", "#/properties/%40type/anyOf", "anyOf", {}, 1);
|
|
2118
|
+
vErrors = pushError(vErrors, err11);
|
|
2119
|
+
errors++;
|
|
2120
|
+
}
|
|
2121
|
+
else {
|
|
2122
|
+
errors = _errs24;
|
|
2123
|
+
if (vErrors !== null) {
|
|
2124
|
+
if (_errs24) {
|
|
2125
|
+
vErrors.length = _errs24;
|
|
2126
|
+
}
|
|
2127
|
+
else {
|
|
2128
|
+
vErrors = null;
|
|
2129
|
+
}
|
|
2130
|
+
}
|
|
2131
|
+
}
|
|
2132
|
+
}
|
|
2133
|
+
if (data["@reverse"] !== undefined) {
|
|
2134
|
+
let data10 = data["@reverse"];
|
|
2135
|
+
if (data10 && typeof data10 == "object" && !Array.isArray(data10)) {
|
|
2136
|
+
for (const key0 in data10) {
|
|
2137
|
+
if (typeof data10[key0] !== "string") {
|
|
2138
|
+
const err12 = createError(instancePath + "/@reverse/" + key0.replace(/~/g, "~0").replace(/\//g, "~1"), "#/properties/%40reverse/additionalProperties/type", "type", { type: "string" }, 7);
|
|
2139
|
+
vErrors = pushError(vErrors, err12);
|
|
2140
|
+
errors++;
|
|
2141
|
+
}
|
|
2142
|
+
}
|
|
2143
|
+
}
|
|
2144
|
+
else {
|
|
2145
|
+
const err13 = createError(instancePath + "/@reverse", "#/properties/%40reverse/type", "type", { type: "object" }, 9);
|
|
2146
|
+
vErrors = pushError(vErrors, err13);
|
|
2147
|
+
errors++;
|
|
2148
|
+
}
|
|
2149
|
+
}
|
|
2150
|
+
if (data["@index"] !== undefined) {
|
|
2151
|
+
if (typeof data["@index"] !== "string") {
|
|
2152
|
+
const err14 = createError(instancePath + "/@index", "#/properties/%40index/type", "type", { type: "string" }, 7);
|
|
2153
|
+
vErrors = pushError(vErrors, err14);
|
|
2154
|
+
errors++;
|
|
2155
|
+
}
|
|
2156
|
+
}
|
|
2157
|
+
}
|
|
2158
|
+
else {
|
|
2159
|
+
const err15 = createError(instancePath, "#/type", "type", { type: "object" }, 9);
|
|
2160
|
+
vErrors = pushError(vErrors, err15);
|
|
2161
|
+
errors++;
|
|
2162
|
+
}
|
|
2163
|
+
validate54.errors = vErrors;
|
|
2164
|
+
return errors === 0;
|
|
2165
|
+
}
|
|
2166
|
+
validate54.evaluated = { "props": { "@context": true, "@id": true, "@included": true, "@graph": true, "@nest": true, "@type": true, "@reverse": true, "@index": true }, "dynamicProps": false, "dynamicItems": false };
|
|
2167
|
+
function validate84(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
|
|
2168
|
+
/*# sourceURL="https://schema.3sixty.global/json-ld/JsonLdGraphObject" */ ;
|
|
2169
|
+
let vErrors = null;
|
|
2170
|
+
let errors = 0;
|
|
2171
|
+
const evaluated0 = validate84.evaluated;
|
|
2172
|
+
if (evaluated0.dynamicProps) {
|
|
2173
|
+
evaluated0.props = undefined;
|
|
2174
|
+
}
|
|
2175
|
+
if (evaluated0.dynamicItems) {
|
|
2176
|
+
evaluated0.items = undefined;
|
|
2177
|
+
}
|
|
2178
|
+
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
2179
|
+
if (data["@graph"] === undefined) {
|
|
2180
|
+
const err0 = createError(instancePath, "#/required", "required", { missingProperty: "@graph" }, "must have required property '" + "@graph" + "'");
|
|
2181
|
+
vErrors = pushError(vErrors, err0);
|
|
2182
|
+
errors++;
|
|
2183
|
+
}
|
|
2184
|
+
if (data["@graph"] !== undefined) {
|
|
2185
|
+
let data0 = data["@graph"];
|
|
2186
|
+
const _errs2 = errors;
|
|
2187
|
+
let valid1 = false;
|
|
2188
|
+
const _errs3 = errors;
|
|
2189
|
+
if (!(wrapper1.validate(data0, { instancePath: instancePath + "/@graph", parentData: data, parentDataProperty: "@graph", rootData, dynamicAnchors }))) {
|
|
2190
|
+
vErrors = vErrors === null ? wrapper1.validate.errors : vErrors.concat(wrapper1.validate.errors);
|
|
2191
|
+
errors = vErrors.length;
|
|
2192
|
+
}
|
|
2193
|
+
else {
|
|
2194
|
+
var items0 = wrapper1.validate.evaluated.items;
|
|
2195
|
+
}
|
|
2196
|
+
var _valid0 = _errs3 === errors;
|
|
2197
|
+
valid1 = valid1 || _valid0;
|
|
2198
|
+
const _errs4 = errors;
|
|
2199
|
+
if (Array.isArray(data0)) {
|
|
2200
|
+
const len0 = data0.length;
|
|
2201
|
+
for (let i0 = 0; i0 < len0; i0++) {
|
|
2202
|
+
if (!(wrapper1.validate(data0[i0], { instancePath: instancePath + "/@graph/" + i0, parentData: data0, parentDataProperty: i0, rootData, dynamicAnchors }))) {
|
|
2203
|
+
vErrors = vErrors === null ? wrapper1.validate.errors : vErrors.concat(wrapper1.validate.errors);
|
|
2204
|
+
errors = vErrors.length;
|
|
2205
|
+
}
|
|
2206
|
+
}
|
|
2207
|
+
}
|
|
2208
|
+
else {
|
|
2209
|
+
const err1 = createError(instancePath + "/@graph", "#/properties/%40graph/anyOf/1/type", "type", { type: "array" }, 4);
|
|
2210
|
+
vErrors = pushError(vErrors, err1);
|
|
2211
|
+
errors++;
|
|
2212
|
+
}
|
|
2213
|
+
var _valid0 = _errs4 === errors;
|
|
2214
|
+
valid1 = valid1 || _valid0;
|
|
2215
|
+
if (_valid0) {
|
|
2216
|
+
if (items0 !== true) {
|
|
2217
|
+
items0 = true;
|
|
2218
|
+
}
|
|
2219
|
+
}
|
|
2220
|
+
if (!valid1) {
|
|
2221
|
+
const err2 = createError(instancePath + "/@graph", "#/properties/%40graph/anyOf", "anyOf", {}, 1);
|
|
2222
|
+
vErrors = pushError(vErrors, err2);
|
|
2223
|
+
errors++;
|
|
2224
|
+
}
|
|
2225
|
+
else {
|
|
2226
|
+
errors = _errs2;
|
|
2227
|
+
if (vErrors !== null) {
|
|
2228
|
+
if (_errs2) {
|
|
2229
|
+
vErrors.length = _errs2;
|
|
2230
|
+
}
|
|
2231
|
+
else {
|
|
2232
|
+
vErrors = null;
|
|
2233
|
+
}
|
|
2234
|
+
}
|
|
2235
|
+
}
|
|
2236
|
+
}
|
|
2237
|
+
if (data["@index"] !== undefined) {
|
|
2238
|
+
if (typeof data["@index"] !== "string") {
|
|
2239
|
+
const err3 = createError(instancePath + "/@index", "#/properties/%40index/type", "type", { type: "string" }, 7);
|
|
2240
|
+
vErrors = pushError(vErrors, err3);
|
|
2241
|
+
errors++;
|
|
2242
|
+
}
|
|
2243
|
+
}
|
|
2244
|
+
if (data["@id"] !== undefined) {
|
|
2245
|
+
let data3 = data["@id"];
|
|
2246
|
+
const _errs10 = errors;
|
|
2247
|
+
let valid4 = false;
|
|
2248
|
+
const _errs11 = errors;
|
|
2249
|
+
if (typeof data3 !== "string") {
|
|
2250
|
+
const err4 = createError(instancePath + "/@id", "#/properties/%40id/anyOf/0/type", "type", { type: "string" }, 7);
|
|
2251
|
+
vErrors = pushError(vErrors, err4);
|
|
2252
|
+
errors++;
|
|
2253
|
+
}
|
|
2254
|
+
var _valid1 = _errs11 === errors;
|
|
2255
|
+
valid4 = valid4 || _valid1;
|
|
2256
|
+
const _errs13 = errors;
|
|
2257
|
+
if (Array.isArray(data3)) {
|
|
2258
|
+
const len1 = data3.length;
|
|
2259
|
+
for (let i1 = 0; i1 < len1; i1++) {
|
|
2260
|
+
if (typeof data3[i1] !== "string") {
|
|
2261
|
+
const err5 = createError(instancePath + "/@id/" + i1, "#/properties/%40id/anyOf/1/items/type", "type", { type: "string" }, 7);
|
|
2262
|
+
vErrors = pushError(vErrors, err5);
|
|
2263
|
+
errors++;
|
|
2264
|
+
}
|
|
2265
|
+
}
|
|
2266
|
+
}
|
|
2267
|
+
else {
|
|
2268
|
+
const err6 = createError(instancePath + "/@id", "#/properties/%40id/anyOf/1/type", "type", { type: "array" }, 4);
|
|
2269
|
+
vErrors = pushError(vErrors, err6);
|
|
2270
|
+
errors++;
|
|
2271
|
+
}
|
|
2272
|
+
var _valid1 = _errs13 === errors;
|
|
2273
|
+
valid4 = valid4 || _valid1;
|
|
2274
|
+
if (!valid4) {
|
|
2275
|
+
const err7 = createError(instancePath + "/@id", "#/properties/%40id/anyOf", "anyOf", {}, 1);
|
|
2276
|
+
vErrors = pushError(vErrors, err7);
|
|
2277
|
+
errors++;
|
|
2278
|
+
}
|
|
2279
|
+
else {
|
|
2280
|
+
errors = _errs10;
|
|
2281
|
+
if (vErrors !== null) {
|
|
2282
|
+
if (_errs10) {
|
|
2283
|
+
vErrors.length = _errs10;
|
|
2284
|
+
}
|
|
2285
|
+
else {
|
|
2286
|
+
vErrors = null;
|
|
2287
|
+
}
|
|
2288
|
+
}
|
|
2289
|
+
}
|
|
2290
|
+
}
|
|
2291
|
+
if (data["@context"] !== undefined) {
|
|
2292
|
+
if (!(validate55(data["@context"], { instancePath: instancePath + "/@context", parentData: data, parentDataProperty: "@context", rootData, dynamicAnchors }))) {
|
|
2293
|
+
vErrors = vErrors === null ? validate55.errors : vErrors.concat(validate55.errors);
|
|
2294
|
+
errors = vErrors.length;
|
|
2295
|
+
}
|
|
2296
|
+
}
|
|
2297
|
+
}
|
|
2298
|
+
else {
|
|
2299
|
+
const err8 = createError(instancePath, "#/type", "type", { type: "object" }, 9);
|
|
2300
|
+
vErrors = pushError(vErrors, err8);
|
|
2301
|
+
errors++;
|
|
2302
|
+
}
|
|
2303
|
+
validate84.errors = vErrors;
|
|
2304
|
+
return errors === 0;
|
|
2305
|
+
}
|
|
2306
|
+
validate84.evaluated = { "props": { "@graph": true, "@index": true, "@id": true, "@context": true }, "dynamicProps": false, "dynamicItems": false };
|
|
2307
|
+
function validate87(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
|
|
2308
|
+
/*# sourceURL="https://schema.3sixty.global/json-ld/JsonLdValueObject" */ ;
|
|
2309
|
+
let vErrors = null;
|
|
2310
|
+
let errors = 0;
|
|
2311
|
+
const evaluated0 = validate87.evaluated;
|
|
2312
|
+
if (evaluated0.dynamicProps) {
|
|
2313
|
+
evaluated0.props = undefined;
|
|
2314
|
+
}
|
|
2315
|
+
if (evaluated0.dynamicItems) {
|
|
2316
|
+
evaluated0.items = undefined;
|
|
2317
|
+
}
|
|
2318
|
+
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
2319
|
+
if (data["@index"] !== undefined) {
|
|
2320
|
+
if (typeof data["@index"] !== "string") {
|
|
2321
|
+
const err0 = createError(instancePath + "/@index", "#/allOf/0/properties/%40index/type", "type", { type: "string" }, 7);
|
|
2322
|
+
vErrors = pushError(vErrors, err0);
|
|
2323
|
+
errors++;
|
|
2324
|
+
}
|
|
2325
|
+
}
|
|
2326
|
+
if (data["@context"] !== undefined) {
|
|
2327
|
+
if (!(validate55(data["@context"], { instancePath: instancePath + "/@context", parentData: data, parentDataProperty: "@context", rootData, dynamicAnchors }))) {
|
|
2328
|
+
vErrors = vErrors === null ? validate55.errors : vErrors.concat(validate55.errors);
|
|
2329
|
+
errors = vErrors.length;
|
|
2330
|
+
}
|
|
2331
|
+
}
|
|
2332
|
+
}
|
|
2333
|
+
else {
|
|
2334
|
+
const err1 = createError(instancePath, "#/allOf/0/type", "type", { type: "object" }, 9);
|
|
2335
|
+
vErrors = pushError(vErrors, err1);
|
|
2336
|
+
errors++;
|
|
2337
|
+
}
|
|
2338
|
+
const _errs6 = errors;
|
|
2339
|
+
let valid2 = false;
|
|
2340
|
+
const _errs7 = errors;
|
|
2341
|
+
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
2342
|
+
if (data["@value"] === undefined) {
|
|
2343
|
+
const err2 = createError(instancePath, "#/allOf/1/anyOf/0/required", "required", { missingProperty: "@value" }, "must have required property '" + "@value" + "'");
|
|
2344
|
+
vErrors = pushError(vErrors, err2);
|
|
2345
|
+
errors++;
|
|
2346
|
+
}
|
|
2347
|
+
if (data["@value"] !== undefined) {
|
|
2348
|
+
let data2 = data["@value"];
|
|
2349
|
+
const _errs10 = errors;
|
|
2350
|
+
let valid4 = false;
|
|
2351
|
+
const _errs11 = errors;
|
|
2352
|
+
if (data2 !== null) {
|
|
2353
|
+
const err3 = createError(instancePath + "/@value", "#/allOf/1/anyOf/0/properties/%40value/anyOf/0/type", "type", { type: "null" }, 10);
|
|
2354
|
+
vErrors = pushError(vErrors, err3);
|
|
2355
|
+
errors++;
|
|
2356
|
+
}
|
|
2357
|
+
var _valid1 = _errs11 === errors;
|
|
2358
|
+
valid4 = valid4 || _valid1;
|
|
2359
|
+
const _errs13 = errors;
|
|
2360
|
+
if (typeof data2 !== "boolean") {
|
|
2361
|
+
const err4 = createError(instancePath + "/@value", "#/allOf/1/anyOf/0/properties/%40value/anyOf/1/type", "type", { type: "boolean" }, 8);
|
|
2362
|
+
vErrors = pushError(vErrors, err4);
|
|
2363
|
+
errors++;
|
|
2364
|
+
}
|
|
2365
|
+
var _valid1 = _errs13 === errors;
|
|
2366
|
+
valid4 = valid4 || _valid1;
|
|
2367
|
+
const _errs15 = errors;
|
|
2368
|
+
if (!((typeof data2 == "number") && (isFinite(data2)))) {
|
|
2369
|
+
const err5 = createError(instancePath + "/@value", "#/allOf/1/anyOf/0/properties/%40value/anyOf/2/type", "type", { type: "number" }, 11);
|
|
2370
|
+
vErrors = pushError(vErrors, err5);
|
|
2371
|
+
errors++;
|
|
2372
|
+
}
|
|
2373
|
+
var _valid1 = _errs15 === errors;
|
|
2374
|
+
valid4 = valid4 || _valid1;
|
|
2375
|
+
const _errs17 = errors;
|
|
2376
|
+
if (typeof data2 !== "string") {
|
|
2377
|
+
const err6 = createError(instancePath + "/@value", "#/allOf/1/anyOf/0/properties/%40value/anyOf/3/type", "type", { type: "string" }, 7);
|
|
2378
|
+
vErrors = pushError(vErrors, err6);
|
|
2379
|
+
errors++;
|
|
2380
|
+
}
|
|
2381
|
+
var _valid1 = _errs17 === errors;
|
|
2382
|
+
valid4 = valid4 || _valid1;
|
|
2383
|
+
if (!valid4) {
|
|
2384
|
+
const err7 = createError(instancePath + "/@value", "#/allOf/1/anyOf/0/properties/%40value/anyOf", "anyOf", {}, 1);
|
|
2385
|
+
vErrors = pushError(vErrors, err7);
|
|
2386
|
+
errors++;
|
|
2387
|
+
}
|
|
2388
|
+
else {
|
|
2389
|
+
errors = _errs10;
|
|
2390
|
+
if (vErrors !== null) {
|
|
2391
|
+
if (_errs10) {
|
|
2392
|
+
vErrors.length = _errs10;
|
|
2393
|
+
}
|
|
2394
|
+
else {
|
|
2395
|
+
vErrors = null;
|
|
2396
|
+
}
|
|
2397
|
+
}
|
|
2398
|
+
}
|
|
2399
|
+
}
|
|
2400
|
+
if (data["@language"] !== undefined) {
|
|
2401
|
+
if (typeof data["@language"] !== "string") {
|
|
2402
|
+
const err8 = createError(instancePath + "/@language", "#/allOf/1/anyOf/0/properties/%40language/type", "type", { type: "string" }, 7);
|
|
2403
|
+
vErrors = pushError(vErrors, err8);
|
|
2404
|
+
errors++;
|
|
2405
|
+
}
|
|
2406
|
+
}
|
|
2407
|
+
if (data["@direction"] !== undefined) {
|
|
2408
|
+
let data4 = data["@direction"];
|
|
2409
|
+
const _errs22 = errors;
|
|
2410
|
+
let valid5 = false;
|
|
2411
|
+
const _errs23 = errors;
|
|
2412
|
+
if ("ltr" !== data4) {
|
|
2413
|
+
const err9 = createError(instancePath + "/@direction", "#/allOf/1/anyOf/0/properties/%40direction/anyOf/0/const", "const", { allowedValue: "ltr" }, 0);
|
|
2414
|
+
vErrors = pushError(vErrors, err9);
|
|
2415
|
+
errors++;
|
|
2416
|
+
}
|
|
2417
|
+
var _valid2 = _errs23 === errors;
|
|
2418
|
+
valid5 = valid5 || _valid2;
|
|
2419
|
+
const _errs24 = errors;
|
|
2420
|
+
if ("rtl" !== data4) {
|
|
2421
|
+
const err10 = createError(instancePath + "/@direction", "#/allOf/1/anyOf/0/properties/%40direction/anyOf/1/const", "const", { allowedValue: "rtl" }, 0);
|
|
2422
|
+
vErrors = pushError(vErrors, err10);
|
|
2423
|
+
errors++;
|
|
2424
|
+
}
|
|
2425
|
+
var _valid2 = _errs24 === errors;
|
|
2426
|
+
valid5 = valid5 || _valid2;
|
|
2427
|
+
const _errs25 = errors;
|
|
2428
|
+
if (data4 !== null) {
|
|
2429
|
+
const err11 = createError(instancePath + "/@direction", "#/allOf/1/anyOf/0/properties/%40direction/anyOf/2/type", "type", { type: "null" }, 10);
|
|
2430
|
+
vErrors = pushError(vErrors, err11);
|
|
2431
|
+
errors++;
|
|
2432
|
+
}
|
|
2433
|
+
var _valid2 = _errs25 === errors;
|
|
2434
|
+
valid5 = valid5 || _valid2;
|
|
2435
|
+
if (!valid5) {
|
|
2436
|
+
const err12 = createError(instancePath + "/@direction", "#/allOf/1/anyOf/0/properties/%40direction/anyOf", "anyOf", {}, 1);
|
|
2437
|
+
vErrors = pushError(vErrors, err12);
|
|
2438
|
+
errors++;
|
|
2439
|
+
}
|
|
2440
|
+
else {
|
|
2441
|
+
errors = _errs22;
|
|
2442
|
+
if (vErrors !== null) {
|
|
2443
|
+
if (_errs22) {
|
|
2444
|
+
vErrors.length = _errs22;
|
|
2445
|
+
}
|
|
2446
|
+
else {
|
|
2447
|
+
vErrors = null;
|
|
2448
|
+
}
|
|
2449
|
+
}
|
|
2450
|
+
}
|
|
2451
|
+
}
|
|
2452
|
+
}
|
|
2453
|
+
else {
|
|
2454
|
+
const err13 = createError(instancePath, "#/allOf/1/anyOf/0/type", "type", { type: "object" }, 9);
|
|
2455
|
+
vErrors = pushError(vErrors, err13);
|
|
2456
|
+
errors++;
|
|
2457
|
+
}
|
|
2458
|
+
var _valid0 = _errs7 === errors;
|
|
2459
|
+
valid2 = valid2 || _valid0;
|
|
2460
|
+
if (_valid0) {
|
|
2461
|
+
var props1 = {};
|
|
2462
|
+
props1["@value"] = true;
|
|
2463
|
+
props1["@language"] = true;
|
|
2464
|
+
props1["@direction"] = true;
|
|
2465
|
+
}
|
|
2466
|
+
const _errs27 = errors;
|
|
2467
|
+
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
2468
|
+
if (data["@value"] === undefined) {
|
|
2469
|
+
const err14 = createError(instancePath, "#/allOf/1/anyOf/1/required", "required", { missingProperty: "@value" }, "must have required property '" + "@value" + "'");
|
|
2470
|
+
vErrors = pushError(vErrors, err14);
|
|
2471
|
+
errors++;
|
|
2472
|
+
}
|
|
2473
|
+
if (data["@type"] === undefined) {
|
|
2474
|
+
const err15 = createError(instancePath, "#/allOf/1/anyOf/1/required", "required", { missingProperty: "@type" }, "must have required property '" + "@type" + "'");
|
|
2475
|
+
vErrors = pushError(vErrors, err15);
|
|
2476
|
+
errors++;
|
|
2477
|
+
}
|
|
2478
|
+
if (data["@value"] !== undefined) {
|
|
2479
|
+
let data5 = data["@value"];
|
|
2480
|
+
const _errs30 = errors;
|
|
2481
|
+
let valid7 = false;
|
|
2482
|
+
const _errs31 = errors;
|
|
2483
|
+
if (data5 !== null) {
|
|
2484
|
+
const err16 = createError(instancePath + "/@value", "#/allOf/1/anyOf/1/properties/%40value/anyOf/0/type", "type", { type: "null" }, 10);
|
|
2485
|
+
vErrors = pushError(vErrors, err16);
|
|
2486
|
+
errors++;
|
|
2487
|
+
}
|
|
2488
|
+
var _valid3 = _errs31 === errors;
|
|
2489
|
+
valid7 = valid7 || _valid3;
|
|
2490
|
+
const _errs33 = errors;
|
|
2491
|
+
if (typeof data5 !== "boolean") {
|
|
2492
|
+
const err17 = createError(instancePath + "/@value", "#/allOf/1/anyOf/1/properties/%40value/anyOf/1/type", "type", { type: "boolean" }, 8);
|
|
2493
|
+
vErrors = pushError(vErrors, err17);
|
|
2494
|
+
errors++;
|
|
2495
|
+
}
|
|
2496
|
+
var _valid3 = _errs33 === errors;
|
|
2497
|
+
valid7 = valid7 || _valid3;
|
|
2498
|
+
const _errs35 = errors;
|
|
2499
|
+
if (!((typeof data5 == "number") && (isFinite(data5)))) {
|
|
2500
|
+
const err18 = createError(instancePath + "/@value", "#/allOf/1/anyOf/1/properties/%40value/anyOf/2/type", "type", { type: "number" }, 11);
|
|
2501
|
+
vErrors = pushError(vErrors, err18);
|
|
2502
|
+
errors++;
|
|
2503
|
+
}
|
|
2504
|
+
var _valid3 = _errs35 === errors;
|
|
2505
|
+
valid7 = valid7 || _valid3;
|
|
2506
|
+
const _errs37 = errors;
|
|
2507
|
+
if (typeof data5 !== "string") {
|
|
2508
|
+
const err19 = createError(instancePath + "/@value", "#/allOf/1/anyOf/1/properties/%40value/anyOf/3/type", "type", { type: "string" }, 7);
|
|
2509
|
+
vErrors = pushError(vErrors, err19);
|
|
2510
|
+
errors++;
|
|
2511
|
+
}
|
|
2512
|
+
var _valid3 = _errs37 === errors;
|
|
2513
|
+
valid7 = valid7 || _valid3;
|
|
2514
|
+
if (!valid7) {
|
|
2515
|
+
const err20 = createError(instancePath + "/@value", "#/allOf/1/anyOf/1/properties/%40value/anyOf", "anyOf", {}, 1);
|
|
2516
|
+
vErrors = pushError(vErrors, err20);
|
|
2517
|
+
errors++;
|
|
2518
|
+
}
|
|
2519
|
+
else {
|
|
2520
|
+
errors = _errs30;
|
|
2521
|
+
if (vErrors !== null) {
|
|
2522
|
+
if (_errs30) {
|
|
2523
|
+
vErrors.length = _errs30;
|
|
2524
|
+
}
|
|
2525
|
+
else {
|
|
2526
|
+
vErrors = null;
|
|
2527
|
+
}
|
|
2528
|
+
}
|
|
2529
|
+
}
|
|
2530
|
+
}
|
|
2531
|
+
if (data["@type"] !== undefined) {
|
|
2532
|
+
if (typeof data["@type"] !== "string") {
|
|
2533
|
+
const err21 = createError(instancePath + "/@type", "#/allOf/1/anyOf/1/properties/%40type/type", "type", { type: "string" }, 7);
|
|
2534
|
+
vErrors = pushError(vErrors, err21);
|
|
2535
|
+
errors++;
|
|
2536
|
+
}
|
|
2537
|
+
}
|
|
2538
|
+
}
|
|
2539
|
+
else {
|
|
2540
|
+
const err22 = createError(instancePath, "#/allOf/1/anyOf/1/type", "type", { type: "object" }, 9);
|
|
2541
|
+
vErrors = pushError(vErrors, err22);
|
|
2542
|
+
errors++;
|
|
2543
|
+
}
|
|
2544
|
+
var _valid0 = _errs27 === errors;
|
|
2545
|
+
valid2 = valid2 || _valid0;
|
|
2546
|
+
if (_valid0) {
|
|
2547
|
+
if (props1 !== true) {
|
|
2548
|
+
props1 = props1 || {};
|
|
2549
|
+
props1["@value"] = true;
|
|
2550
|
+
props1["@type"] = true;
|
|
2551
|
+
}
|
|
2552
|
+
}
|
|
2553
|
+
const _errs41 = errors;
|
|
2554
|
+
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
2555
|
+
if (data["@value"] === undefined) {
|
|
2556
|
+
const err23 = createError(instancePath, "#/allOf/1/anyOf/2/required", "required", { missingProperty: "@value" }, "must have required property '" + "@value" + "'");
|
|
2557
|
+
vErrors = pushError(vErrors, err23);
|
|
2558
|
+
errors++;
|
|
2559
|
+
}
|
|
2560
|
+
if (data["@type"] === undefined) {
|
|
2561
|
+
const err24 = createError(instancePath, "#/allOf/1/anyOf/2/required", "required", { missingProperty: "@type" }, "must have required property '" + "@type" + "'");
|
|
2562
|
+
vErrors = pushError(vErrors, err24);
|
|
2563
|
+
errors++;
|
|
2564
|
+
}
|
|
2565
|
+
if (data["@value"] !== undefined) {
|
|
2566
|
+
let data7 = data["@value"];
|
|
2567
|
+
const _errs44 = errors;
|
|
2568
|
+
let valid9 = false;
|
|
2569
|
+
const _errs45 = errors;
|
|
2570
|
+
if (data7 !== null) {
|
|
2571
|
+
const err25 = createError(instancePath + "/@value", "#/allOf/1/anyOf/2/properties/%40value/anyOf/0/type", "type", { type: "null" }, 10);
|
|
2572
|
+
vErrors = pushError(vErrors, err25);
|
|
2573
|
+
errors++;
|
|
2574
|
+
}
|
|
2575
|
+
var _valid4 = _errs45 === errors;
|
|
2576
|
+
valid9 = valid9 || _valid4;
|
|
2577
|
+
const _errs47 = errors;
|
|
2578
|
+
if (typeof data7 !== "boolean") {
|
|
2579
|
+
const err26 = createError(instancePath + "/@value", "#/allOf/1/anyOf/2/properties/%40value/anyOf/1/type", "type", { type: "boolean" }, 8);
|
|
2580
|
+
vErrors = pushError(vErrors, err26);
|
|
2581
|
+
errors++;
|
|
2582
|
+
}
|
|
2583
|
+
var _valid4 = _errs47 === errors;
|
|
2584
|
+
valid9 = valid9 || _valid4;
|
|
2585
|
+
const _errs49 = errors;
|
|
2586
|
+
if (!((typeof data7 == "number") && (isFinite(data7)))) {
|
|
2587
|
+
const err27 = createError(instancePath + "/@value", "#/allOf/1/anyOf/2/properties/%40value/anyOf/2/type", "type", { type: "number" }, 11);
|
|
2588
|
+
vErrors = pushError(vErrors, err27);
|
|
2589
|
+
errors++;
|
|
2590
|
+
}
|
|
2591
|
+
var _valid4 = _errs49 === errors;
|
|
2592
|
+
valid9 = valid9 || _valid4;
|
|
2593
|
+
const _errs51 = errors;
|
|
2594
|
+
if (typeof data7 !== "string") {
|
|
2595
|
+
const err28 = createError(instancePath + "/@value", "#/allOf/1/anyOf/2/properties/%40value/anyOf/3/type", "type", { type: "string" }, 7);
|
|
2596
|
+
vErrors = pushError(vErrors, err28);
|
|
2597
|
+
errors++;
|
|
2598
|
+
}
|
|
2599
|
+
var _valid4 = _errs51 === errors;
|
|
2600
|
+
valid9 = valid9 || _valid4;
|
|
2601
|
+
const _errs53 = errors;
|
|
2602
|
+
if (!(validate73(data7, { instancePath: instancePath + "/@value", parentData: data, parentDataProperty: "@value", rootData, dynamicAnchors }))) {
|
|
2603
|
+
vErrors = vErrors === null ? validate73.errors : vErrors.concat(validate73.errors);
|
|
2604
|
+
errors = vErrors.length;
|
|
2605
|
+
}
|
|
2606
|
+
var _valid4 = _errs53 === errors;
|
|
2607
|
+
valid9 = valid9 || _valid4;
|
|
2608
|
+
const _errs54 = errors;
|
|
2609
|
+
if (!(validate77(data7, { instancePath: instancePath + "/@value", parentData: data, parentDataProperty: "@value", rootData, dynamicAnchors }))) {
|
|
2610
|
+
vErrors = vErrors === null ? validate77.errors : vErrors.concat(validate77.errors);
|
|
2611
|
+
errors = vErrors.length;
|
|
2612
|
+
}
|
|
2613
|
+
var _valid4 = _errs54 === errors;
|
|
2614
|
+
valid9 = valid9 || _valid4;
|
|
2615
|
+
if (!valid9) {
|
|
2616
|
+
const err29 = createError(instancePath + "/@value", "#/allOf/1/anyOf/2/properties/%40value/anyOf", "anyOf", {}, 1);
|
|
2617
|
+
vErrors = pushError(vErrors, err29);
|
|
2618
|
+
errors++;
|
|
2619
|
+
}
|
|
2620
|
+
else {
|
|
2621
|
+
errors = _errs44;
|
|
2622
|
+
if (vErrors !== null) {
|
|
2623
|
+
if (_errs44) {
|
|
2624
|
+
vErrors.length = _errs44;
|
|
2625
|
+
}
|
|
2626
|
+
else {
|
|
2627
|
+
vErrors = null;
|
|
2628
|
+
}
|
|
2629
|
+
}
|
|
2630
|
+
}
|
|
2631
|
+
}
|
|
2632
|
+
if (data["@type"] !== undefined) {
|
|
2633
|
+
if ("@json" !== data["@type"]) {
|
|
2634
|
+
const err30 = createError(instancePath + "/@type", "#/allOf/1/anyOf/2/properties/%40type/const", "const", { allowedValue: "@json" }, 0);
|
|
2635
|
+
vErrors = pushError(vErrors, err30);
|
|
2636
|
+
errors++;
|
|
2637
|
+
}
|
|
2638
|
+
}
|
|
2639
|
+
}
|
|
2640
|
+
else {
|
|
2641
|
+
const err31 = createError(instancePath, "#/allOf/1/anyOf/2/type", "type", { type: "object" }, 9);
|
|
2642
|
+
vErrors = pushError(vErrors, err31);
|
|
2643
|
+
errors++;
|
|
2644
|
+
}
|
|
2645
|
+
var _valid0 = _errs41 === errors;
|
|
2646
|
+
valid2 = valid2 || _valid0;
|
|
2647
|
+
if (_valid0) {
|
|
2648
|
+
if (props1 !== true) {
|
|
2649
|
+
props1 = props1 || {};
|
|
2650
|
+
props1["@value"] = true;
|
|
2651
|
+
props1["@type"] = true;
|
|
2652
|
+
}
|
|
2653
|
+
}
|
|
2654
|
+
if (!valid2) {
|
|
2655
|
+
const err32 = createError(instancePath, "#/allOf/1/anyOf", "anyOf", {}, 1);
|
|
2656
|
+
vErrors = pushError(vErrors, err32);
|
|
2657
|
+
errors++;
|
|
2658
|
+
}
|
|
2659
|
+
else {
|
|
2660
|
+
errors = _errs6;
|
|
2661
|
+
if (vErrors !== null) {
|
|
2662
|
+
if (_errs6) {
|
|
2663
|
+
vErrors.length = _errs6;
|
|
2664
|
+
}
|
|
2665
|
+
else {
|
|
2666
|
+
vErrors = null;
|
|
2667
|
+
}
|
|
2668
|
+
}
|
|
2669
|
+
}
|
|
2670
|
+
if (props1 !== true) {
|
|
2671
|
+
props1 = props1 || {};
|
|
2672
|
+
props1["@index"] = true;
|
|
2673
|
+
props1["@context"] = true;
|
|
2674
|
+
}
|
|
2675
|
+
validate87.errors = vErrors;
|
|
2676
|
+
evaluated0.props = props1;
|
|
2677
|
+
return errors === 0;
|
|
2678
|
+
}
|
|
2679
|
+
validate87.evaluated = { "dynamicProps": true, "dynamicItems": false };
|
|
2680
|
+
function validate93(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
|
|
2681
|
+
/*# sourceURL="https://schema.3sixty.global/json-ld/JsonLdListOrSetItem" */ ;
|
|
2682
|
+
let vErrors = null;
|
|
2683
|
+
let errors = 0;
|
|
2684
|
+
const evaluated0 = validate93.evaluated;
|
|
2685
|
+
if (evaluated0.dynamicProps) {
|
|
2686
|
+
evaluated0.props = undefined;
|
|
2687
|
+
}
|
|
2688
|
+
if (evaluated0.dynamicItems) {
|
|
2689
|
+
evaluated0.items = undefined;
|
|
2690
|
+
}
|
|
2691
|
+
const _errs0 = errors;
|
|
2692
|
+
let valid0 = false;
|
|
2693
|
+
const _errs1 = errors;
|
|
2694
|
+
if (data !== null) {
|
|
2695
|
+
const err0 = createError(instancePath, "#/anyOf/0/type", "type", { type: "null" }, 10);
|
|
2696
|
+
vErrors = pushError(vErrors, err0);
|
|
2697
|
+
errors++;
|
|
2698
|
+
}
|
|
2699
|
+
var _valid0 = _errs1 === errors;
|
|
2700
|
+
valid0 = valid0 || _valid0;
|
|
2701
|
+
const _errs3 = errors;
|
|
2702
|
+
if (typeof data !== "boolean") {
|
|
2703
|
+
const err1 = createError(instancePath, "#/anyOf/1/type", "type", { type: "boolean" }, 8);
|
|
2704
|
+
vErrors = pushError(vErrors, err1);
|
|
2705
|
+
errors++;
|
|
2706
|
+
}
|
|
2707
|
+
var _valid0 = _errs3 === errors;
|
|
2708
|
+
valid0 = valid0 || _valid0;
|
|
2709
|
+
const _errs5 = errors;
|
|
2710
|
+
if (!((typeof data == "number") && (isFinite(data)))) {
|
|
2711
|
+
const err2 = createError(instancePath, "#/anyOf/2/type", "type", { type: "number" }, 11);
|
|
2712
|
+
vErrors = pushError(vErrors, err2);
|
|
2713
|
+
errors++;
|
|
2714
|
+
}
|
|
2715
|
+
var _valid0 = _errs5 === errors;
|
|
2716
|
+
valid0 = valid0 || _valid0;
|
|
2717
|
+
const _errs7 = errors;
|
|
2718
|
+
if (typeof data !== "string") {
|
|
2719
|
+
const err3 = createError(instancePath, "#/anyOf/3/type", "type", { type: "string" }, 7);
|
|
2720
|
+
vErrors = pushError(vErrors, err3);
|
|
2721
|
+
errors++;
|
|
2722
|
+
}
|
|
2723
|
+
var _valid0 = _errs7 === errors;
|
|
2724
|
+
valid0 = valid0 || _valid0;
|
|
2725
|
+
const _errs9 = errors;
|
|
2726
|
+
if (!(wrapper1.validate(data, { instancePath, parentData, parentDataProperty, rootData, dynamicAnchors }))) {
|
|
2727
|
+
vErrors = vErrors === null ? wrapper1.validate.errors : vErrors.concat(wrapper1.validate.errors);
|
|
2728
|
+
errors = vErrors.length;
|
|
2729
|
+
}
|
|
2730
|
+
else {
|
|
2731
|
+
var props0 = wrapper1.validate.evaluated.props;
|
|
2732
|
+
var items0 = wrapper1.validate.evaluated.items;
|
|
2733
|
+
}
|
|
2734
|
+
var _valid0 = _errs9 === errors;
|
|
2735
|
+
valid0 = valid0 || _valid0;
|
|
2736
|
+
const _errs10 = errors;
|
|
2737
|
+
if (!(validate87(data, { instancePath, parentData, parentDataProperty, rootData, dynamicAnchors }))) {
|
|
2738
|
+
vErrors = vErrors === null ? validate87.errors : vErrors.concat(validate87.errors);
|
|
2739
|
+
errors = vErrors.length;
|
|
2740
|
+
}
|
|
2741
|
+
else {
|
|
2742
|
+
var props1 = validate87.evaluated.props;
|
|
2743
|
+
}
|
|
2744
|
+
var _valid0 = _errs10 === errors;
|
|
2745
|
+
valid0 = valid0 || _valid0;
|
|
2746
|
+
if (_valid0) {
|
|
2747
|
+
if (props0 !== true && props1 !== undefined) {
|
|
2748
|
+
if (props1 === true) {
|
|
2749
|
+
props0 = true;
|
|
2750
|
+
}
|
|
2751
|
+
else {
|
|
2752
|
+
props0 = props0 || {};
|
|
2753
|
+
Object.assign(props0, props1);
|
|
2754
|
+
}
|
|
2755
|
+
}
|
|
2756
|
+
}
|
|
2757
|
+
if (!valid0) {
|
|
2758
|
+
const err4 = createError(instancePath, "#/anyOf", "anyOf", {}, 1);
|
|
2759
|
+
vErrors = pushError(vErrors, err4);
|
|
2760
|
+
errors++;
|
|
2761
|
+
}
|
|
2762
|
+
else {
|
|
2763
|
+
errors = _errs0;
|
|
2764
|
+
if (vErrors !== null) {
|
|
2765
|
+
if (_errs0) {
|
|
2766
|
+
vErrors.length = _errs0;
|
|
2767
|
+
}
|
|
2768
|
+
else {
|
|
2769
|
+
vErrors = null;
|
|
2770
|
+
}
|
|
2771
|
+
}
|
|
2772
|
+
}
|
|
2773
|
+
validate93.errors = vErrors;
|
|
2774
|
+
evaluated0.props = props0;
|
|
2775
|
+
evaluated0.items = items0;
|
|
2776
|
+
return errors === 0;
|
|
2777
|
+
}
|
|
2778
|
+
validate93.evaluated = { "dynamicProps": true, "dynamicItems": true };
|
|
2779
|
+
function validate92(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
|
|
2780
|
+
/*# sourceURL="https://schema.3sixty.global/json-ld/JsonLdListObject" */ ;
|
|
2781
|
+
let vErrors = null;
|
|
2782
|
+
let errors = 0;
|
|
2783
|
+
const evaluated0 = validate92.evaluated;
|
|
2784
|
+
if (evaluated0.dynamicProps) {
|
|
2785
|
+
evaluated0.props = undefined;
|
|
2786
|
+
}
|
|
2787
|
+
if (evaluated0.dynamicItems) {
|
|
2788
|
+
evaluated0.items = undefined;
|
|
2789
|
+
}
|
|
2790
|
+
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
2791
|
+
if (data["@list"] === undefined) {
|
|
2792
|
+
const err0 = createError(instancePath, "#/required", "required", { missingProperty: "@list" }, "must have required property '" + "@list" + "'");
|
|
2793
|
+
vErrors = pushError(vErrors, err0);
|
|
2794
|
+
errors++;
|
|
2795
|
+
}
|
|
2796
|
+
if (data["@list"] !== undefined) {
|
|
2797
|
+
let data0 = data["@list"];
|
|
2798
|
+
const _errs2 = errors;
|
|
2799
|
+
let valid1 = false;
|
|
2800
|
+
const _errs3 = errors;
|
|
2801
|
+
if (!(validate93(data0, { instancePath: instancePath + "/@list", parentData: data, parentDataProperty: "@list", rootData, dynamicAnchors }))) {
|
|
2802
|
+
vErrors = vErrors === null ? validate93.errors : vErrors.concat(validate93.errors);
|
|
2803
|
+
errors = vErrors.length;
|
|
2804
|
+
}
|
|
2805
|
+
else {
|
|
2806
|
+
var items0 = validate93.evaluated.items;
|
|
2807
|
+
}
|
|
2808
|
+
var _valid0 = _errs3 === errors;
|
|
2809
|
+
valid1 = valid1 || _valid0;
|
|
2810
|
+
const _errs4 = errors;
|
|
2811
|
+
if (Array.isArray(data0)) {
|
|
2812
|
+
const len0 = data0.length;
|
|
2813
|
+
for (let i0 = 0; i0 < len0; i0++) {
|
|
2814
|
+
if (!(validate93(data0[i0], { instancePath: instancePath + "/@list/" + i0, parentData: data0, parentDataProperty: i0, rootData, dynamicAnchors }))) {
|
|
2815
|
+
vErrors = vErrors === null ? validate93.errors : vErrors.concat(validate93.errors);
|
|
2816
|
+
errors = vErrors.length;
|
|
2817
|
+
}
|
|
2818
|
+
}
|
|
2819
|
+
}
|
|
2820
|
+
else {
|
|
2821
|
+
const err1 = createError(instancePath + "/@list", "#/properties/%40list/anyOf/1/type", "type", { type: "array" }, 4);
|
|
2822
|
+
vErrors = pushError(vErrors, err1);
|
|
2823
|
+
errors++;
|
|
2824
|
+
}
|
|
2825
|
+
var _valid0 = _errs4 === errors;
|
|
2826
|
+
valid1 = valid1 || _valid0;
|
|
2827
|
+
if (_valid0) {
|
|
2828
|
+
if (items0 !== true) {
|
|
2829
|
+
items0 = true;
|
|
2830
|
+
}
|
|
2831
|
+
}
|
|
2832
|
+
if (!valid1) {
|
|
2833
|
+
const err2 = createError(instancePath + "/@list", "#/properties/%40list/anyOf", "anyOf", {}, 1);
|
|
2834
|
+
vErrors = pushError(vErrors, err2);
|
|
2835
|
+
errors++;
|
|
2836
|
+
}
|
|
2837
|
+
else {
|
|
2838
|
+
errors = _errs2;
|
|
2839
|
+
if (vErrors !== null) {
|
|
2840
|
+
if (_errs2) {
|
|
2841
|
+
vErrors.length = _errs2;
|
|
2842
|
+
}
|
|
2843
|
+
else {
|
|
2844
|
+
vErrors = null;
|
|
2845
|
+
}
|
|
2846
|
+
}
|
|
2847
|
+
}
|
|
2848
|
+
}
|
|
2849
|
+
if (data["@index"] !== undefined) {
|
|
2850
|
+
if (typeof data["@index"] !== "string") {
|
|
2851
|
+
const err3 = createError(instancePath + "/@index", "#/properties/%40index/type", "type", { type: "string" }, 7);
|
|
2852
|
+
vErrors = pushError(vErrors, err3);
|
|
2853
|
+
errors++;
|
|
2854
|
+
}
|
|
2855
|
+
}
|
|
2856
|
+
}
|
|
2857
|
+
else {
|
|
2858
|
+
const err4 = createError(instancePath, "#/type", "type", { type: "object" }, 9);
|
|
2859
|
+
vErrors = pushError(vErrors, err4);
|
|
2860
|
+
errors++;
|
|
2861
|
+
}
|
|
2862
|
+
validate92.errors = vErrors;
|
|
2863
|
+
return errors === 0;
|
|
2864
|
+
}
|
|
2865
|
+
validate92.evaluated = { "props": { "@list": true, "@index": true }, "dynamicProps": false, "dynamicItems": false };
|
|
2866
|
+
function validate98(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
|
|
2867
|
+
/*# sourceURL="https://schema.3sixty.global/json-ld/JsonLdSetObject" */ ;
|
|
2868
|
+
let vErrors = null;
|
|
2869
|
+
let errors = 0;
|
|
2870
|
+
const evaluated0 = validate98.evaluated;
|
|
2871
|
+
if (evaluated0.dynamicProps) {
|
|
2872
|
+
evaluated0.props = undefined;
|
|
2873
|
+
}
|
|
2874
|
+
if (evaluated0.dynamicItems) {
|
|
2875
|
+
evaluated0.items = undefined;
|
|
2876
|
+
}
|
|
2877
|
+
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
2878
|
+
if (data["@set"] === undefined) {
|
|
2879
|
+
const err0 = createError(instancePath, "#/required", "required", { missingProperty: "@set" }, "must have required property '" + "@set" + "'");
|
|
2880
|
+
vErrors = pushError(vErrors, err0);
|
|
2881
|
+
errors++;
|
|
2882
|
+
}
|
|
2883
|
+
if (data["@set"] !== undefined) {
|
|
2884
|
+
let data0 = data["@set"];
|
|
2885
|
+
const _errs2 = errors;
|
|
2886
|
+
let valid1 = false;
|
|
2887
|
+
const _errs3 = errors;
|
|
2888
|
+
if (!(validate93(data0, { instancePath: instancePath + "/@set", parentData: data, parentDataProperty: "@set", rootData, dynamicAnchors }))) {
|
|
2889
|
+
vErrors = vErrors === null ? validate93.errors : vErrors.concat(validate93.errors);
|
|
2890
|
+
errors = vErrors.length;
|
|
2891
|
+
}
|
|
2892
|
+
else {
|
|
2893
|
+
var items0 = validate93.evaluated.items;
|
|
2894
|
+
}
|
|
2895
|
+
var _valid0 = _errs3 === errors;
|
|
2896
|
+
valid1 = valid1 || _valid0;
|
|
2897
|
+
const _errs4 = errors;
|
|
2898
|
+
if (Array.isArray(data0)) {
|
|
2899
|
+
const len0 = data0.length;
|
|
2900
|
+
for (let i0 = 0; i0 < len0; i0++) {
|
|
2901
|
+
if (!(validate93(data0[i0], { instancePath: instancePath + "/@set/" + i0, parentData: data0, parentDataProperty: i0, rootData, dynamicAnchors }))) {
|
|
2902
|
+
vErrors = vErrors === null ? validate93.errors : vErrors.concat(validate93.errors);
|
|
2903
|
+
errors = vErrors.length;
|
|
2904
|
+
}
|
|
2905
|
+
}
|
|
2906
|
+
}
|
|
2907
|
+
else {
|
|
2908
|
+
const err1 = createError(instancePath + "/@set", "#/properties/%40set/anyOf/1/type", "type", { type: "array" }, 4);
|
|
2909
|
+
vErrors = pushError(vErrors, err1);
|
|
2910
|
+
errors++;
|
|
2911
|
+
}
|
|
2912
|
+
var _valid0 = _errs4 === errors;
|
|
2913
|
+
valid1 = valid1 || _valid0;
|
|
2914
|
+
if (_valid0) {
|
|
2915
|
+
if (items0 !== true) {
|
|
2916
|
+
items0 = true;
|
|
2917
|
+
}
|
|
2918
|
+
}
|
|
2919
|
+
if (!valid1) {
|
|
2920
|
+
const err2 = createError(instancePath + "/@set", "#/properties/%40set/anyOf", "anyOf", {}, 1);
|
|
2921
|
+
vErrors = pushError(vErrors, err2);
|
|
2922
|
+
errors++;
|
|
2923
|
+
}
|
|
2924
|
+
else {
|
|
2925
|
+
errors = _errs2;
|
|
2926
|
+
if (vErrors !== null) {
|
|
2927
|
+
if (_errs2) {
|
|
2928
|
+
vErrors.length = _errs2;
|
|
2929
|
+
}
|
|
2930
|
+
else {
|
|
2931
|
+
vErrors = null;
|
|
2932
|
+
}
|
|
2933
|
+
}
|
|
2934
|
+
}
|
|
2935
|
+
}
|
|
2936
|
+
if (data["@index"] !== undefined) {
|
|
2937
|
+
if (typeof data["@index"] !== "string") {
|
|
2938
|
+
const err3 = createError(instancePath + "/@index", "#/properties/%40index/type", "type", { type: "string" }, 7);
|
|
2939
|
+
vErrors = pushError(vErrors, err3);
|
|
2940
|
+
errors++;
|
|
2941
|
+
}
|
|
2942
|
+
}
|
|
2943
|
+
}
|
|
2944
|
+
else {
|
|
2945
|
+
const err4 = createError(instancePath, "#/type", "type", { type: "object" }, 9);
|
|
2946
|
+
vErrors = pushError(vErrors, err4);
|
|
2947
|
+
errors++;
|
|
2948
|
+
}
|
|
2949
|
+
validate98.errors = vErrors;
|
|
2950
|
+
return errors === 0;
|
|
2951
|
+
}
|
|
2952
|
+
validate98.evaluated = { "props": { "@set": true, "@index": true }, "dynamicProps": false, "dynamicItems": false };
|
|
2953
|
+
function validate83(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
|
|
2954
|
+
/*# sourceURL="https://schema.3sixty.global/json-ld/JsonLdNodePrimitive" */ ;
|
|
2955
|
+
let vErrors = null;
|
|
2956
|
+
let errors = 0;
|
|
2957
|
+
const evaluated0 = validate83.evaluated;
|
|
2958
|
+
if (evaluated0.dynamicProps) {
|
|
2959
|
+
evaluated0.props = undefined;
|
|
2960
|
+
}
|
|
2961
|
+
if (evaluated0.dynamicItems) {
|
|
2962
|
+
evaluated0.items = undefined;
|
|
2963
|
+
}
|
|
2964
|
+
const _errs0 = errors;
|
|
2965
|
+
let valid0 = false;
|
|
2966
|
+
const _errs1 = errors;
|
|
2967
|
+
if (data !== null) {
|
|
2968
|
+
const err0 = createError(instancePath, "#/anyOf/0/type", "type", { type: "null" }, 10);
|
|
2969
|
+
vErrors = pushError(vErrors, err0);
|
|
2970
|
+
errors++;
|
|
2971
|
+
}
|
|
2972
|
+
var _valid0 = _errs1 === errors;
|
|
2973
|
+
valid0 = valid0 || _valid0;
|
|
2974
|
+
const _errs3 = errors;
|
|
2975
|
+
if (typeof data !== "boolean") {
|
|
2976
|
+
const err1 = createError(instancePath, "#/anyOf/1/type", "type", { type: "boolean" }, 8);
|
|
2977
|
+
vErrors = pushError(vErrors, err1);
|
|
2978
|
+
errors++;
|
|
2979
|
+
}
|
|
2980
|
+
var _valid0 = _errs3 === errors;
|
|
2981
|
+
valid0 = valid0 || _valid0;
|
|
2982
|
+
const _errs5 = errors;
|
|
2983
|
+
if (!((typeof data == "number") && (isFinite(data)))) {
|
|
2984
|
+
const err2 = createError(instancePath, "#/anyOf/2/type", "type", { type: "number" }, 11);
|
|
2985
|
+
vErrors = pushError(vErrors, err2);
|
|
2986
|
+
errors++;
|
|
2987
|
+
}
|
|
2988
|
+
var _valid0 = _errs5 === errors;
|
|
2989
|
+
valid0 = valid0 || _valid0;
|
|
2990
|
+
const _errs7 = errors;
|
|
2991
|
+
if (typeof data !== "string") {
|
|
2992
|
+
const err3 = createError(instancePath, "#/anyOf/3/type", "type", { type: "string" }, 7);
|
|
2993
|
+
vErrors = pushError(vErrors, err3);
|
|
2994
|
+
errors++;
|
|
2995
|
+
}
|
|
2996
|
+
var _valid0 = _errs7 === errors;
|
|
2997
|
+
valid0 = valid0 || _valid0;
|
|
2998
|
+
const _errs9 = errors;
|
|
2999
|
+
if (!(wrapper1.validate(data, { instancePath, parentData, parentDataProperty, rootData, dynamicAnchors }))) {
|
|
3000
|
+
vErrors = vErrors === null ? wrapper1.validate.errors : vErrors.concat(wrapper1.validate.errors);
|
|
3001
|
+
errors = vErrors.length;
|
|
3002
|
+
}
|
|
3003
|
+
else {
|
|
3004
|
+
var props0 = wrapper1.validate.evaluated.props;
|
|
3005
|
+
var items0 = wrapper1.validate.evaluated.items;
|
|
3006
|
+
}
|
|
3007
|
+
var _valid0 = _errs9 === errors;
|
|
3008
|
+
valid0 = valid0 || _valid0;
|
|
3009
|
+
const _errs10 = errors;
|
|
3010
|
+
if (!(validate84(data, { instancePath, parentData, parentDataProperty, rootData, dynamicAnchors }))) {
|
|
3011
|
+
vErrors = vErrors === null ? validate84.errors : vErrors.concat(validate84.errors);
|
|
3012
|
+
errors = vErrors.length;
|
|
3013
|
+
}
|
|
3014
|
+
var _valid0 = _errs10 === errors;
|
|
3015
|
+
valid0 = valid0 || _valid0;
|
|
3016
|
+
if (_valid0) {
|
|
3017
|
+
if (props0 !== true) {
|
|
3018
|
+
props0 = props0 || {};
|
|
3019
|
+
props0["@graph"] = true;
|
|
3020
|
+
props0["@index"] = true;
|
|
3021
|
+
props0["@id"] = true;
|
|
3022
|
+
props0["@context"] = true;
|
|
3023
|
+
}
|
|
3024
|
+
}
|
|
3025
|
+
const _errs11 = errors;
|
|
3026
|
+
if (!(validate87(data, { instancePath, parentData, parentDataProperty, rootData, dynamicAnchors }))) {
|
|
3027
|
+
vErrors = vErrors === null ? validate87.errors : vErrors.concat(validate87.errors);
|
|
3028
|
+
errors = vErrors.length;
|
|
3029
|
+
}
|
|
3030
|
+
else {
|
|
3031
|
+
var props1 = validate87.evaluated.props;
|
|
3032
|
+
}
|
|
3033
|
+
var _valid0 = _errs11 === errors;
|
|
3034
|
+
valid0 = valid0 || _valid0;
|
|
3035
|
+
if (_valid0) {
|
|
3036
|
+
if (props0 !== true && props1 !== undefined) {
|
|
3037
|
+
if (props1 === true) {
|
|
3038
|
+
props0 = true;
|
|
3039
|
+
}
|
|
3040
|
+
else {
|
|
3041
|
+
props0 = props0 || {};
|
|
3042
|
+
Object.assign(props0, props1);
|
|
3043
|
+
}
|
|
3044
|
+
}
|
|
3045
|
+
}
|
|
3046
|
+
const _errs12 = errors;
|
|
3047
|
+
if (!(validate92(data, { instancePath, parentData, parentDataProperty, rootData, dynamicAnchors }))) {
|
|
3048
|
+
vErrors = vErrors === null ? validate92.errors : vErrors.concat(validate92.errors);
|
|
3049
|
+
errors = vErrors.length;
|
|
3050
|
+
}
|
|
3051
|
+
var _valid0 = _errs12 === errors;
|
|
3052
|
+
valid0 = valid0 || _valid0;
|
|
3053
|
+
if (_valid0) {
|
|
3054
|
+
if (props0 !== true) {
|
|
3055
|
+
props0 = props0 || {};
|
|
3056
|
+
props0["@list"] = true;
|
|
3057
|
+
props0["@index"] = true;
|
|
3058
|
+
}
|
|
3059
|
+
}
|
|
3060
|
+
const _errs13 = errors;
|
|
3061
|
+
if (!(validate98(data, { instancePath, parentData, parentDataProperty, rootData, dynamicAnchors }))) {
|
|
3062
|
+
vErrors = vErrors === null ? validate98.errors : vErrors.concat(validate98.errors);
|
|
3063
|
+
errors = vErrors.length;
|
|
3064
|
+
}
|
|
3065
|
+
var _valid0 = _errs13 === errors;
|
|
3066
|
+
valid0 = valid0 || _valid0;
|
|
3067
|
+
if (_valid0) {
|
|
3068
|
+
if (props0 !== true) {
|
|
3069
|
+
props0 = props0 || {};
|
|
3070
|
+
props0["@set"] = true;
|
|
3071
|
+
props0["@index"] = true;
|
|
3072
|
+
}
|
|
3073
|
+
}
|
|
3074
|
+
if (!valid0) {
|
|
3075
|
+
const err4 = createError(instancePath, "#/anyOf", "anyOf", {}, 1);
|
|
3076
|
+
vErrors = pushError(vErrors, err4);
|
|
3077
|
+
errors++;
|
|
3078
|
+
}
|
|
3079
|
+
else {
|
|
3080
|
+
errors = _errs0;
|
|
3081
|
+
if (vErrors !== null) {
|
|
3082
|
+
if (_errs0) {
|
|
3083
|
+
vErrors.length = _errs0;
|
|
3084
|
+
}
|
|
3085
|
+
else {
|
|
3086
|
+
vErrors = null;
|
|
3087
|
+
}
|
|
3088
|
+
}
|
|
3089
|
+
}
|
|
3090
|
+
validate83.errors = vErrors;
|
|
3091
|
+
evaluated0.props = props0;
|
|
3092
|
+
evaluated0.items = items0;
|
|
3093
|
+
return errors === 0;
|
|
3094
|
+
}
|
|
3095
|
+
validate83.evaluated = { "dynamicProps": true, "dynamicItems": true };
|
|
3096
|
+
function validate104(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
|
|
3097
|
+
/*# sourceURL="https://schema.3sixty.global/json-ld/JsonLdLanguageMap" */ ;
|
|
3098
|
+
let vErrors = null;
|
|
3099
|
+
let errors = 0;
|
|
3100
|
+
const evaluated0 = validate104.evaluated;
|
|
3101
|
+
if (evaluated0.dynamicProps) {
|
|
3102
|
+
evaluated0.props = undefined;
|
|
3103
|
+
}
|
|
3104
|
+
if (evaluated0.dynamicItems) {
|
|
3105
|
+
evaluated0.items = undefined;
|
|
3106
|
+
}
|
|
3107
|
+
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
3108
|
+
for (const key0 in data) {
|
|
3109
|
+
let data0 = data[key0];
|
|
3110
|
+
const _errs3 = errors;
|
|
3111
|
+
let valid1 = false;
|
|
3112
|
+
const _errs4 = errors;
|
|
3113
|
+
if (data0 !== null) {
|
|
3114
|
+
const err0 = createError(instancePath + "/" + key0.replace(/~/g, "~0").replace(/\//g, "~1"), "#/additionalProperties/anyOf/0/type", "type", { type: "null" }, 10);
|
|
3115
|
+
vErrors = pushError(vErrors, err0);
|
|
3116
|
+
errors++;
|
|
3117
|
+
}
|
|
3118
|
+
var _valid0 = _errs4 === errors;
|
|
3119
|
+
valid1 = valid1 || _valid0;
|
|
3120
|
+
const _errs6 = errors;
|
|
3121
|
+
if (typeof data0 !== "string") {
|
|
3122
|
+
const err1 = createError(instancePath + "/" + key0.replace(/~/g, "~0").replace(/\//g, "~1"), "#/additionalProperties/anyOf/1/type", "type", { type: "string" }, 7);
|
|
3123
|
+
vErrors = pushError(vErrors, err1);
|
|
3124
|
+
errors++;
|
|
3125
|
+
}
|
|
3126
|
+
var _valid0 = _errs6 === errors;
|
|
3127
|
+
valid1 = valid1 || _valid0;
|
|
3128
|
+
const _errs8 = errors;
|
|
3129
|
+
if (Array.isArray(data0)) {
|
|
3130
|
+
const len0 = data0.length;
|
|
3131
|
+
for (let i0 = 0; i0 < len0; i0++) {
|
|
3132
|
+
if (typeof data0[i0] !== "string") {
|
|
3133
|
+
const err2 = createError(instancePath + "/" + key0.replace(/~/g, "~0").replace(/\//g, "~1") + "/" + i0, "#/additionalProperties/anyOf/2/items/type", "type", { type: "string" }, 7);
|
|
3134
|
+
vErrors = pushError(vErrors, err2);
|
|
3135
|
+
errors++;
|
|
3136
|
+
}
|
|
3137
|
+
}
|
|
3138
|
+
}
|
|
3139
|
+
else {
|
|
3140
|
+
const err3 = createError(instancePath + "/" + key0.replace(/~/g, "~0").replace(/\//g, "~1"), "#/additionalProperties/anyOf/2/type", "type", { type: "array" }, 4);
|
|
3141
|
+
vErrors = pushError(vErrors, err3);
|
|
3142
|
+
errors++;
|
|
3143
|
+
}
|
|
3144
|
+
var _valid0 = _errs8 === errors;
|
|
3145
|
+
valid1 = valid1 || _valid0;
|
|
3146
|
+
if (!valid1) {
|
|
3147
|
+
const err4 = createError(instancePath + "/" + key0.replace(/~/g, "~0").replace(/\//g, "~1"), "#/additionalProperties/anyOf", "anyOf", {}, 1);
|
|
3148
|
+
vErrors = pushError(vErrors, err4);
|
|
3149
|
+
errors++;
|
|
3150
|
+
}
|
|
3151
|
+
else {
|
|
3152
|
+
errors = _errs3;
|
|
3153
|
+
if (vErrors !== null) {
|
|
3154
|
+
if (_errs3) {
|
|
3155
|
+
vErrors.length = _errs3;
|
|
3156
|
+
}
|
|
3157
|
+
else {
|
|
3158
|
+
vErrors = null;
|
|
3159
|
+
}
|
|
3160
|
+
}
|
|
3161
|
+
}
|
|
3162
|
+
}
|
|
3163
|
+
}
|
|
3164
|
+
else {
|
|
3165
|
+
const err5 = createError(instancePath, "#/type", "type", { type: "object" }, 9);
|
|
3166
|
+
vErrors = pushError(vErrors, err5);
|
|
3167
|
+
errors++;
|
|
3168
|
+
}
|
|
3169
|
+
validate104.errors = vErrors;
|
|
3170
|
+
return errors === 0;
|
|
3171
|
+
}
|
|
3172
|
+
validate104.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
|
|
3173
|
+
function validate107(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
|
|
3174
|
+
/*# sourceURL="https://schema.3sixty.global/json-ld/JsonLdIndexMapItem" */ ;
|
|
3175
|
+
let vErrors = null;
|
|
3176
|
+
let errors = 0;
|
|
3177
|
+
const evaluated0 = validate107.evaluated;
|
|
3178
|
+
if (evaluated0.dynamicProps) {
|
|
3179
|
+
evaluated0.props = undefined;
|
|
3180
|
+
}
|
|
3181
|
+
if (evaluated0.dynamicItems) {
|
|
3182
|
+
evaluated0.items = undefined;
|
|
3183
|
+
}
|
|
3184
|
+
const _errs0 = errors;
|
|
3185
|
+
let valid0 = false;
|
|
3186
|
+
const _errs1 = errors;
|
|
3187
|
+
if (data !== null) {
|
|
3188
|
+
const err0 = createError(instancePath, "#/anyOf/0/type", "type", { type: "null" }, 10);
|
|
3189
|
+
vErrors = pushError(vErrors, err0);
|
|
3190
|
+
errors++;
|
|
3191
|
+
}
|
|
3192
|
+
var _valid0 = _errs1 === errors;
|
|
3193
|
+
valid0 = valid0 || _valid0;
|
|
3194
|
+
const _errs3 = errors;
|
|
3195
|
+
if (typeof data !== "boolean") {
|
|
3196
|
+
const err1 = createError(instancePath, "#/anyOf/1/type", "type", { type: "boolean" }, 8);
|
|
3197
|
+
vErrors = pushError(vErrors, err1);
|
|
3198
|
+
errors++;
|
|
3199
|
+
}
|
|
3200
|
+
var _valid0 = _errs3 === errors;
|
|
3201
|
+
valid0 = valid0 || _valid0;
|
|
3202
|
+
const _errs5 = errors;
|
|
3203
|
+
if (!((typeof data == "number") && (isFinite(data)))) {
|
|
3204
|
+
const err2 = createError(instancePath, "#/anyOf/2/type", "type", { type: "number" }, 11);
|
|
3205
|
+
vErrors = pushError(vErrors, err2);
|
|
3206
|
+
errors++;
|
|
3207
|
+
}
|
|
3208
|
+
var _valid0 = _errs5 === errors;
|
|
3209
|
+
valid0 = valid0 || _valid0;
|
|
3210
|
+
const _errs7 = errors;
|
|
3211
|
+
if (typeof data !== "string") {
|
|
3212
|
+
const err3 = createError(instancePath, "#/anyOf/3/type", "type", { type: "string" }, 7);
|
|
3213
|
+
vErrors = pushError(vErrors, err3);
|
|
3214
|
+
errors++;
|
|
3215
|
+
}
|
|
3216
|
+
var _valid0 = _errs7 === errors;
|
|
3217
|
+
valid0 = valid0 || _valid0;
|
|
3218
|
+
const _errs9 = errors;
|
|
3219
|
+
if (!(wrapper1.validate(data, { instancePath, parentData, parentDataProperty, rootData, dynamicAnchors }))) {
|
|
3220
|
+
vErrors = vErrors === null ? wrapper1.validate.errors : vErrors.concat(wrapper1.validate.errors);
|
|
3221
|
+
errors = vErrors.length;
|
|
3222
|
+
}
|
|
3223
|
+
else {
|
|
3224
|
+
var props0 = wrapper1.validate.evaluated.props;
|
|
3225
|
+
var items0 = wrapper1.validate.evaluated.items;
|
|
3226
|
+
}
|
|
3227
|
+
var _valid0 = _errs9 === errors;
|
|
3228
|
+
valid0 = valid0 || _valid0;
|
|
3229
|
+
const _errs10 = errors;
|
|
3230
|
+
if (!(validate87(data, { instancePath, parentData, parentDataProperty, rootData, dynamicAnchors }))) {
|
|
3231
|
+
vErrors = vErrors === null ? validate87.errors : vErrors.concat(validate87.errors);
|
|
3232
|
+
errors = vErrors.length;
|
|
3233
|
+
}
|
|
3234
|
+
else {
|
|
3235
|
+
var props1 = validate87.evaluated.props;
|
|
3236
|
+
}
|
|
3237
|
+
var _valid0 = _errs10 === errors;
|
|
3238
|
+
valid0 = valid0 || _valid0;
|
|
3239
|
+
if (_valid0) {
|
|
3240
|
+
if (props0 !== true && props1 !== undefined) {
|
|
3241
|
+
if (props1 === true) {
|
|
3242
|
+
props0 = true;
|
|
3243
|
+
}
|
|
3244
|
+
else {
|
|
3245
|
+
props0 = props0 || {};
|
|
3246
|
+
Object.assign(props0, props1);
|
|
3247
|
+
}
|
|
3248
|
+
}
|
|
3249
|
+
}
|
|
3250
|
+
const _errs11 = errors;
|
|
3251
|
+
if (!(validate92(data, { instancePath, parentData, parentDataProperty, rootData, dynamicAnchors }))) {
|
|
3252
|
+
vErrors = vErrors === null ? validate92.errors : vErrors.concat(validate92.errors);
|
|
3253
|
+
errors = vErrors.length;
|
|
3254
|
+
}
|
|
3255
|
+
var _valid0 = _errs11 === errors;
|
|
3256
|
+
valid0 = valid0 || _valid0;
|
|
3257
|
+
if (_valid0) {
|
|
3258
|
+
if (props0 !== true) {
|
|
3259
|
+
props0 = props0 || {};
|
|
3260
|
+
props0["@list"] = true;
|
|
3261
|
+
props0["@index"] = true;
|
|
3262
|
+
}
|
|
3263
|
+
}
|
|
3264
|
+
const _errs12 = errors;
|
|
3265
|
+
if (!(validate98(data, { instancePath, parentData, parentDataProperty, rootData, dynamicAnchors }))) {
|
|
3266
|
+
vErrors = vErrors === null ? validate98.errors : vErrors.concat(validate98.errors);
|
|
3267
|
+
errors = vErrors.length;
|
|
3268
|
+
}
|
|
3269
|
+
var _valid0 = _errs12 === errors;
|
|
3270
|
+
valid0 = valid0 || _valid0;
|
|
3271
|
+
if (_valid0) {
|
|
3272
|
+
if (props0 !== true) {
|
|
3273
|
+
props0 = props0 || {};
|
|
3274
|
+
props0["@set"] = true;
|
|
3275
|
+
props0["@index"] = true;
|
|
3276
|
+
}
|
|
3277
|
+
}
|
|
3278
|
+
if (!valid0) {
|
|
3279
|
+
const err4 = createError(instancePath, "#/anyOf", "anyOf", {}, 1);
|
|
3280
|
+
vErrors = pushError(vErrors, err4);
|
|
3281
|
+
errors++;
|
|
3282
|
+
}
|
|
3283
|
+
else {
|
|
3284
|
+
errors = _errs0;
|
|
3285
|
+
if (vErrors !== null) {
|
|
3286
|
+
if (_errs0) {
|
|
3287
|
+
vErrors.length = _errs0;
|
|
3288
|
+
}
|
|
3289
|
+
else {
|
|
3290
|
+
vErrors = null;
|
|
3291
|
+
}
|
|
3292
|
+
}
|
|
3293
|
+
}
|
|
3294
|
+
validate107.errors = vErrors;
|
|
3295
|
+
evaluated0.props = props0;
|
|
3296
|
+
evaluated0.items = items0;
|
|
3297
|
+
return errors === 0;
|
|
3298
|
+
}
|
|
3299
|
+
validate107.evaluated = { "dynamicProps": true, "dynamicItems": true };
|
|
3300
|
+
function validate106(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
|
|
3301
|
+
/*# sourceURL="https://schema.3sixty.global/json-ld/JsonLdIndexMap" */ ;
|
|
3302
|
+
let vErrors = null;
|
|
3303
|
+
let errors = 0;
|
|
3304
|
+
const evaluated0 = validate106.evaluated;
|
|
3305
|
+
if (evaluated0.dynamicProps) {
|
|
3306
|
+
evaluated0.props = undefined;
|
|
3307
|
+
}
|
|
3308
|
+
if (evaluated0.dynamicItems) {
|
|
3309
|
+
evaluated0.items = undefined;
|
|
3310
|
+
}
|
|
3311
|
+
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
3312
|
+
for (const key0 in data) {
|
|
3313
|
+
let data0 = data[key0];
|
|
3314
|
+
const _errs3 = errors;
|
|
3315
|
+
let valid1 = false;
|
|
3316
|
+
const _errs4 = errors;
|
|
3317
|
+
if (!(validate107(data0, { instancePath: instancePath + "/" + key0.replace(/~/g, "~0").replace(/\//g, "~1"), parentData: data, parentDataProperty: key0, rootData, dynamicAnchors }))) {
|
|
3318
|
+
vErrors = vErrors === null ? validate107.errors : vErrors.concat(validate107.errors);
|
|
3319
|
+
errors = vErrors.length;
|
|
3320
|
+
}
|
|
3321
|
+
else {
|
|
3322
|
+
var items0 = validate107.evaluated.items;
|
|
3323
|
+
}
|
|
3324
|
+
var _valid0 = _errs4 === errors;
|
|
3325
|
+
valid1 = valid1 || _valid0;
|
|
3326
|
+
const _errs5 = errors;
|
|
3327
|
+
if (Array.isArray(data0)) {
|
|
3328
|
+
const len0 = data0.length;
|
|
3329
|
+
for (let i0 = 0; i0 < len0; i0++) {
|
|
3330
|
+
if (!(validate107(data0[i0], { instancePath: instancePath + "/" + key0.replace(/~/g, "~0").replace(/\//g, "~1") + "/" + i0, parentData: data0, parentDataProperty: i0, rootData, dynamicAnchors }))) {
|
|
3331
|
+
vErrors = vErrors === null ? validate107.errors : vErrors.concat(validate107.errors);
|
|
3332
|
+
errors = vErrors.length;
|
|
3333
|
+
}
|
|
3334
|
+
}
|
|
3335
|
+
}
|
|
3336
|
+
else {
|
|
3337
|
+
const err0 = createError(instancePath + "/" + key0.replace(/~/g, "~0").replace(/\//g, "~1"), "#/additionalProperties/anyOf/1/type", "type", { type: "array" }, 4);
|
|
3338
|
+
vErrors = pushError(vErrors, err0);
|
|
3339
|
+
errors++;
|
|
3340
|
+
}
|
|
3341
|
+
var _valid0 = _errs5 === errors;
|
|
3342
|
+
valid1 = valid1 || _valid0;
|
|
3343
|
+
if (_valid0) {
|
|
3344
|
+
if (items0 !== true) {
|
|
3345
|
+
items0 = true;
|
|
3346
|
+
}
|
|
3347
|
+
}
|
|
3348
|
+
if (!valid1) {
|
|
3349
|
+
const err1 = createError(instancePath + "/" + key0.replace(/~/g, "~0").replace(/\//g, "~1"), "#/additionalProperties/anyOf", "anyOf", {}, 1);
|
|
3350
|
+
vErrors = pushError(vErrors, err1);
|
|
3351
|
+
errors++;
|
|
3352
|
+
}
|
|
3353
|
+
else {
|
|
3354
|
+
errors = _errs3;
|
|
3355
|
+
if (vErrors !== null) {
|
|
3356
|
+
if (_errs3) {
|
|
3357
|
+
vErrors.length = _errs3;
|
|
3358
|
+
}
|
|
3359
|
+
else {
|
|
3360
|
+
vErrors = null;
|
|
3361
|
+
}
|
|
3362
|
+
}
|
|
3363
|
+
}
|
|
3364
|
+
}
|
|
3365
|
+
}
|
|
3366
|
+
else {
|
|
3367
|
+
const err2 = createError(instancePath, "#/type", "type", { type: "object" }, 9);
|
|
3368
|
+
vErrors = pushError(vErrors, err2);
|
|
3369
|
+
errors++;
|
|
3370
|
+
}
|
|
3371
|
+
validate106.errors = vErrors;
|
|
3372
|
+
return errors === 0;
|
|
3373
|
+
}
|
|
3374
|
+
validate106.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
|
|
3375
|
+
function validate115(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
|
|
3376
|
+
/*# sourceURL="https://schema.3sixty.global/json-ld/JsonLdIdMap" */ ;
|
|
3377
|
+
let vErrors = null;
|
|
3378
|
+
let errors = 0;
|
|
3379
|
+
const evaluated0 = validate115.evaluated;
|
|
3380
|
+
if (evaluated0.dynamicProps) {
|
|
3381
|
+
evaluated0.props = undefined;
|
|
3382
|
+
}
|
|
3383
|
+
if (evaluated0.dynamicItems) {
|
|
3384
|
+
evaluated0.items = undefined;
|
|
3385
|
+
}
|
|
3386
|
+
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
3387
|
+
for (const key0 in data) {
|
|
3388
|
+
if (!(wrapper1.validate(data[key0], { instancePath: instancePath + "/" + key0.replace(/~/g, "~0").replace(/\//g, "~1"), parentData: data, parentDataProperty: key0, rootData, dynamicAnchors }))) {
|
|
3389
|
+
vErrors = vErrors === null ? wrapper1.validate.errors : vErrors.concat(wrapper1.validate.errors);
|
|
3390
|
+
errors = vErrors.length;
|
|
3391
|
+
}
|
|
3392
|
+
}
|
|
3393
|
+
}
|
|
3394
|
+
else {
|
|
3395
|
+
const err0 = createError(instancePath, "#/type", "type", { type: "object" }, 9);
|
|
3396
|
+
vErrors = pushError(vErrors, err0);
|
|
3397
|
+
errors++;
|
|
3398
|
+
}
|
|
3399
|
+
validate115.errors = vErrors;
|
|
3400
|
+
return errors === 0;
|
|
3401
|
+
}
|
|
3402
|
+
validate115.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
|
|
3403
|
+
function validate117(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
|
|
3404
|
+
/*# sourceURL="https://schema.3sixty.global/json-ld/JsonLdTypeMap" */ ;
|
|
3405
|
+
let vErrors = null;
|
|
3406
|
+
let errors = 0;
|
|
3407
|
+
const evaluated0 = validate117.evaluated;
|
|
3408
|
+
if (evaluated0.dynamicProps) {
|
|
3409
|
+
evaluated0.props = undefined;
|
|
3410
|
+
}
|
|
3411
|
+
if (evaluated0.dynamicItems) {
|
|
3412
|
+
evaluated0.items = undefined;
|
|
3413
|
+
}
|
|
3414
|
+
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
3415
|
+
for (const key0 in data) {
|
|
3416
|
+
let data0 = data[key0];
|
|
3417
|
+
const _errs3 = errors;
|
|
3418
|
+
let valid1 = false;
|
|
3419
|
+
const _errs4 = errors;
|
|
3420
|
+
if (typeof data0 !== "string") {
|
|
3421
|
+
const err0 = createError(instancePath + "/" + key0.replace(/~/g, "~0").replace(/\//g, "~1"), "#/additionalProperties/anyOf/0/type", "type", { type: "string" }, 7);
|
|
3422
|
+
vErrors = pushError(vErrors, err0);
|
|
3423
|
+
errors++;
|
|
3424
|
+
}
|
|
3425
|
+
var _valid0 = _errs4 === errors;
|
|
3426
|
+
valid1 = valid1 || _valid0;
|
|
3427
|
+
const _errs6 = errors;
|
|
3428
|
+
if (!(wrapper1.validate(data0, { instancePath: instancePath + "/" + key0.replace(/~/g, "~0").replace(/\//g, "~1"), parentData: data, parentDataProperty: key0, rootData, dynamicAnchors }))) {
|
|
3429
|
+
vErrors = vErrors === null ? wrapper1.validate.errors : vErrors.concat(wrapper1.validate.errors);
|
|
3430
|
+
errors = vErrors.length;
|
|
3431
|
+
}
|
|
3432
|
+
var _valid0 = _errs6 === errors;
|
|
3433
|
+
valid1 = valid1 || _valid0;
|
|
3434
|
+
if (!valid1) {
|
|
3435
|
+
const err1 = createError(instancePath + "/" + key0.replace(/~/g, "~0").replace(/\//g, "~1"), "#/additionalProperties/anyOf", "anyOf", {}, 1);
|
|
3436
|
+
vErrors = pushError(vErrors, err1);
|
|
3437
|
+
errors++;
|
|
3438
|
+
}
|
|
3439
|
+
else {
|
|
3440
|
+
errors = _errs3;
|
|
3441
|
+
if (vErrors !== null) {
|
|
3442
|
+
if (_errs3) {
|
|
3443
|
+
vErrors.length = _errs3;
|
|
3444
|
+
}
|
|
3445
|
+
else {
|
|
3446
|
+
vErrors = null;
|
|
3447
|
+
}
|
|
3448
|
+
}
|
|
3449
|
+
}
|
|
3450
|
+
}
|
|
3451
|
+
}
|
|
3452
|
+
else {
|
|
3453
|
+
const err2 = createError(instancePath, "#/type", "type", { type: "object" }, 9);
|
|
3454
|
+
vErrors = pushError(vErrors, err2);
|
|
3455
|
+
errors++;
|
|
3456
|
+
}
|
|
3457
|
+
validate117.errors = vErrors;
|
|
3458
|
+
return errors === 0;
|
|
3459
|
+
}
|
|
3460
|
+
validate117.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
|
|
3461
|
+
function validate53(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
|
|
3462
|
+
/*# sourceURL="https://schema.3sixty.global/json-ld/JsonLdNodeObject" */ ;
|
|
3463
|
+
let vErrors = null;
|
|
3464
|
+
let errors = 0;
|
|
3465
|
+
const evaluated0 = validate53.evaluated;
|
|
3466
|
+
if (evaluated0.dynamicProps) {
|
|
3467
|
+
evaluated0.props = undefined;
|
|
3468
|
+
}
|
|
3469
|
+
if (evaluated0.dynamicItems) {
|
|
3470
|
+
evaluated0.items = undefined;
|
|
3471
|
+
}
|
|
3472
|
+
if (!(validate54(data, { instancePath, parentData, parentDataProperty, rootData, dynamicAnchors }))) {
|
|
3473
|
+
vErrors = vErrors === null ? validate54.errors : vErrors.concat(validate54.errors);
|
|
3474
|
+
errors = vErrors.length;
|
|
3475
|
+
}
|
|
3476
|
+
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
3477
|
+
for (const key0 in data) {
|
|
3478
|
+
let data0 = data[key0];
|
|
3479
|
+
const _errs4 = errors;
|
|
3480
|
+
let valid2 = false;
|
|
3481
|
+
const _errs5 = errors;
|
|
3482
|
+
if (!(validate83(data0, { instancePath: instancePath + "/" + key0.replace(/~/g, "~0").replace(/\//g, "~1"), parentData: data, parentDataProperty: key0, rootData, dynamicAnchors }))) {
|
|
3483
|
+
vErrors = vErrors === null ? validate83.errors : vErrors.concat(validate83.errors);
|
|
3484
|
+
errors = vErrors.length;
|
|
3485
|
+
}
|
|
3486
|
+
else {
|
|
3487
|
+
var props0 = validate83.evaluated.props;
|
|
3488
|
+
var items0 = validate83.evaluated.items;
|
|
3489
|
+
}
|
|
3490
|
+
var _valid0 = _errs5 === errors;
|
|
3491
|
+
valid2 = valid2 || _valid0;
|
|
3492
|
+
const _errs6 = errors;
|
|
3493
|
+
if (Array.isArray(data0)) {
|
|
3494
|
+
const len0 = data0.length;
|
|
3495
|
+
for (let i0 = 0; i0 < len0; i0++) {
|
|
3496
|
+
if (!(validate83(data0[i0], { instancePath: instancePath + "/" + key0.replace(/~/g, "~0").replace(/\//g, "~1") + "/" + i0, parentData: data0, parentDataProperty: i0, rootData, dynamicAnchors }))) {
|
|
3497
|
+
vErrors = vErrors === null ? validate83.errors : vErrors.concat(validate83.errors);
|
|
3498
|
+
errors = vErrors.length;
|
|
3499
|
+
}
|
|
3500
|
+
}
|
|
3501
|
+
}
|
|
3502
|
+
else {
|
|
3503
|
+
const err0 = createError(instancePath + "/" + key0.replace(/~/g, "~0").replace(/\//g, "~1"), "#/additionalProperties/anyOf/1/type", "type", { type: "array" }, 4);
|
|
3504
|
+
vErrors = pushError(vErrors, err0);
|
|
3505
|
+
errors++;
|
|
3506
|
+
}
|
|
3507
|
+
var _valid0 = _errs6 === errors;
|
|
3508
|
+
valid2 = valid2 || _valid0;
|
|
3509
|
+
if (_valid0) {
|
|
3510
|
+
if (items0 !== true) {
|
|
3511
|
+
items0 = true;
|
|
3512
|
+
}
|
|
3513
|
+
}
|
|
3514
|
+
const _errs9 = errors;
|
|
3515
|
+
if (!(validate104(data0, { instancePath: instancePath + "/" + key0.replace(/~/g, "~0").replace(/\//g, "~1"), parentData: data, parentDataProperty: key0, rootData, dynamicAnchors }))) {
|
|
3516
|
+
vErrors = vErrors === null ? validate104.errors : vErrors.concat(validate104.errors);
|
|
3517
|
+
errors = vErrors.length;
|
|
3518
|
+
}
|
|
3519
|
+
var _valid0 = _errs9 === errors;
|
|
3520
|
+
valid2 = valid2 || _valid0;
|
|
3521
|
+
if (_valid0) {
|
|
3522
|
+
if (props0 !== true) {
|
|
3523
|
+
props0 = true;
|
|
3524
|
+
}
|
|
3525
|
+
}
|
|
3526
|
+
const _errs10 = errors;
|
|
3527
|
+
if (!(validate106(data0, { instancePath: instancePath + "/" + key0.replace(/~/g, "~0").replace(/\//g, "~1"), parentData: data, parentDataProperty: key0, rootData, dynamicAnchors }))) {
|
|
3528
|
+
vErrors = vErrors === null ? validate106.errors : vErrors.concat(validate106.errors);
|
|
3529
|
+
errors = vErrors.length;
|
|
3530
|
+
}
|
|
3531
|
+
var _valid0 = _errs10 === errors;
|
|
3532
|
+
valid2 = valid2 || _valid0;
|
|
3533
|
+
if (_valid0) {
|
|
3534
|
+
if (props0 !== true) {
|
|
3535
|
+
props0 = true;
|
|
3536
|
+
}
|
|
3537
|
+
}
|
|
3538
|
+
const _errs11 = errors;
|
|
3539
|
+
if (!(validate71(data0, { instancePath: instancePath + "/" + key0.replace(/~/g, "~0").replace(/\//g, "~1"), parentData: data, parentDataProperty: key0, rootData, dynamicAnchors }))) {
|
|
3540
|
+
vErrors = vErrors === null ? validate71.errors : vErrors.concat(validate71.errors);
|
|
3541
|
+
errors = vErrors.length;
|
|
3542
|
+
}
|
|
3543
|
+
else {
|
|
3544
|
+
var props2 = validate71.evaluated.props;
|
|
3545
|
+
var items2 = validate71.evaluated.items;
|
|
3546
|
+
}
|
|
3547
|
+
var _valid0 = _errs11 === errors;
|
|
3548
|
+
valid2 = valid2 || _valid0;
|
|
3549
|
+
if (_valid0) {
|
|
3550
|
+
if (props0 !== true && props2 !== undefined) {
|
|
3551
|
+
if (props2 === true) {
|
|
3552
|
+
props0 = true;
|
|
3553
|
+
}
|
|
3554
|
+
else {
|
|
3555
|
+
props0 = props0 || {};
|
|
3556
|
+
Object.assign(props0, props2);
|
|
3557
|
+
}
|
|
3558
|
+
}
|
|
3559
|
+
if (items0 !== true && items2 !== undefined) {
|
|
3560
|
+
items0 = items2 === true ? true : items0 > items2 ? items0 : items2;
|
|
3561
|
+
}
|
|
3562
|
+
}
|
|
3563
|
+
const _errs12 = errors;
|
|
3564
|
+
if (!(validate115(data0, { instancePath: instancePath + "/" + key0.replace(/~/g, "~0").replace(/\//g, "~1"), parentData: data, parentDataProperty: key0, rootData, dynamicAnchors }))) {
|
|
3565
|
+
vErrors = vErrors === null ? validate115.errors : vErrors.concat(validate115.errors);
|
|
3566
|
+
errors = vErrors.length;
|
|
3567
|
+
}
|
|
3568
|
+
var _valid0 = _errs12 === errors;
|
|
3569
|
+
valid2 = valid2 || _valid0;
|
|
3570
|
+
if (_valid0) {
|
|
3571
|
+
if (props0 !== true) {
|
|
3572
|
+
props0 = true;
|
|
3573
|
+
}
|
|
3574
|
+
}
|
|
3575
|
+
const _errs13 = errors;
|
|
3576
|
+
if (!(validate117(data0, { instancePath: instancePath + "/" + key0.replace(/~/g, "~0").replace(/\//g, "~1"), parentData: data, parentDataProperty: key0, rootData, dynamicAnchors }))) {
|
|
3577
|
+
vErrors = vErrors === null ? validate117.errors : vErrors.concat(validate117.errors);
|
|
3578
|
+
errors = vErrors.length;
|
|
3579
|
+
}
|
|
3580
|
+
var _valid0 = _errs13 === errors;
|
|
3581
|
+
valid2 = valid2 || _valid0;
|
|
3582
|
+
if (_valid0) {
|
|
3583
|
+
if (props0 !== true) {
|
|
3584
|
+
props0 = true;
|
|
3585
|
+
}
|
|
3586
|
+
}
|
|
3587
|
+
if (!valid2) {
|
|
3588
|
+
const err1 = createError(instancePath + "/" + key0.replace(/~/g, "~0").replace(/\//g, "~1"), "#/additionalProperties/anyOf", "anyOf", {}, 1);
|
|
3589
|
+
vErrors = pushError(vErrors, err1);
|
|
3590
|
+
errors++;
|
|
3591
|
+
}
|
|
3592
|
+
else {
|
|
3593
|
+
errors = _errs4;
|
|
3594
|
+
if (vErrors !== null) {
|
|
3595
|
+
if (_errs4) {
|
|
3596
|
+
vErrors.length = _errs4;
|
|
3597
|
+
}
|
|
3598
|
+
else {
|
|
3599
|
+
vErrors = null;
|
|
3600
|
+
}
|
|
3601
|
+
}
|
|
3602
|
+
}
|
|
3603
|
+
}
|
|
3604
|
+
}
|
|
3605
|
+
else {
|
|
3606
|
+
const err2 = createError(instancePath, "#/type", "type", { type: "object" }, 9);
|
|
3607
|
+
vErrors = pushError(vErrors, err2);
|
|
3608
|
+
errors++;
|
|
3609
|
+
}
|
|
3610
|
+
validate53.errors = vErrors;
|
|
3611
|
+
return errors === 0;
|
|
3612
|
+
}
|
|
3613
|
+
validate53.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
|
|
3614
|
+
function validate52(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
|
|
3615
|
+
/*# sourceURL="https://schema.3sixty.global/json-ld/JsonLdDocument" */ ;
|
|
3616
|
+
let vErrors = null;
|
|
3617
|
+
let errors = 0;
|
|
3618
|
+
const evaluated0 = validate52.evaluated;
|
|
3619
|
+
if (evaluated0.dynamicProps) {
|
|
3620
|
+
evaluated0.props = undefined;
|
|
3621
|
+
}
|
|
3622
|
+
if (evaluated0.dynamicItems) {
|
|
3623
|
+
evaluated0.items = undefined;
|
|
3624
|
+
}
|
|
3625
|
+
const _errs0 = errors;
|
|
3626
|
+
let valid0 = false;
|
|
3627
|
+
const _errs1 = errors;
|
|
3628
|
+
if (!(validate53(data, { instancePath, parentData, parentDataProperty, rootData, dynamicAnchors }))) {
|
|
3629
|
+
vErrors = vErrors === null ? validate53.errors : vErrors.concat(validate53.errors);
|
|
3630
|
+
errors = vErrors.length;
|
|
3631
|
+
}
|
|
3632
|
+
var _valid0 = _errs1 === errors;
|
|
3633
|
+
valid0 = valid0 || _valid0;
|
|
3634
|
+
if (_valid0) {
|
|
3635
|
+
var props0 = true;
|
|
3636
|
+
}
|
|
3637
|
+
const _errs2 = errors;
|
|
3638
|
+
if (Array.isArray(data)) {
|
|
3639
|
+
const len0 = data.length;
|
|
3640
|
+
for (let i0 = 0; i0 < len0; i0++) {
|
|
3641
|
+
if (!(validate53(data[i0], { instancePath: instancePath + "/" + i0, parentData: data, parentDataProperty: i0, rootData, dynamicAnchors }))) {
|
|
3642
|
+
vErrors = vErrors === null ? validate53.errors : vErrors.concat(validate53.errors);
|
|
3643
|
+
errors = vErrors.length;
|
|
3644
|
+
}
|
|
3645
|
+
}
|
|
3646
|
+
}
|
|
3647
|
+
else {
|
|
3648
|
+
const err0 = createError(instancePath, "#/anyOf/1/type", "type", { type: "array" }, 4);
|
|
3649
|
+
vErrors = pushError(vErrors, err0);
|
|
3650
|
+
errors++;
|
|
3651
|
+
}
|
|
3652
|
+
var _valid0 = _errs2 === errors;
|
|
3653
|
+
valid0 = valid0 || _valid0;
|
|
3654
|
+
if (_valid0) {
|
|
3655
|
+
var items0 = true;
|
|
3656
|
+
}
|
|
3657
|
+
const _errs5 = errors;
|
|
3658
|
+
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
3659
|
+
if (data["@context"] !== undefined) {
|
|
3660
|
+
if (!(validate55(data["@context"], { instancePath: instancePath + "/@context", parentData: data, parentDataProperty: "@context", rootData, dynamicAnchors }))) {
|
|
3661
|
+
vErrors = vErrors === null ? validate55.errors : vErrors.concat(validate55.errors);
|
|
3662
|
+
errors = vErrors.length;
|
|
3663
|
+
}
|
|
3664
|
+
}
|
|
3665
|
+
if (data["@graph"] !== undefined) {
|
|
3666
|
+
let data2 = data["@graph"];
|
|
3667
|
+
const _errs9 = errors;
|
|
3668
|
+
let valid4 = false;
|
|
3669
|
+
const _errs10 = errors;
|
|
3670
|
+
if (!(validate87(data2, { instancePath: instancePath + "/@graph", parentData: data, parentDataProperty: "@graph", rootData, dynamicAnchors }))) {
|
|
3671
|
+
vErrors = vErrors === null ? validate87.errors : vErrors.concat(validate87.errors);
|
|
3672
|
+
errors = vErrors.length;
|
|
3673
|
+
}
|
|
3674
|
+
else {
|
|
3675
|
+
var props2 = validate87.evaluated.props;
|
|
3676
|
+
}
|
|
3677
|
+
var _valid1 = _errs10 === errors;
|
|
3678
|
+
valid4 = valid4 || _valid1;
|
|
3679
|
+
const _errs11 = errors;
|
|
3680
|
+
if (!(validate53(data2, { instancePath: instancePath + "/@graph", parentData: data, parentDataProperty: "@graph", rootData, dynamicAnchors }))) {
|
|
3681
|
+
vErrors = vErrors === null ? validate53.errors : vErrors.concat(validate53.errors);
|
|
3682
|
+
errors = vErrors.length;
|
|
3683
|
+
}
|
|
3684
|
+
var _valid1 = _errs11 === errors;
|
|
3685
|
+
valid4 = valid4 || _valid1;
|
|
3686
|
+
if (_valid1) {
|
|
3687
|
+
if (props2 !== true) {
|
|
3688
|
+
props2 = true;
|
|
3689
|
+
}
|
|
3690
|
+
}
|
|
3691
|
+
const _errs12 = errors;
|
|
3692
|
+
if (Array.isArray(data2)) {
|
|
3693
|
+
const len1 = data2.length;
|
|
3694
|
+
for (let i1 = 0; i1 < len1; i1++) {
|
|
3695
|
+
let data3 = data2[i1];
|
|
3696
|
+
const _errs15 = errors;
|
|
3697
|
+
let valid7 = false;
|
|
3698
|
+
const _errs16 = errors;
|
|
3699
|
+
if (!(validate87(data3, { instancePath: instancePath + "/@graph/" + i1, parentData: data2, parentDataProperty: i1, rootData, dynamicAnchors }))) {
|
|
3700
|
+
vErrors = vErrors === null ? validate87.errors : vErrors.concat(validate87.errors);
|
|
3701
|
+
errors = vErrors.length;
|
|
3702
|
+
}
|
|
3703
|
+
else {
|
|
3704
|
+
var props3 = validate87.evaluated.props;
|
|
3705
|
+
}
|
|
3706
|
+
var _valid2 = _errs16 === errors;
|
|
3707
|
+
valid7 = valid7 || _valid2;
|
|
3708
|
+
const _errs17 = errors;
|
|
3709
|
+
if (!(validate53(data3, { instancePath: instancePath + "/@graph/" + i1, parentData: data2, parentDataProperty: i1, rootData, dynamicAnchors }))) {
|
|
3710
|
+
vErrors = vErrors === null ? validate53.errors : vErrors.concat(validate53.errors);
|
|
3711
|
+
errors = vErrors.length;
|
|
3712
|
+
}
|
|
3713
|
+
var _valid2 = _errs17 === errors;
|
|
3714
|
+
valid7 = valid7 || _valid2;
|
|
3715
|
+
if (_valid2) {
|
|
3716
|
+
if (props3 !== true) {
|
|
3717
|
+
props3 = true;
|
|
3718
|
+
}
|
|
3719
|
+
}
|
|
3720
|
+
if (!valid7) {
|
|
3721
|
+
const err1 = createError(instancePath + "/@graph/" + i1, "#/anyOf/2/properties/%40graph/anyOf/2/items/anyOf", "anyOf", {}, 1);
|
|
3722
|
+
vErrors = pushError(vErrors, err1);
|
|
3723
|
+
errors++;
|
|
3724
|
+
}
|
|
3725
|
+
else {
|
|
3726
|
+
errors = _errs15;
|
|
3727
|
+
if (vErrors !== null) {
|
|
3728
|
+
if (_errs15) {
|
|
3729
|
+
vErrors.length = _errs15;
|
|
3730
|
+
}
|
|
3731
|
+
else {
|
|
3732
|
+
vErrors = null;
|
|
3733
|
+
}
|
|
3734
|
+
}
|
|
3735
|
+
}
|
|
3736
|
+
}
|
|
3737
|
+
}
|
|
3738
|
+
else {
|
|
3739
|
+
const err2 = createError(instancePath + "/@graph", "#/anyOf/2/properties/%40graph/anyOf/2/type", "type", { type: "array" }, 4);
|
|
3740
|
+
vErrors = pushError(vErrors, err2);
|
|
3741
|
+
errors++;
|
|
3742
|
+
}
|
|
3743
|
+
var _valid1 = _errs12 === errors;
|
|
3744
|
+
valid4 = valid4 || _valid1;
|
|
3745
|
+
if (!valid4) {
|
|
3746
|
+
const err3 = createError(instancePath + "/@graph", "#/anyOf/2/properties/%40graph/anyOf", "anyOf", {}, 1);
|
|
3747
|
+
vErrors = pushError(vErrors, err3);
|
|
3748
|
+
errors++;
|
|
3749
|
+
}
|
|
3750
|
+
else {
|
|
3751
|
+
errors = _errs9;
|
|
3752
|
+
if (vErrors !== null) {
|
|
3753
|
+
if (_errs9) {
|
|
3754
|
+
vErrors.length = _errs9;
|
|
3755
|
+
}
|
|
3756
|
+
else {
|
|
3757
|
+
vErrors = null;
|
|
3758
|
+
}
|
|
3759
|
+
}
|
|
3760
|
+
}
|
|
3761
|
+
}
|
|
3762
|
+
}
|
|
3763
|
+
else {
|
|
3764
|
+
const err4 = createError(instancePath, "#/anyOf/2/type", "type", { type: "object" }, 9);
|
|
3765
|
+
vErrors = pushError(vErrors, err4);
|
|
3766
|
+
errors++;
|
|
3767
|
+
}
|
|
3768
|
+
var _valid0 = _errs5 === errors;
|
|
3769
|
+
valid0 = valid0 || _valid0;
|
|
3770
|
+
if (_valid0) {
|
|
3771
|
+
if (props0 !== true) {
|
|
3772
|
+
props0 = props0 || {};
|
|
3773
|
+
props0["@context"] = true;
|
|
3774
|
+
props0["@graph"] = true;
|
|
3775
|
+
}
|
|
3776
|
+
}
|
|
3777
|
+
if (!valid0) {
|
|
3778
|
+
const err5 = createError(instancePath, "#/anyOf", "anyOf", {}, 1);
|
|
3779
|
+
vErrors = pushError(vErrors, err5);
|
|
3780
|
+
errors++;
|
|
3781
|
+
}
|
|
3782
|
+
else {
|
|
3783
|
+
errors = _errs0;
|
|
3784
|
+
if (vErrors !== null) {
|
|
3785
|
+
if (_errs0) {
|
|
3786
|
+
vErrors.length = _errs0;
|
|
3787
|
+
}
|
|
3788
|
+
else {
|
|
3789
|
+
vErrors = null;
|
|
3790
|
+
}
|
|
3791
|
+
}
|
|
3792
|
+
}
|
|
3793
|
+
validate52.errors = vErrors;
|
|
3794
|
+
evaluated0.props = props0;
|
|
3795
|
+
evaluated0.items = items0;
|
|
3796
|
+
return errors === 0;
|
|
3797
|
+
}
|
|
3798
|
+
validate52.evaluated = { "dynamicProps": true, "dynamicItems": true };
|
|
3799
|
+
/**
|
|
3800
|
+
* Compiled validator for the JsonLdObject schema.
|
|
3801
|
+
*/
|
|
3802
|
+
export const CompiledJsonLdObject = validate54;
|
|
3803
|
+
/**
|
|
3804
|
+
* Compiled validator for the JsonLdNodeObject schema.
|
|
3805
|
+
*/
|
|
3806
|
+
export const CompiledJsonLdNodeObject = validate53;
|
|
3807
|
+
/**
|
|
3808
|
+
* Compiled validator for the JsonLdNodePrimitive schema.
|
|
3809
|
+
*/
|
|
3810
|
+
export const CompiledJsonLdNodePrimitive = validate83;
|
|
3811
|
+
/**
|
|
3812
|
+
* Compiled validator for the JsonLdGraphObject schema.
|
|
3813
|
+
*/
|
|
3814
|
+
export const CompiledJsonLdGraphObject = validate84;
|
|
3815
|
+
/**
|
|
3816
|
+
* Compiled validator for the JsonLdValueObject schema.
|
|
3817
|
+
*/
|
|
3818
|
+
export const CompiledJsonLdValueObject = validate87;
|
|
3819
|
+
/**
|
|
3820
|
+
* Compiled validator for the JsonLdListObject schema.
|
|
3821
|
+
*/
|
|
3822
|
+
export const CompiledJsonLdListObject = validate92;
|
|
3823
|
+
/**
|
|
3824
|
+
* Compiled validator for the JsonLdSetObject schema.
|
|
3825
|
+
*/
|
|
3826
|
+
export const CompiledJsonLdSetObject = validate98;
|
|
3827
|
+
/**
|
|
3828
|
+
* Compiled validator for the JsonLdLanguageMap schema.
|
|
3829
|
+
*/
|
|
3830
|
+
export const CompiledJsonLdLanguageMap = validate104;
|
|
3831
|
+
/**
|
|
3832
|
+
* Compiled validator for the JsonLdIndexMap schema.
|
|
3833
|
+
*/
|
|
3834
|
+
export const CompiledJsonLdIndexMap = validate106;
|
|
3835
|
+
/**
|
|
3836
|
+
* Compiled validator for the JsonLdIndexMapItem schema.
|
|
3837
|
+
*/
|
|
3838
|
+
export const CompiledJsonLdIndexMapItem = validate107;
|
|
3839
|
+
/**
|
|
3840
|
+
* Compiled validator for the JsonLdIdMap schema.
|
|
3841
|
+
*/
|
|
3842
|
+
export const CompiledJsonLdIdMap = validate115;
|
|
3843
|
+
/**
|
|
3844
|
+
* Compiled validator for the JsonLdTypeMap schema.
|
|
3845
|
+
*/
|
|
3846
|
+
export const CompiledJsonLdTypeMap = validate117;
|
|
3847
|
+
/**
|
|
3848
|
+
* Compiled validator for the JsonLdIncludedBlock schema.
|
|
3849
|
+
*/
|
|
3850
|
+
export const CompiledJsonLdIncludedBlock = validate71;
|
|
3851
|
+
/**
|
|
3852
|
+
* Compiled validator for the JsonLdContextDefinition schema.
|
|
3853
|
+
*/
|
|
3854
|
+
export const CompiledJsonLdContextDefinition = validate57;
|
|
3855
|
+
/**
|
|
3856
|
+
* Compiled validator for the JsonLdContextDefinitionRoot schema.
|
|
3857
|
+
*/
|
|
3858
|
+
export const CompiledJsonLdContextDefinitionRoot = validate55;
|
|
3859
|
+
/**
|
|
3860
|
+
* Compiled validator for the JsonLdContextDefinitionElement schema.
|
|
3861
|
+
*/
|
|
3862
|
+
export const CompiledJsonLdContextDefinitionElement = validate56;
|
|
3863
|
+
/**
|
|
3864
|
+
* Compiled validator for the JsonLdExpandedTermDefinition schema.
|
|
3865
|
+
*/
|
|
3866
|
+
export const CompiledJsonLdExpandedTermDefinition = validate58;
|
|
3867
|
+
/**
|
|
3868
|
+
* Compiled validator for the JsonLdListOrSetItem schema.
|
|
3869
|
+
*/
|
|
3870
|
+
export const CompiledJsonLdListOrSetItem = validate93;
|
|
3871
|
+
/**
|
|
3872
|
+
* Compiled validator for the JsonLdContainerType schema.
|
|
3873
|
+
*/
|
|
3874
|
+
export const CompiledJsonLdContainerType = validate59;
|
|
3875
|
+
/**
|
|
3876
|
+
* Compiled validator for the JsonLdContainerTypeArray schema.
|
|
3877
|
+
*/
|
|
3878
|
+
export const CompiledJsonLdContainerTypeArray = validate62;
|
|
3879
|
+
/**
|
|
3880
|
+
* Compiled validator for the JsonLdJsonPrimitive schema.
|
|
3881
|
+
*/
|
|
3882
|
+
export const CompiledJsonLdJsonPrimitive = validate75;
|
|
3883
|
+
/**
|
|
3884
|
+
* Compiled validator for the JsonLdJsonArray schema.
|
|
3885
|
+
*/
|
|
3886
|
+
export const CompiledJsonLdJsonArray = validate77;
|
|
3887
|
+
/**
|
|
3888
|
+
* Compiled validator for the JsonLdJsonObject schema.
|
|
3889
|
+
*/
|
|
3890
|
+
export const CompiledJsonLdJsonObject = validate73;
|
|
3891
|
+
/**
|
|
3892
|
+
* Compiled validator for the JsonLdJsonValue schema.
|
|
3893
|
+
*/
|
|
3894
|
+
export const CompiledJsonLdJsonValue = validate74;
|
|
3895
|
+
//# sourceMappingURL=validators.js.map
|