Looking for full-featured OpenAPI generator for Go

This page summarizes the projects mentioned and recommended in the original post on /r/golang

Our great sponsors
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • WorkOS - The modern identity platform for B2B SaaS
  • SaaSHub - Software Alternatives and Reviews
  • openapi-generator

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

  • I have been using https://github.com/deepmap/oapi-codegen for work and personal sutff. It is very minimalist, and uses interface for the server, so iteration easier. It can also generate the types that you need for models, and a client for testing if needed. It does not generate a ton of files like https://github.com/OpenAPITools/openapi-generator.

  • oapi-codegen

    Generate Go client and server boilerplate from OpenAPI 3 specifications

  • I have been using https://github.com/deepmap/oapi-codegen for work and personal sutff. It is very minimalist, and uses interface for the server, so iteration easier. It can also generate the types that you need for models, and a client for testing if needed. It does not generate a ton of files like https://github.com/OpenAPITools/openapi-generator.

  • 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.

    InfluxDB logo
  • oapi-codegen

    Generate Go client and server boilerplate from OpenAPI 3 specifications (by algorand)

  • You might consider the fork at github.com/algorand/oapi-codegen -> the deepmap generator does seem to hit a sweet spot.

  • elk

    Discontinued Extend https://entgo.io code generator and create fully working RESTful CRUD HTTP-handlers. (by masseelch)

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts