pg-mvc-service 2.0.122 → 2.0.124

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.
@@ -348,9 +348,10 @@ class ResponseType extends ReqResType_1.default {
348
348
  properties:`;
349
349
  if (Object.keys(this.properties).length === 0) {
350
350
  ymlString += ' {}\n';
351
- return ymlString;
352
351
  }
353
- ymlString += `\n`;
352
+ else {
353
+ ymlString += `\n`;
354
+ }
354
355
  let tabCount = 9;
355
356
  const space = ' '.repeat(tabCount);
356
357
  for (const [key, property] of Object.entries(this.properties)) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pg-mvc-service",
3
- "version": "2.0.122",
3
+ "version": "2.0.124",
4
4
  "description": "",
5
5
  "homepage": "https://github.com/n-daira/npm-pack_mvc-service#readme",
6
6
  "bugs": {
@@ -381,12 +381,11 @@ export class ResponseType extends ReqResType {
381
381
  properties:`;
382
382
 
383
383
  if (Object.keys(this.properties).length === 0) {
384
- ymlString += ' {}\n'
385
- return ymlString;
384
+ ymlString += ' {}\n';
385
+ } else {
386
+ ymlString += `\n`;
386
387
  }
387
388
 
388
- ymlString += `\n`;
389
-
390
389
  let tabCount = 9;
391
390
  const space = ' '.repeat(tabCount);
392
391
  for (const [key, property] of Object.entries(this.properties)) {
@@ -413,7 +412,6 @@ export class ResponseType extends ReqResType {
413
412
  }
414
413
  }
415
414
 
416
-
417
415
  // statusごとにグルーピング
418
416
  const grouped: { [status: number]: IError[] } = {};
419
417
  for (const error of errorList) {