MCPcopy Create free account
hub / github.com/Effect-TS/effect / escapePath

Function escapePath

packages/effect/src/unstable/httpapi/OpenApi.ts:659–661  ·  view source on GitHub ↗
(path: ReadonlyArray<string>)

Source from the content-addressed store, hash-verified

657 })
658
659 function escapePath(path: ReadonlyArray<string>): string {
660 return "/" + path.map(escapeToken).join("/")
661 }
662
663 if (Arr.isArrayNonEmpty(pathOps)) {
664 const jsonSchemaMultiDocument = compileSchemas(Arr.map(pathOps, (op) => op.ast))

Callers 1

fromApiWithFunction · 0.85

Calls 2

joinMethod · 0.80
mapMethod · 0.45

Tested by

no test coverage detected