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

zod-to-json-schema

Package Overview
Dependencies
Maintainers
1
Versions
81
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

zod-to-json-schema - npm Package Compare versions

Comparing version 3.20.4 to 3.20.5

README.md

2

package.json
{
"name": "zod-to-json-schema",
"version": "3.20.4",
"version": "3.20.5",
"description": "Converts Zod schemas to Json Schemas",

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

@@ -7,2 +7,3 @@ import { ZodSchema } from "zod";

effectStrategy: "input" | "any";
pipeStrategy: "input" | "all";
target: Target;

@@ -9,0 +10,0 @@ strictUnions: boolean;

@@ -9,2 +9,3 @@ "use strict";

effectStrategy: "input",
pipeStrategy: "all",
definitionPath: "definitions",

@@ -11,0 +12,0 @@ target: "jsonSchema7",

@@ -6,2 +6,5 @@ "use strict";

const parsePipelineDef = (def, refs) => {
if (refs.pipeStrategy === "input") {
return (0, parseDef_1.parseDef)(def.in._def, refs);
}
const a = (0, parseDef_1.parseDef)(def.in._def, Object.assign(Object.assign({}, refs), { currentPath: [...refs.currentPath, "allOf", "0"] }));

@@ -8,0 +11,0 @@ const b = (0, parseDef_1.parseDef)(def.out._def, Object.assign(Object.assign({}, refs), { currentPath: [...refs.currentPath, "allOf", a ? "1" : "0"] }));

@@ -7,2 +7,3 @@ import { ZodSetDef } from "zod";

type: "array";
uniqueItems: true;
items?: JsonSchema7Type;

@@ -9,0 +10,0 @@ minItems?: number;

@@ -10,2 +10,3 @@ "use strict";

type: "array",
uniqueItems: true,
items,

@@ -12,0 +13,0 @@ };

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