serverless-openapi-documenter 0.0.16 → 0.0.17

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "serverless-openapi-documenter",
3
- "version": "0.0.16",
3
+ "version": "0.0.17",
4
4
  "description": "Generate OpenAPI v3 documentation and Postman Collections from your Serverless Config",
5
5
  "main": "index.js",
6
6
  "keywords": [
@@ -109,7 +109,11 @@ class DefinitionGenerator {
109
109
  slashPath = `/${event?.http?.path||event.httpApi?.path}`
110
110
  }
111
111
 
112
- Object.assign(paths, {[slashPath]: path})
112
+ if (paths[slashPath]) {
113
+ Object.assign(paths[slashPath], path);
114
+ } else {
115
+ Object.assign(paths, {[slashPath]: path});
116
+ }
113
117
  }
114
118
  }
115
119
  }