15 lines
No EOL
374 B
JavaScript
15 lines
No EOL
374 B
JavaScript
"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
|