@penkov/swagger-code-gen 1.9.3 → 1.9.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/name.utils.js +5 -5
- package/dist/property.js +2 -1
- package/package.json +1 -1
package/dist/name.utils.js
CHANGED
|
@@ -6,16 +6,16 @@ export class NameUtils {
|
|
|
6
6
|
let needUpperCase = true;
|
|
7
7
|
for (let i = 0; i < n.length; i++) {
|
|
8
8
|
const c = n[i];
|
|
9
|
-
|
|
9
|
+
let toAppend = c;
|
|
10
|
+
if (c === '.' || c === '-' || c === '/') {
|
|
10
11
|
needUpperCase = true;
|
|
12
|
+
toAppend = '';
|
|
11
13
|
}
|
|
12
14
|
else if (needUpperCase) {
|
|
13
|
-
|
|
15
|
+
toAppend = c.toUpperCase();
|
|
14
16
|
needUpperCase = false;
|
|
15
17
|
}
|
|
16
|
-
|
|
17
|
-
res += c;
|
|
18
|
-
}
|
|
18
|
+
res += toAppend;
|
|
19
19
|
}
|
|
20
20
|
return res;
|
|
21
21
|
}
|
package/dist/property.js
CHANGED
|
@@ -127,10 +127,11 @@ export class Property {
|
|
|
127
127
|
.map(x => x.trim())
|
|
128
128
|
.map(t => {
|
|
129
129
|
switch (t) {
|
|
130
|
+
case 'Boolean':
|
|
130
131
|
case 'boolean':
|
|
131
132
|
return 'boolean';
|
|
133
|
+
case 'Number':
|
|
132
134
|
case 'number':
|
|
133
|
-
return 'number';
|
|
134
135
|
case 'integer':
|
|
135
136
|
return 'number';
|
|
136
137
|
case 'Object':
|