... | @@ -159,7 +159,7 @@ As of Jun 2020, we've switched to `./bin/generate-samples.sh` for updating Petst |
... | @@ -159,7 +159,7 @@ As of Jun 2020, we've switched to `./bin/generate-samples.sh` for updating Petst |
|
|
|
|
|
`./bin/configs/other/` is another folder that stores the config files for generators that are less active.
|
|
`./bin/configs/other/` is another folder that stores the config files for generators that are less active.
|
|
|
|
|
|
For Windows users, please run the script in [Git BASH](https://gitforwindows.org/)
|
|
For Windows users, please run the script in [Git BASH](https://gitforwindows.org/).
|
|
|
|
|
|
### How to test with the latest master of OpenAPI Generator?
|
|
### How to test with the latest master of OpenAPI Generator?
|
|
|
|
|
... | @@ -170,15 +170,20 @@ To test your OpenAPI/Swagger spec with the latest master to confirm whether the |
... | @@ -170,15 +170,20 @@ To test your OpenAPI/Swagger spec with the latest master to confirm whether the |
|
- Download the latest snapshot version of openapi-generator-cli JAR: https://oss.sonatype.org/content/repositories/snapshots/org/openapitools/openapi-generator-cli/
|
|
- Download the latest snapshot version of openapi-generator-cli JAR: https://oss.sonatype.org/content/repositories/snapshots/org/openapitools/openapi-generator-cli/
|
|
- Build the project locally
|
|
- Build the project locally
|
|
|
|
|
|
1. git clone https://github.com/OpenAPITools/openapi-generator
|
|
1. `git clone https://github.com/OpenAPITools/openapi-generator`
|
|
1. cd openapi-generator
|
|
2. `cd openapi-generator`
|
|
1. Build the project
|
|
3. Build the project
|
|
1. `Windows`: mvnw.bat clean install
|
|
- **Windows**: `mvnw.cmd clean install`
|
|
1. `Mac/Linux`: ./mvnw clean install
|
|
- **Mac/Linux**: `./mvnw clean install`
|
|
1. Run the CLI jar locally
|
|
4. Run the CLI jar locally
|
|
1. `Windows`: java -jar modules\openapi-generator-cli\target\openapi-generator-cli.jar generate -g ruby -i https://raw.githubusercontent.com/OpenAPITools/openapi-generator/master/modules/openapi-generator/src/test/resources/3_0/petstore.yaml -o C:\temp\ruby-client-test
|
|
- **Windows**:
|
|
1. `Mac/Linux`: java -jar modules/openapi-generator-cli/target/openapi-generator-cli.jar generate -g ruby -i https://raw.githubusercontent.com/OpenAPITools/openapi-generator/master/modules/openapi-generator/src/test/resources/3_0/petstore.yaml -o /var/tmp/ruby-client-test
|
|
```sh
|
|
|
|
java -jar modules\openapi-generator-cli\target\openapi-generator-cli.jar generate -g ruby -i https://raw.githubusercontent.com/OpenAPITools/openapi-generator/master/modules/openapi-generator/src/test/resources/3_0/petstore.yaml -o C:\temp\ruby-client-test
|
|
|
|
```
|
|
|
|
- **Mac/Linux**:
|
|
|
|
```sh
|
|
|
|
java -jar modules/openapi-generator-cli/target/openapi-generator-cli.jar generate -g ruby -i https://raw.githubusercontent.com/OpenAPITools/openapi-generator/master/modules/openapi-generator/src/test/resources/3_0/petstore.yaml -o /var/tmp/ruby-client-test
|
|
|
|
```
|
|
|
|
|
|
## git
|
|
## git
|
|
|
|
|
... | @@ -186,12 +191,12 @@ To test your OpenAPI/Swagger spec with the latest master to confirm whether the |
... | @@ -186,12 +191,12 @@ To test your OpenAPI/Swagger spec with the latest master to confirm whether the |
|
|
|
|
|
Please refer to http://rypress.com/tutorials/git/rebasing, or follow the steps below (assuming the branch for the PR is "fix_issue_9999"):
|
|
Please refer to http://rypress.com/tutorials/git/rebasing, or follow the steps below (assuming the branch for the PR is "fix_issue_9999"):
|
|
|
|
|
|
1. git checkout master
|
|
1. `git checkout master`
|
|
2. git pull upstream master (assuming `upstream` is pointing to the official repo)
|
|
2. `git pull upstream master` (assuming `upstream` is pointing to the official repo)
|
|
3. git checkout fix_issue_9999
|
|
3. `git checkout fix_issue_9999`
|
|
4. git rebase master
|
|
4. `git rebase master`
|
|
5. Resolve merge conflicts, if any, and run "git commit -a"
|
|
5. Resolve merge conflicts, if any, and run `git commit -a`
|
|
6. Rebase done (you may need to add --force when doing `git push`)
|
|
6. Rebase done (you may need to add `--force` when doing `git push`)
|
|
|
|
|
|
(To setup `upstream` pointing to the official repo, please run `git remote add upstream https://github.com/openapitools/openapi-generator.git`)
|
|
(To setup `upstream` pointing to the official repo, please run `git remote add upstream https://github.com/openapitools/openapi-generator.git`)
|
|
|
|
|
... | | ... | |