@forklaunch/validator 0.5.2 → 0.5.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/lib/__test__/utils/mockSchemaValidator.d.mts +1 -1
- package/lib/__test__/utils/mockSchemaValidator.d.ts +1 -1
- package/lib/index.d.mts +2 -2
- package/lib/index.d.ts +2 -2
- package/lib/{schema.types-BL6n8u4w.d.mts → schema.types-DyZIpu-x.d.mts} +4 -4
- package/lib/{schema.types-BL6n8u4w.d.ts → schema.types-DyZIpu-x.d.ts} +4 -4
- package/lib/src/typebox/index.d.mts +2 -2
- package/lib/src/typebox/index.d.ts +2 -2
- package/lib/src/zod/index.d.mts +5 -5
- package/lib/src/zod/index.d.ts +5 -5
- package/package.json +4 -4
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { SchemaObject } from 'openapi3-ts/oas31';
|
|
2
|
-
import { S as SchemaValidator, L as LiteralSchema, a as ParseResult } from '../../schema.types-
|
|
2
|
+
import { S as SchemaValidator, L as LiteralSchema, a as ParseResult } from '../../schema.types-DyZIpu-x.mjs';
|
|
3
3
|
import '@forklaunch/common';
|
|
4
4
|
import '@sinclair/typebox';
|
|
5
5
|
import '@sinclair/typebox/compiler';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { SchemaObject } from 'openapi3-ts/oas31';
|
|
2
|
-
import { S as SchemaValidator, L as LiteralSchema, a as ParseResult } from '../../schema.types-
|
|
2
|
+
import { S as SchemaValidator, L as LiteralSchema, a as ParseResult } from '../../schema.types-DyZIpu-x.js';
|
|
3
3
|
import '@forklaunch/common';
|
|
4
4
|
import '@sinclair/typebox';
|
|
5
5
|
import '@sinclair/typebox/compiler';
|
package/lib/index.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { P as ParseError } from './schema.types-
|
|
2
|
-
export { A as AnySchemaValidator, I as IdiomaticSchema, e as Increment, K as KeyTypes, L as LiteralSchema, a as ParseResult, d as Schema, b as SchemaResolve, c as SchemaTranslate, S as SchemaValidator, U as UnboxedObjectSchema } from './schema.types-
|
|
1
|
+
import { P as ParseError } from './schema.types-DyZIpu-x.mjs';
|
|
2
|
+
export { A as AnySchemaValidator, I as IdiomaticSchema, e as Increment, K as KeyTypes, L as LiteralSchema, a as ParseResult, d as Schema, b as SchemaResolve, c as SchemaTranslate, S as SchemaValidator, U as UnboxedObjectSchema } from './schema.types-DyZIpu-x.mjs';
|
|
3
3
|
import '@forklaunch/common';
|
|
4
4
|
import 'openapi3-ts/oas31';
|
|
5
5
|
import '@sinclair/typebox';
|
package/lib/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { P as ParseError } from './schema.types-
|
|
2
|
-
export { A as AnySchemaValidator, I as IdiomaticSchema, e as Increment, K as KeyTypes, L as LiteralSchema, a as ParseResult, d as Schema, b as SchemaResolve, c as SchemaTranslate, S as SchemaValidator, U as UnboxedObjectSchema } from './schema.types-
|
|
1
|
+
import { P as ParseError } from './schema.types-DyZIpu-x.js';
|
|
2
|
+
export { A as AnySchemaValidator, I as IdiomaticSchema, e as Increment, K as KeyTypes, L as LiteralSchema, a as ParseResult, d as Schema, b as SchemaResolve, c as SchemaTranslate, S as SchemaValidator, U as UnboxedObjectSchema } from './schema.types-DyZIpu-x.js';
|
|
3
3
|
import '@forklaunch/common';
|
|
4
4
|
import 'openapi3-ts/oas31';
|
|
5
5
|
import '@sinclair/typebox';
|
|
@@ -3,7 +3,7 @@ import { SchemaObject } from 'openapi3-ts/oas31';
|
|
|
3
3
|
import * as _sinclair_typebox from '@sinclair/typebox';
|
|
4
4
|
import { TProperties, TOptional, TArray, TUnion, TLiteral, TFunction, TRecord, TPromise, TSchema, TUnknown, TKind, TObject as TObject$1, TNever, StaticDecode } from '@sinclair/typebox';
|
|
5
5
|
import { TypeCheck } from '@sinclair/typebox/compiler';
|
|
6
|
-
import { ZodObject as ZodObject$1, ZodRawShape, ZodOptional, ZodArray, ZodUnion, ZodLiteral, ZodFunction, ZodTuple, ZodRecord, ZodPromise, ZodType, z, ZodUnknown, ZodNever, ZodTypeAny } from 'zod';
|
|
6
|
+
import { ZodObject as ZodObject$1, ZodRawShape, ZodOptional, ZodArray, ZodUnion, ZodLiteral, ZodFunction, ZodTuple, ZodRecord, ZodPromise, ZodType, z, ZodNumber, ZodBigInt, ZodDate, ZodUnknown, ZodNever, ZodTypeAny } from 'zod';
|
|
7
7
|
|
|
8
8
|
/**
|
|
9
9
|
* Class representing a TypeBox schema definition.
|
|
@@ -222,10 +222,10 @@ declare class ZodSchemaValidator implements SchemaValidator<(<T extends ZodObjec
|
|
|
222
222
|
uuid: z.ZodString;
|
|
223
223
|
email: z.ZodString;
|
|
224
224
|
uri: z.ZodString;
|
|
225
|
-
number:
|
|
226
|
-
bigint:
|
|
225
|
+
number: ZodNumber;
|
|
226
|
+
bigint: ZodBigInt;
|
|
227
227
|
boolean: z.ZodEffects<z.ZodBoolean, boolean, unknown>;
|
|
228
|
-
date:
|
|
228
|
+
date: ZodDate;
|
|
229
229
|
symbol: z.ZodSymbol;
|
|
230
230
|
nullish: z.ZodUnion<[z.ZodVoid, z.ZodNull, z.ZodUndefined]>;
|
|
231
231
|
void: z.ZodVoid;
|
|
@@ -3,7 +3,7 @@ import { SchemaObject } from 'openapi3-ts/oas31';
|
|
|
3
3
|
import * as _sinclair_typebox from '@sinclair/typebox';
|
|
4
4
|
import { TProperties, TOptional, TArray, TUnion, TLiteral, TFunction, TRecord, TPromise, TSchema, TUnknown, TKind, TObject as TObject$1, TNever, StaticDecode } from '@sinclair/typebox';
|
|
5
5
|
import { TypeCheck } from '@sinclair/typebox/compiler';
|
|
6
|
-
import { ZodObject as ZodObject$1, ZodRawShape, ZodOptional, ZodArray, ZodUnion, ZodLiteral, ZodFunction, ZodTuple, ZodRecord, ZodPromise, ZodType, z, ZodUnknown, ZodNever, ZodTypeAny } from 'zod';
|
|
6
|
+
import { ZodObject as ZodObject$1, ZodRawShape, ZodOptional, ZodArray, ZodUnion, ZodLiteral, ZodFunction, ZodTuple, ZodRecord, ZodPromise, ZodType, z, ZodNumber, ZodBigInt, ZodDate, ZodUnknown, ZodNever, ZodTypeAny } from 'zod';
|
|
7
7
|
|
|
8
8
|
/**
|
|
9
9
|
* Class representing a TypeBox schema definition.
|
|
@@ -222,10 +222,10 @@ declare class ZodSchemaValidator implements SchemaValidator<(<T extends ZodObjec
|
|
|
222
222
|
uuid: z.ZodString;
|
|
223
223
|
email: z.ZodString;
|
|
224
224
|
uri: z.ZodString;
|
|
225
|
-
number:
|
|
226
|
-
bigint:
|
|
225
|
+
number: ZodNumber;
|
|
226
|
+
bigint: ZodBigInt;
|
|
227
227
|
boolean: z.ZodEffects<z.ZodBoolean, boolean, unknown>;
|
|
228
|
-
date:
|
|
228
|
+
date: ZodDate;
|
|
229
229
|
symbol: z.ZodSymbol;
|
|
230
230
|
nullish: z.ZodUnion<[z.ZodVoid, z.ZodNull, z.ZodUndefined]>;
|
|
231
231
|
void: z.ZodVoid;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as openapi3_ts_oas31 from 'openapi3-ts/oas31';
|
|
2
2
|
import * as _sinclair_typebox_compiler from '@sinclair/typebox/compiler';
|
|
3
|
-
import { T as TypeboxSchemaValidator, f as TIdiomaticSchema, g as TResolve, h as TUnionTupleContainer, i as UnionTupleTResolve, L as LiteralSchema, j as TCatchall, a as ParseResult } from '../../schema.types-
|
|
4
|
-
export { m as TObject, l as TObjectShape, k as TOuterArray, n as TSchemaTranslate, o as UnboxedTObjectSchema } from '../../schema.types-
|
|
3
|
+
import { T as TypeboxSchemaValidator, f as TIdiomaticSchema, g as TResolve, h as TUnionTupleContainer, i as UnionTupleTResolve, L as LiteralSchema, j as TCatchall, a as ParseResult } from '../../schema.types-DyZIpu-x.mjs';
|
|
4
|
+
export { m as TObject, l as TObjectShape, k as TOuterArray, n as TSchemaTranslate, o as UnboxedTObjectSchema } from '../../schema.types-DyZIpu-x.mjs';
|
|
5
5
|
import * as _sinclair_typebox from '@sinclair/typebox';
|
|
6
6
|
import '@forklaunch/common';
|
|
7
7
|
import 'zod';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as openapi3_ts_oas31 from 'openapi3-ts/oas31';
|
|
2
2
|
import * as _sinclair_typebox_compiler from '@sinclair/typebox/compiler';
|
|
3
|
-
import { T as TypeboxSchemaValidator, f as TIdiomaticSchema, g as TResolve, h as TUnionTupleContainer, i as UnionTupleTResolve, L as LiteralSchema, j as TCatchall, a as ParseResult } from '../../schema.types-
|
|
4
|
-
export { m as TObject, l as TObjectShape, k as TOuterArray, n as TSchemaTranslate, o as UnboxedTObjectSchema } from '../../schema.types-
|
|
3
|
+
import { T as TypeboxSchemaValidator, f as TIdiomaticSchema, g as TResolve, h as TUnionTupleContainer, i as UnionTupleTResolve, L as LiteralSchema, j as TCatchall, a as ParseResult } from '../../schema.types-DyZIpu-x.js';
|
|
4
|
+
export { m as TObject, l as TObjectShape, k as TOuterArray, n as TSchemaTranslate, o as UnboxedTObjectSchema } from '../../schema.types-DyZIpu-x.js';
|
|
5
5
|
import * as _sinclair_typebox from '@sinclair/typebox';
|
|
6
6
|
import '@forklaunch/common';
|
|
7
7
|
import 'zod';
|
package/lib/src/zod/index.d.mts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as openapi3_ts_oas31 from 'openapi3-ts/oas31';
|
|
2
|
-
import { Z as ZodSchemaValidator, p as ZodIdiomaticSchema, q as ZodResolve, r as ZodUnionContainer, s as UnionZodResolve, L as LiteralSchema, t as ZodTupleContainer, u as TupleZodResolve, v as ZodRecordKey, w as ZodCatchall, a as ParseResult } from '../../schema.types-
|
|
3
|
-
export { C as UnboxedZodObjectSchema, z as ZodObject, y as ZodObjectShape, x as ZodOuterArray, B as ZodSchemaTranslate } from '../../schema.types-
|
|
2
|
+
import { Z as ZodSchemaValidator, p as ZodIdiomaticSchema, q as ZodResolve, r as ZodUnionContainer, s as UnionZodResolve, L as LiteralSchema, t as ZodTupleContainer, u as TupleZodResolve, v as ZodRecordKey, w as ZodCatchall, a as ParseResult } from '../../schema.types-DyZIpu-x.mjs';
|
|
3
|
+
export { C as UnboxedZodObjectSchema, z as ZodObject, y as ZodObjectShape, x as ZodOuterArray, B as ZodSchemaTranslate } from '../../schema.types-DyZIpu-x.mjs';
|
|
4
4
|
import * as zod from 'zod';
|
|
5
5
|
import '@forklaunch/common';
|
|
6
6
|
import '@sinclair/typebox';
|
|
@@ -30,11 +30,11 @@ declare const uri: zod.ZodString;
|
|
|
30
30
|
/**
|
|
31
31
|
* Zod schema definition for number type.
|
|
32
32
|
*/
|
|
33
|
-
declare const number: zod.
|
|
33
|
+
declare const number: zod.ZodNumber;
|
|
34
34
|
/**
|
|
35
35
|
* Zod schema definition for bigint type.
|
|
36
36
|
*/
|
|
37
|
-
declare const bigint: zod.
|
|
37
|
+
declare const bigint: zod.ZodBigInt;
|
|
38
38
|
/**
|
|
39
39
|
* Zod schema definition for boolean type.
|
|
40
40
|
*/
|
|
@@ -42,7 +42,7 @@ declare const boolean: zod.ZodEffects<zod.ZodBoolean, boolean, unknown>;
|
|
|
42
42
|
/**
|
|
43
43
|
* Zod schema definition for date type.
|
|
44
44
|
*/
|
|
45
|
-
declare const date: zod.
|
|
45
|
+
declare const date: zod.ZodDate;
|
|
46
46
|
/**
|
|
47
47
|
* Zod schema definition for symbol type.
|
|
48
48
|
*/
|
package/lib/src/zod/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as openapi3_ts_oas31 from 'openapi3-ts/oas31';
|
|
2
|
-
import { Z as ZodSchemaValidator, p as ZodIdiomaticSchema, q as ZodResolve, r as ZodUnionContainer, s as UnionZodResolve, L as LiteralSchema, t as ZodTupleContainer, u as TupleZodResolve, v as ZodRecordKey, w as ZodCatchall, a as ParseResult } from '../../schema.types-
|
|
3
|
-
export { C as UnboxedZodObjectSchema, z as ZodObject, y as ZodObjectShape, x as ZodOuterArray, B as ZodSchemaTranslate } from '../../schema.types-
|
|
2
|
+
import { Z as ZodSchemaValidator, p as ZodIdiomaticSchema, q as ZodResolve, r as ZodUnionContainer, s as UnionZodResolve, L as LiteralSchema, t as ZodTupleContainer, u as TupleZodResolve, v as ZodRecordKey, w as ZodCatchall, a as ParseResult } from '../../schema.types-DyZIpu-x.js';
|
|
3
|
+
export { C as UnboxedZodObjectSchema, z as ZodObject, y as ZodObjectShape, x as ZodOuterArray, B as ZodSchemaTranslate } from '../../schema.types-DyZIpu-x.js';
|
|
4
4
|
import * as zod from 'zod';
|
|
5
5
|
import '@forklaunch/common';
|
|
6
6
|
import '@sinclair/typebox';
|
|
@@ -30,11 +30,11 @@ declare const uri: zod.ZodString;
|
|
|
30
30
|
/**
|
|
31
31
|
* Zod schema definition for number type.
|
|
32
32
|
*/
|
|
33
|
-
declare const number: zod.
|
|
33
|
+
declare const number: zod.ZodNumber;
|
|
34
34
|
/**
|
|
35
35
|
* Zod schema definition for bigint type.
|
|
36
36
|
*/
|
|
37
|
-
declare const bigint: zod.
|
|
37
|
+
declare const bigint: zod.ZodBigInt;
|
|
38
38
|
/**
|
|
39
39
|
* Zod schema definition for boolean type.
|
|
40
40
|
*/
|
|
@@ -42,7 +42,7 @@ declare const boolean: zod.ZodEffects<zod.ZodBoolean, boolean, unknown>;
|
|
|
42
42
|
/**
|
|
43
43
|
* Zod schema definition for date type.
|
|
44
44
|
*/
|
|
45
|
-
declare const date: zod.
|
|
45
|
+
declare const date: zod.ZodDate;
|
|
46
46
|
/**
|
|
47
47
|
* Zod schema definition for symbol type.
|
|
48
48
|
*/
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@forklaunch/validator",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.4",
|
|
4
4
|
"description": "Schema validator for ForkLaunch components.",
|
|
5
5
|
"homepage": "https://github.com/forklaunch/forklaunch-js#readme",
|
|
6
6
|
"bugs": {
|
|
@@ -61,10 +61,10 @@
|
|
|
61
61
|
"@anatine/zod-openapi": "^2.2.8",
|
|
62
62
|
"@sinclair/typebox": "^0.34.33",
|
|
63
63
|
"zod": "^3.24.3",
|
|
64
|
-
"@forklaunch/common": "0.2.
|
|
64
|
+
"@forklaunch/common": "0.2.11"
|
|
65
65
|
},
|
|
66
66
|
"devDependencies": {
|
|
67
|
-
"@eslint/js": "^9.
|
|
67
|
+
"@eslint/js": "^9.25.0",
|
|
68
68
|
"@types/jest": "^29.5.14",
|
|
69
69
|
"@vitest/coverage-v8": "^3.1.1",
|
|
70
70
|
"eslint-config-prettier": "^10.1.2",
|
|
@@ -75,7 +75,7 @@
|
|
|
75
75
|
"ts-jest": "^29.3.2",
|
|
76
76
|
"ts-node": "^10.9.2",
|
|
77
77
|
"tsup": "^8.4.0",
|
|
78
|
-
"typedoc": "^0.28.
|
|
78
|
+
"typedoc": "^0.28.3",
|
|
79
79
|
"typescript-eslint": "^8.30.1"
|
|
80
80
|
},
|
|
81
81
|
"scripts": {
|