pg-mvc-service 2.0.116 → 2.0.118
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.
|
@@ -1102,7 +1102,11 @@ class RequestType extends ReqResType_1.default {
|
|
|
1102
1102
|
}
|
|
1103
1103
|
for (const key of Object.keys(property.properties)) {
|
|
1104
1104
|
if (property.properties[key].type.endsWith('?') === false) {
|
|
1105
|
-
|
|
1105
|
+
errorList.push({
|
|
1106
|
+
status: 400,
|
|
1107
|
+
code: code + '-REQUIRE_11',
|
|
1108
|
+
description: this.createErrorMessage('REQUIRE_11', [...keys, key]),
|
|
1109
|
+
});
|
|
1106
1110
|
}
|
|
1107
1111
|
switch (property.properties[key].type) {
|
|
1108
1112
|
case 'object':
|
|
@@ -1121,7 +1125,7 @@ class RequestType extends ReqResType_1.default {
|
|
|
1121
1125
|
code: code + '-ARRAY_11',
|
|
1122
1126
|
description: this.createErrorMessage('ARRAY_11', [...keys, key]),
|
|
1123
1127
|
});
|
|
1124
|
-
errorList = [...errorList, ...this.getErrorArray([key], code)];
|
|
1128
|
+
errorList = [...errorList, ...this.getErrorArray([...keys, key, 0], code)];
|
|
1125
1129
|
break;
|
|
1126
1130
|
case 'map':
|
|
1127
1131
|
case 'map?':
|
|
@@ -1303,20 +1307,20 @@ class RequestType extends ReqResType_1.default {
|
|
|
1303
1307
|
errorList.push({
|
|
1304
1308
|
status: 400,
|
|
1305
1309
|
code: isRequestBody ? code + "-STRING_21" : code + "-STRING_91",
|
|
1306
|
-
description: this.createErrorMessage(isRequestBody ? "
|
|
1310
|
+
description: this.createErrorMessage(isRequestBody ? "STRING_21" : "STRING_91", keys)
|
|
1307
1311
|
});
|
|
1308
1312
|
if (property.maxLength !== undefined) {
|
|
1309
1313
|
errorList.push({
|
|
1310
1314
|
status: 400,
|
|
1311
1315
|
code: isRequestBody ? code + "-STRING_22" : code + "-STRING_92",
|
|
1312
|
-
description: this.createErrorMessage(isRequestBody ? "
|
|
1316
|
+
description: this.createErrorMessage(isRequestBody ? "STRING_22" : "STRING_92", keys)
|
|
1313
1317
|
});
|
|
1314
1318
|
}
|
|
1315
1319
|
if (property.regExp !== undefined) {
|
|
1316
1320
|
errorList.push({
|
|
1317
1321
|
status: 400,
|
|
1318
1322
|
code: isRequestBody ? code + "-STRING_23" : code + "-STRING_93",
|
|
1319
|
-
description: this.createErrorMessage(isRequestBody ? "
|
|
1323
|
+
description: this.createErrorMessage(isRequestBody ? "STRING_23" : "STRING_93", keys)
|
|
1320
1324
|
});
|
|
1321
1325
|
}
|
|
1322
1326
|
break;
|
package/package.json
CHANGED
|
@@ -1210,7 +1210,11 @@ export class RequestType extends ReqResType {
|
|
|
1210
1210
|
|
|
1211
1211
|
for (const key of Object.keys(property.properties)) {
|
|
1212
1212
|
if (property.properties[key].type.endsWith('?') === false) {
|
|
1213
|
-
|
|
1213
|
+
errorList.push({
|
|
1214
|
+
status: 400,
|
|
1215
|
+
code: code + '-REQUIRE_11',
|
|
1216
|
+
description: this.createErrorMessage('REQUIRE_11', [...keys, key]),
|
|
1217
|
+
});
|
|
1214
1218
|
}
|
|
1215
1219
|
|
|
1216
1220
|
switch (property.properties[key].type) {
|
|
@@ -1232,7 +1236,7 @@ export class RequestType extends ReqResType {
|
|
|
1232
1236
|
description: this.createErrorMessage('ARRAY_11', [...keys, key]),
|
|
1233
1237
|
});
|
|
1234
1238
|
|
|
1235
|
-
errorList = [...errorList, ...this.getErrorArray([key], code)];
|
|
1239
|
+
errorList = [...errorList, ...this.getErrorArray([...keys, key, 0], code)];
|
|
1236
1240
|
break;
|
|
1237
1241
|
case 'map':
|
|
1238
1242
|
case 'map?':
|
|
@@ -1423,14 +1427,14 @@ export class RequestType extends ReqResType {
|
|
|
1423
1427
|
errorList.push({
|
|
1424
1428
|
status: 400,
|
|
1425
1429
|
code: isRequestBody ? code + "-STRING_21" : code + "-STRING_91",
|
|
1426
|
-
description: this.createErrorMessage(isRequestBody ? "
|
|
1430
|
+
description: this.createErrorMessage(isRequestBody ? "STRING_21" : "STRING_91", keys)
|
|
1427
1431
|
});
|
|
1428
1432
|
|
|
1429
1433
|
if (property.maxLength !== undefined) {
|
|
1430
1434
|
errorList.push({
|
|
1431
1435
|
status: 400,
|
|
1432
1436
|
code: isRequestBody ? code + "-STRING_22" : code + "-STRING_92",
|
|
1433
|
-
description: this.createErrorMessage(isRequestBody ? "
|
|
1437
|
+
description: this.createErrorMessage(isRequestBody ? "STRING_22" : "STRING_92", keys)
|
|
1434
1438
|
});
|
|
1435
1439
|
}
|
|
1436
1440
|
|
|
@@ -1438,7 +1442,7 @@ export class RequestType extends ReqResType {
|
|
|
1438
1442
|
errorList.push({
|
|
1439
1443
|
status: 400,
|
|
1440
1444
|
code: isRequestBody ? code + "-STRING_23" : code + "-STRING_93",
|
|
1441
|
-
description: this.createErrorMessage(isRequestBody ? "
|
|
1445
|
+
description: this.createErrorMessage(isRequestBody ? "STRING_23" : "STRING_93", keys)
|
|
1442
1446
|
});
|
|
1443
1447
|
}
|
|
1444
1448
|
break;
|