zod-to-json-schema
Advanced tools
Comparing version 3.14.1 to 3.17.0
@@ -5,2 +5,4 @@ # Changelog | ||
| --------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | ||
| 3.17.0 | Added switch case handler for new trim "check". No changes to functionality. | ||
| 3.15.x - 3.16.x | Skipped: Did not change the Zod API in any way relevant for this package. | | ||
| 3.14.1 | Dependabot security updates | | ||
@@ -7,0 +9,0 @@ | 3.14.0 | Moves Zod into peerDependencies. Supports checks for sets, NaN-type (sort of), discriminated union type and standalone optional properties (as unions with undefined) | |
import { zodToJsonSchema } from "./src/zodToJsonSchema"; | ||
export default zodToJsonSchema; | ||
export { zodToJsonSchema }; |
@@ -0,0 +0,0 @@ "use strict"; |
{ | ||
"name": "zod-to-json-schema", | ||
"version": "3.14.1", | ||
"version": "3.17.0", | ||
"description": "Converts Zod schemas to Json Schemas", | ||
@@ -43,5 +43,6 @@ "main": "index.js", | ||
"ts-jest": "^26.5.2", | ||
"typescript": "^4.4.3" | ||
"typescript": "^4.4.3", | ||
"zod": "^3.17.0" | ||
}, | ||
"types": "index.d.ts" | ||
} |
@@ -0,0 +0,0 @@ # Zod to Json Schema |
@@ -0,0 +0,0 @@ import { ZodTypeDef } from "zod"; |
@@ -0,0 +0,0 @@ "use strict"; |
export declare type JsonSchema7AnyType = {}; | ||
export declare function parseAnyDef(): JsonSchema7AnyType; |
@@ -0,0 +0,0 @@ "use strict"; |
@@ -0,0 +0,0 @@ import { ZodArrayDef } from "zod"; |
@@ -0,0 +0,0 @@ "use strict"; |
@@ -0,0 +0,0 @@ export declare type JsonSchema7BigintType = { |
@@ -0,0 +0,0 @@ "use strict"; |
@@ -0,0 +0,0 @@ export declare type JsonSchema7BooleanType = { |
@@ -0,0 +0,0 @@ "use strict"; |
@@ -0,0 +0,0 @@ export declare type JsonSchema7DateType = { |
@@ -0,0 +0,0 @@ "use strict"; |
@@ -0,0 +0,0 @@ import { ZodDefaultDef } from "zod"; |
@@ -0,0 +0,0 @@ "use strict"; |
@@ -0,0 +0,0 @@ import { ZodEffectsDef } from "zod"; |
@@ -0,0 +0,0 @@ "use strict"; |
@@ -0,0 +0,0 @@ import { ZodEnumDef } from "zod"; |
@@ -0,0 +0,0 @@ "use strict"; |
@@ -0,0 +0,0 @@ import { ZodIntersectionDef } from "zod"; |
@@ -0,0 +0,0 @@ "use strict"; |
@@ -0,0 +0,0 @@ import { ZodLiteralDef } from "zod"; |
@@ -0,0 +0,0 @@ "use strict"; |
@@ -0,0 +0,0 @@ import { ZodMapDef } from "zod"; |
@@ -0,0 +0,0 @@ "use strict"; |
@@ -0,0 +0,0 @@ import { ZodNativeEnumDef } from "zod"; |
@@ -0,0 +0,0 @@ "use strict"; |
@@ -0,0 +0,0 @@ export declare type JsonSchema7NeverType = { |
@@ -0,0 +0,0 @@ "use strict"; |
@@ -0,0 +0,0 @@ import { References } from "../References"; |
@@ -0,0 +0,0 @@ "use strict"; |
@@ -0,0 +0,0 @@ import { ZodNullableDef } from "zod"; |
@@ -0,0 +0,0 @@ "use strict"; |
@@ -0,0 +0,0 @@ import { ZodNumberDef } from "zod"; |
@@ -0,0 +0,0 @@ "use strict"; |
@@ -0,0 +0,0 @@ import { ZodObjectDef } from "zod"; |
@@ -0,0 +0,0 @@ "use strict"; |
@@ -0,0 +0,0 @@ import { ZodOptionalDef } from "zod"; |
@@ -0,0 +0,0 @@ "use strict"; |
@@ -0,0 +0,0 @@ import { ZodPromiseDef } from "zod"; |
@@ -0,0 +0,0 @@ "use strict"; |
@@ -0,0 +0,0 @@ import { ZodRecordDef, ZodTypeAny } from "zod"; |
@@ -0,0 +0,0 @@ "use strict"; |
@@ -0,0 +0,0 @@ import { ZodSetDef } from "zod"; |
@@ -0,0 +0,0 @@ "use strict"; |
@@ -0,0 +0,0 @@ import { ZodStringDef } from "zod"; |
@@ -32,2 +32,5 @@ "use strict"; | ||
break; | ||
case "trim": | ||
// I have no idea why this is a check in Zod. It's a runtime string manipulation method. | ||
break; | ||
default: | ||
@@ -34,0 +37,0 @@ ((_) => { })(check); |
@@ -0,0 +0,0 @@ import { ZodTupleDef, ZodTupleItems, ZodTypeAny } from "zod"; |
@@ -0,0 +0,0 @@ "use strict"; |
@@ -0,0 +0,0 @@ export declare type JsonSchema7UndefinedType = { |
@@ -0,0 +0,0 @@ "use strict"; |
@@ -0,0 +0,0 @@ import { ZodDiscriminatedUnionDef, ZodUnionDef } from "zod"; |
@@ -0,0 +0,0 @@ "use strict"; |
export declare type JsonSchema7UnknownType = {}; | ||
export declare function parseUnknownDef(): JsonSchema7UnknownType; |
@@ -0,0 +0,0 @@ "use strict"; |
@@ -0,0 +0,0 @@ import { ZodTypeDef } from "zod"; |
@@ -0,0 +0,0 @@ "use strict"; |
@@ -0,0 +0,0 @@ import { ZodSchema } from "zod"; |
@@ -0,0 +0,0 @@ "use strict"; |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
67201
66
1084
10