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