@hyperjump/json-schema 0.23.2 → 0.23.4
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/dist/json-schema-amd.js +933 -42
- package/dist/json-schema-amd.js.map +1 -1
- package/dist/json-schema-amd.min.js +2 -3
- package/dist/json-schema-amd.min.js.map +1 -1
- package/dist/json-schema-cjs.js +933 -42
- package/dist/json-schema-cjs.js.map +1 -1
- package/dist/json-schema-cjs.min.js +2 -3
- package/dist/json-schema-cjs.min.js.map +1 -1
- package/dist/json-schema-esm.js +933 -42
- package/dist/json-schema-esm.js.map +1 -1
- package/dist/json-schema-esm.min.js +2 -3
- package/dist/json-schema-esm.min.js.map +1 -1
- package/dist/json-schema-iife.js +933 -42
- package/dist/json-schema-iife.js.map +1 -1
- package/dist/json-schema-iife.min.js +2 -3
- package/dist/json-schema-iife.min.js.map +1 -1
- package/dist/json-schema-system.js +933 -42
- package/dist/json-schema-system.js.map +1 -1
- package/dist/json-schema-system.min.js +2 -3
- package/dist/json-schema-system.min.js.map +1 -1
- package/dist/json-schema-umd.js +933 -42
- package/dist/json-schema-umd.js.map +1 -1
- package/dist/json-schema-umd.min.js +2 -3
- package/dist/json-schema-umd.min.js.map +1 -1
- package/lib/common.d.ts +1 -0
- package/lib/draft-04.d.ts +3 -2
- package/lib/draft-06.d.ts +3 -2
- package/lib/draft-07.d.ts +3 -2
- package/lib/draft-2019-09.d.ts +3 -2
- package/lib/draft-2020-12.d.ts +3 -2
- package/package.json +3 -3
package/lib/common.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type JsonSchemaType = "object" | "array" | "string" | "number" | "integer" | "boolean" | "null";
|
package/lib/draft-04.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import type { Json
|
|
1
|
+
import type { Json } from "@hyperjump/json-schema-core";
|
|
2
|
+
import type { JsonSchemaType } from "./common";
|
|
2
3
|
|
|
3
4
|
|
|
4
5
|
export type Draft04Schema = {
|
|
@@ -31,7 +32,7 @@ export type Draft04Schema = {
|
|
|
31
32
|
patternProperties?: Record<string, Draft04Schema>;
|
|
32
33
|
dependencies?: Record<string, Draft04Schema | string[]>;
|
|
33
34
|
enum?: Json[];
|
|
34
|
-
type?:
|
|
35
|
+
type?: JsonSchemaType | JsonSchemaType[];
|
|
35
36
|
format?: "date-time" | "email" | "hostname" | "ipv4" | "ipv6" | "uri";
|
|
36
37
|
allOf?: Draft04Schema[];
|
|
37
38
|
anyOf?: Draft04Schema[];
|
package/lib/draft-06.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import type { Json
|
|
1
|
+
import type { Json } from "@hyperjump/json-schema-core";
|
|
2
|
+
import type { JsonSchemaType } from "./common";
|
|
2
3
|
|
|
3
4
|
|
|
4
5
|
export type Draft06Schema = boolean | {
|
|
@@ -35,7 +36,7 @@ export type Draft06Schema = boolean | {
|
|
|
35
36
|
propertyNames?: Draft06Schema;
|
|
36
37
|
const?: Json;
|
|
37
38
|
enum?: Json[];
|
|
38
|
-
type?:
|
|
39
|
+
type?: JsonSchemaType | JsonSchemaType[];
|
|
39
40
|
format?: "date-time" | "email" | "hostname" | "ipv4" | "ipv6" | "uri" | "uri-reference" | "uri-template" | "json-pointer";
|
|
40
41
|
allOf?: Draft06Schema[];
|
|
41
42
|
anyOf?: Draft06Schema[];
|
package/lib/draft-07.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import type { Json
|
|
1
|
+
import type { Json } from "@hyperjump/json-schema-core";
|
|
2
|
+
import type { JsonSchemaType } from "./common";
|
|
2
3
|
|
|
3
4
|
|
|
4
5
|
export type Draft07Schema = boolean | {
|
|
@@ -38,7 +39,7 @@ export type Draft07Schema = boolean | {
|
|
|
38
39
|
propertyNames?: Draft07Schema;
|
|
39
40
|
const?: Json;
|
|
40
41
|
enum?: Json[];
|
|
41
|
-
type?:
|
|
42
|
+
type?: JsonSchemaType | JsonSchemaType[];
|
|
42
43
|
format?: "date-time" | "date" | "time" | "email" | "idn-email" | "hostname" | "idn-hostname" | "ipv4" | "ipv6" | "uri" | "uri-reference" | "iri" | "iri-reference" | "uri-template" | "json-pointer" | "relative-json-pointer" | "regex";
|
|
43
44
|
contentMediaType?: string;
|
|
44
45
|
contentEncoding?: string;
|
package/lib/draft-2019-09.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import type { Json
|
|
1
|
+
import type { Json } from "@hyperjump/json-schema-core";
|
|
2
|
+
import type { JsonSchemaType } from "./common";
|
|
2
3
|
|
|
3
4
|
|
|
4
5
|
export type Draft201909Schema = boolean | {
|
|
@@ -47,7 +48,7 @@ export type Draft201909Schema = boolean | {
|
|
|
47
48
|
dependentRequired?: Record<string, string[]>;
|
|
48
49
|
const?: Json;
|
|
49
50
|
enum?: Json[];
|
|
50
|
-
type?:
|
|
51
|
+
type?: JsonSchemaType | JsonSchemaType[];
|
|
51
52
|
title?: string;
|
|
52
53
|
description?: string;
|
|
53
54
|
default?: Json;
|
package/lib/draft-2020-12.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import type { Json
|
|
1
|
+
import type { Json } from "@hyperjump/json-schema-core";
|
|
2
|
+
import type { JsonSchemaType } from "./common";
|
|
2
3
|
|
|
3
4
|
|
|
4
5
|
export type Draft202012Schema = boolean | {
|
|
@@ -48,7 +49,7 @@ export type Draft202012Schema = boolean | {
|
|
|
48
49
|
dependentRequired?: Record<string, string[]>;
|
|
49
50
|
const?: Json;
|
|
50
51
|
enum?: Json[];
|
|
51
|
-
type?:
|
|
52
|
+
type?: JsonSchemaType | JsonSchemaType[];
|
|
52
53
|
title?: string;
|
|
53
54
|
description?: string;
|
|
54
55
|
default?: Json;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hyperjump/json-schema",
|
|
3
|
-
"version": "0.23.
|
|
3
|
+
"version": "0.23.4",
|
|
4
4
|
"description": "A JSON Schema Validator",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"exports": {
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
"test": "mocha --require ts-node/register 'lib/**/*.spec.ts'",
|
|
14
14
|
"build": "rollup --config rollup.config.js",
|
|
15
15
|
"prepublishOnly": "npm run build",
|
|
16
|
-
"postinstall": "node -e \"require('fs').rmSync('dist', { recursive: true })\""
|
|
16
|
+
"postinstall": "node -e \"require('fs').rmSync('dist', { force: true, recursive: true })\""
|
|
17
17
|
},
|
|
18
18
|
"repository": "github:hyperjump-io/json-schema-validator",
|
|
19
19
|
"keywords": [
|
|
@@ -35,6 +35,7 @@
|
|
|
35
35
|
"devDependencies": {
|
|
36
36
|
"@rollup/plugin-commonjs": "*",
|
|
37
37
|
"@rollup/plugin-node-resolve": "*",
|
|
38
|
+
"@rollup/plugin-terser": "*",
|
|
38
39
|
"@types/chai": "*",
|
|
39
40
|
"@types/mocha": "*",
|
|
40
41
|
"@typescript-eslint/eslint-plugin": "*",
|
|
@@ -48,7 +49,6 @@
|
|
|
48
49
|
"mocha": "*",
|
|
49
50
|
"rimraf": "*",
|
|
50
51
|
"rollup": "*",
|
|
51
|
-
"rollup-plugin-terser": "*",
|
|
52
52
|
"ts-node": "*",
|
|
53
53
|
"typescript": "*"
|
|
54
54
|
},
|