UNPKG

@langchain/core

Version:
1 lines 585 B
{"version":3,"file":"null.cjs","names":[],"sources":["../../../../src/utils/zod-to-json-schema/parsers/null.ts"],"sourcesContent":["import { Refs } from \"../Refs.js\";\n\nexport type JsonSchema7NullType = {\n type: \"null\";\n};\n\nexport function parseNullDef(refs: Refs): JsonSchema7NullType {\n return refs.target === \"openApi3\"\n ? ({\n enum: [\"null\"],\n nullable: true,\n } as any)\n : {\n type: \"null\",\n };\n}\n"],"mappings":";AAMA,SAAgB,aAAa,MAAiC;AAC5D,QAAO,KAAK,WAAW,aAClB;EACC,MAAM,CAAC,OAAO;EACd,UAAU;EACX,GACD,EACE,MAAM,QACP"}