full site update
This commit is contained in:
3
node_modules/zod-to-json-schema/dist/cjs/parsers/object.js
generated
vendored
3
node_modules/zod-to-json-schema/dist/cjs/parsers/object.js
generated
vendored
@@ -1,7 +1,6 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.parseObjectDef = void 0;
|
||||
const zod_1 = require("zod");
|
||||
const parseDef_js_1 = require("../parseDef.js");
|
||||
function parseObjectDef(def, refs) {
|
||||
const forceOptionalIntoNullable = refs.target === "openAi";
|
||||
@@ -18,7 +17,7 @@ function parseObjectDef(def, refs) {
|
||||
}
|
||||
let propOptional = safeIsOptional(propDef);
|
||||
if (propOptional && forceOptionalIntoNullable) {
|
||||
if (propDef instanceof zod_1.ZodOptional) {
|
||||
if (propDef._def.typeName === "ZodOptional") {
|
||||
propDef = propDef._def.innerType;
|
||||
}
|
||||
if (!propDef.isNullable()) {
|
||||
|
Reference in New Issue
Block a user