()
| 141 | } |
| 142 | |
| 143 | protected buildServers() { |
| 144 | const prefix = this.config.disableBasePathPrefixSlash ? undefined : '/'; |
| 145 | const basePath = normalisePath(this.config.basePath as string, prefix, undefined, false); |
| 146 | const scheme = this.config.schemes ? this.config.schemes[0] : 'https'; |
| 147 | const hosts = this.config.servers ? this.config.servers : this.config.host ? [this.config.host!] : undefined; |
| 148 | const convertHost = (host: string) => ({ url: `${scheme}://${host}${basePath}` }); |
| 149 | return (hosts?.map(convertHost) || [{ url: basePath }]) as Swagger.Server[]; |
| 150 | } |
| 151 | |
| 152 | protected buildSchema() { |
| 153 | const schema: { [name: string]: Swagger.Schema3 } = {}; |
no test coverage detected