full site update
This commit is contained in:
5
node_modules/zod-to-json-schema/dist/esm/parsers/map.js
generated
vendored
5
node_modules/zod-to-json-schema/dist/esm/parsers/map.js
generated
vendored
@@ -1,5 +1,6 @@
|
||||
import { parseDef } from "../parseDef.js";
|
||||
import { parseRecordDef } from "./record.js";
|
||||
import { parseAnyDef } from "./any.js";
|
||||
export function parseMapDef(def, refs) {
|
||||
if (refs.mapStrategy === "record") {
|
||||
return parseRecordDef(def, refs);
|
||||
@@ -7,11 +8,11 @@ export function parseMapDef(def, refs) {
|
||||
const keys = parseDef(def.keyType._def, {
|
||||
...refs,
|
||||
currentPath: [...refs.currentPath, "items", "items", "0"],
|
||||
}) || {};
|
||||
}) || parseAnyDef(refs);
|
||||
const values = parseDef(def.valueType._def, {
|
||||
...refs,
|
||||
currentPath: [...refs.currentPath, "items", "items", "1"],
|
||||
}) || {};
|
||||
}) || parseAnyDef(refs);
|
||||
return {
|
||||
type: "array",
|
||||
maxItems: 125,
|
||||
|
Reference in New Issue
Block a user