agsamantha/node_modules/openai/_vendor/zod-to-json-schema/parsers/null.js

15 lines
374 B
JavaScript
Raw Normal View History

2024-10-02 20:15:21 +00:00
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.parseNullDef = void 0;
function parseNullDef(refs) {
return refs.target === 'openApi3' ?
{
enum: ['null'],
nullable: true,
}
: {
type: 'null',
};
}
exports.parseNullDef = parseNullDef;
//# sourceMappingURL=null.js.map