File tree Expand file tree Collapse file tree 3 files changed +4
-7
lines changed Expand file tree Collapse file tree 3 files changed +4
-7
lines changed Original file line number Diff line number Diff line change @@ -452,8 +452,8 @@ If you want to generate the Axios based client then you can specify `--client ax
452
452
453
453
` openapi --input ./spec.json --output ./dist --client axios `
454
454
455
- The only downside is that this client needs some additional dependencies to work, due to the missing Blob and FormData
456
- classes in NodeJS.
455
+ The only downside is that this client needs some additional dependencies to work ( due to the missing Blob and FormData
456
+ classes in NodeJS) .
457
457
458
458
```
459
459
npm install axios --save-dev
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " openapi-typescript-codegen" ,
3
- "version" : " 0.12.0-beta " ,
3
+ "version" : " 0.12.0" ,
4
4
"description" : " Library that generates Typescript clients based on the OpenAPI specification." ,
5
5
"author" : " Ferdi Koomen" ,
6
6
"homepage" : " https://github.com/ferdikoomen/openapi-typescript-codegen" ,
Original file line number Diff line number Diff line change @@ -7,8 +7,5 @@ import { unique } from './unique';
7
7
* @param service
8
8
*/
9
9
export function postProcessServiceImports ( service : Service ) : string [ ] {
10
- return service . imports
11
- . filter ( unique )
12
- . sort ( sort )
13
- . filter ( name => service . name !== name ) ;
10
+ return service . imports . filter ( unique ) . sort ( sort ) ;
14
11
}
You can’t perform that action at this time.
0 commit comments