Skip to content

Commit 19bb24c

Browse files
committed
Merge branch 'patch-1' of https://github.com/frol/swagger-js into frol-patch-1
2 parents c8436a4 + 1bc499e commit 19bb24c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/client.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -310,7 +310,7 @@ SwaggerClient.prototype.buildFromSpec = function (response) {
310310
for(var ext in securityDefinition) {
311311
helpers.extractExtensions(ext, securityDefinition);
312312
if (ext === 'scopes') {
313-
var scopes = securityDefinition[ext];
313+
var scopes = _.cloneDeep(securityDefinition[ext]);
314314
if(typeof scopes === 'object') {
315315
scopes.vendorExtensions = {};
316316
for (var s in scopes) {

0 commit comments

Comments
 (0)