-
-
Notifications
You must be signed in to change notification settings - Fork 6.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Ensure typescript samples are up to date (#444)
See #80
- Loading branch information
Showing
32 changed files
with
44 additions
and
59 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,10 @@ | ||
@ECHO OFF | ||
|
||
set executable=.\modules\openapi-generator-cli\target\openapi-generator-cli.jar | ||
|
||
If Not Exist %executable% ( | ||
mvn clean package | ||
) | ||
|
||
REM set JAVA_OPTS=%JAVA_OPTS% -Xmx1024M | ||
|
||
echo | ||
set ags=generate -i modules\openapi-generator\src\test\resources\2_0\petstore.yaml -g typescript-inversify -o samples\client\petstore\typescript-inversify\builds\default | ||
set ags=generate -i modules\openapi-generator\src\test\resources\2_0\petstore.yaml -g typescript-inversify -o samples\client\petstore\typescript-inversify | ||
|
||
java %JAVA_OPTS% -jar %executable% %ags% |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
call .\bin\windows\typescript-node-petstore.bat | ||
call .\bin\windows\typescript-node-petstore-with-npm.bat |
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
samples/client/petstore/typescript-angular-v2/default/.openapi-generator/VERSION
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
3.0.2-SNAPSHOT | ||
3.1.0-SNAPSHOT |
2 changes: 1 addition & 1 deletion
2
samples/client/petstore/typescript-angular-v2/npm/.openapi-generator/VERSION
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
3.0.2-SNAPSHOT | ||
3.1.0-SNAPSHOT |
2 changes: 1 addition & 1 deletion
2
samples/client/petstore/typescript-angular-v2/with-interfaces/.openapi-generator/VERSION
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
3.0.2-SNAPSHOT | ||
3.1.0-SNAPSHOT |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
## @swagger/angular2-typescript-petstore@0.0.1 | ||
## @ | ||
|
||
### Building | ||
|
||
|
@@ -19,7 +19,7 @@ Navigate to the folder of your consuming project and run one of next commands. | |
_published:_ | ||
|
||
``` | ||
npm install @swagger/[email protected] --save | ||
npm install @ --save | ||
``` | ||
|
||
_without publishing (not recommended):_ | ||
|
@@ -37,7 +37,7 @@ npm link | |
|
||
In your project: | ||
``` | ||
npm link @swagger/angular2-typescript-petstore | ||
npm link | ||
``` | ||
|
||
__Note for Windows users:__ The Angular CLI has troubles to use linked npm packages. | ||
|
@@ -52,7 +52,7 @@ In your Angular project: | |
|
||
``` | ||
// without configuring providers | ||
import { ApiModule } from '@swagger/angular2-typescript-petstore'; | ||
import { ApiModule } from ''; | ||
import { HttpModule } from '@angular/http'; | ||
|
@@ -70,7 +70,7 @@ export class AppModule {} | |
|
||
``` | ||
// configuring providers | ||
import { ApiModule, Configuration, ConfigurationParameters } from '@swagger/angular2-typescript-petstore'; | ||
import { ApiModule, Configuration, ConfigurationParameters } from ''; | ||
export function apiConfigFactory (): Configuration => { | ||
const params: ConfigurationParameters = { | ||
|
@@ -89,7 +89,7 @@ export class AppModule {} | |
``` | ||
|
||
``` | ||
import { DefaultApi } from '@swagger/angular2-typescript-petstore'; | ||
import { DefaultApi } from ''; | ||
export class AppComponent { | ||
constructor(private apiGateway: DefaultApi) { } | ||
|
@@ -126,7 +126,7 @@ export class AppModule { | |
If different than the generated base path, during app bootstrap, you can provide the base path to your service. | ||
|
||
``` | ||
import { BASE_PATH } from '@swagger/angular2-typescript-petstore'; | ||
import { BASE_PATH } from ''; | ||
bootstrap(AppComponent, [ | ||
{ provide: BASE_PATH, useValue: 'https://your-web-service.com' }, | ||
|
@@ -135,7 +135,7 @@ bootstrap(AppComponent, [ | |
or | ||
|
||
``` | ||
import { BASE_PATH } from '@swagger/angular2-typescript-petstore'; | ||
import { BASE_PATH } from ''; | ||
@NgModule({ | ||
imports: [], | ||
|
@@ -159,7 +159,7 @@ export const environment = { | |
|
||
In the src/app/app.module.ts: | ||
``` | ||
import { BASE_PATH } from '@swagger/angular2-typescript-petstore'; | ||
import { BASE_PATH } from ''; | ||
import { environment } from '../environments/environment'; | ||
@NgModule({ | ||
|
2 changes: 1 addition & 1 deletion
2
samples/client/petstore/typescript-angular-v4.3/npm/.openapi-generator/VERSION
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
3.0.2-SNAPSHOT | ||
3.1.0-SNAPSHOT |
2 changes: 1 addition & 1 deletion
2
samples/client/petstore/typescript-angular-v4/npm/.openapi-generator/VERSION
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
3.0.2-SNAPSHOT | ||
3.1.0-SNAPSHOT |
2 changes: 1 addition & 1 deletion
2
...tore/typescript-angular-v6-not-provided-in-root/builds/default/.openapi-generator/VERSION
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
3.0.2-SNAPSHOT | ||
3.1.0-SNAPSHOT |
2 changes: 1 addition & 1 deletion
2
...ore/typescript-angular-v6-not-provided-in-root/builds/with-npm/.openapi-generator/VERSION
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
3.0.2-SNAPSHOT | ||
3.1.0-SNAPSHOT |
1 change: 0 additions & 1 deletion
1
...nt/petstore/typescript-angular-v6-not-provided-in-root/default/.openapi-generator/VERSION
This file was deleted.
Oops, something went wrong.
2 changes: 1 addition & 1 deletion
2
...petstore/typescript-angular-v6-provided-in-root/builds/default/.openapi-generator/VERSION
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
3.0.2-SNAPSHOT | ||
3.1.0-SNAPSHOT |
2 changes: 1 addition & 1 deletion
2
...etstore/typescript-angular-v6-provided-in-root/builds/with-npm/.openapi-generator/VERSION
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
3.0.2-SNAPSHOT | ||
3.1.0-SNAPSHOT |
1 change: 0 additions & 1 deletion
1
...client/petstore/typescript-angular-v6-provided-in-root/default/.openapi-generator/VERSION
This file was deleted.
Oops, something went wrong.
2 changes: 1 addition & 1 deletion
2
samples/client/petstore/typescript-fetch/builds/default/.openapi-generator/VERSION
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
3.0.0-SNAPSHOT | ||
3.1.0-SNAPSHOT |
2 changes: 1 addition & 1 deletion
2
samples/client/petstore/typescript-fetch/builds/es6-target/.openapi-generator/VERSION
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
3.0.0-SNAPSHOT | ||
3.1.0-SNAPSHOT |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
samples/client/petstore/typescript-fetch/builds/with-interfaces/.openapi-generator/VERSION
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
3.0.0-SNAPSHOT | ||
3.1.0-SNAPSHOT |
2 changes: 1 addition & 1 deletion
2
samples/client/petstore/typescript-fetch/builds/with-npm-version/.openapi-generator/VERSION
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
3.0.0-SNAPSHOT | ||
3.1.0-SNAPSHOT |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
samples/client/petstore/typescript-inversify/.openapi-generator/VERSION
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
3.0.0-SNAPSHOT | ||
3.1.0-SNAPSHOT |
2 changes: 1 addition & 1 deletion
2
samples/client/petstore/typescript-node/default/.openapi-generator/VERSION
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
3.0.3-SNAPSHOT | ||
3.1.0-SNAPSHOT |
2 changes: 1 addition & 1 deletion
2
samples/client/petstore/typescript-node/npm/.openapi-generator/VERSION
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
3.0.3-SNAPSHOT | ||
3.1.0-SNAPSHOT |