fix OpenAPI method filtering predicate

This commit is contained in:
Yuliya Bagriy 2023-10-24 08:02:21 +06:00 committed by GitHub
parent 8f398bacb2
commit 2f9762da0e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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 {