pg-mvc-service 2.0.120 → 2.0.122

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.
@@ -1022,11 +1022,8 @@ class RequestType extends ReqResType_1.default {
1022
1022
  return ymlString;
1023
1023
  }
1024
1024
  getInputErrorList(method, code) {
1025
- let isA = false;
1026
1025
  let errorList = [];
1027
1026
  for (const [key, property] of Object.entries(this.properties)) {
1028
- if (key === 'attendeeList')
1029
- isA = true;
1030
1027
  if (property.type.endsWith('?') === false) {
1031
1028
  const errorCode = property.type === 'array' && ['GET', 'DELETE'].includes(method) ? 'REQUIRE_00' : 'REQUIRE_01';
1032
1029
  errorList.push({
@@ -1053,9 +1050,6 @@ class RequestType extends ReqResType_1.default {
1053
1050
  description: this.createErrorMessage('ARRAY_01', [key])
1054
1051
  });
1055
1052
  errorList = [...errorList, ...this.getErrorArray([key], code)];
1056
- if (isA) {
1057
- console.log(errorList);
1058
- }
1059
1053
  break;
1060
1054
  case 'map':
1061
1055
  case 'map?':
@@ -1098,7 +1092,6 @@ class RequestType extends ReqResType_1.default {
1098
1092
  break;
1099
1093
  }
1100
1094
  }
1101
- console.log("last", errorList);
1102
1095
  return errorList;
1103
1096
  }
1104
1097
  getErrorObject(keys, code) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pg-mvc-service",
3
- "version": "2.0.120",
3
+ "version": "2.0.122",
4
4
  "description": "",
5
5
  "homepage": "https://github.com/n-daira/npm-pack_mvc-service#readme",
6
6
  "bugs": {
@@ -1124,10 +1124,9 @@ export class RequestType extends ReqResType {
1124
1124
  }
1125
1125
 
1126
1126
  public getInputErrorList(method: string, code: string): Array<IError> {
1127
- let isA = false;
1128
1127
  let errorList: Array<IError> = [];
1128
+
1129
1129
  for (const [key, property] of Object.entries(this.properties)) {
1130
- if (key === 'attendeeList') isA = true;
1131
1130
  if (property.type.endsWith('?') === false) {
1132
1131
  const errorCode = property.type === 'array' && ['GET', 'DELETE'].includes(method) ? 'REQUIRE_00' : 'REQUIRE_01';
1133
1132
  errorList.push({
@@ -1157,9 +1156,6 @@ export class RequestType extends ReqResType {
1157
1156
  });
1158
1157
 
1159
1158
  errorList = [...errorList, ...this.getErrorArray([key], code)];
1160
- if (isA) {
1161
- console.log(errorList);
1162
- }
1163
1159
  break;
1164
1160
  case 'map':
1165
1161
  case 'map?':
@@ -1203,7 +1199,6 @@ export class RequestType extends ReqResType {
1203
1199
  }
1204
1200
  }
1205
1201
 
1206
- console.log("last", errorList);
1207
1202
  return errorList;
1208
1203
  }
1209
1204