pg-mvc-service 2.0.126 → 2.0.127
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.
|
@@ -395,12 +395,12 @@ class ResponseType extends ReqResType_1.default {
|
|
|
395
395
|
if (list.length === 1) {
|
|
396
396
|
// 単一エラーは1行説明
|
|
397
397
|
ymlString += ` '${status}':
|
|
398
|
-
description: ${list[0].description}${list[0].code !== '' ? `
|
|
398
|
+
description: ${list[0].description}${list[0].code !== '' ? ` > ${list[0].code}` : ''}
|
|
399
399
|
`;
|
|
400
400
|
}
|
|
401
401
|
else {
|
|
402
402
|
// 複数エラーは箇条書き
|
|
403
|
-
const bullets = list.map(e => `- ${e.description}${e.code !== '' ? `
|
|
403
|
+
const bullets = list.map(e => `- ${e.description}${e.code !== '' ? ` > ${e.code}]` : ''}`).join(descIndentJoin);
|
|
404
404
|
ymlString += ` '${status}':
|
|
405
405
|
description: |${descIndentJoin}${bullets}
|
|
406
406
|
`;
|
package/package.json
CHANGED
|
@@ -433,11 +433,11 @@ export class ResponseType extends ReqResType {
|
|
|
433
433
|
if (list.length === 1) {
|
|
434
434
|
// 単一エラーは1行説明
|
|
435
435
|
ymlString += ` '${status}':
|
|
436
|
-
description: ${list[0].description}${list[0].code !== '' ? `
|
|
436
|
+
description: ${list[0].description}${list[0].code !== '' ? ` > ${list[0].code}` : ''}
|
|
437
437
|
`;
|
|
438
438
|
} else {
|
|
439
439
|
// 複数エラーは箇条書き
|
|
440
|
-
const bullets = list.map(e => `- ${e.description}${e.code !== '' ? `
|
|
440
|
+
const bullets = list.map(e => `- ${e.description}${e.code !== '' ? ` > ${e.code}]` : ''}`).join(descIndentJoin);
|
|
441
441
|
ymlString += ` '${status}':
|
|
442
442
|
description: |${descIndentJoin}${bullets}
|
|
443
443
|
`;
|