OpenAPIOptions
@rotorsoft/act-root / act-http/src/openapi / OpenAPIOptions
Type Alias: OpenAPIOptions
OpenAPIOptions =
object
Defined in: libs/act-http/src/openapi/index.ts:98
Per-call options for openapi. The host supplies the document-shape fields the registry can't derive (title, version, servers) and toggles for the cross-cutting headers that the live REST API may accept.
infoโ required.titleandversionmust be non-empty;infomay carry any other top-level OpenAPI info fields.serversโ optional. Each entry'surlmay contain{variable}template syntax; bare URLs are validated throughURL's parser and reject malformed inputs.basePathโ optional, default/api. Mirrors the Hono sibling's default so the doc describes the same paths the generated REST surface serves.idempotencyโ optional, defaultfalse. Whentrue, every mutation operation documents an optionalIdempotency-Keyrequest header.expectedVersionโ optional, defaultfalse. Whentrue, every mutation operation documents an optionalIf-Matchrequest header carrying the expected stream version.
Propertiesโ
basePath?โ
readonlyoptionalbasePath?:string
Defined in: libs/act-http/src/openapi/index.ts:101
expectedVersion?โ
readonlyoptionalexpectedVersion?:boolean
Defined in: libs/act-http/src/openapi/index.ts:103
idempotency?โ
readonlyoptionalidempotency?:boolean
Defined in: libs/act-http/src/openapi/index.ts:102
infoโ
readonlyinfo:OpenAPIInfo
Defined in: libs/act-http/src/openapi/index.ts:99
servers?โ
readonlyoptionalservers?:ReadonlyArray<OpenAPIServer>
Defined in: libs/act-http/src/openapi/index.ts:100