Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@anatine/zod-openapi

Package Overview
Dependencies
Maintainers
1
Versions
45
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@anatine/zod-openapi - npm Package Compare versions

Comparing version 2.1.0 to 2.2.0

7

CHANGELOG.md

@@ -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 @@

2

package.json
{
"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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc