@@ -95,7 +95,7 @@ SwaggerAuthorizations.prototype.apply = function(obj, authorizations) {
95
95
if ( result === true )
96
96
status = true ;
97
97
}
98
- }
98
+ }
99
99
}
100
100
}
101
101
@@ -415,6 +415,9 @@ SwaggerClient.prototype.buildFromSpec = function(response) {
415
415
if ( typeof response . paths [ path ] === 'object' ) {
416
416
var httpMethod ;
417
417
for ( httpMethod in response . paths [ path ] ) {
418
+ if ( [ 'delete' , 'get' , 'head' , 'options' , 'patch' , 'post' , 'put' ] . indexOf ( httpMethod ) === - 1 ) {
419
+ continue ;
420
+ }
418
421
var operation = response . paths [ path ] [ httpMethod ] ;
419
422
var tags = operation . tags ;
420
423
if ( typeof tags === 'undefined' ) {
@@ -991,7 +994,7 @@ Operation.prototype.encodeCollection = function(type, name, value) {
991
994
}
992
995
993
996
/**
994
- * TODO this encoding needs to be changed
997
+ * TODO this encoding needs to be changed
995
998
**/
996
999
Operation . prototype . encodeQueryParam = function ( arg ) {
997
1000
return escape ( arg ) ;
@@ -1031,7 +1034,7 @@ var Model = function(name, definition) {
1031
1034
if ( requiredFields . indexOf ( key ) >= 0 )
1032
1035
required = true ;
1033
1036
this . properties . push ( new Property ( key , property , required ) ) ;
1034
- }
1037
+ }
1035
1038
}
1036
1039
}
1037
1040
@@ -1210,7 +1213,7 @@ Property.prototype.toString = function() {
1210
1213
str += ', <span class="propOptKey">optional</span>' ;
1211
1214
str += ')' ;
1212
1215
}
1213
- else
1216
+ else
1214
1217
str = this . name + ' (' + JSON . stringify ( this . obj ) + ')' ;
1215
1218
1216
1219
if ( typeof this . description !== 'undefined' )
@@ -1474,4 +1477,4 @@ ShredHttpClient.prototype.execute = function(obj) {
1474
1477
obj . on = res ;
1475
1478
}
1476
1479
return this . shred . request ( obj ) ;
1477
- } ;
1480
+ } ;
0 commit comments