UNPKG

fluid-oas

Version:

Build declarative OpenApiv3.* specifications.

14 lines (13 loc) 631 B
import { withContent, withDeprecated, withDescription, withExample, withExamples, withExplode, withRequired, withSchema, withStyle, } from "../common"; import { Base } from "./base"; const HeaderBase = withRequired(withDeprecated(withDescription(Base))); const SchemaHeaderBase = withExamples(withExample(withSchema(withExplode(withStyle(HeaderBase)())))); const ContentHeaderBase = withContent(HeaderBase); class _OpenApiHeaderSchema extends SchemaHeaderBase { } class _OpenApiHeaderContent extends ContentHeaderBase { } export const Header = { schema: new _OpenApiHeaderSchema(), content: new _OpenApiHeaderContent(), };