MCPcopy Create free account
hub / github.com/effect-app/libs / formatWarning

Function formatWarning

repos/effect/packages/tools/openapi-generator/src/main.ts:107–116  ·  view source on GitHub ↗
(warning: OpenApiGenerator.OpenApiGeneratorWarning)

Source from the content-addressed store, hash-verified

105})
106
107const formatWarning = (warning: OpenApiGenerator.OpenApiGeneratorWarning): string => {
108 const context = [
109 warning.method?.toUpperCase(),
110 warning.path,
111 warning.operationId ? `(${warning.operationId})` : undefined
112 ].filter((value): value is string => value !== undefined)
113 return context.length > 0
114 ? `WARNING [${warning.code}] ${context.join(" ")}: ${warning.message}`
115 : `WARNING [${warning.code}] ${warning.message}`
116}

Callers 1

main.tsFile · 0.85

Calls 2

filterMethod · 0.80
joinMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…