@hyperjump/json-schema 0.23.4 → 1.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +1 -1
- package/README.md +487 -119
- package/draft-04/additionalItems.js +29 -0
- package/{lib/keywords → draft-04}/dependencies.js +9 -5
- package/draft-04/exclusiveMaximum.js +5 -0
- package/draft-04/exclusiveMinimum.js +5 -0
- package/draft-04/id.js +1 -0
- package/draft-04/index.d.ts +43 -0
- package/draft-04/index.js +69 -0
- package/draft-04/items.js +35 -0
- package/draft-04/maximum.js +26 -0
- package/draft-04/minimum.js +25 -0
- package/draft-04/ref.js +1 -0
- package/draft-04/schema.js +149 -0
- package/draft-06/contains.js +13 -0
- package/draft-06/index.d.ts +47 -0
- package/draft-06/index.js +66 -0
- package/draft-06/schema.js +154 -0
- package/{lib/draft-07.d.ts → draft-07/index.d.ts} +21 -19
- package/draft-07/index.js +72 -0
- package/draft-07/schema.js +172 -0
- package/{lib/keywords/contains-minContains-maxContains.js → draft-2019-09/contains.js} +14 -7
- package/{lib/draft-2019-09.d.ts → draft-2019-09/index.d.ts} +24 -22
- package/draft-2019-09/index.js +117 -0
- package/draft-2019-09/meta/applicator.js +55 -0
- package/draft-2019-09/meta/content.js +17 -0
- package/draft-2019-09/meta/core.js +57 -0
- package/draft-2019-09/meta/format.js +14 -0
- package/draft-2019-09/meta/meta-data.js +37 -0
- package/draft-2019-09/meta/validation.js +98 -0
- package/draft-2019-09/recursiveAnchor.js +1 -0
- package/draft-2019-09/recursiveRef.js +19 -0
- package/draft-2019-09/schema.js +42 -0
- package/draft-2020-12/dynamicAnchor.js +1 -0
- package/draft-2020-12/dynamicRef.js +35 -0
- package/draft-2020-12/index.d.ts +66 -0
- package/draft-2020-12/index.js +124 -0
- package/draft-2020-12/meta/applicator.js +46 -0
- package/draft-2020-12/meta/content.js +14 -0
- package/draft-2020-12/meta/core.js +54 -0
- package/draft-2020-12/meta/format-annotation.js +11 -0
- package/draft-2020-12/meta/format-assertion.js +11 -0
- package/draft-2020-12/meta/meta-data.js +34 -0
- package/draft-2020-12/meta/unevaluated.js +12 -0
- package/draft-2020-12/meta/validation.js +95 -0
- package/draft-2020-12/schema.js +44 -0
- package/lib/common.d.ts +5 -1
- package/lib/common.js +80 -9
- package/lib/configuration.d.ts +9 -0
- package/lib/configuration.js +18 -0
- package/lib/core.d.ts +48 -0
- package/lib/core.js +102 -0
- package/lib/experimental.d.ts +8 -0
- package/lib/experimental.js +4 -0
- package/lib/fetch.browser.js +1 -0
- package/lib/fetch.js +19 -0
- package/lib/index.d.ts +11 -42
- package/lib/index.js +130 -23
- package/lib/instance.d.ts +75 -0
- package/lib/instance.js +58 -0
- package/lib/invalid-schema-error.d.ts +8 -0
- package/lib/invalid-schema-error.js +7 -0
- package/lib/keywords/additionalProperties.js +19 -17
- package/lib/keywords/allOf.js +10 -7
- package/lib/keywords/anchor.js +1 -0
- package/lib/keywords/anyOf.js +10 -7
- package/lib/keywords/comment.js +4 -0
- package/lib/keywords/const.js +6 -3
- package/lib/keywords/contains.js +48 -5
- package/lib/keywords/contentEncoding.js +4 -0
- package/lib/keywords/contentMediaType.js +4 -0
- package/lib/keywords/contentSchema.js +4 -0
- package/lib/keywords/default.js +4 -0
- package/lib/keywords/definitions.js +7 -4
- package/lib/keywords/dependentRequired.js +6 -3
- package/lib/keywords/dependentSchemas.js +10 -6
- package/lib/keywords/deprecated.js +4 -0
- package/lib/keywords/description.js +4 -0
- package/lib/keywords/dynamicAnchor.js +1 -0
- package/lib/keywords/dynamicRef.js +13 -17
- package/lib/keywords/else.js +16 -11
- package/lib/keywords/enum.js +6 -3
- package/lib/keywords/examples.js +4 -0
- package/lib/keywords/exclusiveMaximum.js +5 -2
- package/lib/keywords/exclusiveMinimum.js +5 -2
- package/lib/keywords/format.js +4 -0
- package/lib/keywords/id.js +1 -0
- package/lib/keywords/if.js +8 -6
- package/lib/keywords/items.js +17 -19
- package/lib/keywords/maxContains.js +4 -0
- package/lib/keywords/maxItems.js +5 -2
- package/lib/keywords/maxLength.js +5 -2
- package/lib/keywords/maxProperties.js +5 -2
- package/lib/keywords/maximum.js +5 -2
- package/lib/keywords/meta-data.js +4 -0
- package/lib/keywords/minContains.js +4 -0
- package/lib/keywords/minItems.js +5 -2
- package/lib/keywords/minLength.js +5 -2
- package/lib/keywords/minProperties.js +5 -2
- package/lib/keywords/minimum.js +5 -2
- package/lib/keywords/multipleOf.js +5 -2
- package/lib/keywords/not.js +6 -4
- package/lib/keywords/oneOf.js +9 -6
- package/lib/keywords/pattern.js +5 -2
- package/lib/keywords/patternProperties.js +9 -5
- package/lib/keywords/prefixItems.js +28 -0
- package/lib/keywords/properties.js +11 -6
- package/lib/keywords/propertyDependencies.js +49 -0
- package/lib/keywords/propertyNames.js +7 -4
- package/lib/keywords/readOnly.js +4 -0
- package/lib/keywords/ref.js +9 -6
- package/lib/keywords/requireAllExcept.js +24 -0
- package/lib/keywords/required.js +5 -2
- package/lib/keywords/then.js +16 -11
- package/lib/keywords/title.js +4 -0
- package/lib/keywords/type.js +5 -2
- package/lib/keywords/unevaluatedItems.js +9 -5
- package/lib/keywords/unevaluatedProperties.js +9 -5
- package/lib/keywords/uniqueItems.js +6 -3
- package/lib/keywords/validation.js +123 -0
- package/lib/keywords/vocabulary.js +1 -0
- package/lib/keywords/writeOnly.js +4 -0
- package/lib/keywords.d.ts +19 -0
- package/lib/keywords.js +59 -0
- package/lib/media-types.d.ts +9 -0
- package/lib/media-types.js +26 -0
- package/lib/openapi.js +29 -0
- package/lib/pubsub.js +42 -0
- package/lib/reference.d.ts +11 -0
- package/lib/reference.js +11 -0
- package/lib/schema.d.ts +64 -0
- package/lib/schema.js +308 -0
- package/openapi-3-0/dialect.js +174 -0
- package/openapi-3-0/discriminator.js +4 -0
- package/openapi-3-0/example.js +4 -0
- package/openapi-3-0/externalDocs.js +4 -0
- package/openapi-3-0/index.d.ts +60 -0
- package/openapi-3-0/index.js +77 -0
- package/openapi-3-0/nullable.js +4 -0
- package/openapi-3-0/schema/2021-09-28.js +1404 -0
- package/openapi-3-0/type.js +16 -0
- package/openapi-3-0/xml.js +4 -0
- package/openapi-3-1/dialect/base.js +21 -0
- package/openapi-3-1/index.d.ts +88 -0
- package/openapi-3-1/index.js +48 -0
- package/openapi-3-1/meta/base.js +76 -0
- package/openapi-3-1/schema/2022-10-07.js +1440 -0
- package/openapi-3-1/schema-base/2022-10-07.js +23 -0
- package/package.json +34 -22
- package/{lib/draft-2020-12.d.ts → stable/index.d.ts} +26 -24
- package/stable/index.js +118 -0
- package/stable/meta/applicator.js +49 -0
- package/stable/meta/content.js +12 -0
- package/stable/meta/core.js +49 -0
- package/stable/meta/format-annotation.js +10 -0
- package/stable/meta/format-assertion.js +10 -0
- package/stable/meta/meta-data.js +16 -0
- package/stable/meta/unevaluated.js +11 -0
- package/stable/meta/validation.js +67 -0
- package/stable/validation.js +24 -0
- package/dist/json-schema-amd.js +0 -6644
- package/dist/json-schema-amd.js.map +0 -1
- package/dist/json-schema-amd.min.js +0 -2
- package/dist/json-schema-amd.min.js.map +0 -1
- package/dist/json-schema-cjs.js +0 -6642
- package/dist/json-schema-cjs.js.map +0 -1
- package/dist/json-schema-cjs.min.js +0 -2
- package/dist/json-schema-cjs.min.js.map +0 -1
- package/dist/json-schema-esm.js +0 -6638
- package/dist/json-schema-esm.js.map +0 -1
- package/dist/json-schema-esm.min.js +0 -2
- package/dist/json-schema-esm.min.js.map +0 -1
- package/dist/json-schema-iife.js +0 -6647
- package/dist/json-schema-iife.js.map +0 -1
- package/dist/json-schema-iife.min.js +0 -2
- package/dist/json-schema-iife.min.js.map +0 -1
- package/dist/json-schema-system.js +0 -6645
- package/dist/json-schema-system.js.map +0 -1
- package/dist/json-schema-system.min.js +0 -2
- package/dist/json-schema-system.min.js.map +0 -1
- package/dist/json-schema-umd.js +0 -6648
- package/dist/json-schema-umd.js.map +0 -1
- package/dist/json-schema-umd.min.js +0 -2
- package/dist/json-schema-umd.min.js.map +0 -1
- package/lib/draft-04.d.ts +0 -41
- package/lib/draft-04.js +0 -46
- package/lib/draft-06.d.ts +0 -45
- package/lib/draft-06.js +0 -51
- package/lib/draft-07.js +0 -55
- package/lib/draft-2019-09.js +0 -92
- package/lib/draft-2020-12.js +0 -103
- package/lib/index.mjs +0 -19
- package/lib/keywords/additionalItems.js +0 -27
- package/lib/keywords/additionalItems6.js +0 -23
- package/lib/keywords/additionalProperties6.js +0 -28
- package/lib/keywords/index.js +0 -53
- package/lib/keywords/items202012.js +0 -23
- package/lib/keywords/maximum-exclusiveMaximum.js +0 -20
- package/lib/keywords/minimum-exclusiveMinimum.js +0 -20
- package/lib/keywords/tupleItems.js +0 -24
- package/meta/draft/2019-09/meta/applicator.js +0 -55
- package/meta/draft/2019-09/meta/content.js +0 -17
- package/meta/draft/2019-09/meta/core.js +0 -57
- package/meta/draft/2019-09/meta/format.js +0 -14
- package/meta/draft/2019-09/meta/meta-data.js +0 -37
- package/meta/draft/2019-09/meta/validation.js +0 -98
- package/meta/draft/2019-09/schema.js +0 -42
- package/meta/draft/2020-12/meta/applicator.js +0 -49
- package/meta/draft/2020-12/meta/content.js +0 -17
- package/meta/draft/2020-12/meta/core.js +0 -57
- package/meta/draft/2020-12/meta/format-annotation.js +0 -14
- package/meta/draft/2020-12/meta/format-assertion.js +0 -14
- package/meta/draft/2020-12/meta/meta-data.js +0 -37
- package/meta/draft/2020-12/meta/unevaluated.js +0 -15
- package/meta/draft/2020-12/meta/validation.js +0 -98
- package/meta/draft/2020-12/schema.js +0 -44
- package/meta/draft-04/schema.js +0 -149
- package/meta/draft-06/schema.js +0 -154
- package/meta/draft-07/schema.js +0 -172
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { getKeywordName } from "../lib/keywords.js";
|
|
2
|
+
import * as Schema from "../lib/schema.js";
|
|
3
|
+
import * as Instance from "../lib/instance.js";
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
const id = "https://spec.openapis.org/oas/3.0/keyword/type";
|
|
7
|
+
|
|
8
|
+
const compile = async (schema, ast, parentSchema) => {
|
|
9
|
+
const nullableKeyword = getKeywordName(schema.dialectId, "https://spec.openapis.org/oas/3.0/keyword/nullable");
|
|
10
|
+
const nullable = await Schema.step(nullableKeyword, parentSchema);
|
|
11
|
+
return Schema.value(nullable) === true ? ["null", Schema.value(schema)] : Schema.value(schema);
|
|
12
|
+
};
|
|
13
|
+
|
|
14
|
+
const interpret = (type, instance) => typeof type === "string" ? Instance.typeOf(instance, type) : type.some(Instance.typeOf(instance));
|
|
15
|
+
|
|
16
|
+
export default { id, compile, interpret };
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
export default {
|
|
2
|
+
"$id": "https://spec.openapis.org/oas/3.1/dialect/base",
|
|
3
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
4
|
+
"$vocabulary": {
|
|
5
|
+
"https://json-schema.org/draft/2020-12/vocab/core": true,
|
|
6
|
+
"https://json-schema.org/draft/2020-12/vocab/applicator": true,
|
|
7
|
+
"https://json-schema.org/draft/2020-12/vocab/unevaluated": true,
|
|
8
|
+
"https://json-schema.org/draft/2020-12/vocab/validation": true,
|
|
9
|
+
"https://json-schema.org/draft/2020-12/vocab/meta-data": true,
|
|
10
|
+
"https://json-schema.org/draft/2020-12/vocab/format-annotation": true,
|
|
11
|
+
"https://json-schema.org/draft/2020-12/vocab/content": true,
|
|
12
|
+
"https://spec.openapis.org/oas/3.1/vocab/base": false
|
|
13
|
+
},
|
|
14
|
+
"$dynamicAnchor": "meta",
|
|
15
|
+
|
|
16
|
+
"title": "OpenAPI 3.1 Schema Object Dialect",
|
|
17
|
+
"allOf": [
|
|
18
|
+
{ "$ref": "https://json-schema.org/draft/2020-12/schema" },
|
|
19
|
+
{ "$ref": "https://spec.openapis.org/oas/3.1/meta/base" }
|
|
20
|
+
]
|
|
21
|
+
};
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
import type { Json } from "@hyperjump/json-pointer";
|
|
2
|
+
import type { JsonSchemaType } from "../lib/common.js";
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
export type OasSchema31 = boolean | {
|
|
6
|
+
$schema?: "https://json-schema.org/draft/2020-12/schema";
|
|
7
|
+
$id?: string;
|
|
8
|
+
$anchor?: string;
|
|
9
|
+
$ref?: string;
|
|
10
|
+
$dynamicRef?: string;
|
|
11
|
+
$dynamicAnchor?: string;
|
|
12
|
+
$vocabulary?: Record<string, boolean>;
|
|
13
|
+
$comment?: string;
|
|
14
|
+
$defs?: Record<string, OasSchema31>;
|
|
15
|
+
additionalItems?: OasSchema31;
|
|
16
|
+
unevaluatedItems?: OasSchema31;
|
|
17
|
+
prefixItems?: OasSchema31[];
|
|
18
|
+
items?: OasSchema31;
|
|
19
|
+
contains?: OasSchema31;
|
|
20
|
+
additionalProperties?: OasSchema31;
|
|
21
|
+
unevaluatedProperties?: OasSchema31;
|
|
22
|
+
properties?: Record<string, OasSchema31>;
|
|
23
|
+
patternProperties?: Record<string, OasSchema31>;
|
|
24
|
+
dependentSchemas?: Record<string, OasSchema31>;
|
|
25
|
+
propertyNames?: OasSchema31;
|
|
26
|
+
if?: OasSchema31;
|
|
27
|
+
then?: OasSchema31;
|
|
28
|
+
else?: OasSchema31;
|
|
29
|
+
allOf?: OasSchema31[];
|
|
30
|
+
anyOf?: OasSchema31[];
|
|
31
|
+
oneOf?: OasSchema31[];
|
|
32
|
+
not?: OasSchema31;
|
|
33
|
+
multipleOf?: number;
|
|
34
|
+
maximum?: number;
|
|
35
|
+
exclusiveMaximum?: number;
|
|
36
|
+
minimum?: number;
|
|
37
|
+
exclusiveMinimum?: number;
|
|
38
|
+
maxLength?: number;
|
|
39
|
+
minLength?: number;
|
|
40
|
+
pattern?: string;
|
|
41
|
+
maxItems?: number;
|
|
42
|
+
minItems?: number;
|
|
43
|
+
uniqueItems?: boolean;
|
|
44
|
+
maxContains?: number;
|
|
45
|
+
minContains?: number;
|
|
46
|
+
maxProperties?: number;
|
|
47
|
+
minProperties?: number;
|
|
48
|
+
required?: string[];
|
|
49
|
+
dependentRequired?: Record<string, string[]>;
|
|
50
|
+
const?: Json;
|
|
51
|
+
enum?: Json[];
|
|
52
|
+
type?: JsonSchemaType | JsonSchemaType[];
|
|
53
|
+
title?: string;
|
|
54
|
+
description?: string;
|
|
55
|
+
default?: Json;
|
|
56
|
+
deprecated?: boolean;
|
|
57
|
+
readOnly?: boolean;
|
|
58
|
+
writeOnly?: boolean;
|
|
59
|
+
examples?: Json[];
|
|
60
|
+
format?: "date-time" | "date" | "time" | "duration" | "email" | "idn-email" | "hostname" | "idn-hostname" | "ipv4" | "ipv6" | "uri" | "uri-reference" | "iri" | "iri-reference" | "uuid" | "uri-template" | "json-pointer" | "relative-json-pointer" | "regex";
|
|
61
|
+
contentMediaType?: string;
|
|
62
|
+
contentEncoding?: string;
|
|
63
|
+
contentSchema?: OasSchema31;
|
|
64
|
+
example: Json;
|
|
65
|
+
discriminator: Discriminator;
|
|
66
|
+
externalDocs: ExternalDocs;
|
|
67
|
+
xml: Xml;
|
|
68
|
+
};
|
|
69
|
+
|
|
70
|
+
type Discriminator = {
|
|
71
|
+
propertyName: string;
|
|
72
|
+
mappings: Record<string, string>;
|
|
73
|
+
};
|
|
74
|
+
|
|
75
|
+
type ExternalDocs = {
|
|
76
|
+
url: string;
|
|
77
|
+
description: string;
|
|
78
|
+
};
|
|
79
|
+
|
|
80
|
+
type Xml = {
|
|
81
|
+
name: string;
|
|
82
|
+
namespace: string;
|
|
83
|
+
prefix: string;
|
|
84
|
+
attribute: boolean;
|
|
85
|
+
wrapped: boolean;
|
|
86
|
+
};
|
|
87
|
+
|
|
88
|
+
export * from "../lib/index.js";
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { addKeyword, defineVocabulary, loadDialect } from "../lib/keywords.js";
|
|
2
|
+
import { addSchema } from "../lib/core.js";
|
|
3
|
+
import "../lib/openapi.js";
|
|
4
|
+
|
|
5
|
+
import dialectSchema from "./dialect/base.js";
|
|
6
|
+
import vocabularySchema from "./meta/base.js";
|
|
7
|
+
import schema20221007 from "./schema/2022-10-07.js";
|
|
8
|
+
import schemaBase20221007 from "./schema-base/2022-10-07.js";
|
|
9
|
+
|
|
10
|
+
import discriminator from "../openapi-3-0/discriminator.js";
|
|
11
|
+
import example from "../openapi-3-0/example.js";
|
|
12
|
+
import externalDocs from "../openapi-3-0/externalDocs.js";
|
|
13
|
+
import xml from "../openapi-3-0/xml.js";
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
addKeyword(discriminator);
|
|
17
|
+
addKeyword(example);
|
|
18
|
+
addKeyword(externalDocs);
|
|
19
|
+
addKeyword(xml);
|
|
20
|
+
|
|
21
|
+
defineVocabulary("https://spec.openapis.org/oas/3.1/vocab/base", {
|
|
22
|
+
"discriminator": "https://spec.openapis.org/oas/3.0/keyword/discriminator",
|
|
23
|
+
"example": "https://spec.openapis.org/oas/3.0/keyword/example",
|
|
24
|
+
"externalDocs": "https://spec.openapis.org/oas/3.0/keyword/externalDocs",
|
|
25
|
+
"xml": "https://spec.openapis.org/oas/3.0/keyword/xml"
|
|
26
|
+
});
|
|
27
|
+
|
|
28
|
+
loadDialect("https://spec.openapis.org/oas/3.1/schema-base", {
|
|
29
|
+
"https://json-schema.org/draft/2020-12/vocab/core": true,
|
|
30
|
+
"https://json-schema.org/draft/2020-12/vocab/applicator": true,
|
|
31
|
+
"https://json-schema.org/draft/2020-12/vocab/validation": true,
|
|
32
|
+
"https://json-schema.org/draft/2020-12/vocab/meta-data": true,
|
|
33
|
+
"https://json-schema.org/draft/2020-12/vocab/format-annotation": true,
|
|
34
|
+
"https://json-schema.org/draft/2020-12/vocab/content": true,
|
|
35
|
+
"https://json-schema.org/draft/2020-12/vocab/unevaluated": true,
|
|
36
|
+
"https://spec.openapis.org/oas/3.1/vocab/base": false
|
|
37
|
+
}, true);
|
|
38
|
+
|
|
39
|
+
addSchema(vocabularySchema);
|
|
40
|
+
addSchema(dialectSchema);
|
|
41
|
+
|
|
42
|
+
// Current Schemas
|
|
43
|
+
addSchema(schema20221007, "https://spec.openapis.org/oas/3.1/schema");
|
|
44
|
+
addSchema(schema20221007, "https://spec.openapis.org/oas/3.1/schema/latest");
|
|
45
|
+
addSchema(schemaBase20221007, "https://spec.openapis.org/oas/3.1/schema-base");
|
|
46
|
+
addSchema(schemaBase20221007, "https://spec.openapis.org/oas/3.1/schema-base/latest");
|
|
47
|
+
|
|
48
|
+
export * from "../draft-2020-12/index.js";
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
export default {
|
|
2
|
+
"$id": "https://spec.openapis.org/oas/3.1/meta/base",
|
|
3
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
4
|
+
"$dynamicAnchor": "meta",
|
|
5
|
+
"title": "OAS Base vocabulary",
|
|
6
|
+
|
|
7
|
+
"type": ["object", "boolean"],
|
|
8
|
+
"properties": {
|
|
9
|
+
"example": true,
|
|
10
|
+
"discriminator": { "$ref": "#/$defs/discriminator" },
|
|
11
|
+
"externalDocs": { "$ref": "#/$defs/external-docs" },
|
|
12
|
+
"xml": { "$ref": "#/$defs/xml" }
|
|
13
|
+
},
|
|
14
|
+
"$defs": {
|
|
15
|
+
"extensible": {
|
|
16
|
+
"patternProperties": {
|
|
17
|
+
"^x-": true
|
|
18
|
+
}
|
|
19
|
+
},
|
|
20
|
+
"discriminator": {
|
|
21
|
+
"$ref": "#/$defs/extensible",
|
|
22
|
+
"type": "object",
|
|
23
|
+
"properties": {
|
|
24
|
+
"propertyName": {
|
|
25
|
+
"type": "string"
|
|
26
|
+
},
|
|
27
|
+
"mapping": {
|
|
28
|
+
"type": "object",
|
|
29
|
+
"additionalProperties": {
|
|
30
|
+
"type": "string"
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
},
|
|
34
|
+
"required": ["propertyName"],
|
|
35
|
+
"unevaluatedProperties": false
|
|
36
|
+
},
|
|
37
|
+
"external-docs": {
|
|
38
|
+
"$ref": "#/$defs/extensible",
|
|
39
|
+
"type": "object",
|
|
40
|
+
"properties": {
|
|
41
|
+
"url": {
|
|
42
|
+
"type": "string",
|
|
43
|
+
"format": "uri-reference"
|
|
44
|
+
},
|
|
45
|
+
"description": {
|
|
46
|
+
"type": "string"
|
|
47
|
+
}
|
|
48
|
+
},
|
|
49
|
+
"required": ["url"],
|
|
50
|
+
"unevaluatedProperties": false
|
|
51
|
+
},
|
|
52
|
+
"xml": {
|
|
53
|
+
"$ref": "#/$defs/extensible",
|
|
54
|
+
"type": "object",
|
|
55
|
+
"properties": {
|
|
56
|
+
"name": {
|
|
57
|
+
"type": "string"
|
|
58
|
+
},
|
|
59
|
+
"namespace": {
|
|
60
|
+
"type": "string",
|
|
61
|
+
"format": "uri"
|
|
62
|
+
},
|
|
63
|
+
"prefix": {
|
|
64
|
+
"type": "string"
|
|
65
|
+
},
|
|
66
|
+
"attribute": {
|
|
67
|
+
"type": "boolean"
|
|
68
|
+
},
|
|
69
|
+
"wrapped": {
|
|
70
|
+
"type": "boolean"
|
|
71
|
+
}
|
|
72
|
+
},
|
|
73
|
+
"unevaluatedProperties": false
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
};
|