UNPKG

fluid-oas

Version:

Build declarative OpenApiv3.* specifications.

11 lines (10 loc) 314 B
import { SchemaBase } from "../lib/base"; const NullBase = (SchemaBase); class _OpenApiNull extends NullBase { toJSON() { const json = super.toJSON(); Object.defineProperty(json, "type", { value: "null", enumerable: true }); return json; } } export const Null = new _OpenApiNull();