Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
*/
11
export
function
toOpenAPIPath(path: HTTPPath): string {
12
return
standardizeHTTPPath(path).replace(/\/\{\+([^}]+)\}/g,
'/{$1}'
)
13
}
14
15
/**
16
* @internal
Callers
2
generate
Method · 0.90
openapi-utils.test.ts
File · 0.90
Calls
2
standardizeHTTPPath
Function · 0.90
replace
Method · 0.65
Tested by
no test coverage detected