import { OpenApiBuilder } from "https://dotland.deno.dev/x/alosaur@v0.37.0/openapi/builder/openapi-builder.ts";
Methods
addCallback(name: string, callback: oa.CallbackObject | oa.ReferenceObject): OpenApiBuilder
addContact(contact: oa.ContactObject): OpenApiBuilder
addDescription(description: string): OpenApiBuilder
addExample(name: string, example: oa.ExampleObject | oa.ReferenceObject): OpenApiBuilder
addExternalDocs(extDoc: oa.ExternalDocumentationObject): OpenApiBuilder
addHeader(name: string, header: oa.HeaderObject | oa.ReferenceObject): OpenApiBuilder
addInfo(info: oa.InfoObject): OpenApiBuilder
addLicense(license: oa.LicenseObject): OpenApiBuilder
addLink(name: string, link: oa.LinkObject | oa.ReferenceObject): OpenApiBuilder
addOpenApiVersion(openApiVersion: string): OpenApiBuilder
addParameter(name: string, parameter: oa.ParameterObject | oa.ReferenceObject): OpenApiBuilder
addPath(path: string, pathItem: oa.PathItemObject): OpenApiBuilder
addRequestBody(name: string, reqBody: oa.RequestBodyObject | oa.ReferenceObject): OpenApiBuilder
addResponse(name: string, response: oa.ResponseObject | oa.ReferenceObject): OpenApiBuilder
addSchema(name: string, schema: oa.SchemaObject | oa.ReferenceObject): OpenApiBuilder
addSecurityScheme(name: string, secScheme: oa.SecuritySchemeObject | oa.ReferenceObject): OpenApiBuilder
addServer(server: oa.ServerObject): OpenApiBuilder
addTag(tag: oa.TagObject): OpenApiBuilder
addTermsOfService(termsOfService: string): OpenApiBuilder
addTitle(title: string): OpenApiBuilder
addVersion(version: string): OpenApiBuilder
getSpec(): oa.OpenAPIObject
getSpecAsJson(replacer?: (key: string, value: any) => any, space?: string | number): string
getSpecAsYaml(): string
Static Methods
private
isValidOpenApiVersion(v?: string): booleancreate(doc?: oa.OpenAPIObject): OpenApiBuilder