@hyperjump/json-schema 1.0.0 → 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/README.md +29 -0
- package/lib/openapi.js +29 -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 +5 -2
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
export default {
|
|
2
|
+
"$id": "https://spec.openapis.org/oas/3.1/schema-base/2022-10-07",
|
|
3
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
4
|
+
|
|
5
|
+
"description": "The description of OpenAPI v3.1.x documents using the OpenAPI JSON Schema dialect, as defined by https://spec.openapis.org/oas/v3.1.0",
|
|
6
|
+
|
|
7
|
+
"$ref": "https://spec.openapis.org/oas/3.1/schema/2022-10-07",
|
|
8
|
+
"properties": {
|
|
9
|
+
"jsonSchemaDialect": { "$ref": "#/$defs/dialect" }
|
|
10
|
+
},
|
|
11
|
+
|
|
12
|
+
"$defs": {
|
|
13
|
+
"dialect": { "const": "https://spec.openapis.org/oas/3.1/dialect/base" },
|
|
14
|
+
|
|
15
|
+
"schema": {
|
|
16
|
+
"$dynamicAnchor": "meta",
|
|
17
|
+
"$ref": "https://spec.openapis.org/oas/3.1/dialect/base",
|
|
18
|
+
"properties": {
|
|
19
|
+
"$schema": { "$ref": "#/$defs/dialect" }
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
};
|
package/package.json
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hyperjump/json-schema",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.1.0",
|
|
4
4
|
"description": "A JSON Schema validator with support for custom keywords, vocabularies, and dialects",
|
|
5
5
|
"type": "module",
|
|
6
|
+
"main": "./stable/index.js",
|
|
6
7
|
"exports": {
|
|
7
8
|
".": "./stable/index.js",
|
|
8
9
|
"./draft-04": "./draft-04/index.js",
|
|
@@ -10,6 +11,8 @@
|
|
|
10
11
|
"./draft-07": "./draft-07/index.js",
|
|
11
12
|
"./draft-2019-09": "./draft-2019-09/index.js",
|
|
12
13
|
"./draft-2020-12": "./draft-2020-12/index.js",
|
|
14
|
+
"./openapi-3-0": "./openapi-3-0/index.js",
|
|
15
|
+
"./openapi-3-1": "./openapi-3-1/index.js",
|
|
13
16
|
"./experimental": "./lib/experimental.js",
|
|
14
17
|
"./schema/experimental": "./lib/schema.js",
|
|
15
18
|
"./instance/experimental": "./lib/instance.js"
|
|
@@ -20,7 +23,7 @@
|
|
|
20
23
|
"scripts": {
|
|
21
24
|
"clean": "xargs -a .gitignore rm -rf",
|
|
22
25
|
"lint": "eslint lib",
|
|
23
|
-
"test": "mocha 'lib/**/*.spec.ts' 'stable/**/*.spec.ts' 'draft-*/**/*.spec.ts'"
|
|
26
|
+
"test": "mocha 'lib/**/*.spec.ts' 'stable/**/*.spec.ts' 'draft-*/**/*.spec.ts' 'oas-*/**/*.spec.ts'"
|
|
24
27
|
},
|
|
25
28
|
"repository": "github:hyperjump-io/json-schema",
|
|
26
29
|
"keywords": [
|