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