pg-mvc-service 2.0.56 → 2.0.57
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.
|
@@ -59,13 +59,14 @@ class ResponseType extends ReqResType_1.default {
|
|
|
59
59
|
getObject(keys) {
|
|
60
60
|
let resData = {};
|
|
61
61
|
const data = this.getData(keys);
|
|
62
|
+
console.log("getObject", keys.join(','));
|
|
62
63
|
const objectProperty = this.getProperty(keys);
|
|
63
64
|
if (objectProperty.type !== 'object' && objectProperty.type !== 'object?') {
|
|
64
65
|
throw new Error(`getObjectメソッドでObject型以外が入力された場合はエラー\n keys: ${keys.join(',')}`);
|
|
65
66
|
}
|
|
66
|
-
console.log(objectProperty);
|
|
67
|
+
console.log("getObject", objectProperty);
|
|
67
68
|
for (const key of Object.keys(objectProperty.properties)) {
|
|
68
|
-
console.log(key);
|
|
69
|
+
console.log("getObject : ", key);
|
|
69
70
|
if (key in data === false || data[key] === undefined) {
|
|
70
71
|
continue;
|
|
71
72
|
}
|
|
@@ -324,7 +325,7 @@ class ResponseType extends ReqResType_1.default {
|
|
|
324
325
|
makeSwaggerProperyFromObject(keys, tabCount) {
|
|
325
326
|
const objectProperty = this.getProperty(keys);
|
|
326
327
|
if (objectProperty.type !== 'object' && objectProperty.type !== 'object?') {
|
|
327
|
-
throw new Error(`
|
|
328
|
+
throw new Error(`makeSwaggerProperyFromObjectメソッドでObject型以外が入力された場合はエラー\n keys: ${keys.join(',')}`);
|
|
328
329
|
}
|
|
329
330
|
const space = ' '.repeat(tabCount);
|
|
330
331
|
let ymlString = `${space}properties:\n`;
|
package/package.json
CHANGED
|
@@ -60,14 +60,15 @@ export class ResponseType extends ReqResType {
|
|
|
60
60
|
let resData: {[key: string]: any} = {};
|
|
61
61
|
const data = this.getData(keys);
|
|
62
62
|
|
|
63
|
+
console.log("getObject", keys.join(','))
|
|
63
64
|
const objectProperty = this.getProperty(keys);
|
|
64
65
|
if (objectProperty.type !== 'object' && objectProperty.type !== 'object?') {
|
|
65
66
|
throw new Error(`getObjectメソッドでObject型以外が入力された場合はエラー\n keys: ${keys.join(',')}`);
|
|
66
67
|
}
|
|
67
68
|
|
|
68
|
-
console.log(objectProperty);
|
|
69
|
+
console.log("getObject", objectProperty);
|
|
69
70
|
for (const key of Object.keys(objectProperty.properties)) {
|
|
70
|
-
console.log(key);
|
|
71
|
+
console.log("getObject : ", key);
|
|
71
72
|
if (key in data === false || data[key] === undefined) {
|
|
72
73
|
continue;
|
|
73
74
|
}
|
|
@@ -356,7 +357,7 @@ export class ResponseType extends ReqResType {
|
|
|
356
357
|
|
|
357
358
|
const objectProperty = this.getProperty(keys);
|
|
358
359
|
if (objectProperty.type !== 'object' && objectProperty.type !== 'object?') {
|
|
359
|
-
throw new Error(`
|
|
360
|
+
throw new Error(`makeSwaggerProperyFromObjectメソッドでObject型以外が入力された場合はエラー\n keys: ${keys.join(',')}`);
|
|
360
361
|
}
|
|
361
362
|
|
|
362
363
|
const space = ' '.repeat(tabCount);
|