@anatine/zod-openapi
Advanced tools
Comparing version 2.1.0 to 2.2.0
@@ -5,2 +5,9 @@ # Changelog | ||
## [2.2.0](https://github.com/anatine/zod-plugins/compare/zod-openapi-2.1.0...zod-openapi-2.2.0) (2023-08-22) | ||
### Features | ||
* parse ZodPipeline ([b3e6cb7](https://github.com/anatine/zod-plugins/commit/b3e6cb77766c23326b0ffce8f62102d3096d28e2)) | ||
## [2.1.0](https://github.com/anatine/zod-plugins/compare/zod-openapi-2.0.1...zod-openapi-2.1.0) (2023-08-03) | ||
@@ -7,0 +14,0 @@ |
{ | ||
"name": "@anatine/zod-openapi", | ||
"version": "2.1.0", | ||
"version": "2.2.0", | ||
"description": "Zod to OpenAPI converter", | ||
@@ -5,0 +5,0 @@ "main": "src/index.js", |
@@ -251,2 +251,8 @@ "use strict"; | ||
} | ||
function parsePipeline({ zodRef, useOutput, }) { | ||
if (useOutput) { | ||
return generateSchema(zodRef._def.out, useOutput); | ||
} | ||
return generateSchema(zodRef._def.in, useOutput); | ||
} | ||
const workerMap = { | ||
@@ -286,2 +292,3 @@ ZodObject: parseObject, | ||
ZodVoid: catchAllParser, | ||
ZodPipeline: parsePipeline, | ||
}; | ||
@@ -288,0 +295,0 @@ function generateSchema(zodRef, useOutput) { |
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
43048
374