MCPcopy Index your code
hub / github.com/massCodeIO/massCode / getServerUrl

Function getServerUrl

src/main/http/import/openapi.ts:167–174  ·  view source on GitHub ↗
(
  raw: UnknownRecord,
  pathItem: UnknownRecord,
  operation: UnknownRecord,
)

Source from the content-addressed store, hash-verified

165}
166
167function getServerUrl(
168 raw: UnknownRecord,
169 pathItem: UnknownRecord,
170 operation: UnknownRecord,
171): string {
172 const server = getServers(raw, pathItem, operation)[0]
173 return server ? asString(server.url) : ''
174}
175
176function getParameterValue(parameter: UnknownRecord): string {
177 if (parameter.example !== undefined)

Callers 1

parseOperationFunction · 0.85

Calls 2

getServersFunction · 0.85
asStringFunction · 0.70

Tested by

no test coverage detected