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.setOperationId? | boolean | - |
Returns​
OpenAPIObject
Defined in​
lib/ts-rest-open-api.ts:195