To start the CI tests, you can run mvn verify -Psamples (assuming you've all the required tools installed to run tests for different languages) or you can leverage to run the CI tests by adding your own Swagger-Codegen repository. Finally, git commit the updated samples files: git commit -a ( git add -A if added files with new test cases).(some languages may not contain unit testing for Petstore and we're looking for contribution from the community to implement those tests) in samples/client/petstore/ruby, run mvn integration-test -rf :RubyPetstoreClientTests. Run the tests in the sample folder, e.g.If you've questions or concerns, please open a ticket to start a discussion) (If you find that there are new files generated or unexpected changes as a result of the update, that's not unusual as the test cases are added to the OpenAPI/Swagger spec from time to time. bin/ruby-petstore.shto update the Ruby PetStore API client under samples/client/petstore/ruby For Windows, the batch files can be found under bin\windows folder. Update the Petstore sample by running the shell script under bin folder.To test the templates, please perform the following: To add test cases (optional) covering the change in the code generator, please refer to modules/swagger-codegen/src/test/java/io/swagger/codegen If you've addaed new vendor extensions as part of your PR, please update the wiki page. For a list of existing vendor extensions in use, please refer to.x-objc-operation-id, x-java-feign-retry-limit jar file (for example, swagger-codegen-cli-2.2.1.jar)Īlternatively, you could use the wget command as well. You could download and run the executable. Visit this folder on Maven, and choose the appropriate version (we recommend the latest version). If you have a Mac or a Linux environment, then you could use Homebrew to install the Swagger Codegen.īrew install swagger-codegen Installation from Maven CentralĪll versions of the Swagger Codegen project can be found on Maven Central. The following dependencies would need to be installed on your machine before downloading and running the Swagger Codegen. GitHub: Compatibility Swagger Codegen Version The source code for the Swagger Codegen can be found in GitHub. The Swagger Codegen is an open source code-generator to build server stubs and client SDKs directly from a Swagger defined RESTful API.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |