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.
@@ -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 summary = action.description || action.name;
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,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "keryx",
3
- "version": "0.11.4",
3
+ "version": "0.11.6",
4
4
  "module": "index.ts",
5
5
  "type": "module",
6
6
  "license": "MIT",