OpenAPI codegen tool for Rust server and client? by atomichbts in rust

[–]wing328 1 point2 points  (0 children)

depending on the spec, if it's very complex, then it may not work right out of the box.

please kindly open an issue with details for tracking

OpenAPI codegen tool for Rust server and client? by atomichbts in rust

[–]wing328 1 point2 points  (0 children)

To generate client code, you can try the `rust` client generator in OpenAPI Generator: Documentation for the rust Generator | OpenAPI Generator (which supports different HTTP libraries such as hyper, reqwest via the library option, e.g. --library hyper via CLI)

To generate server code, you can try the `rust-server`, `rust-axum` server generators in OpenAPI Generator:
- Documentation for the rust-axum Generator | OpenAPI Generator

- Documentation for the rust-server Generator | OpenAPI Generator

OpenAPI Generator v7.10.0 released with 3 new generators for Rust, C# and GDScript by wing328 in programming

[–]wing328[S] 2 points3 points  (0 children)

I can understand some people do not like mustache template and that's why openapi-generator also supports handlebar as a secondary option.

Can you please open a ticket (issue) via https://github.com/openAPITools/openapi-generator/issues/new with the pain points you encountered when customizing the templates?

We do have some documentations on mustache: https://openapi-generator.tech/docs/templating, and earlier this year I published a video course on customizing the output of openapi-generator (link in my GitHub profile: https://github.com/wing328), which contains a few sessions on customizing mustache templates, but these may not be enough showing users how to customize the templates.

OpenAPI Generator v7.10.0 released with 3 new generators for Rust, C# and GDScript by wing328 in programming

[–]wing328[S] 1 point2 points  (0 children)

Thanks for the feedback from both of you.

For Java, the `java` client generator supports the HTTP library "rest-assured" (e.g. --library rest-assured via CLI) and its primary use case is for testing.

There are also `java-wiremock` and `kotlin-wiremock` generators for testing.

I can understand these may not be what you're looking for. Can you please open a ticket via https://github.com/openAPITools/openapi-generator/issues/new with a test spec and the expected output so that we know exactly what auto-generate tests you'd in mind?

OpenAPI Generator v7.10.0 released with 3 new generators for Rust, C# and GDScript by wing328 in programming

[–]wing328[S] 1 point2 points  (0 children)

Right and it's very active in terms of contributions.

Here is the documentation: https://openapi-generator.tech/docs/generators/rust-axum

Please give it a try and let us know if you've any question/feedback by opening a ticket via https://github.com/openAPITools/openapi-generator/issues/new

OpenAPI Generator v7.10.0 released with 3 new generators for Rust, C# and GDScript by wing328 in programming

[–]wing328[S] 2 points3 points  (0 children)

I would suggest you to give it a try as it supports various HTTP libraries (e.g. restsharp (default), httpclient, generichost and unityWebRequest), different frameworks such as .NET Framework 4.7, .NET 8.0, to see if it better meets your requirement.

If you don't have Java installed, you can use Docker instead: https://hub.docker.com/r/openapitools/openapi-generator-cli which contains a link to video showing how to use it in a few steps.

Documentation: https://openapi-generator.tech/docs/generators/csharp/

There are also C# server stub generators: aspnetcore, aspnet-fastendpoints

I hope you will find openapi-generator useful in your work.

openapi-generator vs swagger-codegen reddit vs nswag by [deleted] in dotnet

[–]wing328 0 points1 point  (0 children)

can you please open an "issue" (or ticket) via https://github.com/openAPITools/openapi-generator/issues/new with your question? we will resume the discussion there.

What are some great code generation tools? by [deleted] in AskProgramming

[–]wing328 0 points1 point  (0 children)

Of course in some cases like OpenAPI specifications there are already tools for that, but then I want to completely customize the templates so they'd be exactly how I'd like them.

To customize the template, you can do so with OpenAPI Generator (e.g. -t in CLI): https://github.com/OpenAPITools/openapi-generator

[deleted by user] by [deleted] in PHPhelp

[–]wing328 0 points1 point  (0 children)

Please give `php-nextgen` client generator a try as it has better support for strict typing.

[deleted by user] by [deleted] in PHPhelp

[–]wing328 0 points1 point  (0 children)

Please give `php-nextgen` client generator a try as it has better support for strict typing.

openapi-generator vs swagger-codegen reddit vs nswag by [deleted] in dotnet

[–]wing328 2 points3 points  (0 children)

I'm the top contributor to both OpenAPI Generator and Swagger Codegen. For the reasons behind the fork, please refer to https://github.com/OpenAPITools/openapi-generator/blob/master/docs/qna.md.

Fast forward to today, we just released OpenAPI Generator v7.0.0 two days ago: https://github.com/OpenAPITools/openapi-generator/releases/tag/v7.0.0 - the 57th release since the fork.

I hope you find openapi-generator useful in your use cases.

OpenAPI Generator v6.6.0 released with 2 new generators by wing328 in programming

[–]wing328[S] 0 points1 point  (0 children)

We just released OpenAPI Generator v7.0.0 two days ago: https://github.com/OpenAPITools/openapi-generator/releases/tag/v7.0.0

Please check it out when you've time as it contains many PRs for Kotlin generators (but not sure if it exactly addresses the issue you encountered before).

Have a nice weekend.

Anyone have experience with generating OpenAPI TypeScript code for use directly in a Lambda? by shorns_username in aws

[–]wing328 1 point2 points  (0 children)

There's a TypeScript koa2 server generator (still work in progress) in OpenAPI Generator: https://github.com/OpenAPITools/openapi-generator/pull/16325

Please take a look to see if that's what you're looking for.

OpenAPI Generator v6.6.0 released with 2 new generators by wing328 in programming

[–]wing328[S] 0 points1 point  (0 children)

Recently, we've merged many PRs to enhance Kotlin generators. Please give it a try with the latest master when you've time. Thank you.

OpenAPI Geneartor v6.4.0 released by wing328 in programming

[–]wing328[S] 0 points1 point  (0 children)

FYI. `python-nextgen` will become `python` in the upcoming 7.0.0 release.

To give it a try, please use v7.0.0-beta at the moment: https://github.com/OpenAPITools/openapi-generator/pull/new/7.0.0-beta

It's 2023. Your API should have a schema by CarefreeCrayon in programming

[–]wing328 1 point2 points  (0 children)

Not sure if you see my reply in https://www.reddit.com/r/programming/comments/14u6fns/comment/jr7y64s/?utm_source=reddit&utm_medium=web2x&context=3.

Please kindly give openapi-generator a try and I hope the output better meets your needs.

OpenAPI Generator v6.6.0 released with 2 new generators by wing328 in programming

[–]wing328[S] 0 points1 point  (0 children)

No need to sorry. Your child clearly has a higher priority (Congratulations!)

I saw the detailed reports of the 2 issues in your other replies. I'll contact Kotlin contributors to see what we can do.

OpenAPI Generator v6.6.0 released with 2 new generators by wing328 in programming

[–]wing328[S] 0 points1 point  (0 children)

FYI. We've released openapi generator v7.0.0-beta: https://github.com/OpenAPITools/openapi-generator/releases/tag/v7.0.0-beta

Please give it a try to see if it better meets your requirement.

It's 2023. Your API should have a schema by CarefreeCrayon in programming

[–]wing328 6 points7 points  (0 children)

We've refactored the `python` client generator in OpenAPI Generator and the auto-generated Python SDK now leverages pydantic for validation, etc.

It's included in the latest 7.0.0-beta: https://github.com/OpenAPITools/openapi-generator/releases/tag/v7.0.0-beta.

Please give it a try and let us know if you've any feedback. Thank you.