mirror of
https://github.com/usebruno/bruno.git
synced 2024-11-22 16:03:39 +01:00
fix OpenAPI method filtering predicate
This commit is contained in:
parent
8f398bacb2
commit
2f9762da0e
@ -328,7 +328,7 @@ 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 {
|
||||
|
Loading…
Reference in New Issue
Block a user