Add Nim client code generator#3879
Conversation
* [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
* 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 d6d579f. * Revert "run ./bin/utils/export_docs_generators.sh" This reverts commit 1b81538. * Revert "update petstore samples" This reverts commit f513add. * run ensure-up-to-date
* better varible naming * better comments * better code format for go experimental client * better comment, update samples
* add grpc protobuf generator * update doc * add new doc * add windows batch, comment out root proto
…efaultApi.java to match the default path /{pathParam} (OpenAPITools#3821)
* issue OpenAPITools#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 OpenAPITools#2845: run ./bin/openapi3/typescript-angular-petstore-all.sh * run `mvn clean package && ./bin/typescript-angular-petstore-all.sh` * revert extranous files
… hash calculation) (OpenAPITools#3826) * This patch fixes the bug that we cannot access to remote files when checking file updates. Following up OpenAPITools#3440, supporting auth. * 1792 fix remote spec handling and hash calculation (OpenAPITools#3440) (cherry picked from commit 2a2eefe) * fix detecting remote file / local file logic while finding the hash file, taking care of IllegalArgumentException for local files. * add testcase
…3846) * fixed bug where nullApi.java would be generated. Instead, generated DefaultApi.java to match the default path /{pathParam} * fix to bug OpenAPITools#3157 * update samples
…arameter (OpenAPITools#3860) Adds the format annotation so that Spring is able to serialize OpenApi date/date-time format into LocalDate/OffsetDateTime.
…to nim-client # Conflicts: # bin/windows/nim-client-petstore.bat
macjohnny
left a comment
There was a problem hiding this comment.
Thanks for the PR
Please also update the README.md to add the Nim language.
If you want, you could add yourself to the technical committee https://github.com/OpenAPITools/openapi-generator/blob/master/README.md#62---openapi-generator-technical-committee
modules/openapi-generator/src/test/java/org/openapitools/codegen/nim/NimClientCodegenTest.java
Outdated
Show resolved
Hide resolved
|
Hi @macjohnny, |
|
@hokamoto I think the error is unrelated, I restarted the build, let's see |
|
the CI passes. |
| @@ -0,0 +1,309 @@ | |||
| package org.openapitools.codegen.languages; | |||
There was a problem hiding this comment.
I'll add the copyright header in another PR.
| } | ||
|
|
||
| public String getHelp() { | ||
| return "Generates a nim client."; |
There was a problem hiding this comment.
I'll add the word "beta" as follows:
Generates a nim client (beta).
| return name; | ||
| } | ||
| } | ||
| } |
There was a problem hiding this comment.
We're using 4 space indention so I'll reformat the code in a separate PR.
I left a couple of comments. Will work on those in a separate PR. Let's launch this and see if nim developers have feedback on this new generator. |
|
@hokamoto thanks for the new generator. may I know if you've a Twitter account? We'll tag you in the tweet to promote the new generator. |
|
@wing328 Hi, my Twitter account is @tox2ro (https://twitter.com/tox2ro) |
* master: (22 commits) various minor improvements to nim generator (#3883) Add Nim client code generator (#3879) updated google-api-client version from 1.23.0 to 1.30.2. Bugfix #3625 (#3882) typescript-fetch: fix missing comma in multiple imports (#3881) [scala][client] add Scala code generation test (#3859) typescript-node: Use HttpError class when rejecting promises (#3876) update stable release update doc, samples (#3875) BugFix #2053 Spring Boot fails to parse LocalDate query parameter (#3860) fix version in readme Prepare v4.1.2 release (#3873) Rename gRPC generator to "protobuf-schema" (#3864) typescript-axios: Fix baseoptions (#3866) Fix/r/serialization fix and minor 3xx resp fix (#3817) [typescript-angular] allow empty string basePath (#3489) typescript-inversify: improve check for required parameters, support multiple media types (#3849) [C++][Pistache] Add missing setter for arrays (#3837) Adds Http Info To Dart Api (#3851) [Java][okhttp-gson] fix failure to deserialize floats (#3846) maven-plugin-plugin 3.6.0 (#3854) ...
|
Thanks. Here is the Tweet: https://twitter.com/oas_generator/status/1172492657999794176 |
|
@hokamoto thanks for the PR, which has been included in the v4.1.3 release: https://twitter.com/oas_generator/status/1180123829626003456 |
PR checklist
./bin/to update Petstore sample so that CIs can verify the change. (For instance, only need to run./bin/{LANG}-petstore.sh,./bin/openapi3/{LANG}-petstore.shif updating the {LANG} (e.g. php, ruby, python, etc) code generator or {LANG} client's mustache templates). Windows batch files can be found in.\bin\windows\. If contributing template-only or documentation-only changes which will change sample output, be sure to build the project first.master,4.1.x,5.0.x. Default:master.Description of the PR
I add the client code generator for Nim Programming Language.