mirror of
https://github.com/OpenAPITools/openapi-generator.git
synced 2025-06-03 15:30:59 +00:00
* First version of Nim Client * Add some codes * Add some codes * Add some codes * Add some codes * Add some codes * First version of Nim Client * Add some codes * Add some codes * [Dart] Fix README template and update testing doco (#3809) * [Dart] Fix README template and update testing doco - deleted redundant shell script - fixed and updated README template - updated test package and moved to a dev_dependency - removed old unused dev_dependency packages - updated testing documentation in petstore sample * Remove references to dart-flutter-petstore.sh * Fix typos * Fix typo * Support custom git repository (#3757) * add gitHost param to GeneratorSettings and related * parameterize gitHost in READMEs * parameterize gitHost in go.mod * parameterize gitHost in git_push * update petstore samples * run ./bin/utils/export_docs_generators.sh * run meta-codehen.sh * Revert "run meta-codehen.sh" This reverts commit d6d579f6159186531257cdfdd73b9caf9e9ffeba. * Revert "run ./bin/utils/export_docs_generators.sh" This reverts commit 1b81538198d4319fd1b4e97447303e3cc0e8dc99. * Revert "update petstore samples" This reverts commit f513add88396707f6991ae2e4920359583ec88f1. * run ensure-up-to-date * Add links to article and video (#3820) * Better Go code format (#3819) * better varible naming * better comments * better code format for go experimental client * better comment, update samples * Add some codes * Add some codes * Add some codes * Add gRPC Protobuf schema generator (#3818) * add grpc protobuf generator * update doc * add new doc * add windows batch, comment out root proto * 1792 fix remote spec handling and hash calculation (#3440) * fixed bug where nullApi.java would be generated. Instead, generated DefaultApi.java to match the default path /{pathParam} (#3821) * Revert "1792 fix remote spec handling and hash calculation (#3440)" This reverts commit 2a2eefe93d81b8d253745b8adb002ab2cb9eee04. * Add nickmeinhold to Dart technical committee (#3830) * Bug #2845 typescript angular inheritance (#3812) * issue #2845: enable 'supportsMultipleInheritance' on typescript angular client codegen - note I reran ./bin/openapi3/typescript-angular-petstore-all.sh and no changes occurred. this suggests to me that the petstore.yaml sample should be improved to make use of the anyOf / allOf / oneOf keywords, in order to better show the effects of changes on generated code. * issue #2845: run ./bin/openapi3/typescript-angular-petstore-all.sh * run `mvn clean package && ./bin/typescript-angular-petstore-all.sh` * revert extranous files * fix warnings in csharp-netcore client (#3831) * Add missing files to the form request (#3834) * [client][go] avoid duplicated reflect imports (#3847) * Following up for #3440 (1792 fix remote spec handling and hash calculation) (#3826) * This patch fixes the bug that we cannot access to remote files when checking file updates. Following up #3440, supporting auth. * 1792 fix remote spec handling and hash calculation (#3440) (cherry picked from commit 2a2eefe93d81b8d253745b8adb002ab2cb9eee04) * fix detecting remote file / local file logic while finding the hash file, taking care of IllegalArgumentException for local files. * add testcase * Add a link (#3850) * Add Element AI to the list (#3856) * maven-plugin-plugin 3.6.0 (#3854) * [Java][okhttp-gson] fix failure to deserialize floats (#3846) * fixed bug where nullApi.java would be generated. Instead, generated DefaultApi.java to match the default path /{pathParam} * fix to bug #3157 * update samples * Adds Http Info To Dart Api (#3851) * [C++][Pistache] Add missing setter for arrays (#3837) * [C++][Pistache] Add missing setter for arrays Fixes #3769 * [C++][Pistache] Update Petstore sample * typescript-inversify: improve check for required parameters, support multiple media types (#3849) * [typescript-inversify] Allow falsy parameters A required parameter to an api method must not be `null` or `undefined`. It can be any other falsy value, e.g. `""`, `0` or `false` though. This change makes sure an error is only thrown in the former case and not in the latter. * [typescript-inversify] Handle multiple media types The Accept and Content-Type HTTP headers can contain a list of media types. Previously all but the first media type in the api definition were ignored. Now the headers are properly generated. * [typescript-inversify] Fix http client interface The api service methods allow the `body` parameter to be optional. The parameter is then passed to an `IHttpClient`. So it needs to be optional there as well. Also fixed the sample implementation `HttpClient`. Fixes #3618. * [typescript-inversify] Regenerate Petstore sample * [typescript-inversify] Use more explicit null check This does not change the semantic of the generated code, but makes it more explicit. Co-Authored-By: Esteban Gehring <esteban.gehring@gmail.com> * [typescript-angular] allow empty string basePath (#3489) * [typescript-angular] Fixing #2731 - empty string basePath * typescript-angular: refactor base path configuration * typescript-angular: refactor base path configuration * Fix/r/serialization fix and minor 3xx resp fix (#3817) * fix(qlik): fix for minor serialization bug * fix(r): add petsore generated classes * fix(r): indendation fixes * typescript-axios: Fix baseoptions (#3866) * Fixed missing baseOptions of typescript-axios. The typescript-axios template was missing the baseOptions setting when building an API Configuration. Set it. * update sample. * re-generate typescript axios samples * Rename gRPC generator to "protobuf-schema" (#3864) * rename grpc generator to protobuf-schema * update doc * Prepare v4.1.2 release (#3873) * update samples * update date * fix version in readme * BugFix #2053 Spring Boot fails to parse LocalDate query parameter (#3860) Adds the format annotation so that Spring is able to serialize OpenApi date/date-time format into LocalDate/OffsetDateTime. * update doc, samples (#3875) * update stable release * Update the batch for Windows * Add a test snippet * Update ensure-up-to-date * Add Nim to README.md * Ran ensure-up-to-date to pass CircleCI tests
95 lines
3.0 KiB
Bash
Executable File
95 lines
3.0 KiB
Bash
Executable File
#!/bin/bash
|
|
# this bash script run the scripts for the 'mature' generators
|
|
# it ensures that all changes are committed into the 'samples/' folder
|
|
|
|
echo "# START SCRIPT: $0"
|
|
|
|
echo "IMPORTANT: this script should be run by the CI (e.g. Shippable) to ensure that the 'samples/' folder is up to date."
|
|
echo "Please press CTRL+C to stop or the script will continue in 5 seconds."
|
|
|
|
sleep 5
|
|
|
|
# LIST OF SCRIPTS:
|
|
declare -a scripts=(
|
|
# SAMPLES
|
|
"./bin/ruby-client-petstore.sh"
|
|
"./bin/openapi3/ruby-client-petstore.sh"
|
|
"./bin/openapi3/ruby-client-faraday-petstore.sh"
|
|
"./bin/java-petstore-all.sh"
|
|
"./bin/java-jaxrs-petstore-server-all.sh"
|
|
"./bin/java-msf4j-petstore-server.sh"
|
|
"./bin/openapi3/jaxrs-jersey-petstore.sh"
|
|
"./bin/spring-all-petstore.sh"
|
|
"./bin/javascript-petstore-all.sh"
|
|
"./bin/kotlin-client-petstore.sh"
|
|
"./bin/kotlin-client-string.sh"
|
|
"./bin/kotlin-client-threetenbp.sh"
|
|
"./bin/kotlin-server-petstore.sh"
|
|
"./bin/kotlin-springboot-petstore-server.sh"
|
|
"./bin/kotlin-springboot-petstore-server-reactive.sh"
|
|
"./bin/mysql-schema-petstore.sh"
|
|
"./bin/nim-client-petstore.sh"
|
|
"./bin/python-petstore-all.sh"
|
|
"./bin/openapi3/python-petstore.sh"
|
|
"./bin/php-petstore.sh"
|
|
"./bin/php-silex-petstore-server.sh"
|
|
"./bin/php-symfony-petstore.sh"
|
|
"./bin/php-lumen-petstore-server.sh"
|
|
"./bin/php-slim-server-petstore.sh"
|
|
"./bin/php-ze-ph-petstore-server.sh"
|
|
"./bin/openapi3/php-petstore.sh"
|
|
"./bin/typescript-angularjs-petstore.sh"
|
|
"./bin/typescript-angular-petstore-all.sh"
|
|
"./bin/typescript-aurelia-petstore.sh"
|
|
"./bin/typescript-axios-petstore-all.sh"
|
|
"./bin/typescript-fetch-petstore-all.sh"
|
|
"./bin/typescript-inversify-petstore.sh"
|
|
"./bin/typescript-jquery-petstore-all.sh"
|
|
"./bin/typescript-node-petstore-all.sh"
|
|
"./bin/typescript-rxjs-petstore-all.sh"
|
|
"./bin/rust-server-petstore.sh"
|
|
"./bin/r-petstore.sh"
|
|
"./bin/haskell-http-client-petstore.sh"
|
|
"./bin/csharp-petstore.sh"
|
|
"./bin/csharp-netcore-petstore-all.sh"
|
|
"./bin/elixir-petstore.sh"
|
|
"./bin/go-petstore.sh"
|
|
"./bin/go-petstore-withxml.sh"
|
|
"./bin/go-gin-petstore-server.sh"
|
|
"./bin/groovy-petstore.sh"
|
|
"./bin/apex-petstore.sh"
|
|
"./bin/perl-petstore-all.sh"
|
|
"./bin/dart-jaguar-petstore.sh"
|
|
"./bin/dart-petstore.sh"
|
|
"./bin/dart2-petstore.sh"
|
|
"./bin/java-play-framework-petstore-server-all.sh"
|
|
#"./bin/elm-petstore-all.sh"
|
|
"./bin/meta-codegen.sh"
|
|
# OTHERS
|
|
"./bin/utils/export_docs_generators.sh"
|
|
"./bin/utils/copy-to-website.sh"
|
|
"./bin/utils/export_generators_readme.sh")
|
|
|
|
for script in "${scripts[@]}"; do
|
|
if eval $script > /dev/null 2>&1; then
|
|
echo "Executed $script successfully!"
|
|
else
|
|
echo "ERROR: Failed to run $script"
|
|
exit 1
|
|
fi
|
|
done
|
|
|
|
# Check:
|
|
if [ -n "$(git status --porcelain)" ]; then
|
|
echo "UNCOMMITTED CHANGES ERROR"
|
|
echo "There are uncommitted changes in working tree after execution of 'bin/ensure-up-to-date'"
|
|
echo "Perform git diff"
|
|
git --no-pager diff
|
|
echo "Perform git status"
|
|
git status
|
|
echo "Please run 'bin/utils/ensure-up-to-date' locally and commit changes (UNCOMMITTED CHANGES ERROR)"
|
|
exit 1
|
|
else
|
|
echo "Git working tree is clean"
|
|
fi
|