forked from loafle/openapi-generator-original
[TypeScript] fix class filename in TS Angular2 template (#5131)
* fix class filename in ts angular2 template * remove trailing comma in ts angular2 template
This commit is contained in:
parent
0afa084158
commit
1c329483e4
@ -1,9 +1,9 @@
|
|||||||
{{#apiInfo}}
|
{{#apiInfo}}
|
||||||
{{#apis}}
|
{{#apis}}
|
||||||
{{#operations}}
|
{{#operations}}
|
||||||
export * from './{{ classname }}';
|
export * from './{{ classFilename }}';
|
||||||
import { {{ classname }} } from './{{ classname }}';
|
import { {{ classname }} } from './{{ classFilename }}';
|
||||||
{{/operations}}
|
{{/operations}}
|
||||||
{{/apis}}
|
{{/apis}}
|
||||||
export const APIS = [ {{#apis}}{{#operations}}{{ classname }}, {{/operations}}{{/apis}}];
|
export const APIS = [{{#apis}}{{#operations}}{{ classname }}{{/operations}}{{^-last}}, {{/-last}}{{/apis}}];
|
||||||
{{/apiInfo}}
|
{{/apiInfo}}
|
@ -1,7 +1,7 @@
|
|||||||
export * from './PetApi';
|
export * from './PetApi';
|
||||||
import { PetApi } from './PetApi';
|
import { PetApi } from './PetApi';
|
||||||
export * from './StoreApi';
|
export * from './StoreApi';
|
||||||
import { StoreApi } from './StoreApi';
|
import { StoreApi } from './StoreApi';
|
||||||
export * from './UserApi';
|
export * from './UserApi';
|
||||||
import { UserApi } from './UserApi';
|
import { UserApi } from './UserApi';
|
||||||
export const APIS = [ PetApi, StoreApi, UserApi, ];
|
export const APIS = [PetApi, StoreApi, UserApi];
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
## @swagger/angular2-typescript-petstore@0.0.1-SNAPSHOT.201703092202
|
## @swagger/angular2-typescript-petstore@0.0.1-SNAPSHOT.201703211709
|
||||||
|
|
||||||
### Building
|
### Building
|
||||||
|
|
||||||
@ -19,7 +19,7 @@ navigate to the folder of your consuming project and run one of next commando's.
|
|||||||
_published:_
|
_published:_
|
||||||
|
|
||||||
```
|
```
|
||||||
npm install @swagger/angular2-typescript-petstore@0.0.1-SNAPSHOT.201703092202 --save
|
npm install @swagger/angular2-typescript-petstore@0.0.1-SNAPSHOT.201703211709 --save
|
||||||
```
|
```
|
||||||
|
|
||||||
_unPublished (not recommended):_
|
_unPublished (not recommended):_
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
export * from './PetApi';
|
export * from './PetApi';
|
||||||
import { PetApi } from './PetApi';
|
import { PetApi } from './PetApi';
|
||||||
export * from './StoreApi';
|
export * from './StoreApi';
|
||||||
import { StoreApi } from './StoreApi';
|
import { StoreApi } from './StoreApi';
|
||||||
export * from './UserApi';
|
export * from './UserApi';
|
||||||
import { UserApi } from './UserApi';
|
import { UserApi } from './UserApi';
|
||||||
export const APIS = [ PetApi, StoreApi, UserApi, ];
|
export const APIS = [PetApi, StoreApi, UserApi];
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@swagger/angular2-typescript-petstore",
|
"name": "@swagger/angular2-typescript-petstore",
|
||||||
"version": "0.0.1-SNAPSHOT.201703092202",
|
"version": "0.0.1-SNAPSHOT.201703211709",
|
||||||
"description": "swagger client for @swagger/angular2-typescript-petstore",
|
"description": "swagger client for @swagger/angular2-typescript-petstore",
|
||||||
"author": "Swagger Codegen Contributors",
|
"author": "Swagger Codegen Contributors",
|
||||||
"keywords": [
|
"keywords": [
|
||||||
|
Loading…
x
Reference in New Issue
Block a user