@necessarylion/adonis-autoswagger 0.0.20 → 0.0.21
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.
- package/dist/auto_swagger.js +3 -1
- package/package.json +1 -1
package/dist/auto_swagger.js
CHANGED
|
@@ -290,7 +290,9 @@ class AutoSwagger {
|
|
|
290
290
|
}
|
|
291
291
|
delete responses[responseCodes[method]]["summary"];
|
|
292
292
|
}
|
|
293
|
-
|
|
293
|
+
// An own @description wins. The response text is only the fallback.
|
|
294
|
+
if (description === "" &&
|
|
295
|
+
typeof responses[responseCodes[method]] !== "undefined" &&
|
|
294
296
|
typeof responses[responseCodes[method]]["description"] !==
|
|
295
297
|
"undefined") {
|
|
296
298
|
description = responses[responseCodes[method]]["description"];
|