We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f30923f commit 76028c0Copy full SHA for 76028c0
src/index.ts
@@ -97,7 +97,7 @@ export async function codegen(params: ISwaggerOptions) {
97
if (options.urlFilters?.length > 0) {
98
paths = {}
99
Object.keys(swaggerSource.paths).forEach(path => {
100
- if (options.urlFilters.some(urlFilter => urlFilter.indexOf(path) > -1)) {
+ if (options.urlFilters.some(urlFilter => path.includes(urlFilter))) {
101
paths[path] = swaggerSource.paths[path]
102
}
103
})
0 commit comments