se supone que mcp server up
All checks were successful
build-and-push / build (push) Successful in 17s
build-and-push / deploy (push) Successful in 19s

This commit is contained in:
2025-05-02 19:33:50 -06:00
parent 022086f49d
commit b5e40cf4ac
1516 changed files with 242801 additions and 1 deletions

View File

@@ -0,0 +1,24 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.parseOptionalDef = void 0;
const parseDef_js_1 = require("../parseDef.js");
const parseOptionalDef = (def, refs) => {
if (refs.currentPath.toString() === refs.propertyPath?.toString()) {
return (0, parseDef_js_1.parseDef)(def.innerType._def, refs);
}
const innerSchema = (0, parseDef_js_1.parseDef)(def.innerType._def, {
...refs,
currentPath: [...refs.currentPath, "anyOf", "1"],
});
return innerSchema
? {
anyOf: [
{
not: {},
},
innerSchema,
],
}
: {};
};
exports.parseOptionalDef = parseOptionalDef;