mirror of
https://github.com/OpenAPITools/openapi-generator.git
synced 2025-05-20 00:20:51 +00:00
* Revert "prepare 5.0.0-beta3 release" This reverts commit 3ebe774df37b43348bac1310a272de53a2d7040b. * revert to snapshot * update samples
Local Spec Sample
This example assumes you have Gradle 5.6.4+ installed. No gradle wrapper is provided in samples.
First, publish the openapi-generator-gradle-plugin locally via ./gradlew assemble publishToMavenLocal
in the module directory.
Then, run the following tasks in this example directory.
gradle openApiGenerate # expected outcome: BUILD SCCESSFUL
gradle openApiMeta # expected outcome: BUILD SCCESSFUL
gradle openApiValidate # expected outcome: BUILD FAILED
gradle buildGoSdk # expected outcome: BUILD SCCESSFUL
gradle buildDotnetSdk # expected outcome: BUILD SCCESSFUL
gradle generateGoWithInvalidSpec # expected outcome: BUILD FAILED
The samples can be tested against other versions of the plugin using the openApiGeneratorVersion
property. For example:
gradle -PopenApiGeneratorVersion=4.3.0 openApiValidate