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 1.2.1 to 1.2.2

2

package.json
{
"name": "@anatine/zod-openapi",
"version": "1.2.1",
"version": "1.2.2",
"description": "Zod to OpenAPI converter",

@@ -5,0 +5,0 @@ "main": "src/index.js",

@@ -107,5 +107,7 @@ "use strict";

function parseObject({ zodRef, schemas, useOutput, }) {
var _a;
let additionalProperties;
// `catchall` obviates `strict`, `strip`, and `passthrough`
if (!(zodRef._def.catchall instanceof zod_1.z.ZodNever))
if (!(zodRef._def.catchall instanceof zod_1.z.ZodNever ||
((_a = zodRef._def.catchall) === null || _a === void 0 ? void 0 : _a._def.typeName) === 'ZodNever'))
additionalProperties = generateSchema(zodRef._def.catchall, useOutput);

@@ -122,4 +124,6 @@ else if (zodRef._def.unknownKeys === 'passthrough')

const item = zodRef.shape[key];
return (!(item.isOptional() || item instanceof zod_1.z.ZodDefault) &&
!(item instanceof zod_1.z.ZodNever));
return (!(item.isOptional() ||
item instanceof zod_1.z.ZodDefault ||
item._def.typeName === 'ZodDefault') &&
!(item instanceof zod_1.z.ZodNever || item._def.typeName === 'ZodDefault'));
}) }, additionalProperties), ...schemas);

@@ -126,0 +130,0 @@ }

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