Merge pull request #758 from aviskase/main

[bugfix] fix OpenAPI method filtering predicate
This commit is contained in:
Anoop M D 2023-10-24 09:14:32 +05:30 committed by GitHub
commit 5274d77660
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -328,7 +328,9 @@ const parseOpenApiCollection = (data) => {
.map(([path, methods]) => {
return Object.entries(methods)
.filter(([method, op]) => {
['get', 'put', 'post', 'delete', 'options', 'head', 'patch', 'trace'].includes(method.toLowerCase());
return ['get', 'put', 'post', 'delete', 'options', 'head', 'patch', 'trace'].includes(
method.toLowerCase()
);
})
.map(([method, operationObject]) => {
return {