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