openapi-generator
oapi-codegen
openapi-generator | oapi-codegen | |
---|---|---|
251 | 72 | |
23,505 | 6,983 | |
2.7% | 3.6% | |
9.9 | 8.6 | |
1 day ago | 8 days ago | |
Java | Go | |
Apache License 2.0 | Apache License 2.0 |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
openapi-generator
-
API-First Development in Scala
various openapi-generator plugins
-
Generate JAVA code from OpenAPI specification
OpenAPI Generator Gradle Plugin
-
Show HN: FastOpenAPI – automated docs for many Python frameworks
I'm also really happy with spec first. We're using openapi-generator[1] to generate types from a yaml schema (inverting the more standard approach of generating the yaml) in our Typescript (mostly Nest.js) backends, and export those types as packages for use in our frontends.
[1] https://github.com/OpenAPITools/openapi-generator
-
openapi-generator VS lapidary-render - a user suggested alternative
2 projects | 16 Mar 2025
-
Using OpenAPI to Automate API Integration With Rapyd's Payment Gateway
Manually writing API clients can be time-consuming and result in errors. This is where the OpenAPI specification and tools like OpenAPI Generator are helpful.
-
Define, Generate, and Implement: An API-First Approach with OpenAPI Generator and FlightPHP
With your API defined, use the OpenAPI Generator to generate your code automatically. The PHP Flight generator — documented here — was provided by the author and, although its status is still marked as "experimental", it has been my production workhorse for over a year.
-
Redefining our SDKs Developer Experience
Until now, we relied on an open-source OpenAPI generator to build our SDKs. While it served us well, the maintenance and scalability challenges became apparent as we expanded our platform. Key pain points included:
-
7 SDK Generator Tools for APIs in 2025
OpenAPI Generator
-
Generating OpenAPI API clients for Angular
Let’s learn how to generate an API client for an Angular project using the open-source OpenAPI Generator program. The OpenAPI Generator project offers a CLI for generating API client modules for multiple language targets by importing a YAML/JSON API specification file.
-
After 3 Years, I Failed. Here's All My Startup's Code
Did you try to use https://github.com/OpenAPITools/openapi-generator directly?
oapi-codegen
-
Goravel: A Go framework inspired by Laravel
A simple Google search returns https://github.com/oapi-codegen/oapi-codegen
I get wanting to be productive and gravitating towards patterns you’re familiar with but in the end it’s all bloat. http can do routing and patterns and cookies and sessions. database/sql can do your DAL work. uuid (various implementations) work for user/tenant uid+oid obfuscation. JWT libs for auth. You can literally json.unmarshal your config for your whole application or use godotenv to use environment variables. template/html for views. Golang has batteries, it’s just you don’t know what you don’t know so you expect a certain perspective that isn’t how we do things. Like joining a new company, things are different here. If you spent some time to learn the “go way” you’d realize that you don’t need the bloat, you just need the structure. The “where I expect it”.
-
API testing through simulations
First, let’s set up our development environment. We’ll use OpenAPI Generator within Docker to generate our HTTP client, keeping our local environment clean. For this demonstration, we’ll work with fakerestapi.azurewebsites.net (kudos to the maintainers of public APIs). Here’s our Docker configuration for the client generator:
-
gRPC vs. REST: Understand gRPC, OpenAPI and REST and When to Use in API Design
> https://github.com/oapi-codegen/oapi-codegen
I'm using it for a small personal project! Works very well. Thank you!
- Show HN: Find your "holy grail piece", as a service
-
Building and Deploying a New API (Part 1)
Moving on to oapi-codegen, a tools.go file has been created as exemplified in its repository. I have also created the file internal/handlers/server.go:
-
The value of API-First design on side-projects
To generate the server-side code, we need some library. I found oapi-codegen for that. It supports many popular HTTP libraries (echo, gin, etc.) At the time of writing, I used [email protected]
- TypeSpec: A New Language for API-Centric Development
-
The Stainless SDK Generator
what’s the difference between this and https://github.com/deepmap/oapi-codegen
-
AsyncAPI Codegen, a code generator from AsyncAPI spec v2 and v3.
During daytime, and especially work time, I used a great tool to generate code from OpenAPI specification: deepmap/oapi-codegen.
-
Created an API using Gin, want to create sdk for him
Then you can use oapi-codegen or openapi-generator to generate the Go (or other language) SDK for it.
What are some alternatives?
NSwag - The Swagger/OpenAPI toolchain for .NET, ASP.NET Core and TypeScript.
ogen - OpenAPI v3 code generator for go
kiota - OpenAPI based HTTP Client code generator
CORS - Go net/http configurable handler to handle CORS requests
Feign - Feign makes writing java http clients easier
goa - Design-first Go framework that generates API code, documentation, and clients. Define once in an elegant DSL, deploy as HTTP and gRPC services with zero drift between code and docs.