keryx 0.11.4 → 0.11.6
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/actions/swagger.ts +5 -1
- package/package.json +1 -1
package/actions/swagger.ts
CHANGED
|
@@ -76,7 +76,9 @@ export class Swagger implements Action {
|
|
|
76
76
|
);
|
|
77
77
|
const method = action.web.method.toLowerCase();
|
|
78
78
|
const tag = action.name.split(":")[0];
|
|
79
|
-
const
|
|
79
|
+
const operationId = action.name;
|
|
80
|
+
const summary = action.name;
|
|
81
|
+
const description = action.description;
|
|
80
82
|
|
|
81
83
|
// Extract path parameters from the original route
|
|
82
84
|
const pathParams: any[] = [];
|
|
@@ -140,7 +142,9 @@ export class Swagger implements Action {
|
|
|
140
142
|
// Add path/method
|
|
141
143
|
if (!paths[path]) paths[path] = {};
|
|
142
144
|
paths[path][method] = {
|
|
145
|
+
operationId,
|
|
143
146
|
summary,
|
|
147
|
+
...(description ? { description } : {}),
|
|
144
148
|
...(pathParams.length > 0 ? { parameters: pathParams } : {}),
|
|
145
149
|
...(requestBody ? { requestBody } : {}),
|
|
146
150
|
responses,
|