From 3340ba7297a6a22893303aa27c25e44043c77fdb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicolas=20Mass=C3=A9?= Date: Wed, 27 Mar 2019 10:37:10 +0100 Subject: [PATCH] [skip travis] rewrite the basePath in the final OAS --- templates/rewritten_openapi.j2 | 2 ++ 1 file changed, 2 insertions(+) diff --git a/templates/rewritten_openapi.j2 b/templates/rewritten_openapi.j2 index 28178d1..3ced554 100644 --- a/templates/rewritten_openapi.j2 +++ b/templates/rewritten_openapi.j2 @@ -24,4 +24,6 @@ }) %} {# Make sure the swagger version is a string and not a number #} {% do new_openapi.update({ "swagger": new_openapi.swagger ~ "" }) %} +{# Patch the basePath in case it has been overwritten #} +{% do new_openapi.update({ "basePath": (threescale_cicd_api_basepath if threescale_cicd_api_basepath|length > 0 else "/") }) %} {{ new_openapi }} \ No newline at end of file