Module: @ts-rest/open-api
Functions
generateOpenApi
▸ generateOpenApi(router
, apiDoc
, options?
): OpenAPIObject
Parameters
Name | Type | Description |
---|---|---|
router | AppRouter | - |
apiDoc | Omit <OpenAPIObject , "paths" | "openapi" > & { info : InfoObject } | - |
options | Object | - |
options.jsonQuery? | boolean | Enable JSON query parameters, see |
options.operationMapper? | (operation : OperationObject , appRoute : AppRoute ) => OperationObject | - |
options.setOperationId? | boolean | "concatenated-path" | - |
Returns
OpenAPIObject
Defined in
lib/ts-rest-open-api.ts:195