fumadocs-openapi 10.8.4 → 10.8.6
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/css/generated/shared.css +22 -1
- package/dist/generate-file.d.ts +1 -1
- package/dist/generate-file.js +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/node_modules/.pnpm/{@scalar_helpers@0.6.0 → @scalar_helpers@0.8.0}/node_modules/@scalar/helpers/dist/general/create-limiter.js +1 -1
- package/dist/node_modules/.pnpm/{@scalar_helpers@0.6.0 → @scalar_helpers@0.8.0}/node_modules/@scalar/helpers/dist/object/is-object.js +1 -1
- package/dist/node_modules/.pnpm/{@scalar_helpers@0.6.0 → @scalar_helpers@0.8.0}/node_modules/@scalar/helpers/dist/object/prevent-pollution.js +1 -1
- package/dist/node_modules/.pnpm/{@scalar_helpers@0.6.0 → @scalar_helpers@0.8.0}/node_modules/@scalar/helpers/dist/queue/queue.js +1 -1
- package/dist/node_modules/.pnpm/{@scalar_helpers@0.6.0 → @scalar_helpers@0.8.0}/node_modules/@scalar/helpers/dist/string/generate-hash.js +1 -1
- package/dist/node_modules/.pnpm/{@scalar_json-magic@0.12.12 → @scalar_json-magic@0.12.14}/node_modules/@scalar/json-magic/dist/bundle/bundle.js +2 -2
- package/dist/node_modules/.pnpm/{@scalar_json-magic@0.12.12 → @scalar_json-magic@0.12.14}/node_modules/@scalar/json-magic/dist/bundle/plugins/fetch-urls/index.js +2 -2
- package/dist/node_modules/.pnpm/{@scalar_json-magic@0.12.12 → @scalar_json-magic@0.12.14}/node_modules/@scalar/json-magic/dist/bundle/plugins/read-files/index.js +1 -1
- package/dist/node_modules/.pnpm/{@scalar_json-magic@0.12.12 → @scalar_json-magic@0.12.14}/node_modules/@scalar/json-magic/dist/bundle/value-generator.js +2 -2
- package/dist/node_modules/.pnpm/{@scalar_json-magic@0.12.12 → @scalar_json-magic@0.12.14}/node_modules/@scalar/json-magic/dist/helpers/convert-to-local-ref.js +1 -1
- package/dist/node_modules/.pnpm/{@scalar_json-magic@0.12.12 → @scalar_json-magic@0.12.14}/node_modules/@scalar/json-magic/dist/helpers/escape-json-pointer.js +1 -1
- package/dist/node_modules/.pnpm/{@scalar_json-magic@0.12.12 → @scalar_json-magic@0.12.14}/node_modules/@scalar/json-magic/dist/helpers/get-schemas.js +1 -1
- package/dist/node_modules/.pnpm/{@scalar_json-magic@0.12.12 → @scalar_json-magic@0.12.14}/node_modules/@scalar/json-magic/dist/helpers/get-segments-from-path.js +1 -1
- package/dist/node_modules/.pnpm/{@scalar_json-magic@0.12.12 → @scalar_json-magic@0.12.14}/node_modules/@scalar/json-magic/dist/helpers/get-value-by-path.js +1 -1
- package/dist/node_modules/.pnpm/{@scalar_json-magic@0.12.12 → @scalar_json-magic@0.12.14}/node_modules/@scalar/json-magic/dist/helpers/is-file-path.js +1 -1
- package/dist/node_modules/.pnpm/{@scalar_json-magic@0.12.12 → @scalar_json-magic@0.12.14}/node_modules/@scalar/json-magic/dist/helpers/is-http-url.js +1 -1
- package/dist/node_modules/.pnpm/{@scalar_json-magic@0.12.12 → @scalar_json-magic@0.12.14}/node_modules/@scalar/json-magic/dist/helpers/is-json-object.js +2 -2
- package/dist/node_modules/.pnpm/{@scalar_json-magic@0.12.12 → @scalar_json-magic@0.12.14}/node_modules/@scalar/json-magic/dist/helpers/is-yaml.js +1 -1
- package/dist/node_modules/.pnpm/@scalar_json-magic@0.12.14/node_modules/@scalar/json-magic/dist/helpers/normalize.js +33 -0
- package/dist/node_modules/.pnpm/{@scalar_json-magic@0.12.12 → @scalar_json-magic@0.12.14}/node_modules/@scalar/json-magic/dist/helpers/resolve-reference-path.js +1 -1
- package/dist/node_modules/.pnpm/{@scalar_json-magic@0.12.12 → @scalar_json-magic@0.12.14}/node_modules/@scalar/json-magic/dist/helpers/set-value-at-path.js +2 -2
- package/dist/node_modules/.pnpm/{@scalar_json-magic@0.12.12 → @scalar_json-magic@0.12.14}/node_modules/@scalar/json-magic/dist/helpers/to-relative-path.js +1 -1
- package/dist/node_modules/.pnpm/{@scalar_json-magic@0.12.12 → @scalar_json-magic@0.12.14}/node_modules/@scalar/json-magic/dist/helpers/unescape-json-pointer.js +1 -1
- package/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/2020.js +110 -0
- package/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/codegen/code.js +138 -0
- package/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/codegen/index.js +674 -0
- package/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/codegen/scope.js +141 -0
- package/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/errors.js +102 -0
- package/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/index.js +223 -0
- package/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/names.js +28 -0
- package/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/ref_error.js +18 -0
- package/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/resolve.js +133 -0
- package/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/rules.js +61 -0
- package/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/util.js +146 -0
- package/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/validate/applicability.js +23 -0
- package/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/validate/boolSchema.js +48 -0
- package/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/validate/dataType.js +172 -0
- package/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/validate/defaults.js +31 -0
- package/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/validate/index.js +433 -0
- package/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/validate/keyword.js +113 -0
- package/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/validate/subschema.js +72 -0
- package/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/core.js +583 -0
- package/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/refs/data.js +18 -0
- package/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/refs/json-schema-2020-12/index.js +42 -0
- package/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/refs/json-schema-2020-12/meta/applicator.js +50 -0
- package/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/refs/json-schema-2020-12/meta/content.js +20 -0
- package/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/refs/json-schema-2020-12/meta/core.js +51 -0
- package/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/refs/json-schema-2020-12/meta/format-annotation.js +16 -0
- package/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/refs/json-schema-2020-12/meta/meta-data.js +36 -0
- package/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/refs/json-schema-2020-12/meta/unevaluated.js +19 -0
- package/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/refs/json-schema-2020-12/meta/validation.js +85 -0
- package/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/refs/json-schema-2020-12/schema.js +59 -0
- package/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/runtime/equal.js +12 -0
- package/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/runtime/ucs2length.js +25 -0
- package/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/runtime/uri.js +12 -0
- package/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/runtime/validation_error.js +16 -0
- package/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/additionalItems.js +57 -0
- package/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/additionalProperties.js +96 -0
- package/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/allOf.js +29 -0
- package/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/anyOf.js +16 -0
- package/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/contains.js +89 -0
- package/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/dependencies.js +87 -0
- package/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/dependentSchemas.js +16 -0
- package/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/if.js +62 -0
- package/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/index.js +60 -0
- package/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/items.js +59 -0
- package/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/items2020.js +34 -0
- package/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/not.js +31 -0
- package/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/oneOf.js +51 -0
- package/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/patternProperties.js +61 -0
- package/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/prefixItems.js +17 -0
- package/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/properties.js +52 -0
- package/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/propertyNames.js +41 -0
- package/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/thenElse.js +17 -0
- package/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/code.js +130 -0
- package/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/core/id.js +14 -0
- package/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/core/index.js +22 -0
- package/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/core/ref.js +112 -0
- package/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/discriminator/index.js +101 -0
- package/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/discriminator/types.js +14 -0
- package/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/draft2020.js +35 -0
- package/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/dynamic/dynamicAnchor.js +46 -0
- package/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/dynamic/dynamicRef.js +45 -0
- package/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/dynamic/index.js +22 -0
- package/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/dynamic/recursiveAnchor.js +20 -0
- package/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/dynamic/recursiveRef.js +15 -0
- package/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/format/format.js +92 -0
- package/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/format/index.js +10 -0
- package/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/metadata.js +23 -0
- package/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/next.js +19 -0
- package/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/unevaluated/index.js +13 -0
- package/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/unevaluated/unevaluatedItems.js +46 -0
- package/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/unevaluated/unevaluatedProperties.js +59 -0
- package/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/validation/const.js +27 -0
- package/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/validation/dependentRequired.js +17 -0
- package/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/validation/enum.js +49 -0
- package/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/validation/index.js +48 -0
- package/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/validation/limitContains.js +18 -0
- package/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/validation/limitItems.js +28 -0
- package/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/validation/limitLength.js +33 -0
- package/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/validation/limitNumber.js +47 -0
- package/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/validation/limitProperties.js +28 -0
- package/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/validation/multipleOf.js +27 -0
- package/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/validation/pattern.js +38 -0
- package/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/validation/required.js +72 -0
- package/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/validation/uniqueItems.js +70 -0
- package/dist/node_modules/.pnpm/fast-deep-equal@3.1.3/node_modules/fast-deep-equal/index.js +33 -0
- package/dist/node_modules/.pnpm/fast-uri@3.1.0/node_modules/fast-uri/index.js +236 -0
- package/dist/node_modules/.pnpm/fast-uri@3.1.0/node_modules/fast-uri/lib/schemes.js +187 -0
- package/dist/node_modules/.pnpm/fast-uri@3.1.0/node_modules/fast-uri/lib/utils.js +282 -0
- package/dist/node_modules/.pnpm/json-schema-traverse@1.0.0/node_modules/json-schema-traverse/index.js +78 -0
- package/dist/playground/client.js +1 -1
- package/dist/playground/schema.d.ts +0 -2
- package/dist/playground/schema.js +3 -2
- package/dist/server/index.d.ts +108 -3
- package/dist/server/index.js +181 -2
- package/dist/server/proxy.d.ts +1 -1
- package/dist/types.d.ts +1 -1
- package/dist/ui/base.d.ts +1 -1
- package/dist/ui/components/method-label.js +1 -4
- package/dist/ui/index.d.ts +1 -1
- package/dist/utils/document/process.js +4 -4
- package/dist/utils/pages/builder.d.ts +4 -3
- package/dist/utils/pages/builder.js +20 -1
- package/dist/utils/pages/to-text.d.ts +1 -1
- package/dist/utils/pages/to-text.js +23 -42
- package/package.json +12 -8
- package/dist/node_modules/.pnpm/@scalar_json-magic@0.12.12/node_modules/@scalar/json-magic/dist/helpers/normalize.js +0 -26
- package/dist/server/create.d.ts +0 -40
- package/dist/server/create.js +0 -42
- package/dist/server/source-api.d.ts +0 -55
- package/dist/server/source-api.js +0 -149
- /package/dist/node_modules/.pnpm/{@scalar_json-magic@0.12.12 → @scalar_json-magic@0.12.14}/node_modules/@scalar/json-magic/dist/bundle/plugins/node.js +0 -0
- /package/dist/node_modules/.pnpm/{@scalar_json-magic@0.12.12 → @scalar_json-magic@0.12.14}/node_modules/@scalar/json-magic/dist/bundle/plugins/parse-yaml/index.js +0 -0
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { __commonJSMin } from "../../../../../../../../../_virtual/_rolldown/runtime.js";
|
|
2
|
+
//#region ../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/refs/json-schema-2020-12/meta/content.json
|
|
3
|
+
var require_content = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
4
|
+
module.exports = {
|
|
5
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
6
|
+
"$id": "https://json-schema.org/draft/2020-12/meta/content",
|
|
7
|
+
"$vocabulary": { "https://json-schema.org/draft/2020-12/vocab/content": true },
|
|
8
|
+
"$dynamicAnchor": "meta",
|
|
9
|
+
"title": "Content vocabulary meta-schema",
|
|
10
|
+
"type": ["object", "boolean"],
|
|
11
|
+
"properties": {
|
|
12
|
+
"contentEncoding": { "type": "string" },
|
|
13
|
+
"contentMediaType": { "type": "string" },
|
|
14
|
+
"contentSchema": { "$dynamicRef": "#meta" }
|
|
15
|
+
}
|
|
16
|
+
};
|
|
17
|
+
}));
|
|
18
|
+
//#endregion
|
|
19
|
+
export default require_content();
|
|
20
|
+
export { require_content };
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { __commonJSMin } from "../../../../../../../../../_virtual/_rolldown/runtime.js";
|
|
2
|
+
//#region ../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/refs/json-schema-2020-12/meta/core.json
|
|
3
|
+
var require_core = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
4
|
+
module.exports = {
|
|
5
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
6
|
+
"$id": "https://json-schema.org/draft/2020-12/meta/core",
|
|
7
|
+
"$vocabulary": { "https://json-schema.org/draft/2020-12/vocab/core": true },
|
|
8
|
+
"$dynamicAnchor": "meta",
|
|
9
|
+
"title": "Core vocabulary meta-schema",
|
|
10
|
+
"type": ["object", "boolean"],
|
|
11
|
+
"properties": {
|
|
12
|
+
"$id": {
|
|
13
|
+
"$ref": "#/$defs/uriReferenceString",
|
|
14
|
+
"$comment": "Non-empty fragments not allowed.",
|
|
15
|
+
"pattern": "^[^#]*#?$"
|
|
16
|
+
},
|
|
17
|
+
"$schema": { "$ref": "#/$defs/uriString" },
|
|
18
|
+
"$ref": { "$ref": "#/$defs/uriReferenceString" },
|
|
19
|
+
"$anchor": { "$ref": "#/$defs/anchorString" },
|
|
20
|
+
"$dynamicRef": { "$ref": "#/$defs/uriReferenceString" },
|
|
21
|
+
"$dynamicAnchor": { "$ref": "#/$defs/anchorString" },
|
|
22
|
+
"$vocabulary": {
|
|
23
|
+
"type": "object",
|
|
24
|
+
"propertyNames": { "$ref": "#/$defs/uriString" },
|
|
25
|
+
"additionalProperties": { "type": "boolean" }
|
|
26
|
+
},
|
|
27
|
+
"$comment": { "type": "string" },
|
|
28
|
+
"$defs": {
|
|
29
|
+
"type": "object",
|
|
30
|
+
"additionalProperties": { "$dynamicRef": "#meta" }
|
|
31
|
+
}
|
|
32
|
+
},
|
|
33
|
+
"$defs": {
|
|
34
|
+
"anchorString": {
|
|
35
|
+
"type": "string",
|
|
36
|
+
"pattern": "^[A-Za-z_][-A-Za-z0-9._]*$"
|
|
37
|
+
},
|
|
38
|
+
"uriString": {
|
|
39
|
+
"type": "string",
|
|
40
|
+
"format": "uri"
|
|
41
|
+
},
|
|
42
|
+
"uriReferenceString": {
|
|
43
|
+
"type": "string",
|
|
44
|
+
"format": "uri-reference"
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
};
|
|
48
|
+
}));
|
|
49
|
+
//#endregion
|
|
50
|
+
export default require_core();
|
|
51
|
+
export { require_core };
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { __commonJSMin } from "../../../../../../../../../_virtual/_rolldown/runtime.js";
|
|
2
|
+
//#region ../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/refs/json-schema-2020-12/meta/format-annotation.json
|
|
3
|
+
var require_format_annotation = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
4
|
+
module.exports = {
|
|
5
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
6
|
+
"$id": "https://json-schema.org/draft/2020-12/meta/format-annotation",
|
|
7
|
+
"$vocabulary": { "https://json-schema.org/draft/2020-12/vocab/format-annotation": true },
|
|
8
|
+
"$dynamicAnchor": "meta",
|
|
9
|
+
"title": "Format vocabulary meta-schema for annotation results",
|
|
10
|
+
"type": ["object", "boolean"],
|
|
11
|
+
"properties": { "format": { "type": "string" } }
|
|
12
|
+
};
|
|
13
|
+
}));
|
|
14
|
+
//#endregion
|
|
15
|
+
export default require_format_annotation();
|
|
16
|
+
export { require_format_annotation };
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { __commonJSMin } from "../../../../../../../../../_virtual/_rolldown/runtime.js";
|
|
2
|
+
//#region ../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/refs/json-schema-2020-12/meta/meta-data.json
|
|
3
|
+
var require_meta_data = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
4
|
+
module.exports = {
|
|
5
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
6
|
+
"$id": "https://json-schema.org/draft/2020-12/meta/meta-data",
|
|
7
|
+
"$vocabulary": { "https://json-schema.org/draft/2020-12/vocab/meta-data": true },
|
|
8
|
+
"$dynamicAnchor": "meta",
|
|
9
|
+
"title": "Meta-data vocabulary meta-schema",
|
|
10
|
+
"type": ["object", "boolean"],
|
|
11
|
+
"properties": {
|
|
12
|
+
"title": { "type": "string" },
|
|
13
|
+
"description": { "type": "string" },
|
|
14
|
+
"default": true,
|
|
15
|
+
"deprecated": {
|
|
16
|
+
"type": "boolean",
|
|
17
|
+
"default": false
|
|
18
|
+
},
|
|
19
|
+
"readOnly": {
|
|
20
|
+
"type": "boolean",
|
|
21
|
+
"default": false
|
|
22
|
+
},
|
|
23
|
+
"writeOnly": {
|
|
24
|
+
"type": "boolean",
|
|
25
|
+
"default": false
|
|
26
|
+
},
|
|
27
|
+
"examples": {
|
|
28
|
+
"type": "array",
|
|
29
|
+
"items": true
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
};
|
|
33
|
+
}));
|
|
34
|
+
//#endregion
|
|
35
|
+
export default require_meta_data();
|
|
36
|
+
export { require_meta_data };
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { __commonJSMin } from "../../../../../../../../../_virtual/_rolldown/runtime.js";
|
|
2
|
+
//#region ../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/refs/json-schema-2020-12/meta/unevaluated.json
|
|
3
|
+
var require_unevaluated = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
4
|
+
module.exports = {
|
|
5
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
6
|
+
"$id": "https://json-schema.org/draft/2020-12/meta/unevaluated",
|
|
7
|
+
"$vocabulary": { "https://json-schema.org/draft/2020-12/vocab/unevaluated": true },
|
|
8
|
+
"$dynamicAnchor": "meta",
|
|
9
|
+
"title": "Unevaluated applicator vocabulary meta-schema",
|
|
10
|
+
"type": ["object", "boolean"],
|
|
11
|
+
"properties": {
|
|
12
|
+
"unevaluatedItems": { "$dynamicRef": "#meta" },
|
|
13
|
+
"unevaluatedProperties": { "$dynamicRef": "#meta" }
|
|
14
|
+
}
|
|
15
|
+
};
|
|
16
|
+
}));
|
|
17
|
+
//#endregion
|
|
18
|
+
export default require_unevaluated();
|
|
19
|
+
export { require_unevaluated };
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
import { __commonJSMin } from "../../../../../../../../../_virtual/_rolldown/runtime.js";
|
|
2
|
+
//#region ../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/refs/json-schema-2020-12/meta/validation.json
|
|
3
|
+
var require_validation = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
4
|
+
module.exports = {
|
|
5
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
6
|
+
"$id": "https://json-schema.org/draft/2020-12/meta/validation",
|
|
7
|
+
"$vocabulary": { "https://json-schema.org/draft/2020-12/vocab/validation": true },
|
|
8
|
+
"$dynamicAnchor": "meta",
|
|
9
|
+
"title": "Validation vocabulary meta-schema",
|
|
10
|
+
"type": ["object", "boolean"],
|
|
11
|
+
"properties": {
|
|
12
|
+
"type": { "anyOf": [{ "$ref": "#/$defs/simpleTypes" }, {
|
|
13
|
+
"type": "array",
|
|
14
|
+
"items": { "$ref": "#/$defs/simpleTypes" },
|
|
15
|
+
"minItems": 1,
|
|
16
|
+
"uniqueItems": true
|
|
17
|
+
}] },
|
|
18
|
+
"const": true,
|
|
19
|
+
"enum": {
|
|
20
|
+
"type": "array",
|
|
21
|
+
"items": true
|
|
22
|
+
},
|
|
23
|
+
"multipleOf": {
|
|
24
|
+
"type": "number",
|
|
25
|
+
"exclusiveMinimum": 0
|
|
26
|
+
},
|
|
27
|
+
"maximum": { "type": "number" },
|
|
28
|
+
"exclusiveMaximum": { "type": "number" },
|
|
29
|
+
"minimum": { "type": "number" },
|
|
30
|
+
"exclusiveMinimum": { "type": "number" },
|
|
31
|
+
"maxLength": { "$ref": "#/$defs/nonNegativeInteger" },
|
|
32
|
+
"minLength": { "$ref": "#/$defs/nonNegativeIntegerDefault0" },
|
|
33
|
+
"pattern": {
|
|
34
|
+
"type": "string",
|
|
35
|
+
"format": "regex"
|
|
36
|
+
},
|
|
37
|
+
"maxItems": { "$ref": "#/$defs/nonNegativeInteger" },
|
|
38
|
+
"minItems": { "$ref": "#/$defs/nonNegativeIntegerDefault0" },
|
|
39
|
+
"uniqueItems": {
|
|
40
|
+
"type": "boolean",
|
|
41
|
+
"default": false
|
|
42
|
+
},
|
|
43
|
+
"maxContains": { "$ref": "#/$defs/nonNegativeInteger" },
|
|
44
|
+
"minContains": {
|
|
45
|
+
"$ref": "#/$defs/nonNegativeInteger",
|
|
46
|
+
"default": 1
|
|
47
|
+
},
|
|
48
|
+
"maxProperties": { "$ref": "#/$defs/nonNegativeInteger" },
|
|
49
|
+
"minProperties": { "$ref": "#/$defs/nonNegativeIntegerDefault0" },
|
|
50
|
+
"required": { "$ref": "#/$defs/stringArray" },
|
|
51
|
+
"dependentRequired": {
|
|
52
|
+
"type": "object",
|
|
53
|
+
"additionalProperties": { "$ref": "#/$defs/stringArray" }
|
|
54
|
+
}
|
|
55
|
+
},
|
|
56
|
+
"$defs": {
|
|
57
|
+
"nonNegativeInteger": {
|
|
58
|
+
"type": "integer",
|
|
59
|
+
"minimum": 0
|
|
60
|
+
},
|
|
61
|
+
"nonNegativeIntegerDefault0": {
|
|
62
|
+
"$ref": "#/$defs/nonNegativeInteger",
|
|
63
|
+
"default": 0
|
|
64
|
+
},
|
|
65
|
+
"simpleTypes": { "enum": [
|
|
66
|
+
"array",
|
|
67
|
+
"boolean",
|
|
68
|
+
"integer",
|
|
69
|
+
"null",
|
|
70
|
+
"number",
|
|
71
|
+
"object",
|
|
72
|
+
"string"
|
|
73
|
+
] },
|
|
74
|
+
"stringArray": {
|
|
75
|
+
"type": "array",
|
|
76
|
+
"items": { "type": "string" },
|
|
77
|
+
"uniqueItems": true,
|
|
78
|
+
"default": []
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
};
|
|
82
|
+
}));
|
|
83
|
+
//#endregion
|
|
84
|
+
export default require_validation();
|
|
85
|
+
export { require_validation };
|
package/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/refs/json-schema-2020-12/schema.js
ADDED
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import { __commonJSMin } from "../../../../../../../../_virtual/_rolldown/runtime.js";
|
|
2
|
+
//#region ../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/refs/json-schema-2020-12/schema.json
|
|
3
|
+
var require_schema = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
4
|
+
module.exports = {
|
|
5
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
6
|
+
"$id": "https://json-schema.org/draft/2020-12/schema",
|
|
7
|
+
"$vocabulary": {
|
|
8
|
+
"https://json-schema.org/draft/2020-12/vocab/core": true,
|
|
9
|
+
"https://json-schema.org/draft/2020-12/vocab/applicator": true,
|
|
10
|
+
"https://json-schema.org/draft/2020-12/vocab/unevaluated": true,
|
|
11
|
+
"https://json-schema.org/draft/2020-12/vocab/validation": true,
|
|
12
|
+
"https://json-schema.org/draft/2020-12/vocab/meta-data": true,
|
|
13
|
+
"https://json-schema.org/draft/2020-12/vocab/format-annotation": true,
|
|
14
|
+
"https://json-schema.org/draft/2020-12/vocab/content": true
|
|
15
|
+
},
|
|
16
|
+
"$dynamicAnchor": "meta",
|
|
17
|
+
"title": "Core and Validation specifications meta-schema",
|
|
18
|
+
"allOf": [
|
|
19
|
+
{ "$ref": "meta/core" },
|
|
20
|
+
{ "$ref": "meta/applicator" },
|
|
21
|
+
{ "$ref": "meta/unevaluated" },
|
|
22
|
+
{ "$ref": "meta/validation" },
|
|
23
|
+
{ "$ref": "meta/meta-data" },
|
|
24
|
+
{ "$ref": "meta/format-annotation" },
|
|
25
|
+
{ "$ref": "meta/content" }
|
|
26
|
+
],
|
|
27
|
+
"type": ["object", "boolean"],
|
|
28
|
+
"$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.",
|
|
29
|
+
"properties": {
|
|
30
|
+
"definitions": {
|
|
31
|
+
"$comment": "\"definitions\" has been replaced by \"$defs\".",
|
|
32
|
+
"type": "object",
|
|
33
|
+
"additionalProperties": { "$dynamicRef": "#meta" },
|
|
34
|
+
"deprecated": true,
|
|
35
|
+
"default": {}
|
|
36
|
+
},
|
|
37
|
+
"dependencies": {
|
|
38
|
+
"$comment": "\"dependencies\" has been split and replaced by \"dependentSchemas\" and \"dependentRequired\" in order to serve their differing semantics.",
|
|
39
|
+
"type": "object",
|
|
40
|
+
"additionalProperties": { "anyOf": [{ "$dynamicRef": "#meta" }, { "$ref": "meta/validation#/$defs/stringArray" }] },
|
|
41
|
+
"deprecated": true,
|
|
42
|
+
"default": {}
|
|
43
|
+
},
|
|
44
|
+
"$recursiveAnchor": {
|
|
45
|
+
"$comment": "\"$recursiveAnchor\" has been replaced by \"$dynamicAnchor\".",
|
|
46
|
+
"$ref": "meta/core#/$defs/anchorString",
|
|
47
|
+
"deprecated": true
|
|
48
|
+
},
|
|
49
|
+
"$recursiveRef": {
|
|
50
|
+
"$comment": "\"$recursiveRef\" has been replaced by \"$dynamicRef\".",
|
|
51
|
+
"$ref": "meta/core#/$defs/uriReferenceString",
|
|
52
|
+
"deprecated": true
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
};
|
|
56
|
+
}));
|
|
57
|
+
//#endregion
|
|
58
|
+
export default require_schema();
|
|
59
|
+
export { require_schema };
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { __commonJSMin } from "../../../../../../../_virtual/_rolldown/runtime.js";
|
|
2
|
+
import { require_fast_deep_equal } from "../../../../../fast-deep-equal@3.1.3/node_modules/fast-deep-equal/index.js";
|
|
3
|
+
//#region ../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/runtime/equal.js
|
|
4
|
+
var require_equal = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
const equal = require_fast_deep_equal();
|
|
7
|
+
equal.code = "require(\"ajv/dist/runtime/equal\").default";
|
|
8
|
+
exports.default = equal;
|
|
9
|
+
}));
|
|
10
|
+
//#endregion
|
|
11
|
+
export default require_equal();
|
|
12
|
+
export { require_equal };
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { __commonJSMin } from "../../../../../../../_virtual/_rolldown/runtime.js";
|
|
2
|
+
//#region ../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/runtime/ucs2length.js
|
|
3
|
+
var require_ucs2length = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
4
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
+
function ucs2length(str) {
|
|
6
|
+
const len = str.length;
|
|
7
|
+
let length = 0;
|
|
8
|
+
let pos = 0;
|
|
9
|
+
let value;
|
|
10
|
+
while (pos < len) {
|
|
11
|
+
length++;
|
|
12
|
+
value = str.charCodeAt(pos++);
|
|
13
|
+
if (value >= 55296 && value <= 56319 && pos < len) {
|
|
14
|
+
value = str.charCodeAt(pos);
|
|
15
|
+
if ((value & 64512) === 56320) pos++;
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
return length;
|
|
19
|
+
}
|
|
20
|
+
exports.default = ucs2length;
|
|
21
|
+
ucs2length.code = "require(\"ajv/dist/runtime/ucs2length\").default";
|
|
22
|
+
}));
|
|
23
|
+
//#endregion
|
|
24
|
+
export default require_ucs2length();
|
|
25
|
+
export { require_ucs2length };
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { __commonJSMin } from "../../../../../../../_virtual/_rolldown/runtime.js";
|
|
2
|
+
import { require_fast_uri } from "../../../../../fast-uri@3.1.0/node_modules/fast-uri/index.js";
|
|
3
|
+
//#region ../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/runtime/uri.js
|
|
4
|
+
var require_uri = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
const uri = require_fast_uri();
|
|
7
|
+
uri.code = "require(\"ajv/dist/runtime/uri\").default";
|
|
8
|
+
exports.default = uri;
|
|
9
|
+
}));
|
|
10
|
+
//#endregion
|
|
11
|
+
export default require_uri();
|
|
12
|
+
export { require_uri };
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { __commonJSMin } from "../../../../../../../_virtual/_rolldown/runtime.js";
|
|
2
|
+
//#region ../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/runtime/validation_error.js
|
|
3
|
+
var require_validation_error = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
4
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
+
var ValidationError = class extends Error {
|
|
6
|
+
constructor(errors) {
|
|
7
|
+
super("validation failed");
|
|
8
|
+
this.errors = errors;
|
|
9
|
+
this.ajv = this.validation = true;
|
|
10
|
+
}
|
|
11
|
+
};
|
|
12
|
+
exports.default = ValidationError;
|
|
13
|
+
}));
|
|
14
|
+
//#endregion
|
|
15
|
+
export default require_validation_error();
|
|
16
|
+
export { require_validation_error };
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import { __commonJSMin } from "../../../../../../../../_virtual/_rolldown/runtime.js";
|
|
2
|
+
import { require_codegen } from "../../compile/codegen/index.js";
|
|
3
|
+
import { require_util } from "../../compile/util.js";
|
|
4
|
+
//#region ../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/additionalItems.js
|
|
5
|
+
var require_additionalItems = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
6
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
+
exports.validateAdditionalItems = void 0;
|
|
8
|
+
const codegen_1 = require_codegen();
|
|
9
|
+
const util_1 = require_util();
|
|
10
|
+
const def = {
|
|
11
|
+
keyword: "additionalItems",
|
|
12
|
+
type: "array",
|
|
13
|
+
schemaType: ["boolean", "object"],
|
|
14
|
+
before: "uniqueItems",
|
|
15
|
+
error: {
|
|
16
|
+
message: ({ params: { len } }) => (0, codegen_1.str)`must NOT have more than ${len} items`,
|
|
17
|
+
params: ({ params: { len } }) => (0, codegen_1._)`{limit: ${len}}`
|
|
18
|
+
},
|
|
19
|
+
code(cxt) {
|
|
20
|
+
const { parentSchema, it } = cxt;
|
|
21
|
+
const { items } = parentSchema;
|
|
22
|
+
if (!Array.isArray(items)) {
|
|
23
|
+
(0, util_1.checkStrictMode)(it, "\"additionalItems\" is ignored when \"items\" is not an array of schemas");
|
|
24
|
+
return;
|
|
25
|
+
}
|
|
26
|
+
validateAdditionalItems(cxt, items);
|
|
27
|
+
}
|
|
28
|
+
};
|
|
29
|
+
function validateAdditionalItems(cxt, items) {
|
|
30
|
+
const { gen, schema, data, keyword, it } = cxt;
|
|
31
|
+
it.items = true;
|
|
32
|
+
const len = gen.const("len", (0, codegen_1._)`${data}.length`);
|
|
33
|
+
if (schema === false) {
|
|
34
|
+
cxt.setParams({ len: items.length });
|
|
35
|
+
cxt.pass((0, codegen_1._)`${len} <= ${items.length}`);
|
|
36
|
+
} else if (typeof schema == "object" && !(0, util_1.alwaysValidSchema)(it, schema)) {
|
|
37
|
+
const valid = gen.var("valid", (0, codegen_1._)`${len} <= ${items.length}`);
|
|
38
|
+
gen.if((0, codegen_1.not)(valid), () => validateItems(valid));
|
|
39
|
+
cxt.ok(valid);
|
|
40
|
+
}
|
|
41
|
+
function validateItems(valid) {
|
|
42
|
+
gen.forRange("i", items.length, len, (i) => {
|
|
43
|
+
cxt.subschema({
|
|
44
|
+
keyword,
|
|
45
|
+
dataProp: i,
|
|
46
|
+
dataPropType: util_1.Type.Num
|
|
47
|
+
}, valid);
|
|
48
|
+
if (!it.allErrors) gen.if((0, codegen_1.not)(valid), () => gen.break());
|
|
49
|
+
});
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
exports.validateAdditionalItems = validateAdditionalItems;
|
|
53
|
+
exports.default = def;
|
|
54
|
+
}));
|
|
55
|
+
//#endregion
|
|
56
|
+
export default require_additionalItems();
|
|
57
|
+
export { require_additionalItems };
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
import { __commonJSMin } from "../../../../../../../../_virtual/_rolldown/runtime.js";
|
|
2
|
+
import { require_codegen } from "../../compile/codegen/index.js";
|
|
3
|
+
import { require_util } from "../../compile/util.js";
|
|
4
|
+
import { require_names } from "../../compile/names.js";
|
|
5
|
+
import { require_code } from "../code.js";
|
|
6
|
+
//#region ../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/additionalProperties.js
|
|
7
|
+
var require_additionalProperties = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
8
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
|
+
const code_1 = require_code();
|
|
10
|
+
const codegen_1 = require_codegen();
|
|
11
|
+
const names_1 = require_names();
|
|
12
|
+
const util_1 = require_util();
|
|
13
|
+
exports.default = {
|
|
14
|
+
keyword: "additionalProperties",
|
|
15
|
+
type: ["object"],
|
|
16
|
+
schemaType: ["boolean", "object"],
|
|
17
|
+
allowUndefined: true,
|
|
18
|
+
trackErrors: true,
|
|
19
|
+
error: {
|
|
20
|
+
message: "must NOT have additional properties",
|
|
21
|
+
params: ({ params }) => (0, codegen_1._)`{additionalProperty: ${params.additionalProperty}}`
|
|
22
|
+
},
|
|
23
|
+
code(cxt) {
|
|
24
|
+
const { gen, schema, parentSchema, data, errsCount, it } = cxt;
|
|
25
|
+
/* istanbul ignore if */
|
|
26
|
+
if (!errsCount) throw new Error("ajv implementation error");
|
|
27
|
+
const { allErrors, opts } = it;
|
|
28
|
+
it.props = true;
|
|
29
|
+
if (opts.removeAdditional !== "all" && (0, util_1.alwaysValidSchema)(it, schema)) return;
|
|
30
|
+
const props = (0, code_1.allSchemaProperties)(parentSchema.properties);
|
|
31
|
+
const patProps = (0, code_1.allSchemaProperties)(parentSchema.patternProperties);
|
|
32
|
+
checkAdditionalProperties();
|
|
33
|
+
cxt.ok((0, codegen_1._)`${errsCount} === ${names_1.default.errors}`);
|
|
34
|
+
function checkAdditionalProperties() {
|
|
35
|
+
gen.forIn("key", data, (key) => {
|
|
36
|
+
if (!props.length && !patProps.length) additionalPropertyCode(key);
|
|
37
|
+
else gen.if(isAdditional(key), () => additionalPropertyCode(key));
|
|
38
|
+
});
|
|
39
|
+
}
|
|
40
|
+
function isAdditional(key) {
|
|
41
|
+
let definedProp;
|
|
42
|
+
if (props.length > 8) {
|
|
43
|
+
const propsSchema = (0, util_1.schemaRefOrVal)(it, parentSchema.properties, "properties");
|
|
44
|
+
definedProp = (0, code_1.isOwnProperty)(gen, propsSchema, key);
|
|
45
|
+
} else if (props.length) definedProp = (0, codegen_1.or)(...props.map((p) => (0, codegen_1._)`${key} === ${p}`));
|
|
46
|
+
else definedProp = codegen_1.nil;
|
|
47
|
+
if (patProps.length) definedProp = (0, codegen_1.or)(definedProp, ...patProps.map((p) => (0, codegen_1._)`${(0, code_1.usePattern)(cxt, p)}.test(${key})`));
|
|
48
|
+
return (0, codegen_1.not)(definedProp);
|
|
49
|
+
}
|
|
50
|
+
function deleteAdditional(key) {
|
|
51
|
+
gen.code((0, codegen_1._)`delete ${data}[${key}]`);
|
|
52
|
+
}
|
|
53
|
+
function additionalPropertyCode(key) {
|
|
54
|
+
if (opts.removeAdditional === "all" || opts.removeAdditional && schema === false) {
|
|
55
|
+
deleteAdditional(key);
|
|
56
|
+
return;
|
|
57
|
+
}
|
|
58
|
+
if (schema === false) {
|
|
59
|
+
cxt.setParams({ additionalProperty: key });
|
|
60
|
+
cxt.error();
|
|
61
|
+
if (!allErrors) gen.break();
|
|
62
|
+
return;
|
|
63
|
+
}
|
|
64
|
+
if (typeof schema == "object" && !(0, util_1.alwaysValidSchema)(it, schema)) {
|
|
65
|
+
const valid = gen.name("valid");
|
|
66
|
+
if (opts.removeAdditional === "failing") {
|
|
67
|
+
applyAdditionalSchema(key, valid, false);
|
|
68
|
+
gen.if((0, codegen_1.not)(valid), () => {
|
|
69
|
+
cxt.reset();
|
|
70
|
+
deleteAdditional(key);
|
|
71
|
+
});
|
|
72
|
+
} else {
|
|
73
|
+
applyAdditionalSchema(key, valid);
|
|
74
|
+
if (!allErrors) gen.if((0, codegen_1.not)(valid), () => gen.break());
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
function applyAdditionalSchema(key, valid, errors) {
|
|
79
|
+
const subschema = {
|
|
80
|
+
keyword: "additionalProperties",
|
|
81
|
+
dataProp: key,
|
|
82
|
+
dataPropType: util_1.Type.Str
|
|
83
|
+
};
|
|
84
|
+
if (errors === false) Object.assign(subschema, {
|
|
85
|
+
compositeRule: true,
|
|
86
|
+
createErrors: false,
|
|
87
|
+
allErrors: false
|
|
88
|
+
});
|
|
89
|
+
cxt.subschema(subschema, valid);
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
};
|
|
93
|
+
}));
|
|
94
|
+
//#endregion
|
|
95
|
+
export default require_additionalProperties();
|
|
96
|
+
export { require_additionalProperties };
|
package/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/allOf.js
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { __commonJSMin } from "../../../../../../../../_virtual/_rolldown/runtime.js";
|
|
2
|
+
import { require_util } from "../../compile/util.js";
|
|
3
|
+
//#region ../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/allOf.js
|
|
4
|
+
var require_allOf = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
const util_1 = require_util();
|
|
7
|
+
exports.default = {
|
|
8
|
+
keyword: "allOf",
|
|
9
|
+
schemaType: "array",
|
|
10
|
+
code(cxt) {
|
|
11
|
+
const { gen, schema, it } = cxt;
|
|
12
|
+
/* istanbul ignore if */
|
|
13
|
+
if (!Array.isArray(schema)) throw new Error("ajv implementation error");
|
|
14
|
+
const valid = gen.name("valid");
|
|
15
|
+
schema.forEach((sch, i) => {
|
|
16
|
+
if ((0, util_1.alwaysValidSchema)(it, sch)) return;
|
|
17
|
+
const schCxt = cxt.subschema({
|
|
18
|
+
keyword: "allOf",
|
|
19
|
+
schemaProp: i
|
|
20
|
+
}, valid);
|
|
21
|
+
cxt.ok(valid);
|
|
22
|
+
cxt.mergeEvaluated(schCxt);
|
|
23
|
+
});
|
|
24
|
+
}
|
|
25
|
+
};
|
|
26
|
+
}));
|
|
27
|
+
//#endregion
|
|
28
|
+
export default require_allOf();
|
|
29
|
+
export { require_allOf };
|
package/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/anyOf.js
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { __commonJSMin } from "../../../../../../../../_virtual/_rolldown/runtime.js";
|
|
2
|
+
import { require_code } from "../code.js";
|
|
3
|
+
//#region ../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/anyOf.js
|
|
4
|
+
var require_anyOf = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.default = {
|
|
7
|
+
keyword: "anyOf",
|
|
8
|
+
schemaType: "array",
|
|
9
|
+
trackErrors: true,
|
|
10
|
+
code: require_code().validateUnion,
|
|
11
|
+
error: { message: "must match a schema in anyOf" }
|
|
12
|
+
};
|
|
13
|
+
}));
|
|
14
|
+
//#endregion
|
|
15
|
+
export default require_anyOf();
|
|
16
|
+
export { require_anyOf };
|
package/dist/node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/contains.js
ADDED
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
import { __commonJSMin } from "../../../../../../../../_virtual/_rolldown/runtime.js";
|
|
2
|
+
import { require_codegen } from "../../compile/codegen/index.js";
|
|
3
|
+
import { require_util } from "../../compile/util.js";
|
|
4
|
+
//#region ../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/contains.js
|
|
5
|
+
var require_contains = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
6
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
+
const codegen_1 = require_codegen();
|
|
8
|
+
const util_1 = require_util();
|
|
9
|
+
exports.default = {
|
|
10
|
+
keyword: "contains",
|
|
11
|
+
type: "array",
|
|
12
|
+
schemaType: ["object", "boolean"],
|
|
13
|
+
before: "uniqueItems",
|
|
14
|
+
trackErrors: true,
|
|
15
|
+
error: {
|
|
16
|
+
message: ({ params: { min, max } }) => max === void 0 ? (0, codegen_1.str)`must contain at least ${min} valid item(s)` : (0, codegen_1.str)`must contain at least ${min} and no more than ${max} valid item(s)`,
|
|
17
|
+
params: ({ params: { min, max } }) => max === void 0 ? (0, codegen_1._)`{minContains: ${min}}` : (0, codegen_1._)`{minContains: ${min}, maxContains: ${max}}`
|
|
18
|
+
},
|
|
19
|
+
code(cxt) {
|
|
20
|
+
const { gen, schema, parentSchema, data, it } = cxt;
|
|
21
|
+
let min;
|
|
22
|
+
let max;
|
|
23
|
+
const { minContains, maxContains } = parentSchema;
|
|
24
|
+
if (it.opts.next) {
|
|
25
|
+
min = minContains === void 0 ? 1 : minContains;
|
|
26
|
+
max = maxContains;
|
|
27
|
+
} else min = 1;
|
|
28
|
+
const len = gen.const("len", (0, codegen_1._)`${data}.length`);
|
|
29
|
+
cxt.setParams({
|
|
30
|
+
min,
|
|
31
|
+
max
|
|
32
|
+
});
|
|
33
|
+
if (max === void 0 && min === 0) {
|
|
34
|
+
(0, util_1.checkStrictMode)(it, `"minContains" == 0 without "maxContains": "contains" keyword ignored`);
|
|
35
|
+
return;
|
|
36
|
+
}
|
|
37
|
+
if (max !== void 0 && min > max) {
|
|
38
|
+
(0, util_1.checkStrictMode)(it, `"minContains" > "maxContains" is always invalid`);
|
|
39
|
+
cxt.fail();
|
|
40
|
+
return;
|
|
41
|
+
}
|
|
42
|
+
if ((0, util_1.alwaysValidSchema)(it, schema)) {
|
|
43
|
+
let cond = (0, codegen_1._)`${len} >= ${min}`;
|
|
44
|
+
if (max !== void 0) cond = (0, codegen_1._)`${cond} && ${len} <= ${max}`;
|
|
45
|
+
cxt.pass(cond);
|
|
46
|
+
return;
|
|
47
|
+
}
|
|
48
|
+
it.items = true;
|
|
49
|
+
const valid = gen.name("valid");
|
|
50
|
+
if (max === void 0 && min === 1) validateItems(valid, () => gen.if(valid, () => gen.break()));
|
|
51
|
+
else if (min === 0) {
|
|
52
|
+
gen.let(valid, true);
|
|
53
|
+
if (max !== void 0) gen.if((0, codegen_1._)`${data}.length > 0`, validateItemsWithCount);
|
|
54
|
+
} else {
|
|
55
|
+
gen.let(valid, false);
|
|
56
|
+
validateItemsWithCount();
|
|
57
|
+
}
|
|
58
|
+
cxt.result(valid, () => cxt.reset());
|
|
59
|
+
function validateItemsWithCount() {
|
|
60
|
+
const schValid = gen.name("_valid");
|
|
61
|
+
const count = gen.let("count", 0);
|
|
62
|
+
validateItems(schValid, () => gen.if(schValid, () => checkLimits(count)));
|
|
63
|
+
}
|
|
64
|
+
function validateItems(_valid, block) {
|
|
65
|
+
gen.forRange("i", 0, len, (i) => {
|
|
66
|
+
cxt.subschema({
|
|
67
|
+
keyword: "contains",
|
|
68
|
+
dataProp: i,
|
|
69
|
+
dataPropType: util_1.Type.Num,
|
|
70
|
+
compositeRule: true
|
|
71
|
+
}, _valid);
|
|
72
|
+
block();
|
|
73
|
+
});
|
|
74
|
+
}
|
|
75
|
+
function checkLimits(count) {
|
|
76
|
+
gen.code((0, codegen_1._)`${count}++`);
|
|
77
|
+
if (max === void 0) gen.if((0, codegen_1._)`${count} >= ${min}`, () => gen.assign(valid, true).break());
|
|
78
|
+
else {
|
|
79
|
+
gen.if((0, codegen_1._)`${count} > ${max}`, () => gen.assign(valid, false).break());
|
|
80
|
+
if (min === 1) gen.assign(valid, true);
|
|
81
|
+
else gen.if((0, codegen_1._)`${count} >= ${min}`, () => gen.assign(valid, true));
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
};
|
|
86
|
+
}));
|
|
87
|
+
//#endregion
|
|
88
|
+
export default require_contains();
|
|
89
|
+
export { require_contains };
|