nestia 2.1.7 → 2.1.8
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.
|
@@ -212,7 +212,7 @@ var SwaggerGenerator;
|
|
|
212
212
|
|| !!route.parameters.find(function (param) { return param.encrypted === true; });
|
|
213
213
|
return {
|
|
214
214
|
tags: tags,
|
|
215
|
-
summary: encrypted ? "encrypted" : undefined,
|
|
215
|
+
summary: encrypted ? "encrypted</font>" : undefined,
|
|
216
216
|
parameters: route.parameters
|
|
217
217
|
.filter(function (param) { return param.category !== "body"; })
|
|
218
218
|
.map(function (param) { return generate_parameter(checker, collection, route, param); }),
|
|
@@ -240,7 +240,7 @@ var SwaggerGenerator;
|
|
|
240
240
|
function generate_request_body(checker, collection, route, parameter) {
|
|
241
241
|
return {
|
|
242
242
|
description: warning.get(parameter.encrypted).get("request")
|
|
243
|
-
+ get_parametric_description(route, "param", parameter.name) || "",
|
|
243
|
+
+ (get_parametric_description(route, "param", parameter.name) || ""),
|
|
244
244
|
content: {
|
|
245
245
|
"application/json": {
|
|
246
246
|
schema: generate_schema(checker, collection, parameter.type.metadata)
|
|
@@ -259,9 +259,9 @@ var SwaggerGenerator;
|
|
|
259
259
|
var success = (_a = {},
|
|
260
260
|
_a[status] = {
|
|
261
261
|
description: warning.get(route.encrypted).get("response", route.method)
|
|
262
|
-
+ get_parametric_description(route, "return")
|
|
263
|
-
|
|
264
|
-
|
|
262
|
+
+ (get_parametric_description(route, "return")
|
|
263
|
+
|| get_parametric_description(route, "returns")
|
|
264
|
+
|| ""),
|
|
265
265
|
content: route.output.escapedText === "void" ? undefined :
|
|
266
266
|
{
|
|
267
267
|
"application/json": {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "nestia",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.8",
|
|
4
4
|
"description": "Automatic SDK and Document generator for the NestJS",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"typings": "lib/index.d.ts",
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
"tsconfig-paths": "^3.14.1",
|
|
42
42
|
"tstl": "^2.5.6",
|
|
43
43
|
"ttypescript": "^1.5.13",
|
|
44
|
-
"typescript": "^4.
|
|
44
|
+
"typescript": "^4.7.2",
|
|
45
45
|
"typescript-is": "^0.19.0",
|
|
46
46
|
"typescript-json": "^2.1.3",
|
|
47
47
|
"typescript-transform-paths": "^3.3.1"
|