pg-mvc-service 2.0.78 → 2.0.79

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.
@@ -66,13 +66,6 @@ class ReqResType {
66
66
  }
67
67
  property = property.properties[key];
68
68
  continue;
69
- // case 'dictionary':
70
- // case 'dictionary?':
71
- // if (typeof key !== 'string') {
72
- // throw new Error(`getPropertyでnumber型のINPUTで、arrayの場合はエラー\nキー一覧:${keys.join(',')} エラーキー:${key}`);
73
- // }
74
- // property = property.properties[key];
75
- // continue;
76
69
  default:
77
70
  throw new Error(`getPropertyでarray,object以外のtypeを読み込もうとしている。\nキー一覧:${keys.join(',')} エラーキー:${key}`);
78
71
  // property = property[key];
@@ -481,7 +481,7 @@ 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, value);
483
483
  }
484
- this.setEnum([...keys, i], value);
484
+ this.setEnum([...keys, i], toEnumValue);
485
485
  }
486
486
  break;
487
487
  case 'map':
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pg-mvc-service",
3
- "version": "2.0.78",
3
+ "version": "2.0.79",
4
4
  "description": "",
5
5
  "homepage": "https://github.com/n-daira/npm-pack_mvc-service#readme",
6
6
  "bugs": {
@@ -103,13 +103,6 @@ export default class ReqResType {
103
103
  }
104
104
  property = property.properties[key];
105
105
  continue;
106
- // case 'dictionary':
107
- // case 'dictionary?':
108
- // if (typeof key !== 'string') {
109
- // throw new Error(`getPropertyでnumber型のINPUTで、arrayの場合はエラー\nキー一覧:${keys.join(',')} エラーキー:${key}`);
110
- // }
111
- // property = property.properties[key];
112
- // continue;
113
106
  default:
114
107
  throw new Error(`getPropertyでarray,object以外のtypeを読み込もうとしている。\nキー一覧:${keys.join(',')} エラーキー:${key}`);
115
108
  // property = property[key];
@@ -502,7 +502,7 @@ export class RequestType extends ReqResType {
502
502
  if (Object.keys(property.item.enums).includes(value.toString()) === false) {
503
503
  this.throwInputError("ENUM_32", keys, value);
504
504
  }
505
- this.setEnum([...keys, i], value);
505
+ this.setEnum([...keys, i], toEnumValue);
506
506
  }
507
507
  break;
508
508
  case 'map':