@@ -332,8 +332,8 @@ function transformShape(openapi,shape){
332
332
recurse ( shape , { } , function ( obj , key , state ) {
333
333
if ( key == 'shape' ) {
334
334
obj [ "$ref" ] = '#/definitions/' + obj [ key ] ;
335
- delete obj [ key ] ;
336
335
checkDef ( openapi , obj [ key ] ) ;
336
+ delete obj [ key ] ;
337
337
}
338
338
if ( key == 'documentation' ) {
339
339
obj . description = clean ( obj . documentation ) ;
@@ -483,7 +483,7 @@ function doit(methodUri,op,pi) {
483
483
return ( ( e . name == name ) && ( e . in == 'path' ) ) ;
484
484
} ) ;
485
485
if ( ! param ) {
486
- console . warn ( 'Missing path parameter ' + match ) ;
486
+ // console.warn('Missing path parameter '+match);
487
487
let nparam = { } ;
488
488
nparam . name = name ;
489
489
nparam . type = 'string' ;
@@ -800,8 +800,8 @@ module.exports = {
800
800
}
801
801
802
802
if ( url . indexOf ( '?' ) >= 0 ) {
803
- let hparams = url . split ( '?' ) [ 1 ] . split ( '&' ) ;
804
- if ( ! path . parameters ) path . parameters = [ ] ;
803
+ let hparams = url . split ( '?' ) [ 1 ] . split ( '&' ) ;
804
+ if ( ! path . parameters ) path . parameters = [ ] ;
805
805
for ( let p of hparams ) {
806
806
let param = { } ;
807
807
param . name = p . split ( '=' ) [ 0 ] ;
@@ -813,7 +813,7 @@ module.exports = {
813
813
param . enum = [ val ] ;
814
814
}
815
815
else param . allowEmptyValue = true ;
816
- console . log ( 'Hardcoded param' , param . name ) ;
816
+ // console.log('Hardcoded param',param.name);
817
817
action . parameters . push ( param ) ;
818
818
}
819
819
url = url . split ( '?' ) [ 0 ] ;
0 commit comments