Correção: Não estava montando o path_prefix correto (obtendo apenas o 1o path) para a versão Swagger

This commit is contained in:
2024-03-22 07:38:54 -03:00
parent 6343721d66
commit 76d7f30e1a
2 changed files with 2 additions and 2 deletions

View File

@@ -467,7 +467,7 @@ def process_api_spec(api_id, compartmentId, environment, swagger, functionId, ho
for spec in api_spec["routes"]:
status = spec["backend"]["status"]
specPath = spec["path"]
if (has_path_endpoint(endPointOrigin)):
if (has_path_endpoint(endPointOrigin) and version == "3"):
endPoint = find_base_endpoint(endPointOrigin)
specPath = (find_base_pathendpoint(endPointOrigin, specPath) + spec["path"]).replace("//", "/")
@@ -709,4 +709,4 @@ def handler(ctx, data: io.BytesIO = None):
ctx,
status_code=401,
response_data=json.dumps({"active": False, "wwwAuthenticate": jsonData})
)
)