swaggerjsontoapidocs 1.10.0 → 1.10.1

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.
@@ -106,7 +106,8 @@ const getFilePath = (folder) => {
106
106
  : `${mainFolderOutPut}/${folder}/${folder}${ext}`;
107
107
  };
108
108
  function normalizeEndpoint(endpoint, toLowercase) {
109
- const name = endpoint
109
+ const endpointCleaned = endpoint.replace(/[^a-zA-Z0-9_$/]/g, '');
110
+ const name = endpointCleaned
110
111
  .split('/')
111
112
  .map((value) => {
112
113
  if (value.startsWith('{')) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "swaggerjsontoapidocs",
3
- "version": "1.10.0",
3
+ "version": "1.10.1",
4
4
  "description": "script to convert swagger json to api docs, this help us to consume functions and center all endpoints in one place",
5
5
  "keywords": [
6
6
  "swagger",