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