pg-mvc-service 2.0.81 → 2.0.82
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.
|
@@ -455,9 +455,7 @@ class RequestType extends ReqResType_1.default {
|
|
|
455
455
|
case 'enum':
|
|
456
456
|
case 'enum?':
|
|
457
457
|
const toEnumValue = [];
|
|
458
|
-
console.log(values);
|
|
459
458
|
for (const value of values) {
|
|
460
|
-
console.log(value);
|
|
461
459
|
switch (property.item.enumType) {
|
|
462
460
|
case 'number':
|
|
463
461
|
case 'number?':
|
|
@@ -483,8 +481,7 @@ class RequestType extends ReqResType_1.default {
|
|
|
483
481
|
if (Object.keys(property.item.enums).includes(value.toString()) === false) {
|
|
484
482
|
this.throwInputError("ENUM_32", keys, value);
|
|
485
483
|
}
|
|
486
|
-
|
|
487
|
-
this.setEnum([...keys, i], toEnumValue);
|
|
484
|
+
this.changeBody([...keys, i], toEnumValue);
|
|
488
485
|
}
|
|
489
486
|
break;
|
|
490
487
|
case 'map':
|
package/package.json
CHANGED
|
@@ -475,9 +475,7 @@ export class RequestType extends ReqResType {
|
|
|
475
475
|
case 'enum':
|
|
476
476
|
case 'enum?':
|
|
477
477
|
const toEnumValue = [];
|
|
478
|
-
|
|
479
|
-
for (const value of values) {
|
|
480
|
-
console.log(value);
|
|
478
|
+
for (const value of values) {
|
|
481
479
|
switch (property.item.enumType) {
|
|
482
480
|
case 'number':
|
|
483
481
|
case 'number?':
|
|
@@ -504,8 +502,7 @@ export class RequestType extends ReqResType {
|
|
|
504
502
|
if (Object.keys(property.item.enums).includes(value.toString()) === false) {
|
|
505
503
|
this.throwInputError("ENUM_32", keys, value);
|
|
506
504
|
}
|
|
507
|
-
|
|
508
|
-
this.setEnum([...keys, i], toEnumValue);
|
|
505
|
+
this.changeBody([...keys, i], toEnumValue);
|
|
509
506
|
}
|
|
510
507
|
break;
|
|
511
508
|
case 'map':
|