@@ -289,31 +289,32 @@ export const openApi = createOpenApiAwsLambdaHandler({ router: appRouter });
289289
290290Please see [ full typings here] ( src/generator/index.ts ) .
291291
292- | Property | Type | Description | Required |
293- | ------------- | ---------- | ------------------------------------ | -------- |
294- | ` title ` | ` string ` | The title of the API. | ` true ` |
295- | ` description ` | ` string ` | A short description of the API. | ` false ` |
296- | ` version ` | ` string ` | The version of the OpenAPI document. | ` true ` |
297- | ` baseUrl ` | ` string ` | The base URL of the target server. | ` true ` |
298- | ` docsUrl ` | ` string ` | A URL to any external documentation. | ` false ` |
299- | ` tags ` | ` string[] ` | A list for ordering endpoint groups. | ` false ` |
292+ | Property | Type | Description | Required |
293+ | ----------------- | -------------------------------------- | ------------------------------------------------------- | -------- |
294+ | ` title ` | ` string ` | The title of the API. | ` true ` |
295+ | ` description ` | ` string ` | A short description of the API. | ` false ` |
296+ | ` version ` | ` string ` | The version of the OpenAPI document. | ` true ` |
297+ | ` baseUrl ` | ` string ` | The base URL of the target server. | ` true ` |
298+ | ` docsUrl ` | ` string ` | A URL to any external documentation. | ` false ` |
299+ | ` tags ` | ` string[] ` | A list for ordering endpoint groups. | ` false ` |
300+ | ` securitySchemes ` | ` Record<string, SecuritySchemeObject> ` | Defaults to ` Authorization ` header with ` Bearer ` scheme | ` false ` |
300301
301302#### OpenApiMeta
302303
303304Please see [ full typings here] ( src/types.ts ) .
304305
305- | Property | Type | Description | Required | Default |
306- | -------------- | ------------------- | ------------------------------------------------------------------------------------------------------------ | -------- | ---------------------- |
307- | ` enabled ` | ` boolean ` | Exposes this procedure to ` trpc-openapi ` adapters and on the OpenAPI document. | ` false ` | ` true ` |
308- | ` method ` | ` HttpMethod ` | HTTP method this endpoint is exposed on. Value can be ` GET ` , ` POST ` , ` PATCH ` , ` PUT ` or ` DELETE ` . | ` true ` | ` undefined ` |
309- | ` path ` | ` string ` | Pathname this endpoint is exposed on. Value must start with ` / ` , specify path parameters using ` {} ` . | ` true ` | ` undefined ` |
310- | ` protect ` | ` boolean ` | Requires this endpoint to use an ` Authorization ` header credential with ` Bearer ` scheme on OpenAPI document. | ` false ` | ` false ` |
311- | ` summary ` | ` string ` | A short summary of the endpoint included in the OpenAPI document. | ` false ` | ` undefined ` |
312- | ` description ` | ` string ` | A verbose description of the endpoint included in the OpenAPI document. | ` false ` | ` undefined ` |
313- | ` tags ` | ` string[] ` | A list of tags used for logical grouping of endpoints in the OpenAPI document. | ` false ` | ` undefined ` |
314- | ` headers ` | ` ParameterObject[] ` | An array of custom headers to add for this endpoint in the OpenAPI document. | ` false ` | ` undefined ` |
315- | ` contentTypes ` | ` ContentType[] ` | A set of content types specified as accepted in the OpenAPI document. | ` false ` | ` ['application/json'] ` |
316- | ` deprecated ` | ` boolean ` | Whether or not to mark an endpoint as deprecated | ` false ` | ` false ` |
306+ | Property | Type | Description | Required | Default |
307+ | -------------- | ------------------- | ---------------------------------------------------------------------------------------------------- | -------- | ---------------------- |
308+ | ` enabled ` | ` boolean ` | Exposes this procedure to ` trpc-openapi ` adapters and on the OpenAPI document. | ` false ` | ` true ` |
309+ | ` method ` | ` HttpMethod ` | HTTP method this endpoint is exposed on. Value can be ` GET ` , ` POST ` , ` PATCH ` , ` PUT ` or ` DELETE ` . | ` true ` | ` undefined ` |
310+ | ` path ` | ` string ` | Pathname this endpoint is exposed on. Value must start with ` / ` , specify path parameters using ` {} ` . | ` true ` | ` undefined ` |
311+ | ` protect ` | ` boolean ` | Requires this endpoint to use a security scheme. | ` false ` | ` false ` |
312+ | ` summary ` | ` string ` | A short summary of the endpoint included in the OpenAPI document. | ` false ` | ` undefined ` |
313+ | ` description ` | ` string ` | A verbose description of the endpoint included in the OpenAPI document. | ` false ` | ` undefined ` |
314+ | ` tags ` | ` string[] ` | A list of tags used for logical grouping of endpoints in the OpenAPI document. | ` false ` | ` undefined ` |
315+ | ` headers ` | ` ParameterObject[] ` | An array of custom headers to add for this endpoint in the OpenAPI document. | ` false ` | ` undefined ` |
316+ | ` contentTypes ` | ` ContentType[] ` | A set of content types specified as accepted in the OpenAPI document. | ` false ` | ` ['application/json'] ` |
317+ | ` deprecated ` | ` boolean ` | Whether or not to mark an endpoint as deprecated | ` false ` | ` false ` |
317318
318319#### CreateOpenApiNodeHttpHandlerOptions
319320
0 commit comments