full site update

This commit is contained in:
2025-07-24 18:46:24 +02:00
parent bfe2b90d8d
commit 37a6e0ab31
6912 changed files with 540482 additions and 361712 deletions

View File

@@ -1,4 +1,5 @@
import { parseDef } from "../parseDef.js";
import { parseAnyDef } from "./any.js";
export const parseOptionalDef = (def, refs) => {
if (refs.currentPath.toString() === refs.propertyPath?.toString()) {
return parseDef(def.innerType._def, refs);
@@ -11,10 +12,10 @@ export const parseOptionalDef = (def, refs) => {
? {
anyOf: [
{
not: {},
not: parseAnyDef(refs),
},
innerSchema,
],
}
: {};
: parseAnyDef(refs);
};