MCPcopy Create free account
hub / github.com/middleapi/orpc / toOpenAPIPath

Function toOpenAPIPath

packages/openapi/src/openapi-utils.ts:11–13  ·  view source on GitHub ↗
(path: HTTPPath)

Source from the content-addressed store, hash-verified

9 * @internal
10 */
11export function toOpenAPIPath(path: HTTPPath): string {
12 return standardizeHTTPPath(path).replace(/\/\{\+([^}]+)\}/g, '/{$1}')
13}
14
15/**
16 * @internal

Callers 2

generateMethod · 0.90

Calls 2

standardizeHTTPPathFunction · 0.90
replaceMethod · 0.65

Tested by

no test coverage detected