@forklaunch/validator 0.3.12 → 0.4.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/lib/index-V6qNDTlr.d.mts +476 -0
- package/lib/index-V6qNDTlr.d.ts +476 -0
- package/lib/index.d.mts +6 -0
- package/lib/index.d.ts +6 -2
- package/lib/index.js +18 -1
- package/lib/index.mjs +0 -0
- package/lib/src/typebox/index.d.mts +220 -0
- package/lib/src/typebox/index.d.ts +220 -3
- package/lib/src/typebox/index.js +448 -1
- package/lib/src/typebox/index.mjs +406 -0
- package/lib/src/zod/index.d.mts +106 -0
- package/lib/src/zod/index.d.ts +106 -3
- package/lib/src/zod/index.js +291 -1
- package/lib/src/zod/index.mjs +244 -0
- package/lib/tests/utils/mockSchemaValidator.d.mts +69 -0
- package/lib/tests/utils/mockSchemaValidator.d.ts +29 -25
- package/lib/tests/utils/mockSchemaValidator.js +143 -79
- package/lib/tests/utils/mockSchemaValidator.mjs +99 -0
- package/package.json +21 -8
- package/lib/index.d.ts.map +0 -1
- package/lib/src/shared/types/schema.types.d.ts +0 -255
- package/lib/src/shared/types/schema.types.d.ts.map +0 -1
- package/lib/src/shared/types/schema.types.js +0 -1
- package/lib/src/typebox/index.d.ts.map +0 -1
- package/lib/src/typebox/staticSchemaValidator.d.ts +0 -99
- package/lib/src/typebox/staticSchemaValidator.d.ts.map +0 -1
- package/lib/src/typebox/staticSchemaValidator.js +0 -99
- package/lib/src/typebox/typeboxSchemaValidator.d.ts +0 -122
- package/lib/src/typebox/typeboxSchemaValidator.d.ts.map +0 -1
- package/lib/src/typebox/typeboxSchemaValidator.js +0 -362
- package/lib/src/typebox/types/schema.types.d.ts +0 -59
- package/lib/src/typebox/types/schema.types.d.ts.map +0 -1
- package/lib/src/typebox/types/schema.types.js +0 -1
- package/lib/src/zod/index.d.ts.map +0 -1
- package/lib/src/zod/staticSchemaValidator.d.ts +0 -99
- package/lib/src/zod/staticSchemaValidator.d.ts.map +0 -1
- package/lib/src/zod/staticSchemaValidator.js +0 -99
- package/lib/src/zod/types/schema.types.d.ts +0 -71
- package/lib/src/zod/types/schema.types.d.ts.map +0 -1
- package/lib/src/zod/types/schema.types.js +0 -1
- package/lib/src/zod/zodSchemaValidator.d.ts +0 -110
- package/lib/src/zod/zodSchemaValidator.d.ts.map +0 -1
- package/lib/src/zod/zodSchemaValidator.js +0 -192
- package/lib/tests/typebox/advancedParse.test.d.ts +0 -2
- package/lib/tests/typebox/advancedParse.test.d.ts.map +0 -1
- package/lib/tests/typebox/advancedParse.test.js +0 -514
- package/lib/tests/typebox/largeSchema.test.d.ts +0 -2
- package/lib/tests/typebox/largeSchema.test.d.ts.map +0 -1
- package/lib/tests/typebox/largeSchema.test.js +0 -150
- package/lib/tests/typebox/schemaValidator.test.d.ts +0 -2
- package/lib/tests/typebox/schemaValidator.test.d.ts.map +0 -1
- package/lib/tests/typebox/schemaValidator.test.js +0 -253
- package/lib/tests/typebox/typeEquality.test.d.ts +0 -2
- package/lib/tests/typebox/typeEquality.test.d.ts.map +0 -1
- package/lib/tests/typebox/typeEquality.test.js +0 -100
- package/lib/tests/utils/compare.d.ts +0 -2
- package/lib/tests/utils/compare.d.ts.map +0 -1
- package/lib/tests/utils/compare.js +0 -8
- package/lib/tests/utils/mockSchemaValidator.d.ts.map +0 -1
- package/lib/tests/zod/advancedParse.test.d.ts +0 -2
- package/lib/tests/zod/advancedParse.test.d.ts.map +0 -1
- package/lib/tests/zod/advancedParse.test.js +0 -514
- package/lib/tests/zod/largeSchema.test.d.ts +0 -2
- package/lib/tests/zod/largeSchema.test.d.ts.map +0 -1
- package/lib/tests/zod/largeSchema.test.js +0 -150
- package/lib/tests/zod/schemaValidator.test.d.ts +0 -2
- package/lib/tests/zod/schemaValidator.test.d.ts.map +0 -1
- package/lib/tests/zod/schemaValidator.test.js +0 -205
- package/lib/tests/zod/typeEquality.test.d.ts +0 -2
- package/lib/tests/zod/typeEquality.test.d.ts.map +0 -1
- package/lib/tests/zod/typeEquality.test.js +0 -100
- package/lib/tsconfig.tsbuildinfo +0 -1
- package/lib/vitest.config.d.ts +0 -3
- package/lib/vitest.config.d.ts.map +0 -1
- package/lib/vitest.config.js +0 -7
|
@@ -1,79 +1,143 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
+
};
|
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
+
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
+
|
|
20
|
+
// tests/utils/mockSchemaValidator.ts
|
|
21
|
+
var mockSchemaValidator_exports = {};
|
|
22
|
+
__export(mockSchemaValidator_exports, {
|
|
23
|
+
MockSchemaValidator: () => MockSchemaValidator,
|
|
24
|
+
any: () => any,
|
|
25
|
+
array: () => array,
|
|
26
|
+
bigint: () => bigint,
|
|
27
|
+
boolean: () => boolean,
|
|
28
|
+
date: () => date,
|
|
29
|
+
enum_: () => enum_,
|
|
30
|
+
literal: () => literal,
|
|
31
|
+
mockSchemaValidator: () => mockSchemaValidator,
|
|
32
|
+
never: () => never,
|
|
33
|
+
nullish: () => nullish,
|
|
34
|
+
number: () => number,
|
|
35
|
+
openapi: () => openapi,
|
|
36
|
+
optional: () => optional,
|
|
37
|
+
schemify: () => schemify,
|
|
38
|
+
string: () => string,
|
|
39
|
+
symbol: () => symbol,
|
|
40
|
+
union: () => union,
|
|
41
|
+
unknown: () => unknown,
|
|
42
|
+
validate: () => validate
|
|
43
|
+
});
|
|
44
|
+
module.exports = __toCommonJS(mockSchemaValidator_exports);
|
|
45
|
+
var MockSchemaValidator = class {
|
|
46
|
+
_Type;
|
|
47
|
+
_SchemaCatchall;
|
|
48
|
+
_ValidSchemaObject;
|
|
49
|
+
string = "string";
|
|
50
|
+
uuid = "uuid";
|
|
51
|
+
email = "email";
|
|
52
|
+
uri = "uri";
|
|
53
|
+
number = "number";
|
|
54
|
+
bigint = "bigint";
|
|
55
|
+
boolean = "boolean";
|
|
56
|
+
date = "date";
|
|
57
|
+
symbol = "symbol";
|
|
58
|
+
nullish = "nullish";
|
|
59
|
+
any = "any";
|
|
60
|
+
unknown = "unknown";
|
|
61
|
+
never = "never";
|
|
62
|
+
compile(schema) {
|
|
63
|
+
return schema;
|
|
64
|
+
}
|
|
65
|
+
schemify(schema) {
|
|
66
|
+
return schema;
|
|
67
|
+
}
|
|
68
|
+
optional(schema) {
|
|
69
|
+
return `optional ${schema}`;
|
|
70
|
+
}
|
|
71
|
+
array(schema) {
|
|
72
|
+
return `array ${schema}`;
|
|
73
|
+
}
|
|
74
|
+
union(schemas) {
|
|
75
|
+
return schemas.join(" | ");
|
|
76
|
+
}
|
|
77
|
+
literal(schema) {
|
|
78
|
+
return `literal ${schema}`;
|
|
79
|
+
}
|
|
80
|
+
enum_(schemaEnum) {
|
|
81
|
+
return `enum ${Object.values(schemaEnum).join(" | ")}`;
|
|
82
|
+
}
|
|
83
|
+
isSchema(value) {
|
|
84
|
+
return typeof value === "string";
|
|
85
|
+
}
|
|
86
|
+
validate(schema, value) {
|
|
87
|
+
return schema === value;
|
|
88
|
+
}
|
|
89
|
+
parse(schema, value) {
|
|
90
|
+
return JSON.stringify(schema) === JSON.stringify(value) ? {
|
|
91
|
+
ok: true,
|
|
92
|
+
value: schema
|
|
93
|
+
} : {
|
|
94
|
+
ok: false,
|
|
95
|
+
error: "Some error"
|
|
96
|
+
};
|
|
97
|
+
}
|
|
98
|
+
openapi(_schema) {
|
|
99
|
+
return {};
|
|
100
|
+
}
|
|
101
|
+
};
|
|
102
|
+
var mockSchemaValidator = new MockSchemaValidator();
|
|
103
|
+
var string = mockSchemaValidator.string;
|
|
104
|
+
var number = mockSchemaValidator.number;
|
|
105
|
+
var bigint = mockSchemaValidator.bigint;
|
|
106
|
+
var boolean = mockSchemaValidator.boolean;
|
|
107
|
+
var date = mockSchemaValidator.date;
|
|
108
|
+
var symbol = mockSchemaValidator.symbol;
|
|
109
|
+
var nullish = mockSchemaValidator.nullish;
|
|
110
|
+
var any = mockSchemaValidator.any;
|
|
111
|
+
var unknown = mockSchemaValidator.unknown;
|
|
112
|
+
var never = mockSchemaValidator.never;
|
|
113
|
+
var schemify = mockSchemaValidator.schemify.bind(mockSchemaValidator);
|
|
114
|
+
var optional = mockSchemaValidator.optional.bind(mockSchemaValidator);
|
|
115
|
+
var array = mockSchemaValidator.array.bind(mockSchemaValidator);
|
|
116
|
+
var union = mockSchemaValidator.union.bind(mockSchemaValidator);
|
|
117
|
+
var literal = mockSchemaValidator.literal.bind(mockSchemaValidator);
|
|
118
|
+
var enum_ = mockSchemaValidator.enum_.bind(mockSchemaValidator);
|
|
119
|
+
var validate = mockSchemaValidator.validate.bind(mockSchemaValidator);
|
|
120
|
+
var openapi = mockSchemaValidator.openapi.bind(mockSchemaValidator);
|
|
121
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
122
|
+
0 && (module.exports = {
|
|
123
|
+
MockSchemaValidator,
|
|
124
|
+
any,
|
|
125
|
+
array,
|
|
126
|
+
bigint,
|
|
127
|
+
boolean,
|
|
128
|
+
date,
|
|
129
|
+
enum_,
|
|
130
|
+
literal,
|
|
131
|
+
mockSchemaValidator,
|
|
132
|
+
never,
|
|
133
|
+
nullish,
|
|
134
|
+
number,
|
|
135
|
+
openapi,
|
|
136
|
+
optional,
|
|
137
|
+
schemify,
|
|
138
|
+
string,
|
|
139
|
+
symbol,
|
|
140
|
+
union,
|
|
141
|
+
unknown,
|
|
142
|
+
validate
|
|
143
|
+
});
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
// tests/utils/mockSchemaValidator.ts
|
|
2
|
+
var MockSchemaValidator = class {
|
|
3
|
+
_Type;
|
|
4
|
+
_SchemaCatchall;
|
|
5
|
+
_ValidSchemaObject;
|
|
6
|
+
string = "string";
|
|
7
|
+
uuid = "uuid";
|
|
8
|
+
email = "email";
|
|
9
|
+
uri = "uri";
|
|
10
|
+
number = "number";
|
|
11
|
+
bigint = "bigint";
|
|
12
|
+
boolean = "boolean";
|
|
13
|
+
date = "date";
|
|
14
|
+
symbol = "symbol";
|
|
15
|
+
nullish = "nullish";
|
|
16
|
+
any = "any";
|
|
17
|
+
unknown = "unknown";
|
|
18
|
+
never = "never";
|
|
19
|
+
compile(schema) {
|
|
20
|
+
return schema;
|
|
21
|
+
}
|
|
22
|
+
schemify(schema) {
|
|
23
|
+
return schema;
|
|
24
|
+
}
|
|
25
|
+
optional(schema) {
|
|
26
|
+
return `optional ${schema}`;
|
|
27
|
+
}
|
|
28
|
+
array(schema) {
|
|
29
|
+
return `array ${schema}`;
|
|
30
|
+
}
|
|
31
|
+
union(schemas) {
|
|
32
|
+
return schemas.join(" | ");
|
|
33
|
+
}
|
|
34
|
+
literal(schema) {
|
|
35
|
+
return `literal ${schema}`;
|
|
36
|
+
}
|
|
37
|
+
enum_(schemaEnum) {
|
|
38
|
+
return `enum ${Object.values(schemaEnum).join(" | ")}`;
|
|
39
|
+
}
|
|
40
|
+
isSchema(value) {
|
|
41
|
+
return typeof value === "string";
|
|
42
|
+
}
|
|
43
|
+
validate(schema, value) {
|
|
44
|
+
return schema === value;
|
|
45
|
+
}
|
|
46
|
+
parse(schema, value) {
|
|
47
|
+
return JSON.stringify(schema) === JSON.stringify(value) ? {
|
|
48
|
+
ok: true,
|
|
49
|
+
value: schema
|
|
50
|
+
} : {
|
|
51
|
+
ok: false,
|
|
52
|
+
error: "Some error"
|
|
53
|
+
};
|
|
54
|
+
}
|
|
55
|
+
openapi(_schema) {
|
|
56
|
+
return {};
|
|
57
|
+
}
|
|
58
|
+
};
|
|
59
|
+
var mockSchemaValidator = new MockSchemaValidator();
|
|
60
|
+
var string = mockSchemaValidator.string;
|
|
61
|
+
var number = mockSchemaValidator.number;
|
|
62
|
+
var bigint = mockSchemaValidator.bigint;
|
|
63
|
+
var boolean = mockSchemaValidator.boolean;
|
|
64
|
+
var date = mockSchemaValidator.date;
|
|
65
|
+
var symbol = mockSchemaValidator.symbol;
|
|
66
|
+
var nullish = mockSchemaValidator.nullish;
|
|
67
|
+
var any = mockSchemaValidator.any;
|
|
68
|
+
var unknown = mockSchemaValidator.unknown;
|
|
69
|
+
var never = mockSchemaValidator.never;
|
|
70
|
+
var schemify = mockSchemaValidator.schemify.bind(mockSchemaValidator);
|
|
71
|
+
var optional = mockSchemaValidator.optional.bind(mockSchemaValidator);
|
|
72
|
+
var array = mockSchemaValidator.array.bind(mockSchemaValidator);
|
|
73
|
+
var union = mockSchemaValidator.union.bind(mockSchemaValidator);
|
|
74
|
+
var literal = mockSchemaValidator.literal.bind(mockSchemaValidator);
|
|
75
|
+
var enum_ = mockSchemaValidator.enum_.bind(mockSchemaValidator);
|
|
76
|
+
var validate = mockSchemaValidator.validate.bind(mockSchemaValidator);
|
|
77
|
+
var openapi = mockSchemaValidator.openapi.bind(mockSchemaValidator);
|
|
78
|
+
export {
|
|
79
|
+
MockSchemaValidator,
|
|
80
|
+
any,
|
|
81
|
+
array,
|
|
82
|
+
bigint,
|
|
83
|
+
boolean,
|
|
84
|
+
date,
|
|
85
|
+
enum_,
|
|
86
|
+
literal,
|
|
87
|
+
mockSchemaValidator,
|
|
88
|
+
never,
|
|
89
|
+
nullish,
|
|
90
|
+
number,
|
|
91
|
+
openapi,
|
|
92
|
+
optional,
|
|
93
|
+
schemify,
|
|
94
|
+
string,
|
|
95
|
+
symbol,
|
|
96
|
+
union,
|
|
97
|
+
unknown,
|
|
98
|
+
validate
|
|
99
|
+
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@forklaunch/validator",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.4.0",
|
|
4
4
|
"description": "Schema validator for ForkLaunch components.",
|
|
5
5
|
"files": [
|
|
6
6
|
"lib"
|
|
@@ -21,52 +21,65 @@
|
|
|
21
21
|
"homepage": "https://github.com/forklaunch/forklaunch-js#readme",
|
|
22
22
|
"dependencies": {
|
|
23
23
|
"@anatine/zod-openapi": "^2.2.6",
|
|
24
|
-
"@sinclair/typebox": "^0.34.
|
|
25
|
-
"zod": "^3.
|
|
26
|
-
"@forklaunch/common": "0.
|
|
24
|
+
"@sinclair/typebox": "^0.34.13",
|
|
25
|
+
"zod": "^3.24.1",
|
|
26
|
+
"@forklaunch/common": "0.2.0"
|
|
27
27
|
},
|
|
28
28
|
"devDependencies": {
|
|
29
|
-
"@eslint/js": "^9.
|
|
29
|
+
"@eslint/js": "^9.17.0",
|
|
30
30
|
"@types/jest": "^29.5.14",
|
|
31
31
|
"@vitest/coverage-v8": "^2.1.8",
|
|
32
32
|
"eslint-config-prettier": "^9.1.0",
|
|
33
33
|
"eslint-plugin-prettier": "^5.2.1",
|
|
34
|
-
"globals": "^15.
|
|
34
|
+
"globals": "^15.14.0",
|
|
35
35
|
"jest": "^29.7.0",
|
|
36
36
|
"openapi3-ts": "^4.4.0",
|
|
37
37
|
"ts-jest": "^29.2.5",
|
|
38
38
|
"ts-node": "^10.9.2",
|
|
39
|
-
"
|
|
39
|
+
"tsup": "^8.3.5",
|
|
40
|
+
"typescript-eslint": "^8.19.1"
|
|
40
41
|
},
|
|
41
42
|
"exports": {
|
|
42
43
|
".": {
|
|
43
44
|
"types": "./lib/index.d.ts",
|
|
45
|
+
"import": "./lib/index.mjs",
|
|
46
|
+
"require": "./lib/index.js",
|
|
44
47
|
"default": "./lib/index.js"
|
|
45
48
|
},
|
|
46
49
|
"./typebox": {
|
|
47
50
|
"types": "./lib/src/typebox/index.d.ts",
|
|
51
|
+
"import": "./lib/src/typebox/index.mjs",
|
|
52
|
+
"require": "./lib/src/typebox/index.js",
|
|
48
53
|
"default": "./lib/src/typebox/index.js"
|
|
49
54
|
},
|
|
50
55
|
"./zod": {
|
|
51
56
|
"types": "./lib/src/zod/index.d.ts",
|
|
57
|
+
"import": "./lib/src/zod/index.mjs",
|
|
58
|
+
"require": "./lib/src/zod/index.js",
|
|
52
59
|
"default": "./lib/src/zod/index.js"
|
|
53
60
|
},
|
|
54
61
|
"./typebox/types": {
|
|
55
62
|
"types": "./lib/src/typebox/types/schema.types.d.ts",
|
|
63
|
+
"import": "./lib/src/typebox/types/schema.types.mjs",
|
|
64
|
+
"require": "./lib/src/typebox/types/schema.types.js",
|
|
56
65
|
"default": "./lib/src/typebox/types/schema.types.js"
|
|
57
66
|
},
|
|
58
67
|
"./zod/types": {
|
|
59
68
|
"types": "./lib/src/zod/types/schema.types.d.ts",
|
|
69
|
+
"import": "./lib/src/zod/types/schema.types.mjs",
|
|
70
|
+
"require": "./lib/src/zod/types/schema.types.js",
|
|
60
71
|
"default": "./lib/src/zod/types/schema.types.js"
|
|
61
72
|
},
|
|
62
73
|
"./tests/mockSchemaValidator": {
|
|
63
74
|
"types": "./lib/tests/utils/mockSchemaValidator.d.ts",
|
|
75
|
+
"import": "./lib/tests/utils/mockSchemaValidator.mjs",
|
|
76
|
+
"require": "./lib/tests/utils/mockSchemaValidator.js",
|
|
64
77
|
"default": "./lib/tests/utils/mockSchemaValidator.js"
|
|
65
78
|
}
|
|
66
79
|
},
|
|
67
80
|
"scripts": {
|
|
68
81
|
"test": "vitest --passWithNoTests",
|
|
69
|
-
"build": "tsc",
|
|
82
|
+
"build": "tsc --noEmit && tsup index.ts src/typebox/index.ts src/zod/index.ts tests/utils/mockSchemaValidator.ts --format cjs,esm --no-splitting --tsconfig tsconfig.json --outDir lib --dts --clean",
|
|
70
83
|
"clean": "rm -rf lib pnpm.lock.yaml node_modules",
|
|
71
84
|
"docs": "typedoc --out docs *",
|
|
72
85
|
"lint": "eslint . -c eslint.config.mjs",
|
package/lib/index.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":"AAAA,cAAc,iCAAiC,CAAC"}
|
|
@@ -1,255 +0,0 @@
|
|
|
1
|
-
import { Prettify } from '@forklaunch/common';
|
|
2
|
-
import { SchemaObject } from 'openapi3-ts/oas31';
|
|
3
|
-
import { TResolve, TSchemaTranslate } from '../../typebox/types/schema.types';
|
|
4
|
-
import { ZodResolve, ZodSchemaTranslate } from '../../zod/types/schema.types';
|
|
5
|
-
/**
|
|
6
|
-
* The result associated with an attempted parsing.
|
|
7
|
-
*
|
|
8
|
-
*/
|
|
9
|
-
export type ParseResult<T> = {
|
|
10
|
-
ok: true;
|
|
11
|
-
value: T;
|
|
12
|
-
} | {
|
|
13
|
-
ok: false;
|
|
14
|
-
error?: string;
|
|
15
|
-
};
|
|
16
|
-
/**
|
|
17
|
-
* Interface representing a schema validator.
|
|
18
|
-
*
|
|
19
|
-
* @template SchematicFunction - The function type for schemifying a schema.
|
|
20
|
-
* @template OptionalFunction - The function type for making a schema optional.
|
|
21
|
-
* @template ArrayFunction - The function type for converting a schema into an array.
|
|
22
|
-
* @template UnionFunction - The function type for unionizing multiple schemas.
|
|
23
|
-
* @template LiteralFunction - The function type for creating a literal schema.
|
|
24
|
-
* @template ValidationFunction - The function type for validating a value against a schema.
|
|
25
|
-
* @template ParseFunction - The function type for parsing a value against a schema.
|
|
26
|
-
* @template OpenAPIFunction - The function type for converting a schema into an OpenAPI schema object.
|
|
27
|
-
*/
|
|
28
|
-
export interface SchemaValidator<CompilationFunction = <T>(schema: T) => unknown, SchematicFunction = <T>(schema: T) => unknown, OptionalFunction = <T>(schema: T) => unknown, ArrayFunction = <T>(schema: T) => unknown, UnionFunction = <T>(schemas: T[]) => unknown, LiteralFunction = <T extends LiteralSchema>(schema: T) => unknown, EnumFunction = <T extends LiteralSchema>(schemaEnum: Record<string, T>) => unknown, SchemaGuardFunction = <T>(value: unknown) => value is T, ValidationFunction = <T>(schema: T, value: unknown) => boolean, ParseFunction = <T>(schema: T, value: unknown) => ParseResult<SchemaResolve<T>>, OpenAPIFunction = <T>(schema: T) => SchemaObject> {
|
|
29
|
-
/**
|
|
30
|
-
* The type of the schema validator. Meant to be used with non-null assertions.
|
|
31
|
-
*/
|
|
32
|
-
_Type: unknown;
|
|
33
|
-
/**
|
|
34
|
-
* The catch-all type for the schema. Meant to be used with non-null assertions.
|
|
35
|
-
*/
|
|
36
|
-
_SchemaCatchall: unknown;
|
|
37
|
-
/**
|
|
38
|
-
* The valid schema object type. Meant to be used with non-null assertions.
|
|
39
|
-
*/
|
|
40
|
-
_ValidSchemaObject: unknown;
|
|
41
|
-
/**
|
|
42
|
-
* Validator for string type.
|
|
43
|
-
*/
|
|
44
|
-
string: unknown;
|
|
45
|
-
/**
|
|
46
|
-
* Validator for uuid type.
|
|
47
|
-
*/
|
|
48
|
-
uuid: unknown;
|
|
49
|
-
/**
|
|
50
|
-
* Validator for uri type.
|
|
51
|
-
*/
|
|
52
|
-
uri: unknown;
|
|
53
|
-
/**
|
|
54
|
-
* Validator for email type.
|
|
55
|
-
*/
|
|
56
|
-
email: unknown;
|
|
57
|
-
/**
|
|
58
|
-
* Validator for number type.
|
|
59
|
-
*/
|
|
60
|
-
number: unknown;
|
|
61
|
-
/**
|
|
62
|
-
* Validator for bigint type.
|
|
63
|
-
*/
|
|
64
|
-
bigint: unknown;
|
|
65
|
-
/**
|
|
66
|
-
* Validator for boolean type.
|
|
67
|
-
*/
|
|
68
|
-
boolean: unknown;
|
|
69
|
-
/**
|
|
70
|
-
* Validator for date type.
|
|
71
|
-
*/
|
|
72
|
-
date: unknown;
|
|
73
|
-
/**
|
|
74
|
-
* Validator for symbol type.
|
|
75
|
-
*/
|
|
76
|
-
symbol: unknown;
|
|
77
|
-
/**
|
|
78
|
-
* Validator for nullish type.
|
|
79
|
-
*/
|
|
80
|
-
nullish: unknown;
|
|
81
|
-
/**
|
|
82
|
-
* Validator for any type.
|
|
83
|
-
*/
|
|
84
|
-
any: unknown;
|
|
85
|
-
/**
|
|
86
|
-
* Validator for unknown type.
|
|
87
|
-
*/
|
|
88
|
-
unknown: unknown;
|
|
89
|
-
/**
|
|
90
|
-
* Validator for never type.
|
|
91
|
-
*/
|
|
92
|
-
never: unknown;
|
|
93
|
-
/**
|
|
94
|
-
* Compiles schema if this exists, for optimal performance.
|
|
95
|
-
*
|
|
96
|
-
* @param {T} schema - The schema to compile.
|
|
97
|
-
* @returns {unknown} - The compiled schema.
|
|
98
|
-
*/
|
|
99
|
-
compile: CompilationFunction;
|
|
100
|
-
/**
|
|
101
|
-
* Converts a valid schema input into a schemified form.
|
|
102
|
-
*
|
|
103
|
-
* @param {T} schema - The schema to schemify.
|
|
104
|
-
* @returns {unknown} - The schemified form of the schema.
|
|
105
|
-
*/
|
|
106
|
-
schemify: SchematicFunction;
|
|
107
|
-
/**
|
|
108
|
-
* Converts a schema into an optional schema.
|
|
109
|
-
*
|
|
110
|
-
* @param {T} schema - The schema to make optional.
|
|
111
|
-
* @returns {unknown} - The optional form of the schema.
|
|
112
|
-
*/
|
|
113
|
-
optional: OptionalFunction;
|
|
114
|
-
/**
|
|
115
|
-
* Converts a schema into an array schema.
|
|
116
|
-
*
|
|
117
|
-
* @param {T} schema - The schema to convert into an array.
|
|
118
|
-
* @returns {unknown} - The array form of the schema.
|
|
119
|
-
*/
|
|
120
|
-
array: ArrayFunction;
|
|
121
|
-
/**
|
|
122
|
-
* Converts multiple schemas into a union schema.
|
|
123
|
-
*
|
|
124
|
-
* @param {T[]} schemas - The schemas to unionize.
|
|
125
|
-
* @returns {unknown} - The union form of the schemas.
|
|
126
|
-
*/
|
|
127
|
-
union: UnionFunction;
|
|
128
|
-
/**
|
|
129
|
-
* Creates a literal schema from a value.
|
|
130
|
-
*
|
|
131
|
-
* @param {T} value - The literal value.
|
|
132
|
-
* @returns {unknown} - The literal schema.
|
|
133
|
-
*/
|
|
134
|
-
literal: LiteralFunction;
|
|
135
|
-
/**
|
|
136
|
-
* Creates an enum schema from a record of literal values.
|
|
137
|
-
*
|
|
138
|
-
* @param {Record<string, T>} schemaEnum - The enum schema.
|
|
139
|
-
* @returns {unknown} - The enum schema.
|
|
140
|
-
*/
|
|
141
|
-
enum_: EnumFunction;
|
|
142
|
-
/**
|
|
143
|
-
* Checks if a value is a schema.
|
|
144
|
-
*
|
|
145
|
-
* @param {unknown} value - The value to check.
|
|
146
|
-
* @returns {boolean} - Whether the value is a schema.
|
|
147
|
-
*/
|
|
148
|
-
isSchema: SchemaGuardFunction;
|
|
149
|
-
/**
|
|
150
|
-
* Validates a value against a schema.
|
|
151
|
-
*
|
|
152
|
-
* @param {T} schema - The schema to validate against.
|
|
153
|
-
* @param {unknown} value - The value to validate.
|
|
154
|
-
* @returns {boolean} - Whether the value is valid according to the schema.
|
|
155
|
-
*/
|
|
156
|
-
validate: ValidationFunction;
|
|
157
|
-
/**
|
|
158
|
-
* Parses a value to a schema validation.
|
|
159
|
-
*
|
|
160
|
-
* @param {T} schema - The schema to validate against.
|
|
161
|
-
* @param {unknown} value - The value to validate.
|
|
162
|
-
* @returns {ParseResult} - The discrimintated parsed value if successful, the error if unsuccessful.
|
|
163
|
-
*/
|
|
164
|
-
parse: ParseFunction;
|
|
165
|
-
/**
|
|
166
|
-
* Converts a schema into an OpenAPI schema object.
|
|
167
|
-
*
|
|
168
|
-
* @param {T} schema - The schema to convert.
|
|
169
|
-
* @returns {SchemaObject} - The OpenAPI schema object.
|
|
170
|
-
*/
|
|
171
|
-
openapi: OpenAPIFunction;
|
|
172
|
-
}
|
|
173
|
-
/**
|
|
174
|
-
* Type representing any schema validator.
|
|
175
|
-
*/
|
|
176
|
-
export type AnySchemaValidator = SchemaValidator<unknown, unknown, unknown, unknown, unknown, unknown, unknown, unknown, unknown, unknown, unknown> & {
|
|
177
|
-
/**
|
|
178
|
-
* The type of the schema resolver.
|
|
179
|
-
*/
|
|
180
|
-
_Type: keyof SchemaResolve<unknown>;
|
|
181
|
-
};
|
|
182
|
-
/**
|
|
183
|
-
* Interface representing schema resolution for different validation libraries.
|
|
184
|
-
*
|
|
185
|
-
* @template T - The type of the schema to resolve.
|
|
186
|
-
*/
|
|
187
|
-
export interface SchemaResolve<T> {
|
|
188
|
-
/**
|
|
189
|
-
* Schema resolution for Zod.
|
|
190
|
-
*/
|
|
191
|
-
Zod: ZodResolve<T>;
|
|
192
|
-
/**
|
|
193
|
-
* Schema resolution for TypeBox.
|
|
194
|
-
*/
|
|
195
|
-
TypeBox: TResolve<T>;
|
|
196
|
-
}
|
|
197
|
-
/**
|
|
198
|
-
* Interface representing schema translation for different validation libraries.
|
|
199
|
-
*
|
|
200
|
-
* @template T - The type of the schema to translate.
|
|
201
|
-
*/
|
|
202
|
-
export interface SchemaTranslate<T> {
|
|
203
|
-
/**
|
|
204
|
-
* Schema translation for Zod.
|
|
205
|
-
*/
|
|
206
|
-
Zod: ZodSchemaTranslate<T>;
|
|
207
|
-
/**
|
|
208
|
-
* Schema translation for TypeBox.
|
|
209
|
-
*/
|
|
210
|
-
TypeBox: TSchemaTranslate<T>;
|
|
211
|
-
}
|
|
212
|
-
/**
|
|
213
|
-
* Type representing the prettified schema translation.
|
|
214
|
-
*
|
|
215
|
-
* @template T - The type of the schema to translate.
|
|
216
|
-
* @template SV - The type of the schema validator.
|
|
217
|
-
*/
|
|
218
|
-
type SchemaPrettify<T, SV extends AnySchemaValidator> = Prettify<SchemaTranslate<T>[SV['_Type']]>;
|
|
219
|
-
/**
|
|
220
|
-
* Type representing a schema, which can be a valid schema object or an idiomatic schema.
|
|
221
|
-
*
|
|
222
|
-
* @template T - The type of the schema.
|
|
223
|
-
* @template SV - The type of the schema validator.
|
|
224
|
-
*/
|
|
225
|
-
export type Schema<T extends SV['_ValidSchemaObject'] | IdiomaticSchema<SV>, SV extends AnySchemaValidator> = SchemaPrettify<SchemaResolve<T>[SV['_Type']], SV>;
|
|
226
|
-
/**
|
|
227
|
-
* Represents a schema for an unboxed object where each key can have an idiomatic schema.
|
|
228
|
-
*
|
|
229
|
-
* @template SV - The type of the schema validator.
|
|
230
|
-
*/
|
|
231
|
-
export type UnboxedObjectSchema<SV extends AnySchemaValidator> = {
|
|
232
|
-
[key: KeyTypes]: IdiomaticSchema<SV>;
|
|
233
|
-
};
|
|
234
|
-
/**
|
|
235
|
-
* Represents a schema that can be a literal value.
|
|
236
|
-
*/
|
|
237
|
-
export type LiteralSchema = string | number | boolean;
|
|
238
|
-
/**
|
|
239
|
-
* Represents an idiomatic schema which can be an unboxed object schema, a literal schema, or a catch-all type.
|
|
240
|
-
*
|
|
241
|
-
* @template SV - The type of the schema validator.
|
|
242
|
-
*/
|
|
243
|
-
export type IdiomaticSchema<SV extends AnySchemaValidator> = LiteralSchema | SV['_SchemaCatchall'] | UnboxedObjectSchema<SV>;
|
|
244
|
-
/**
|
|
245
|
-
* Increments a number type by one, with support up to 50.
|
|
246
|
-
*
|
|
247
|
-
* @template T - The number type to increment.
|
|
248
|
-
*/
|
|
249
|
-
export type Increment<T extends number> = T extends 0 ? 1 : T extends 1 ? 2 : T extends 2 ? 3 : T extends 3 ? 4 : T extends 4 ? 5 : T extends 5 ? 6 : T extends 6 ? 7 : T extends 7 ? 8 : T extends 8 ? 9 : T extends 9 ? 10 : T extends 10 ? 11 : T extends 11 ? 12 : T extends 12 ? 13 : T extends 13 ? 14 : T extends 14 ? 15 : T extends 15 ? 16 : T extends 16 ? 17 : T extends 17 ? 18 : T extends 18 ? 19 : T extends 19 ? 20 : T extends 20 ? 21 : T extends 21 ? 22 : T extends 22 ? 23 : T extends 23 ? 24 : T extends 24 ? 25 : T extends 25 ? 26 : T extends 26 ? 27 : T extends 27 ? 28 : T extends 28 ? 29 : T extends 29 ? 30 : T extends 30 ? 31 : T extends 31 ? 32 : T extends 32 ? 33 : T extends 33 ? 34 : T extends 34 ? 35 : T extends 35 ? 36 : T extends 36 ? 37 : T extends 37 ? 38 : T extends 38 ? 39 : T extends 39 ? 40 : T extends 40 ? 41 : T extends 41 ? 42 : T extends 42 ? 43 : T extends 43 ? 44 : T extends 44 ? 45 : T extends 45 ? 46 : T extends 46 ? 47 : T extends 47 ? 48 : T extends 48 ? 49 : T extends 49 ? 50 : 50;
|
|
250
|
-
/**
|
|
251
|
-
* Represents key types that can be used in the schema.
|
|
252
|
-
*/
|
|
253
|
-
export type KeyTypes = string | number;
|
|
254
|
-
export {};
|
|
255
|
-
//# sourceMappingURL=schema.types.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"schema.types.d.ts","sourceRoot":"","sources":["../../../../src/shared/types/schema.types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAC;AAC9C,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AACjD,OAAO,EAAE,QAAQ,EAAE,gBAAgB,EAAE,MAAM,kCAAkC,CAAC;AAC9E,OAAO,EAAE,UAAU,EAAE,kBAAkB,EAAE,MAAM,8BAA8B,CAAC;AAE9E;;;GAGG;AACH,MAAM,MAAM,WAAW,CAAC,CAAC,IACrB;IACE,EAAE,EAAE,IAAI,CAAC;IACT,KAAK,EAAE,CAAC,CAAC;CACV,GACD;IACE,EAAE,EAAE,KAAK,CAAC;IACV,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB,CAAC;AAEN;;;;;;;;;;;GAWG;AACH,MAAM,WAAW,eAAe,CAC9B,mBAAmB,GAAG,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,KAAK,OAAO,EAC/C,iBAAiB,GAAG,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,KAAK,OAAO,EAC7C,gBAAgB,GAAG,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,KAAK,OAAO,EAC5C,aAAa,GAAG,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,KAAK,OAAO,EACzC,aAAa,GAAG,CAAC,CAAC,EAAE,OAAO,EAAE,CAAC,EAAE,KAAK,OAAO,EAC5C,eAAe,GAAG,CAAC,CAAC,SAAS,aAAa,EAAE,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