MCPcopy Create free account
hub / github.com/QodeXcli/QodeX / refName

Function refName

src/tools/api/openapi-digest.ts:29–32  ·  view source on GitHub ↗
(ref: unknown)

Source from the content-addressed store, hash-verified

27interface EndpointInfo { method: string; path: string; summary?: string; params: ParamInfo[]; body?: string; success?: string; security?: string[]; }
28
29function refName(ref: unknown): string | undefined {
30 if (typeof ref === 'string') return ref.split('/').pop();
31 return undefined;
32}
33
34function schemaLabel(schema: any): string {
35 if (!schema) return 'any';

Callers 1

schemaLabelFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected