forked from extern/bruno
Merge pull request #758 from aviskase/main
[bugfix] fix OpenAPI method filtering predicate
This commit is contained in:
commit
5274d77660
@ -328,7 +328,9 @@ 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…
Reference in New Issue
Block a user