anbuksv/avantation

host and mimeType filtering preventing export of openapi

Opened this issue · 0 comments

I have a har file with 7-8 different hosts in it. How do I process it with this tool? I want a single openapi if possible. OpenAPI 3.0 supports multiple hosts

if (!this.mimeTypes.includes(entry.response.content.mimeType)) {
this.oclif.warn(`Skipping invalid mimeType:${entry.response.content.mimeType} @${url.href} in response.`);
return;
}
if (url.host !== this.host || !url.pathname.includes(this.basePath)) {
this.oclif.warn(`Skipping invalid url ${url.href}`);
return; //simply ignore invalid url match
}