Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
fehguy committed Dec 3, 2014
1 parent e6792a3 commit 72aa3f7
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
6 changes: 5 additions & 1 deletion lib/swagger-client.js
Expand Up @@ -513,7 +513,11 @@ SwaggerClient.prototype.idFromOp = function(path, httpMethod, op) {
return (op.operationId);
}
else {
return path.substring(1).replace(/\//g, "_").replace(/\{/g, "").replace(/\}/g, "") + "_" + httpMethod;
return path.substring(1)
.replace(/\//g, "_")
.replace(/\{/g, "")
.replace(/\}/g, "")
.replace(/\./g, "_") + "_" + httpMethod;
}
}

Expand Down
6 changes: 5 additions & 1 deletion src/main/javascript/swagger.js
Expand Up @@ -222,7 +222,11 @@ SwaggerClient.prototype.idFromOp = function(path, httpMethod, op) {
return (op.operationId);
}
else {
return path.substring(1).replace(/\//g, "_").replace(/\{/g, "").replace(/\}/g, "") + "_" + httpMethod;
return path.substring(1)
.replace(/\//g, "_")
.replace(/\{/g, "")
.replace(/\}/g, "")
.replace(/\./g, "_") + "_" + httpMethod;
}
}

Expand Down

0 comments on commit 72aa3f7

Please sign in to comment.