zod-openapi
Advanced tools
Comparing version 4.2.0 to 4.2.1
@@ -1,1 +0,1 @@ | ||
import './extendZodTypes.js'; | ||
export { currentSymbol, previousSymbol } from './extendZodTypes.js'; |
import { z } from 'zod'; | ||
import './extendZodTypes.js'; | ||
@@ -4,0 +3,0 @@ declare function extendZodWithOpenApi(zod: typeof z): void; |
@@ -8,2 +8,4 @@ import { ZodTypeAny, z, ZodObject } from 'zod'; | ||
type ReplaceDate<T> = T extends Date ? Date | string : T; | ||
declare const currentSymbol: unique symbol; | ||
declare const previousSymbol: unique symbol; | ||
/** | ||
@@ -68,3 +70,3 @@ * zod-openapi metadata | ||
*/ | ||
current?: ZodTypeAny; | ||
[currentSymbol]?: ZodTypeAny; | ||
/** | ||
@@ -74,3 +76,3 @@ * Used to keep track of the previous Zod Schema that had `.openapi` called on it if another `.openapi` is called. | ||
*/ | ||
previous?: ZodTypeAny; | ||
[previousSymbol]?: ZodTypeAny; | ||
} | ||
@@ -94,1 +96,3 @@ interface ZodOpenApiExtendMetadata { | ||
} | ||
export { currentSymbol, previousSymbol }; |
{ | ||
"name": "zod-openapi", | ||
"version": "4.2.0", | ||
"version": "4.2.1", | ||
"description": "Convert Zod Schemas to OpenAPI v3.x documentation", | ||
@@ -100,4 +100,4 @@ "keywords": [ | ||
"type": "package", | ||
"version": "9.0.0-main-20240928013837" | ||
"version": "9.1.0" | ||
} | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
231138
39
6212