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

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 {