From d358723aff2be2130fcd7196e73fb393ad65becd Mon Sep 17 00:00:00 2001 From: VirajSalaka Date: Fri, 17 May 2024 17:47:32 +0530 Subject: [PATCH] Fix swagger2 related issue --- adapter/internal/oasparser/model/swagger.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/adapter/internal/oasparser/model/swagger.go b/adapter/internal/oasparser/model/swagger.go index b19d1f38a4..cf730bdba5 100644 --- a/adapter/internal/oasparser/model/swagger.go +++ b/adapter/internal/oasparser/model/swagger.go @@ -161,7 +161,7 @@ func setResourcesSwagger(swagger2 spec.Swagger) ([]*Resource, error) { if found { addResourceLevelDisableSecurity(&pathItem.Options.VendorExtensible, disableSecurity) } - methodsArray = append(methodsArray, NewOperation("OPTION", pathItem.Options.Security, + methodsArray = append(methodsArray, NewOperation("OPTIONS", pathItem.Options.Security, pathItem.Options.Extensions)) methodFound = true }