Skip to content

Commit 34bcfa9

Browse files
committed
fix: remove all lodash symbols
1 parent 319f8f1 commit 34bcfa9

File tree

3 files changed

+10
-4
lines changed

3 files changed

+10
-4
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "saddleback-openapi-typescript-codegen",
3-
"version": "0.29.0",
3+
"version": "0.30.0",
44
"description": "Library that generates Typescript clients based on the OpenAPI specification.",
55
"author": "Ferdi Koomen",
66
"homepage": "https://github.com/ferdikoomen/openapi-typescript-codegen",

src/utils/removeLodashPrefix.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
export const removeLodashPrefix = (s: string): string => {
2-
return s.split('_').slice(1).join('_');
2+
return s.split('_').slice(1).join('');
33
};

test/index.js

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,9 +86,15 @@ const main = async () => {
8686
// ...config,
8787
// });
8888
await OpenAPI.generateSaddlebackSpec({
89-
useService: 'event',
89+
useService: 'Events',
9090
output: './auto2/event',
91-
filterArray: ['/api/event/{id}'],
91+
filterMethod: "include",
92+
filterArray: [
93+
"/api/v2/event-public",
94+
"/api/v2/event-public/cancel-reservation",
95+
"/api/v2/event-public/signup",
96+
"/api/v2/event-public/reserve-tickets"
97+
],
9298
...config,
9399
});
94100
// await OpenAPI.generateSaddlebackSpec({

0 commit comments

Comments
 (0)