gin-swagger VS oapi-codegen

Compare gin-swagger vs oapi-codegen and see what are their differences.

gin-swagger

gin middleware to automatically generate RESTful API documentation with Swagger 2.0. (by swaggo)

oapi-codegen

Generate Go client and server boilerplate from OpenAPI 3 specifications (by deepmap)
InfluxDB - Power Real-Time Data Analytics at Scale
Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
www.influxdata.com
featured
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com
featured
gin-swagger oapi-codegen
3 65
3,570 5,206
1.3% 2.1%
2.8 9.1
4 days ago 7 days ago
Go Go
MIT License Apache License 2.0
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
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.

gin-swagger

Posts with mentions or reviews of gin-swagger. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2022-08-23.
  • swaggo/swag alternative, but should generate OpenAPI 3.0 spec file
    11 projects | /r/golang | 23 Aug 2022
    No I use this one https://github.com/swaggo/gin-swagger. It's with swagger 2.0, but I think it can be easily converted to OpenApi 3.0. I tried it once and the only thing it complained about was some simple "metadata" like contact person etc.
  • How to configure swagger UI so it doesn't need the URL?
    1 project | /r/golang | 10 Mar 2021
    I don't use Gin, but I took the canonical example from https://github.com/swaggo/gin-swagger#canonical-example, removed the url := ginSwagger.URL line entirely (and removed url from the next line), and it works as expected locally or when deployed in kubernetes (via kind) for me.

oapi-codegen

Posts with mentions or reviews of oapi-codegen. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2024-04-29.

What are some alternatives?

When comparing gin-swagger and oapi-codegen you can also consider the following projects:

swag - Automatically generate RESTful API documentation with Swagger 2.0 for Go.

openapi-generator - OpenAPI Generator allows generation of API client libraries (SDK generation), server stubs, documentation and configuration automatically given an OpenAPI Spec (v2, v3)

go-fastapi - Create an API and get Swagger definition for free

GoSwagger - Swagger 2.0 implementation for go

swag - Simple go wrapper to create swagger compatible APIs

ogen - OpenAPI v3 code generator for go

Ginrpc - gin auto binding,grpc, and annotated route,gin 注解路由, grpc,自动参数绑定工具

kin-openapi - OpenAPI 3.0 (and Swagger v2) implementation for Go (parsing, converting, validation, and more)

gin-vue-admin - 🚀Vite+Vue3+Gin的开发基础平台,支持TS和JS混用。它集成了JWT鉴权、权限管理、动态路由、显隐可控组件、分页封装、多点登录拦截、资源权限、上传下载、代码生成器、表单生成器和可配置的导入导出等开发必备功能。

go-oas3 - Open API v3 server code generator

gin-timeout - Timeout Middleware for Gin framework

autorest - OpenAPI (f.k.a Swagger) Specification code generator. Supports C#, PowerShell, Go, Java, Node.js, TypeScript, Python