File tree Expand file tree Collapse file tree 3 files changed +4
-1
lines changed Expand file tree Collapse file tree 3 files changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -42,6 +42,7 @@ exports.api = function(args, opts) {
42
42
return ;
43
43
}
44
44
45
+ /*
45
46
var apiId = crypto.randomBytes(7).toString('hex');
46
47
47
48
if(!swagger['x-api-id']) {
@@ -74,6 +75,7 @@ exports.api = function(args, opts) {
74
75
75
76
}
76
77
}
78
+ */
77
79
78
80
utils . removeMetadata ( swagger ) ;
79
81
Original file line number Diff line number Diff line change @@ -103,7 +103,7 @@ exports.run = function(config, info) {
103
103
inquirer . prompt ( questions ) . then ( function ( answers ) {
104
104
var swagger = {
105
105
'swagger' : '2.0' ,
106
- 'x-api-id' : crypto . randomBytes ( 7 ) . toString ( 'hex' ) ,
106
+ // 'x-api-id': crypto.randomBytes(7).toString('hex'),
107
107
'info' : {
108
108
'version' : answers [ 'info.version' ] ,
109
109
'title' : answers [ 'info.title' ] ,
Original file line number Diff line number Diff line change @@ -78,6 +78,7 @@ exports.getAliasFile = function(unknownAction) {
78
78
} ;
79
79
80
80
exports . removeMetadata = function ( obj ) {
81
+ // x-si = swagger inline metadata
81
82
for ( prop in obj ) {
82
83
if ( prop . substr ( 0 , 5 ) === 'x-si-' )
83
84
delete obj [ prop ] ;
You can’t perform that action at this time.
0 commit comments