Skip to content

SyncRestOpenApiContractsOptions

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

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:275

Output path for the aggregate OpenAPI document.

SyncRestOpenApiBaseOptions.openApiFile


optional projectRoot?: string

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

Optional project root used to resolve file paths.

SyncRestOpenApiBaseOptions.projectRoot


typesFile: string

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

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:301

Contract registry keyed by logical route contract ids.


endpoints: readonly EndpointOpenApiEndpointDefinition[]

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

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:305

Optional OpenAPI document metadata.


optional manifest?: undefined

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

Not accepted when contracts and endpoints are provided directly.