Skip to content

Commit 1baec57

Browse files
authored
remove old script reference in readme (#8595)
1 parent 26f21bb commit 1baec57

1 file changed

Lines changed: 5 additions & 9 deletions

File tree

README.md

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -450,17 +450,19 @@ To get a list of PHP specified options (which can be passed to the generator wit
450450
You can build a client against the [Petstore API](https://raw.githubusercontent.com/openapitools/openapi-generator/master/modules/openapi-generator/src/test/resources/3_0/petstore.yaml) as follows:
451451

452452
```sh
453-
./bin/java-petstore-okhttp-gson.sh
453+
./bin/generate-samples.sh ./bin/configs/java-okhttp-gson.yaml
454454
```
455455

456-
(On Windows, run `.\bin\windows\java-petstore-okhttp-gson.bat` instead)
456+
(On Windows, please install [GIT Bash for Windows](https://gitforwindows.org/) to run the command above)
457457

458458
This script uses the default library, which is `okhttp-gson`. It will run the generator with this command:
459459

460460
```sh
461461
java -jar modules/openapi-generator-cli/target/openapi-generator-cli.jar generate \
462462
-i https://raw.githubusercontent.com/openapitools/openapi-generator/master/modules/openapi-generator/src/test/resources/3_0/petstore.yaml \
463463
-g java \
464+
-t modules/openapi-generator/src/main/resources/Java \
465+
--additional-properties artifactId=petstore-okhttp-gson,hideGenerationTimestamp:true \
464466
-o samples/client/petstore/java/okhttp-gson
465467
```
466468

@@ -526,13 +528,7 @@ cd samples/client/petstore/java/okhttp-gson
526528
mvn package
527529
```
528530

529-
Other languages have petstore samples, too:
530-
531-
- [Swift5](https://github.com/OpenAPITools/openapi-generator/tree/master/samples/client/petstore/swift5)
532-
- [Ruby](https://github.com/OpenAPITools/openapi-generator/tree/master/samples/client/petstore/ruby)
533-
- [Kotlin](https://github.com/OpenAPITools/openapi-generator/tree/master/samples/client/petstore/kotlin)
534-
535-
... and more.
531+
Other generators have [samples](https://github.com/OpenAPITools/openapi-generator/tree/master/samples) too.
536532

537533
### [3.1 - Customization](#table-of-contents)
538534

0 commit comments

Comments
 (0)