UNPKG

fluid-oas

Version:

Build declarative OpenApiv3.* specifications.

11 lines (10 loc) 332 B
import { SchemaBase } from "../lib/base"; const BooleanBase = (SchemaBase); class _OpenApiBoolean extends BooleanBase { toJSON() { const json = super.toJSON(); Object.defineProperty(json, "type", { value: "boolean", enumerable: true }); return json; } } export const Boolean = new _OpenApiBoolean();