Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

host and mimeType filtering preventing export of openapi #34

Open
numonedad opened this issue Nov 10, 2021 · 0 comments
Open

host and mimeType filtering preventing export of openapi #34

numonedad opened this issue Nov 10, 2021 · 0 comments

Comments

@numonedad
Copy link

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
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant