pg-mvc-service 2.0.111 → 2.0.112

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.
@@ -400,16 +400,14 @@ class ResponseType extends ReqResType_1.default {
400
400
  const descIndentJoin = '\n ';
401
401
  if (list.length === 1) {
402
402
  // 単一エラーは1行説明
403
- ymlString += `
404
- '${status}':
403
+ ymlString += ` '${status}':
405
404
  description: ${list[0].code}: ${list[0].description}
406
405
  `;
407
406
  }
408
407
  else {
409
408
  // 複数エラーは箇条書き
410
409
  const bullets = list.map(e => `- ${e.code !== '' ? `${e.code}: ` : ''}${e.description}`).join(descIndentJoin);
411
- ymlString += `
412
- '${status}':
410
+ ymlString += ` '${status}':
413
411
  description: |${descIndentJoin}${bullets}
414
412
  `;
415
413
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pg-mvc-service",
3
- "version": "2.0.111",
3
+ "version": "2.0.112",
4
4
  "description": "",
5
5
  "homepage": "https://github.com/n-daira/npm-pack_mvc-service#readme",
6
6
  "bugs": {
@@ -445,15 +445,13 @@ export class ResponseType extends ReqResType {
445
445
 
446
446
  if (list.length === 1) {
447
447
  // 単一エラーは1行説明
448
- ymlString += `
449
- '${status}':
448
+ ymlString += ` '${status}':
450
449
  description: ${list[0].code}: ${list[0].description}
451
450
  `;
452
451
  } else {
453
452
  // 複数エラーは箇条書き
454
453
  const bullets = list.map(e => `- ${e.code !== '' ? `${e.code}: ` : ''}${e.description}`).join(descIndentJoin);
455
- ymlString += `
456
- '${status}':
454
+ ymlString += ` '${status}':
457
455
  description: |${descIndentJoin}${bullets}
458
456
  `;
459
457
  }