Skip to content

Latest commit

 

History

History
140 lines (75 loc) · 2.67 KB

fastifyoas.fastifyoasoptions.md

File metadata and controls

140 lines (75 loc) · 2.67 KB

fastify-oas

Globals / fastifyOAS / FastifyOASOptions

Interface: FastifyOASOptions

Fastify OAS plugin options

Hierarchy

  • RegisterOptions

    FastifyOASOptions

Index

Properties

Properties

addModels

Optional addModels: boolean

Defined in lib/index.d.ts:118

If true adds fastify schemas as openapi models

default false


exposeRoute

Optional exposeRoute: boolean | ExposeOptions

Defined in lib/index.d.ts:113

If true the plugin will expose the documentation routes

default false


hideUntagged

Optional hideUntagged: boolean

Defined in lib/index.d.ts:137

If true will not add routes without tags

default false


logLevel

Optional logLevel: LogLevel

Inherited from FastifyOASOptions.logLevel

Defined in node_modules/fastify/types/register.d.ts:6


logSerializers

Optional logSerializers: Record<string, (value: any) => string>

Inherited from FastifyOASOptions.logSerializers

Defined in node_modules/fastify/types/register.d.ts:7


openapi

Optional openapi: string

Defined in lib/index.d.ts:123

Openapi version

default 3.0.0


prefix

Optional prefix: string

Inherited from FastifyOASOptions.prefix

Defined in node_modules/fastify/types/register.d.ts:5


routePrefix

Optional routePrefix: string

Defined in lib/index.d.ts:108

Documentation endpoint

default /documentation


swagger

Optional swagger: OpenApiSpec

Defined in lib/index.d.ts:132

OpenApi/Swagger object except paths


yaml

Optional yaml: boolean

Defined in lib/index.d.ts:128

If true returns yaml instead of json

default false