mirror of
https://github.com/usebruno/bruno.git
synced 2026-06-29 23:54:24 +00:00
Merge pull request #758 from aviskase/main
[bugfix] fix OpenAPI method filtering predicate
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user