Skip to content

SyncRestOpenApiContractsOptions

Defined in: wp-typia-block-runtime/src/metadata-core.ts:243

Backward-compatible options for writing a canonical endpoint-aware REST OpenAPI document.

  • SyncRestOpenApiBaseOptions

openApiFile: string

Defined in: wp-typia-block-runtime/src/metadata-core.ts:219

Output path for the aggregate OpenAPI document.

SyncRestOpenApiBaseOptions.openApiFile


optional projectRoot?: string

Defined in: wp-typia-block-runtime/src/metadata-core.ts:221

Optional project root used to resolve file paths.

SyncRestOpenApiBaseOptions.projectRoot


typesFile: string

Defined in: wp-typia-block-runtime/src/metadata-core.ts:223

Source file that exports the REST contract types.

SyncRestOpenApiBaseOptions.typesFile


contracts: Readonly<Record<string, RestOpenApiContractDefinition>>

Defined in: wp-typia-block-runtime/src/metadata-core.ts:245

Contract registry keyed by logical route contract ids.


endpoints: readonly EndpointOpenApiEndpointDefinition[]

Defined in: wp-typia-block-runtime/src/metadata-core.ts:247

Endpoint registry describing the REST paths, methods, and auth policies to document.


optional openApiInfo?: OpenApiInfo

Defined in: wp-typia-block-runtime/src/metadata-core.ts:249

Optional OpenAPI document metadata.


optional manifest?: undefined

Defined in: wp-typia-block-runtime/src/metadata-core.ts:251

Not accepted when contracts and endpoints are provided directly.