mirror of
https://github.com/usebruno/bruno.git
synced 2025-06-24 05:51:22 +02: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]) => {
|
.map(([path, methods]) => {
|
||||||
return Object.entries(methods)
|
return Object.entries(methods)
|
||||||
.filter(([method, op]) => {
|
.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]) => {
|
.map(([method, operationObject]) => {
|
||||||
return {
|
return {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user