epip-generate
Advanced tools
Comparing version 1.2.44 to 1.2.45
{ | ||
"name": "epip-generate", | ||
"version": "1.2.44", | ||
"version": "1.2.45", | ||
"description": "", | ||
@@ -19,3 +19,3 @@ "author": "", | ||
"format": "prettier --write \"src/**/*.ts\" \"test/**/*.ts\"", | ||
"gen:help": "nest build & node dist\\main.js gen --help", | ||
"gen:help": "nest build && node dist\\main.js gen --help", | ||
"start": "rimraf dist & npm run build & node dist\\main.js gen -t vue -o ./ -h http://localhost:8585/api/v1/swagger.json", | ||
@@ -22,0 +22,0 @@ "start:dev": "ts-node src/main.ts vue -o ./dist -h http://5.161.193.73:9595/v1/api/swagger.json -in jooooon ", |
@@ -90,7 +90,15 @@ "use strict"; | ||
function getType(f) { | ||
const _getType = (item) => { | ||
if (item.type == "string" && item.format == "binary") { | ||
return 'File'; | ||
} | ||
else { | ||
return item.type; | ||
} | ||
}; | ||
if (f.type == 'array') { | ||
return 'Array<File>'; | ||
return `Array<${_getType(f.items)}>`; | ||
} | ||
else { | ||
return f.type; | ||
return _getType(f); | ||
} | ||
@@ -97,0 +105,0 @@ } |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
205289
1364