aboutsummaryrefslogtreecommitdiff
path: root/sandbox/testAppNevena/Front/node_modules/ajv/lib/refs
diff options
context:
space:
mode:
authorNevena Bojovic <nenabojov@gmail.com>2022-03-01 20:05:50 +0100
committerNevena Bojovic <nenabojov@gmail.com>2022-03-01 20:05:50 +0100
commit291803c31f829fe0d32bb3207bc11def95a7408c (patch)
treec7d43107d79291b19d8c9eceefbe91c9f9a52acf /sandbox/testAppNevena/Front/node_modules/ajv/lib/refs
parent1fa69862057db4db53cfda5be9c24b4228ef63f7 (diff)
Urađena test aplikacija. Povezan front i back.
Diffstat (limited to 'sandbox/testAppNevena/Front/node_modules/ajv/lib/refs')
-rw-r--r--sandbox/testAppNevena/Front/node_modules/ajv/lib/refs/data.json13
-rw-r--r--sandbox/testAppNevena/Front/node_modules/ajv/lib/refs/json-schema-2019-09/index.ts28
-rw-r--r--sandbox/testAppNevena/Front/node_modules/ajv/lib/refs/json-schema-2019-09/meta/applicator.json53
-rw-r--r--sandbox/testAppNevena/Front/node_modules/ajv/lib/refs/json-schema-2019-09/meta/content.json17
-rw-r--r--sandbox/testAppNevena/Front/node_modules/ajv/lib/refs/json-schema-2019-09/meta/core.json57
-rw-r--r--sandbox/testAppNevena/Front/node_modules/ajv/lib/refs/json-schema-2019-09/meta/format.json14
-rw-r--r--sandbox/testAppNevena/Front/node_modules/ajv/lib/refs/json-schema-2019-09/meta/meta-data.json37
-rw-r--r--sandbox/testAppNevena/Front/node_modules/ajv/lib/refs/json-schema-2019-09/meta/validation.json90
-rw-r--r--sandbox/testAppNevena/Front/node_modules/ajv/lib/refs/json-schema-2019-09/schema.json39
-rw-r--r--sandbox/testAppNevena/Front/node_modules/ajv/lib/refs/json-schema-2020-12/index.ts30
-rw-r--r--sandbox/testAppNevena/Front/node_modules/ajv/lib/refs/json-schema-2020-12/meta/applicator.json48
-rw-r--r--sandbox/testAppNevena/Front/node_modules/ajv/lib/refs/json-schema-2020-12/meta/content.json17
-rw-r--r--sandbox/testAppNevena/Front/node_modules/ajv/lib/refs/json-schema-2020-12/meta/core.json51
-rw-r--r--sandbox/testAppNevena/Front/node_modules/ajv/lib/refs/json-schema-2020-12/meta/format-annotation.json14
-rw-r--r--sandbox/testAppNevena/Front/node_modules/ajv/lib/refs/json-schema-2020-12/meta/meta-data.json37
-rw-r--r--sandbox/testAppNevena/Front/node_modules/ajv/lib/refs/json-schema-2020-12/meta/unevaluated.json15
-rw-r--r--sandbox/testAppNevena/Front/node_modules/ajv/lib/refs/json-schema-2020-12/meta/validation.json90
-rw-r--r--sandbox/testAppNevena/Front/node_modules/ajv/lib/refs/json-schema-2020-12/schema.json55
-rw-r--r--sandbox/testAppNevena/Front/node_modules/ajv/lib/refs/json-schema-draft-06.json137
-rw-r--r--sandbox/testAppNevena/Front/node_modules/ajv/lib/refs/json-schema-draft-07.json151
-rw-r--r--sandbox/testAppNevena/Front/node_modules/ajv/lib/refs/json-schema-secure.json88
-rw-r--r--sandbox/testAppNevena/Front/node_modules/ajv/lib/refs/jtd-schema.ts130
22 files changed, 1211 insertions, 0 deletions
diff --git a/sandbox/testAppNevena/Front/node_modules/ajv/lib/refs/data.json b/sandbox/testAppNevena/Front/node_modules/ajv/lib/refs/data.json
new file mode 100644
index 00000000..9ffc9f5c
--- /dev/null
+++ b/sandbox/testAppNevena/Front/node_modules/ajv/lib/refs/data.json
@@ -0,0 +1,13 @@
+{
+ "$id": "https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#",
+ "description": "Meta-schema for $data reference (JSON AnySchema extension proposal)",
+ "type": "object",
+ "required": ["$data"],
+ "properties": {
+ "$data": {
+ "type": "string",
+ "anyOf": [{"format": "relative-json-pointer"}, {"format": "json-pointer"}]
+ }
+ },
+ "additionalProperties": false
+}
diff --git a/sandbox/testAppNevena/Front/node_modules/ajv/lib/refs/json-schema-2019-09/index.ts b/sandbox/testAppNevena/Front/node_modules/ajv/lib/refs/json-schema-2019-09/index.ts
new file mode 100644
index 00000000..b6ea7195
--- /dev/null
+++ b/sandbox/testAppNevena/Front/node_modules/ajv/lib/refs/json-schema-2019-09/index.ts
@@ -0,0 +1,28 @@
+import type Ajv from "../../core"
+import type {AnySchemaObject} from "../../types"
+import * as metaSchema from "./schema.json"
+import * as applicator from "./meta/applicator.json"
+import * as content from "./meta/content.json"
+import * as core from "./meta/core.json"
+import * as format from "./meta/format.json"
+import * as metadata from "./meta/meta-data.json"
+import * as validation from "./meta/validation.json"
+
+const META_SUPPORT_DATA = ["/properties"]
+
+export default function addMetaSchema2019(this: Ajv, $data?: boolean): Ajv {
+ ;[
+ metaSchema,
+ applicator,
+ content,
+ core,
+ with$data(this, format),
+ metadata,
+ with$data(this, validation),
+ ].forEach((sch) => this.addMetaSchema(sch, undefined, false))
+ return this
+
+ function with$data(ajv: Ajv, sch: AnySchemaObject): AnySchemaObject {
+ return $data ? ajv.$dataMetaSchema(sch, META_SUPPORT_DATA) : sch
+ }
+}
diff --git a/sandbox/testAppNevena/Front/node_modules/ajv/lib/refs/json-schema-2019-09/meta/applicator.json b/sandbox/testAppNevena/Front/node_modules/ajv/lib/refs/json-schema-2019-09/meta/applicator.json
new file mode 100644
index 00000000..c5e91cf2
--- /dev/null
+++ b/sandbox/testAppNevena/Front/node_modules/ajv/lib/refs/json-schema-2019-09/meta/applicator.json
@@ -0,0 +1,53 @@
+{
+ "$schema": "https://json-schema.org/draft/2019-09/schema",
+ "$id": "https://json-schema.org/draft/2019-09/meta/applicator",
+ "$vocabulary": {
+ "https://json-schema.org/draft/2019-09/vocab/applicator": true
+ },
+ "$recursiveAnchor": true,
+
+ "title": "Applicator vocabulary meta-schema",
+ "type": ["object", "boolean"],
+ "properties": {
+ "additionalItems": {"$recursiveRef": "#"},
+ "unevaluatedItems": {"$recursiveRef": "#"},
+ "items": {
+ "anyOf": [{"$recursiveRef": "#"}, {"$ref": "#/$defs/schemaArray"}]
+ },
+ "contains": {"$recursiveRef": "#"},
+ "additionalProperties": {"$recursiveRef": "#"},
+ "unevaluatedProperties": {"$recursiveRef": "#"},
+ "properties": {
+ "type": "object",
+ "additionalProperties": {"$recursiveRef": "#"},
+ "default": {}
+ },
+ "patternProperties": {
+ "type": "object",
+ "additionalProperties": {"$recursiveRef": "#"},
+ "propertyNames": {"format": "regex"},
+ "default": {}
+ },
+ "dependentSchemas": {
+ "type": "object",
+ "additionalProperties": {
+ "$recursiveRef": "#"
+ }
+ },
+ "propertyNames": {"$recursiveRef": "#"},
+ "if": {"$recursiveRef": "#"},
+ "then": {"$recursiveRef": "#"},
+ "else": {"$recursiveRef": "#"},
+ "allOf": {"$ref": "#/$defs/schemaArray"},
+ "anyOf": {"$ref": "#/$defs/schemaArray"},
+ "oneOf": {"$ref": "#/$defs/schemaArray"},
+ "not": {"$recursiveRef": "#"}
+ },
+ "$defs": {
+ "schemaArray": {
+ "type": "array",
+ "minItems": 1,
+ "items": {"$recursiveRef": "#"}
+ }
+ }
+}
diff --git a/sandbox/testAppNevena/Front/node_modules/ajv/lib/refs/json-schema-2019-09/meta/content.json b/sandbox/testAppNevena/Front/node_modules/ajv/lib/refs/json-schema-2019-09/meta/content.json
new file mode 100644
index 00000000..b8f63734
--- /dev/null
+++ b/sandbox/testAppNevena/Front/node_modules/ajv/lib/refs/json-schema-2019-09/meta/content.json
@@ -0,0 +1,17 @@
+{
+ "$schema": "https://json-schema.org/draft/2019-09/schema",
+ "$id": "https://json-schema.org/draft/2019-09/meta/content",
+ "$vocabulary": {
+ "https://json-schema.org/draft/2019-09/vocab/content": true
+ },
+ "$recursiveAnchor": true,
+
+ "title": "Content vocabulary meta-schema",
+
+ "type": ["object", "boolean"],
+ "properties": {
+ "contentMediaType": {"type": "string"},
+ "contentEncoding": {"type": "string"},
+ "contentSchema": {"$recursiveRef": "#"}
+ }
+}
diff --git a/sandbox/testAppNevena/Front/node_modules/ajv/lib/refs/json-schema-2019-09/meta/core.json b/sandbox/testAppNevena/Front/node_modules/ajv/lib/refs/json-schema-2019-09/meta/core.json
new file mode 100644
index 00000000..f71adbff
--- /dev/null
+++ b/sandbox/testAppNevena/Front/node_modules/ajv/lib/refs/json-schema-2019-09/meta/core.json
@@ -0,0 +1,57 @@
+{
+ "$schema": "https://json-schema.org/draft/2019-09/schema",
+ "$id": "https://json-schema.org/draft/2019-09/meta/core",
+ "$vocabulary": {
+ "https://json-schema.org/draft/2019-09/vocab/core": true
+ },
+ "$recursiveAnchor": true,
+
+ "title": "Core vocabulary meta-schema",
+ "type": ["object", "boolean"],
+ "properties": {
+ "$id": {
+ "type": "string",
+ "format": "uri-reference",
+ "$comment": "Non-empty fragments not allowed.",
+ "pattern": "^[^#]*#?$"
+ },
+ "$schema": {
+ "type": "string",
+ "format": "uri"
+ },
+ "$anchor": {
+ "type": "string",
+ "pattern": "^[A-Za-z][-A-Za-z0-9.:_]*$"
+ },
+ "$ref": {
+ "type": "string",
+ "format": "uri-reference"
+ },
+ "$recursiveRef": {
+ "type": "string",
+ "format": "uri-reference"
+ },
+ "$recursiveAnchor": {
+ "type": "boolean",
+ "default": false
+ },
+ "$vocabulary": {
+ "type": "object",
+ "propertyNames": {
+ "type": "string",
+ "format": "uri"
+ },
+ "additionalProperties": {
+ "type": "boolean"
+ }
+ },
+ "$comment": {
+ "type": "string"
+ },
+ "$defs": {
+ "type": "object",
+ "additionalProperties": {"$recursiveRef": "#"},
+ "default": {}
+ }
+ }
+}
diff --git a/sandbox/testAppNevena/Front/node_modules/ajv/lib/refs/json-schema-2019-09/meta/format.json b/sandbox/testAppNevena/Front/node_modules/ajv/lib/refs/json-schema-2019-09/meta/format.json
new file mode 100644
index 00000000..03ccfce2
--- /dev/null
+++ b/sandbox/testAppNevena/Front/node_modules/ajv/lib/refs/json-schema-2019-09/meta/format.json
@@ -0,0 +1,14 @@
+{
+ "$schema": "https://json-schema.org/draft/2019-09/schema",
+ "$id": "https://json-schema.org/draft/2019-09/meta/format",
+ "$vocabulary": {
+ "https://json-schema.org/draft/2019-09/vocab/format": true
+ },
+ "$recursiveAnchor": true,
+
+ "title": "Format vocabulary meta-schema",
+ "type": ["object", "boolean"],
+ "properties": {
+ "format": {"type": "string"}
+ }
+}
diff --git a/sandbox/testAppNevena/Front/node_modules/ajv/lib/refs/json-schema-2019-09/meta/meta-data.json b/sandbox/testAppNevena/Front/node_modules/ajv/lib/refs/json-schema-2019-09/meta/meta-data.json
new file mode 100644
index 00000000..0e194326
--- /dev/null
+++ b/sandbox/testAppNevena/Front/node_modules/ajv/lib/refs/json-schema-2019-09/meta/meta-data.json
@@ -0,0 +1,37 @@
+{
+ "$schema": "https://json-schema.org/draft/2019-09/schema",
+ "$id": "https://json-schema.org/draft/2019-09/meta/meta-data",
+ "$vocabulary": {
+ "https://json-schema.org/draft/2019-09/vocab/meta-data": true
+ },
+ "$recursiveAnchor": true,
+
+ "title": "Meta-data vocabulary meta-schema",
+
+ "type": ["object", "boolean"],
+ "properties": {
+ "title": {
+ "type": "string"
+ },
+ "description": {
+ "type": "string"
+ },
+ "default": true,
+ "deprecated": {
+ "type": "boolean",
+ "default": false
+ },
+ "readOnly": {
+ "type": "boolean",
+ "default": false
+ },
+ "writeOnly": {
+ "type": "boolean",
+ "default": false
+ },
+ "examples": {
+ "type": "array",
+ "items": true
+ }
+ }
+}
diff --git a/sandbox/testAppNevena/Front/node_modules/ajv/lib/refs/json-schema-2019-09/meta/validation.json b/sandbox/testAppNevena/Front/node_modules/ajv/lib/refs/json-schema-2019-09/meta/validation.json
new file mode 100644
index 00000000..7027a127
--- /dev/null
+++ b/sandbox/testAppNevena/Front/node_modules/ajv/lib/refs/json-schema-2019-09/meta/validation.json
@@ -0,0 +1,90 @@
+{
+ "$schema": "https://json-schema.org/draft/2019-09/schema",
+ "$id": "https://json-schema.org/draft/2019-09/meta/validation",
+ "$vocabulary": {
+ "https://json-schema.org/draft/2019-09/vocab/validation": true
+ },
+ "$recursiveAnchor": true,
+
+ "title": "Validation vocabulary meta-schema",
+ "type": ["object", "boolean"],
+ "properties": {
+ "multipleOf": {
+ "type": "number",
+ "exclusiveMinimum": 0
+ },
+ "maximum": {
+ "type": "number"
+ },
+ "exclusiveMaximum": {
+ "type": "number"
+ },
+ "minimum": {
+ "type": "number"
+ },
+ "exclusiveMinimum": {
+ "type": "number"
+ },
+ "maxLength": {"$ref": "#/$defs/nonNegativeInteger"},
+ "minLength": {"$ref": "#/$defs/nonNegativeIntegerDefault0"},
+ "pattern": {
+ "type": "string",
+ "format": "regex"
+ },
+ "maxItems": {"$ref": "#/$defs/nonNegativeInteger"},
+ "minItems": {"$ref": "#/$defs/nonNegativeIntegerDefault0"},
+ "uniqueItems": {
+ "type": "boolean",
+ "default": false
+ },
+ "maxContains": {"$ref": "#/$defs/nonNegativeInteger"},
+ "minContains": {
+ "$ref": "#/$defs/nonNegativeInteger",
+ "default": 1
+ },
+ "maxProperties": {"$ref": "#/$defs/nonNegativeInteger"},
+ "minProperties": {"$ref": "#/$defs/nonNegativeIntegerDefault0"},
+ "required": {"$ref": "#/$defs/stringArray"},
+ "dependentRequired": {
+ "type": "object",
+ "additionalProperties": {
+ "$ref": "#/$defs/stringArray"
+ }
+ },
+ "const": true,
+ "enum": {
+ "type": "array",
+ "items": true
+ },
+ "type": {
+ "anyOf": [
+ {"$ref": "#/$defs/simpleTypes"},
+ {
+ "type": "array",
+ "items": {"$ref": "#/$defs/simpleTypes"},
+ "minItems": 1,
+ "uniqueItems": true
+ }
+ ]
+ }
+ },
+ "$defs": {
+ "nonNegativeInteger": {
+ "type": "integer",
+ "minimum": 0
+ },
+ "nonNegativeIntegerDefault0": {
+ "$ref": "#/$defs/nonNegativeInteger",
+ "default": 0
+ },
+ "simpleTypes": {
+ "enum": ["array", "boolean", "integer", "null", "number", "object", "string"]
+ },
+ "stringArray": {
+ "type": "array",
+ "items": {"type": "string"},
+ "uniqueItems": true,
+ "default": []
+ }
+ }
+}
diff --git a/sandbox/testAppNevena/Front/node_modules/ajv/lib/refs/json-schema-2019-09/schema.json b/sandbox/testAppNevena/Front/node_modules/ajv/lib/refs/json-schema-2019-09/schema.json
new file mode 100644
index 00000000..54eb7157
--- /dev/null
+++ b/sandbox/testAppNevena/Front/node_modules/ajv/lib/refs/json-schema-2019-09/schema.json
@@ -0,0 +1,39 @@
+{
+ "$schema": "https://json-schema.org/draft/2019-09/schema",
+ "$id": "https://json-schema.org/draft/2019-09/schema",
+ "$vocabulary": {
+ "https://json-schema.org/draft/2019-09/vocab/core": true,
+ "https://json-schema.org/draft/2019-09/vocab/applicator": true,
+ "https://json-schema.org/draft/2019-09/vocab/validation": true,
+ "https://json-schema.org/draft/2019-09/vocab/meta-data": true,
+ "https://json-schema.org/draft/2019-09/vocab/format": false,
+ "https://json-schema.org/draft/2019-09/vocab/content": true
+ },
+ "$recursiveAnchor": true,
+
+ "title": "Core and Validation specifications meta-schema",
+ "allOf": [
+ {"$ref": "meta/core"},
+ {"$ref": "meta/applicator"},
+ {"$ref": "meta/validation"},
+ {"$ref": "meta/meta-data"},
+ {"$ref": "meta/format"},
+ {"$ref": "meta/content"}
+ ],
+ "type": ["object", "boolean"],
+ "properties": {
+ "definitions": {
+ "$comment": "While no longer an official keyword as it is replaced by $defs, this keyword is retained in the meta-schema to prevent incompatible extensions as it remains in common use.",
+ "type": "object",
+ "additionalProperties": {"$recursiveRef": "#"},
+ "default": {}
+ },
+ "dependencies": {
+ "$comment": "\"dependencies\" is no longer a keyword, but schema authors should avoid redefining it to facilitate a smooth transition to \"dependentSchemas\" and \"dependentRequired\"",
+ "type": "object",
+ "additionalProperties": {
+ "anyOf": [{"$recursiveRef": "#"}, {"$ref": "meta/validation#/$defs/stringArray"}]
+ }
+ }
+ }
+}
diff --git a/sandbox/testAppNevena/Front/node_modules/ajv/lib/refs/json-schema-2020-12/index.ts b/sandbox/testAppNevena/Front/node_modules/ajv/lib/refs/json-schema-2020-12/index.ts
new file mode 100644
index 00000000..8e850d08
--- /dev/null
+++ b/sandbox/testAppNevena/Front/node_modules/ajv/lib/refs/json-schema-2020-12/index.ts
@@ -0,0 +1,30 @@
+import type Ajv from "../../core"
+import type {AnySchemaObject} from "../../types"
+import * as metaSchema from "./schema.json"
+import * as applicator from "./meta/applicator.json"
+import * as unevaluated from "./meta/unevaluated.json"
+import * as content from "./meta/content.json"
+import * as core from "./meta/core.json"
+import * as format from "./meta/format-annotation.json"
+import * as metadata from "./meta/meta-data.json"
+import * as validation from "./meta/validation.json"
+
+const META_SUPPORT_DATA = ["/properties"]
+
+export default function addMetaSchema2020(this: Ajv, $data?: boolean): Ajv {
+ ;[
+ metaSchema,
+ applicator,
+ unevaluated,
+ content,
+ core,
+ with$data(this, format),
+ metadata,
+ with$data(this, validation),
+ ].forEach((sch) => this.addMetaSchema(sch, undefined, false))
+ return this
+
+ function with$data(ajv: Ajv, sch: AnySchemaObject): AnySchemaObject {
+ return $data ? ajv.$dataMetaSchema(sch, META_SUPPORT_DATA) : sch
+ }
+}
diff --git a/sandbox/testAppNevena/Front/node_modules/ajv/lib/refs/json-schema-2020-12/meta/applicator.json b/sandbox/testAppNevena/Front/node_modules/ajv/lib/refs/json-schema-2020-12/meta/applicator.json
new file mode 100644
index 00000000..674c913d
--- /dev/null
+++ b/sandbox/testAppNevena/Front/node_modules/ajv/lib/refs/json-schema-2020-12/meta/applicator.json
@@ -0,0 +1,48 @@
+{
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
+ "$id": "https://json-schema.org/draft/2020-12/meta/applicator",
+ "$vocabulary": {
+ "https://json-schema.org/draft/2020-12/vocab/applicator": true
+ },
+ "$dynamicAnchor": "meta",
+
+ "title": "Applicator vocabulary meta-schema",
+ "type": ["object", "boolean"],
+ "properties": {
+ "prefixItems": {"$ref": "#/$defs/schemaArray"},
+ "items": {"$dynamicRef": "#meta"},
+ "contains": {"$dynamicRef": "#meta"},
+ "additionalProperties": {"$dynamicRef": "#meta"},
+ "properties": {
+ "type": "object",
+ "additionalProperties": {"$dynamicRef": "#meta"},
+ "default": {}
+ },
+ "patternProperties": {
+ "type": "object",
+ "additionalProperties": {"$dynamicRef": "#meta"},
+ "propertyNames": {"format": "regex"},
+ "default": {}
+ },
+ "dependentSchemas": {
+ "type": "object",
+ "additionalProperties": {"$dynamicRef": "#meta"},
+ "default": {}
+ },
+ "propertyNames": {"$dynamicRef": "#meta"},
+ "if": {"$dynamicRef": "#meta"},
+ "then": {"$dynamicRef": "#meta"},
+ "else": {"$dynamicRef": "#meta"},
+ "allOf": {"$ref": "#/$defs/schemaArray"},
+ "anyOf": {"$ref": "#/$defs/schemaArray"},
+ "oneOf": {"$ref": "#/$defs/schemaArray"},
+ "not": {"$dynamicRef": "#meta"}
+ },
+ "$defs": {
+ "schemaArray": {
+ "type": "array",
+ "minItems": 1,
+ "items": {"$dynamicRef": "#meta"}
+ }
+ }
+}
diff --git a/sandbox/testAppNevena/Front/node_modules/ajv/lib/refs/json-schema-2020-12/meta/content.json b/sandbox/testAppNevena/Front/node_modules/ajv/lib/refs/json-schema-2020-12/meta/content.json
new file mode 100644
index 00000000..2ae23ddb
--- /dev/null
+++ b/sandbox/testAppNevena/Front/node_modules/ajv/lib/refs/json-schema-2020-12/meta/content.json
@@ -0,0 +1,17 @@
+{
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
+ "$id": "https://json-schema.org/draft/2020-12/meta/content",
+ "$vocabulary": {
+ "https://json-schema.org/draft/2020-12/vocab/content": true
+ },
+ "$dynamicAnchor": "meta",
+
+ "title": "Content vocabulary meta-schema",
+
+ "type": ["object", "boolean"],
+ "properties": {
+ "contentEncoding": {"type": "string"},
+ "contentMediaType": {"type": "string"},
+ "contentSchema": {"$dynamicRef": "#meta"}
+ }
+}
diff --git a/sandbox/testAppNevena/Front/node_modules/ajv/lib/refs/json-schema-2020-12/meta/core.json b/sandbox/testAppNevena/Front/node_modules/ajv/lib/refs/json-schema-2020-12/meta/core.json
new file mode 100644
index 00000000..4c8e5cb6
--- /dev/null
+++ b/sandbox/testAppNevena/Front/node_modules/ajv/lib/refs/json-schema-2020-12/meta/core.json
@@ -0,0 +1,51 @@
+{
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
+ "$id": "https://json-schema.org/draft/2020-12/meta/core",
+ "$vocabulary": {
+ "https://json-schema.org/draft/2020-12/vocab/core": true
+ },
+ "$dynamicAnchor": "meta",
+
+ "title": "Core vocabulary meta-schema",
+ "type": ["object", "boolean"],
+ "properties": {
+ "$id": {
+ "$ref": "#/$defs/uriReferenceString",
+ "$comment": "Non-empty fragments not allowed.",
+ "pattern": "^[^#]*#?$"
+ },
+ "$schema": {"$ref": "#/$defs/uriString"},
+ "$ref": {"$ref": "#/$defs/uriReferenceString"},
+ "$anchor": {"$ref": "#/$defs/anchorString"},
+ "$dynamicRef": {"$ref": "#/$defs/uriReferenceString"},
+ "$dynamicAnchor": {"$ref": "#/$defs/anchorString"},
+ "$vocabulary": {
+ "type": "object",
+ "propertyNames": {"$ref": "#/$defs/uriString"},
+ "additionalProperties": {
+ "type": "boolean"
+ }
+ },
+ "$comment": {
+ "type": "string"
+ },
+ "$defs": {
+ "type": "object",
+ "additionalProperties": {"$dynamicRef": "#meta"}
+ }
+ },
+ "$defs": {
+ "anchorString": {
+ "type": "string",
+ "pattern": "^[A-Za-z_][-A-Za-z0-9._]*$"
+ },
+ "uriString": {
+ "type": "string",
+ "format": "uri"
+ },
+ "uriReferenceString": {
+ "type": "string",
+ "format": "uri-reference"
+ }
+ }
+}
diff --git a/sandbox/testAppNevena/Front/node_modules/ajv/lib/refs/json-schema-2020-12/meta/format-annotation.json b/sandbox/testAppNevena/Front/node_modules/ajv/lib/refs/json-schema-2020-12/meta/format-annotation.json
new file mode 100644
index 00000000..83c26e35
--- /dev/null
+++ b/sandbox/testAppNevena/Front/node_modules/ajv/lib/refs/json-schema-2020-12/meta/format-annotation.json
@@ -0,0 +1,14 @@
+{
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
+ "$id": "https://json-schema.org/draft/2020-12/meta/format-annotation",
+ "$vocabulary": {
+ "https://json-schema.org/draft/2020-12/vocab/format-annotation": true
+ },
+ "$dynamicAnchor": "meta",
+
+ "title": "Format vocabulary meta-schema for annotation results",
+ "type": ["object", "boolean"],
+ "properties": {
+ "format": {"type": "string"}
+ }
+}
diff --git a/sandbox/testAppNevena/Front/node_modules/ajv/lib/refs/json-schema-2020-12/meta/meta-data.json b/sandbox/testAppNevena/Front/node_modules/ajv/lib/refs/json-schema-2020-12/meta/meta-data.json
new file mode 100644
index 00000000..11946fb5
--- /dev/null
+++ b/sandbox/testAppNevena/Front/node_modules/ajv/lib/refs/json-schema-2020-12/meta/meta-data.json
@@ -0,0 +1,37 @@
+{
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
+ "$id": "https://json-schema.org/draft/2020-12/meta/meta-data",
+ "$vocabulary": {
+ "https://json-schema.org/draft/2020-12/vocab/meta-data": true
+ },
+ "$dynamicAnchor": "meta",
+
+ "title": "Meta-data vocabulary meta-schema",
+
+ "type": ["object", "boolean"],
+ "properties": {
+ "title": {
+ "type": "string"
+ },
+ "description": {
+ "type": "string"
+ },
+ "default": true,
+ "deprecated": {
+ "type": "boolean",
+ "default": false
+ },
+ "readOnly": {
+ "type": "boolean",
+ "default": false
+ },
+ "writeOnly": {
+ "type": "boolean",
+ "default": false
+ },
+ "examples": {
+ "type": "array",
+ "items": true
+ }
+ }
+}
diff --git a/sandbox/testAppNevena/Front/node_modules/ajv/lib/refs/json-schema-2020-12/meta/unevaluated.json b/sandbox/testAppNevena/Front/node_modules/ajv/lib/refs/json-schema-2020-12/meta/unevaluated.json
new file mode 100644
index 00000000..5e4b203b
--- /dev/null
+++ b/sandbox/testAppNevena/Front/node_modules/ajv/lib/refs/json-schema-2020-12/meta/unevaluated.json
@@ -0,0 +1,15 @@
+{
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
+ "$id": "https://json-schema.org/draft/2020-12/meta/unevaluated",
+ "$vocabulary": {
+ "https://json-schema.org/draft/2020-12/vocab/unevaluated": true
+ },
+ "$dynamicAnchor": "meta",
+
+ "title": "Unevaluated applicator vocabulary meta-schema",
+ "type": ["object", "boolean"],
+ "properties": {
+ "unevaluatedItems": {"$dynamicRef": "#meta"},
+ "unevaluatedProperties": {"$dynamicRef": "#meta"}
+ }
+}
diff --git a/sandbox/testAppNevena/Front/node_modules/ajv/lib/refs/json-schema-2020-12/meta/validation.json b/sandbox/testAppNevena/Front/node_modules/ajv/lib/refs/json-schema-2020-12/meta/validation.json
new file mode 100644
index 00000000..e0ae13d9
--- /dev/null
+++ b/sandbox/testAppNevena/Front/node_modules/ajv/lib/refs/json-schema-2020-12/meta/validation.json
@@ -0,0 +1,90 @@
+{
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
+ "$id": "https://json-schema.org/draft/2020-12/meta/validation",
+ "$vocabulary": {
+ "https://json-schema.org/draft/2020-12/vocab/validation": true
+ },
+ "$dynamicAnchor": "meta",
+
+ "title": "Validation vocabulary meta-schema",
+ "type": ["object", "boolean"],
+ "properties": {
+ "type": {
+ "anyOf": [
+ {"$ref": "#/$defs/simpleTypes"},
+ {
+ "type": "array",
+ "items": {"$ref": "#/$defs/simpleTypes"},
+ "minItems": 1,
+ "uniqueItems": true
+ }
+ ]
+ },
+ "const": true,
+ "enum": {
+ "type": "array",
+ "items": true
+ },
+ "multipleOf": {
+ "type": "number",
+ "exclusiveMinimum": 0
+ },
+ "maximum": {
+ "type": "number"
+ },
+ "exclusiveMaximum": {
+ "type": "number"
+ },
+ "minimum": {
+ "type": "number"
+ },
+ "exclusiveMinimum": {
+ "type": "number"
+ },
+ "maxLength": {"$ref": "#/$defs/nonNegativeInteger"},
+ "minLength": {"$ref": "#/$defs/nonNegativeIntegerDefault0"},
+ "pattern": {
+ "type": "string",
+ "format": "regex"
+ },
+ "maxItems": {"$ref": "#/$defs/nonNegativeInteger"},
+ "minItems": {"$ref": "#/$defs/nonNegativeIntegerDefault0"},
+ "uniqueItems": {
+ "type": "boolean",
+ "default": false
+ },
+ "maxContains": {"$ref": "#/$defs/nonNegativeInteger"},
+ "minContains": {
+ "$ref": "#/$defs/nonNegativeInteger",
+ "default": 1
+ },
+ "maxProperties": {"$ref": "#/$defs/nonNegativeInteger"},
+ "minProperties": {"$ref": "#/$defs/nonNegativeIntegerDefault0"},
+ "required": {"$ref": "#/$defs/stringArray"},
+ "dependentRequired": {
+ "type": "object",
+ "additionalProperties": {
+ "$ref": "#/$defs/stringArray"
+ }
+ }
+ },
+ "$defs": {
+ "nonNegativeInteger": {
+ "type": "integer",
+ "minimum": 0
+ },
+ "nonNegativeIntegerDefault0": {
+ "$ref": "#/$defs/nonNegativeInteger",
+ "default": 0
+ },
+ "simpleTypes": {
+ "enum": ["array", "boolean", "integer", "null", "number", "object", "string"]
+ },
+ "stringArray": {
+ "type": "array",
+ "items": {"type": "string"},
+ "uniqueItems": true,
+ "default": []
+ }
+ }
+}
diff --git a/sandbox/testAppNevena/Front/node_modules/ajv/lib/refs/json-schema-2020-12/schema.json b/sandbox/testAppNevena/Front/node_modules/ajv/lib/refs/json-schema-2020-12/schema.json
new file mode 100644
index 00000000..1c68270f
--- /dev/null
+++ b/sandbox/testAppNevena/Front/node_modules/ajv/lib/refs/json-schema-2020-12/schema.json
@@ -0,0 +1,55 @@
+{
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
+ "$id": "https://json-schema.org/draft/2020-12/schema",
+ "$vocabulary": {
+ "https://json-schema.org/draft/2020-12/vocab/core": true,
+ "https://json-schema.org/draft/2020-12/vocab/applicator": true,
+ "https://json-schema.org/draft/2020-12/vocab/unevaluated": true,
+ "https://json-schema.org/draft/2020-12/vocab/validation": true,
+ "https://json-schema.org/draft/2020-12/vocab/meta-data": true,
+ "https://json-schema.org/draft/2020-12/vocab/format-annotation": true,
+ "https://json-schema.org/draft/2020-12/vocab/content": true
+ },
+ "$dynamicAnchor": "meta",
+
+ "title": "Core and Validation specifications meta-schema",
+ "allOf": [
+ {"$ref": "meta/core"},
+ {"$ref": "meta/applicator"},
+ {"$ref": "meta/unevaluated"},
+ {"$ref": "meta/validation"},
+ {"$ref": "meta/meta-data"},
+ {"$ref": "meta/format-annotation"},
+ {"$ref": "meta/content"}
+ ],
+ "type": ["object", "boolean"],
+ "$comment": "This meta-schema also defines keywords that have appeared in previous drafts in order to prevent incompatible extensions as they remain in common use.",
+ "properties": {
+ "definitions": {
+ "$comment": "\"definitions\" has been replaced by \"$defs\".",
+ "type": "object",
+ "additionalProperties": {"$dynamicRef": "#meta"},
+ "deprecated": true,
+ "default": {}
+ },
+ "dependencies": {
+ "$comment": "\"dependencies\" has been split and replaced by \"dependentSchemas\" and \"dependentRequired\" in order to serve their differing semantics.",
+ "type": "object",
+ "additionalProperties": {
+ "anyOf": [{"$dynamicRef": "#meta"}, {"$ref": "meta/validation#/$defs/stringArray"}]
+ },
+ "deprecated": true,
+ "default": {}
+ },
+ "$recursiveAnchor": {
+ "$comment": "\"$recursiveAnchor\" has been replaced by \"$dynamicAnchor\".",
+ "$ref": "meta/core#/$defs/anchorString",
+ "deprecated": true
+ },
+ "$recursiveRef": {
+ "$comment": "\"$recursiveRef\" has been replaced by \"$dynamicRef\".",
+ "$ref": "meta/core#/$defs/uriReferenceString",
+ "deprecated": true
+ }
+ }
+}
diff --git a/sandbox/testAppNevena/Front/node_modules/ajv/lib/refs/json-schema-draft-06.json b/sandbox/testAppNevena/Front/node_modules/ajv/lib/refs/json-schema-draft-06.json
new file mode 100644
index 00000000..5410064b
--- /dev/null
+++ b/sandbox/testAppNevena/Front/node_modules/ajv/lib/refs/json-schema-draft-06.json
@@ -0,0 +1,137 @@
+{
+ "$schema": "http://json-schema.org/draft-06/schema#",
+ "$id": "http://json-schema.org/draft-06/schema#",
+ "title": "Core schema meta-schema",
+ "definitions": {
+ "schemaArray": {
+ "type": "array",
+ "minItems": 1,
+ "items": {"$ref": "#"}
+ },
+ "nonNegativeInteger": {
+ "type": "integer",
+ "minimum": 0
+ },
+ "nonNegativeIntegerDefault0": {
+ "allOf": [{"$ref": "#/definitions/nonNegativeInteger"}, {"default": 0}]
+ },
+ "simpleTypes": {
+ "enum": ["array", "boolean", "integer", "null", "number", "object", "string"]
+ },
+ "stringArray": {
+ "type": "array",
+ "items": {"type": "string"},
+ "uniqueItems": true,
+ "default": []
+ }
+ },
+ "type": ["object", "boolean"],
+ "properties": {
+ "$id": {
+ "type": "string",
+ "format": "uri-reference"
+ },
+ "$schema": {
+ "type": "string",
+ "format": "uri"
+ },
+ "$ref": {
+ "type": "string",
+ "format": "uri-reference"
+ },
+ "title": {
+ "type": "string"
+ },
+ "description": {
+ "type": "string"
+ },
+ "default": {},
+ "examples": {
+ "type": "array",
+ "items": {}
+ },
+ "multipleOf": {
+ "type": "number",
+ "exclusiveMinimum": 0
+ },
+ "maximum": {
+ "type": "number"
+ },
+ "exclusiveMaximum": {
+ "type": "number"
+ },
+ "minimum": {
+ "type": "number"
+ },
+ "exclusiveMinimum": {
+ "type": "number"
+ },
+ "maxLength": {"$ref": "#/definitions/nonNegativeInteger"},
+ "minLength": {"$ref": "#/definitions/nonNegativeIntegerDefault0"},
+ "pattern": {
+ "type": "string",
+ "format": "regex"
+ },
+ "additionalItems": {"$ref": "#"},
+ "items": {
+ "anyOf": [{"$ref": "#"}, {"$ref": "#/definitions/schemaArray"}],
+ "default": {}
+ },
+ "maxItems": {"$ref": "#/definitions/nonNegativeInteger"},
+ "minItems": {"$ref": "#/definitions/nonNegativeIntegerDefault0"},
+ "uniqueItems": {
+ "type": "boolean",
+ "default": false
+ },
+ "contains": {"$ref": "#"},
+ "maxProperties": {"$ref": "#/definitions/nonNegativeInteger"},
+ "minProperties": {"$ref": "#/definitions/nonNegativeIntegerDefault0"},
+ "required": {"$ref": "#/definitions/stringArray"},
+ "additionalProperties": {"$ref": "#"},
+ "definitions": {
+ "type": "object",
+ "additionalProperties": {"$ref": "#"},
+ "default": {}
+ },
+ "properties": {
+ "type": "object",
+ "additionalProperties": {"$ref": "#"},
+ "default": {}
+ },
+ "patternProperties": {
+ "type": "object",
+ "additionalProperties": {"$ref": "#"},
+ "default": {}
+ },
+ "dependencies": {
+ "type": "object",
+ "additionalProperties": {
+ "anyOf": [{"$ref": "#"}, {"$ref": "#/definitions/stringArray"}]
+ }
+ },
+ "propertyNames": {"$ref": "#"},
+ "const": {},
+ "enum": {
+ "type": "array",
+ "minItems": 1,
+ "uniqueItems": true
+ },
+ "type": {
+ "anyOf": [
+ {"$ref": "#/definitions/simpleTypes"},
+ {
+ "type": "array",
+ "items": {"$ref": "#/definitions/simpleTypes"},
+ "minItems": 1,
+ "uniqueItems": true
+ }
+ ]
+ },
+ "format": {"type": "string"},
+ "allOf": {"$ref": "#/definitions/schemaArray"},
+ "anyOf": {"$ref": "#/definitions/schemaArray"},
+ "oneOf": {"$ref": "#/definitions/schemaArray"},
+ "not": {"$ref": "#"}
+ },
+ "default": {}
+}
diff --git a/sandbox/testAppNevena/Front/node_modules/ajv/lib/refs/json-schema-draft-07.json b/sandbox/testAppNevena/Front/node_modules/ajv/lib/refs/json-schema-draft-07.json
new file mode 100644
index 00000000..6a748510
--- /dev/null
+++ b/sandbox/testAppNevena/Front/node_modules/ajv/lib/refs/json-schema-draft-07.json
@@ -0,0 +1,151 @@
+{
+ "$schema": "http://json-schema.org/draft-07/schema#",
+ "$id": "http://json-schema.org/draft-07/schema#",
+ "title": "Core schema meta-schema",
+ "definitions": {
+ "schemaArray": {
+ "type": "array",
+ "minItems": 1,
+ "items": {"$ref": "#"}
+ },
+ "nonNegativeInteger": {
+ "type": "integer",
+ "minimum": 0
+ },
+ "nonNegativeIntegerDefault0": {
+ "allOf": [{"$ref": "#/definitions/nonNegativeInteger"}, {"default": 0}]
+ },
+ "simpleTypes": {
+ "enum": ["array", "boolean", "integer", "null", "number", "object", "string"]
+ },
+ "stringArray": {
+ "type": "array",
+ "items": {"type": "string"},
+ "uniqueItems": true,
+ "default": []
+ }
+ },
+ "type": ["object", "boolean"],
+ "properties": {
+ "$id": {
+ "type": "string",
+ "format": "uri-reference"
+ },
+ "$schema": {
+ "type": "string",
+ "format": "uri"
+ },
+ "$ref": {
+ "type": "string",
+ "format": "uri-reference"
+ },
+ "$comment": {
+ "type": "string"
+ },
+ "title": {
+ "type": "string"
+ },
+ "description": {
+ "type": "string"
+ },
+ "default": true,
+ "readOnly": {
+ "type": "boolean",
+ "default": false
+ },
+ "examples": {
+ "type": "array",
+ "items": true
+ },
+ "multipleOf": {
+ "type": "number",
+ "exclusiveMinimum": 0
+ },
+ "maximum": {
+ "type": "number"
+ },
+ "exclusiveMaximum": {
+ "type": "number"
+ },
+ "minimum": {
+ "type": "number"
+ },
+ "exclusiveMinimum": {
+ "type": "number"
+ },
+ "maxLength": {"$ref": "#/definitions/nonNegativeInteger"},
+ "minLength": {"$ref": "#/definitions/nonNegativeIntegerDefault0"},
+ "pattern": {
+ "type": "string",
+ "format": "regex"
+ },
+ "additionalItems": {"$ref": "#"},
+ "items": {
+ "anyOf": [{"$ref": "#"}, {"$ref": "#/definitions/schemaArray"}],
+ "default": true
+ },
+ "maxItems": {"$ref": "#/definitions/nonNegativeInteger"},
+ "minItems": {"$ref": "#/definitions/nonNegativeIntegerDefault0"},
+ "uniqueItems": {
+ "type": "boolean",
+ "default": false
+ },
+ "contains": {"$ref": "#"},
+ "maxProperties": {"$ref": "#/definitions/nonNegativeInteger"},
+ "minProperties": {"$ref": "#/definitions/nonNegativeIntegerDefault0"},
+ "required": {"$ref": "#/definitions/stringArray"},
+ "additionalProperties": {"$ref": "#"},
+ "definitions": {
+ "type": "object",
+ "additionalProperties": {"$ref": "#"},
+ "default": {}
+ },
+ "properties": {
+ "type": "object",
+ "additionalProperties": {"$ref": "#"},
+ "default": {}
+ },
+ "patternProperties": {
+ "type": "object",
+ "additionalProperties": {"$ref": "#"},
+ "propertyNames": {"format": "regex"},
+ "default": {}
+ },
+ "dependencies": {
+ "type": "object",
+ "additionalProperties": {
+ "anyOf": [{"$ref": "#"}, {"$ref": "#/definitions/stringArray"}]
+ }
+ },
+ "propertyNames": {"$ref": "#"},
+ "const": true,
+ "enum": {
+ "type": "array",
+ "items": true,
+ "minItems": 1,
+ "uniqueItems": true
+ },
+ "type": {
+ "anyOf": [
+ {"$ref": "#/definitions/simpleTypes"},
+ {
+ "type": "array",
+ "items": {"$ref": "#/definitions/simpleTypes"},
+ "minItems": 1,
+ "uniqueItems": true
+ }
+ ]
+ },
+ "format": {"type": "string"},
+ "contentMediaType": {"type": "string"},
+ "contentEncoding": {"type": "string"},
+ "if": {"$ref": "#"},
+ "then": {"$ref": "#"},
+ "else": {"$ref": "#"},
+ "allOf": {"$ref": "#/definitions/schemaArray"},
+ "anyOf": {"$ref": "#/definitions/schemaArray"},
+ "oneOf": {"$ref": "#/definitions/schemaArray"},
+ "not": {"$ref": "#"}
+ },
+ "default": true
+}
diff --git a/sandbox/testAppNevena/Front/node_modules/ajv/lib/refs/json-schema-secure.json b/sandbox/testAppNevena/Front/node_modules/ajv/lib/refs/json-schema-secure.json
new file mode 100644
index 00000000..3968abd5
--- /dev/null
+++ b/sandbox/testAppNevena/Front/node_modules/ajv/lib/refs/json-schema-secure.json
@@ -0,0 +1,88 @@
+{
+ "$schema": "http://json-schema.org/draft-07/schema#",
+ "$id": "https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/json-schema-secure.json#",
+ "title": "Meta-schema for the security assessment of JSON Schemas",
+ "description": "If a JSON AnySchema fails validation against this meta-schema, it may be unsafe to validate untrusted data",
+ "definitions": {
+ "schemaArray": {
+ "type": "array",
+ "minItems": 1,
+ "items": {"$ref": "#"}
+ }
+ },
+ "dependencies": {
+ "patternProperties": {
+ "description": "prevent slow validation of large property names",
+ "required": ["propertyNames"],
+ "properties": {
+ "propertyNames": {
+ "required": ["maxLength"]
+ }
+ }
+ },
+ "uniqueItems": {
+ "description": "prevent slow validation of large non-scalar arrays",
+ "if": {
+ "properties": {
+ "uniqueItems": {"const": true},
+ "items": {
+ "properties": {
+ "type": {
+ "anyOf": [
+ {
+ "enum": ["object", "array"]
+ },
+ {
+ "type": "array",
+ "contains": {"enum": ["object", "array"]}
+ }
+ ]
+ }
+ }
+ }
+ }
+ },
+ "then": {
+ "required": ["maxItems"]
+ }
+ },
+ "pattern": {
+ "description": "prevent slow pattern matching of large strings",
+ "required": ["maxLength"]
+ },
+ "format": {
+ "description": "prevent slow format validation of large strings",
+ "required": ["maxLength"]
+ }
+ },
+ "properties": {
+ "additionalItems": {"$ref": "#"},
+ "additionalProperties": {"$ref": "#"},
+ "dependencies": {
+ "additionalProperties": {
+ "anyOf": [{"type": "array"}, {"$ref": "#"}]
+ }
+ },
+ "items": {
+ "anyOf": [{"$ref": "#"}, {"$ref": "#/definitions/schemaArray"}]
+ },
+ "definitions": {
+ "additionalProperties": {"$ref": "#"}
+ },
+ "patternProperties": {
+ "additionalProperties": {"$ref": "#"}
+ },
+ "properties": {
+ "additionalProperties": {"$ref": "#"}
+ },
+ "if": {"$ref": "#"},
+ "then": {"$ref": "#"},
+ "else": {"$ref": "#"},
+ "allOf": {"$ref": "#/definitions/schemaArray"},
+ "anyOf": {"$ref": "#/definitions/schemaArray"},
+ "oneOf": {"$ref": "#/definitions/schemaArray"},
+ "not": {"$ref": "#"},
+ "contains": {"$ref": "#"},
+ "propertyNames": {"$ref": "#"}
+ }
+}
diff --git a/sandbox/testAppNevena/Front/node_modules/ajv/lib/refs/jtd-schema.ts b/sandbox/testAppNevena/Front/node_modules/ajv/lib/refs/jtd-schema.ts
new file mode 100644
index 00000000..c0198128
--- /dev/null
+++ b/sandbox/testAppNevena/Front/node_modules/ajv/lib/refs/jtd-schema.ts
@@ -0,0 +1,130 @@
+import {SchemaObject} from "../types"
+
+type MetaSchema = (root: boolean) => SchemaObject
+
+const shared: MetaSchema = (root) => {
+ const sch: SchemaObject = {
+ nullable: {type: "boolean"},
+ metadata: {
+ optionalProperties: {
+ union: {elements: {ref: "schema"}},
+ },
+ additionalProperties: true,
+ },
+ }
+ if (root) sch.definitions = {values: {ref: "schema"}}
+ return sch
+}
+
+const emptyForm: MetaSchema = (root) => ({
+ optionalProperties: shared(root),
+})
+
+const refForm: MetaSchema = (root) => ({
+ properties: {
+ ref: {type: "string"},
+ },
+ optionalProperties: shared(root),
+})
+
+const typeForm: MetaSchema = (root) => ({
+ properties: {
+ type: {
+ enum: [
+ "boolean",
+ "timestamp",
+ "string",
+ "float32",
+ "float64",
+ "int8",
+ "uint8",
+ "int16",
+ "uint16",
+ "int32",
+ "uint32",
+ ],
+ },
+ },
+ optionalProperties: shared(root),
+})
+
+const enumForm: MetaSchema = (root) => ({
+ properties: {
+ enum: {elements: {type: "string"}},
+ },
+ optionalProperties: shared(root),
+})
+
+const elementsForm: MetaSchema = (root) => ({
+ properties: {
+ elements: {ref: "schema"},
+ },
+ optionalProperties: shared(root),
+})
+
+const propertiesForm: MetaSchema = (root) => ({
+ properties: {
+ properties: {values: {ref: "schema"}},
+ },
+ optionalProperties: {
+ optionalProperties: {values: {ref: "schema"}},
+ additionalProperties: {type: "boolean"},
+ ...shared(root),
+ },
+})
+
+const optionalPropertiesForm: MetaSchema = (root) => ({
+ properties: {
+ optionalProperties: {values: {ref: "schema"}},
+ },
+ optionalProperties: {
+ additionalProperties: {type: "boolean"},
+ ...shared(root),
+ },
+})
+
+const discriminatorForm: MetaSchema = (root) => ({
+ properties: {
+ discriminator: {type: "string"},
+ mapping: {
+ values: {
+ metadata: {
+ union: [propertiesForm(false), optionalPropertiesForm(false)],
+ },
+ },
+ },
+ },
+ optionalProperties: shared(root),
+})
+
+const valuesForm: MetaSchema = (root) => ({
+ properties: {
+ values: {ref: "schema"},
+ },
+ optionalProperties: shared(root),
+})
+
+const schema: MetaSchema = (root) => ({
+ metadata: {
+ union: [
+ emptyForm,
+ refForm,
+ typeForm,
+ enumForm,
+ elementsForm,
+ propertiesForm,
+ optionalPropertiesForm,
+ discriminatorForm,
+ valuesForm,
+ ].map((s) => s(root)),
+ },
+})
+
+const jtdMetaSchema: SchemaObject = {
+ definitions: {
+ schema: schema(false),
+ },
+ ...schema(true),
+}
+
+export default jtdMetaSchema