API reference / @chanx-js/server / core / AsyncAPIOptions
Interface: AsyncAPIOptions
Defined in: packages/server/src/asyncapi.ts:12
Options for chanx.asyncapi(). Metadata given here goes into the document's info.
Extends
Partial<Pick<AsyncAPIInfo,"termsOfService"|"contact"|"license"|"tags"|"externalDocs">>
Extended by
Properties
contact?
optional contact?: object;Defined in: packages/server/src/asyncapi.ts:77
email?
optional email?: string;name?
optional name?: string;url?
optional url?: string;Inherited from
description?
optional description?: string;Defined in: packages/server/src/asyncapi.ts:20
Defaults to an empty string.
externalDocs?
optional externalDocs?: AsyncAPIExternalDocs;Defined in: packages/server/src/asyncapi.ts:80
Inherited from
license?
optional license?: object;Defined in: packages/server/src/asyncapi.ts:78
name
name: string;url?
optional url?: string;Inherited from
securitySchemes?
optional securitySchemes?: Record<string, AsyncAPISecurityScheme>;Defined in: packages/server/src/asyncapi.ts:28
AsyncAPI Security Scheme Objects by name; one replaces a credentials one of its name.
serverProtocol?
optional serverProtocol?: string;Defined in: packages/server/src/asyncapi.ts:24
ws or wss. Defaults to ws.
servers?
optional servers?: Record<string, AsyncAPIServer>;Defined in: packages/server/src/asyncapi.ts:26
AsyncAPI Server Objects by name, in place of serverUrl and serverProtocol.
serverUrl?
optional serverUrl?: string;Defined in: packages/server/src/asyncapi.ts:22
The server's host, such as api.example.com. Defaults to localhost:8000.
tags?
optional tags?: AsyncAPITag[];Defined in: packages/server/src/asyncapi.ts:79
Inherited from
termsOfService?
optional termsOfService?: string;Defined in: packages/server/src/asyncapi.ts:76
A URL to the API's terms of service.
Inherited from
title?
optional title?: string;Defined in: packages/server/src/asyncapi.ts:16
Defaults to AsyncAPI Documentation.
version?
optional version?: string;Defined in: packages/server/src/asyncapi.ts:18
The API's version. Defaults to 1.0.0.