swagger-axios-codegen
Advanced tools
Comparing version 0.9.6 to 0.9.7
@@ -43,3 +43,8 @@ "use strict"; | ||
result.isEnum = true; | ||
result.propType = getEnums(v.enum).map(item => `'${item}'='${item}'`).join(','); | ||
result.propType = getEnums(v.enum).map(item => { | ||
if (isNaN(item)) { | ||
return `'${item}'='${item}'`; | ||
} | ||
return `'KEY_${item}'='${item}'`; | ||
}).join(','); | ||
} | ||
@@ -46,0 +51,0 @@ else if (v.enum) { |
{ | ||
"name": "swagger-axios-codegen", | ||
"version": "0.9.6", | ||
"version": "0.9.7", | ||
"main": "./dist/index", | ||
@@ -5,0 +5,0 @@ "typings": "./dist/", |
Sorry, the diff of this file is not supported yet
114941
1698