Browse Source

v1.1.4: swagger requestBody description indent fix

CrazyDoctor 3 days ago
parent
commit
7b06fb1fb5

+ 1 - 1
dist/base/swagger/SwaggerDoc.js

@@ -62,7 +62,7 @@ class SwaggerDoc {
         }
         if (this.requestBody) {
             annotation += ' *\t\t\trequestBody:\n';
-            annotation += ` *\t\t\t\trequired: ${this.requestBody.required}`;
+            annotation += ` *\t\t\t\trequired: ${this.requestBody.required}\n`;
             annotation += ` *\t\t\t\tdescription: ${this.requestBody.description}\n`;
             annotation += ' *\t\t\t\tcontent:\n';
             annotation += ` *\t\t\t\t\t${this.requestBody.content.mediaType}:\n`;

File diff suppressed because it is too large
+ 0 - 0
dist/base/swagger/SwaggerDoc.js.map


+ 1 - 1
lib/base/swagger/SwaggerDoc.ts

@@ -83,7 +83,7 @@ class SwaggerDoc {
 
 		if(this.requestBody) {
 			annotation	+=	' *\t\t\trequestBody:\n';
-			annotation	+=	` *\t\t\t\trequired: ${this.requestBody.required}`;
+			annotation	+=	` *\t\t\t\trequired: ${this.requestBody.required}\n`;
 			annotation	+=	` *\t\t\t\tdescription: ${this.requestBody.description}\n`;
 			annotation	+=	' *\t\t\t\tcontent:\n';
 			annotation	+=	` *\t\t\t\t\t${this.requestBody.content.mediaType}:\n`;

+ 1 - 1
package.json

@@ -1,6 +1,6 @@
 {
   "name": "org.crazydoctor.expressts",
-  "version": "1.1.3",
+  "version": "1.1.4",
   "devDependencies": {
     "@types/express-session": "^1.17.7",
     "@types/node": "^20.4.9",

Some files were not shown because too many files changed in this diff