* Extracts the spec ID from the spec object * @param spec - The parsed spec object * @param defaultId - Default ID to use if none is found in the spec * @returns The extracted spec ID
(spec: OpenAPIV3.Document, defaultId: string)
| 226 | * @returns The extracted spec ID |
| 227 | */ |
| 228 | private extractSpecId(spec: OpenAPIV3.Document, defaultId: string): string { |
| 229 | return (spec.info as any)["x-spec-id"] || defaultId; |
| 230 | } |
| 231 | } |