forked from loafle/openapi-generator-original
Merge branch 'master' of https://github.com/swagger-api/swagger-codegen
This commit is contained in:
@@ -407,8 +407,8 @@ build_request_path() {
|
||||
fi
|
||||
|
||||
# First replace all path parameters in the path
|
||||
local path_regex="(.*)(\\{$pparam\\})(.*)"
|
||||
for pparam in "${path_params[@]}"; do
|
||||
local path_regex="(.*)(\\{$pparam\\})(.*)"
|
||||
if [[ $path_template =~ $path_regex ]]; then
|
||||
path_template=${BASH_REMATCH[1]}${operation_parameters[$pparam]}${BASH_REMATCH[3]}
|
||||
fi
|
||||
|
||||
@@ -509,8 +509,8 @@ build_request_path() {
|
||||
fi
|
||||
|
||||
# First replace all path parameters in the path
|
||||
local path_regex="(.*)(\\{$pparam\\})(.*)"
|
||||
for pparam in "${path_params[@]}"; do
|
||||
local path_regex="(.*)(\\{$pparam\\})(.*)"
|
||||
if [[ $path_template =~ $path_regex ]]; then
|
||||
path_template=${BASH_REMATCH[1]}${operation_parameters[$pparam]}${BASH_REMATCH[3]}
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user