awesome-repositories.com
Blog
awesome-repositories.com

Descubre los mejores repositorios open-source con nuestra búsqueda potenciada por IA.

ExplorarBúsquedas curadasAlternativas open-sourceSoftware autohospedableBlogMapa del sitio
ProyectoAcerca deCómo clasificamosPrensaServidor MCP
Aviso legalPrivacidadTérminos
© 2026 Bringes Technology SRL·VAT RO45896025·hello@awesome-repositories.com
·
oapi-codegen avatar

oapi-codegen/oapi-codegen

0
View on GitHub↗
8,088 estrellas·1,014 forks·Go·apache-2.0·6 vistas

Oapi Codegen

oapi-codegen is an OpenAPI specification compiler and code generator for Go. It transforms OpenAPI definitions into type-safe Go client libraries, server boilerplate, and data models to facilitate contract-first API development.

The tool distinguishes itself through a flexible customization system that allows users to override generated types and imports via specification extensions. It supports the use of custom text templates to redefine the final source code structure and provides a specification overlay mechanism to modify or remove endpoints without altering the original source file.

The generator covers a broad range of capabilities including the synthesis of strict server interfaces for request handling, the creation of production-ready HTTP clients, and the mapping of server URLs. It also produces middleware for API request validation and provides specialized handling for nullable types to distinguish between omitted and null values.

Features

  • API-First Development Toolsets - Provides a complete toolset for contract-first development by generating both server boilerplate and client libraries from a spec.
  • API Client Generators - Generates production-ready, type-safe Go HTTP client libraries based on OpenAPI specifications.
  • Schema Type Synchronization - Automatically translates OpenAPI schema definitions into type-safe Go data structures.
  • Client Library Generation - Transforms OpenAPI specifications into production-ready, type-safe Go client libraries.
  • Server Stub Generation - Creates server-side boilerplate and routing logic to automate the implementation of the defined API.
  • Server Boilerplate Generators - Automates the creation of server-side boilerplate and request handlers based on API schema definitions.
  • Strict Interface Generators - Generates high-guardrail server interfaces that automate data marshalling and enforce strict type bindings.
  • Go Code Generators - Creates type definitions and server interfaces in Go to automate API routing and data structures.
  • Type Safety - Ensures API type safety by generating strict Go definitions that enforce the specification's data integrity.
  • Interface Contracts - Provides strict server-side signatures and client methods that enforce consistency between the API specification and the implementation.
  • Data Model Generators - Generates strongly typed Go structures and data models directly from OpenAPI schema definitions.
  • Go Code Generators - Compiles OpenAPI specifications into type-safe Go client libraries and server boilerplate.
  • OpenAPI Processors - Processes OpenAPI YAML and JSON files to produce idiomatic Go types and validation middleware.
  • Contract Generation Tools - Derives executable Go code and data models directly from API specification metadata.
  • Type Customization Extensions - Provides a system to override generated Go type names, imports, and tags via specification extensions.
  • Source Code Templates - Produces Go source code by injecting parsed specification data into customizable text templates.
  • Nullability Wrappers - Implements specialized nullable wrappers to distinguish between omitted fields and explicit null values in API requests.
  • Specification Extensions - Allows the use of custom specification extensions to control generated types, imports, and tags.
  • Specification Overlays - Supports modifying the input API specification using external structural delta files before code generation.
  • Generation Templates - Allows replacing default generation logic with custom text templates to change the final code structure.
  • Request Validation Middleware - Provides automated middleware to verify that incoming HTTP requests strictly adhere to the OpenAPI specification.

Historial de estrellas

Gráfico del historial de estrellas de oapi-codegen/oapi-codegenGráfico del historial de estrellas de oapi-codegen/oapi-codegen

Búsqueda con IA

Explora más repositorios increíbles

Describe lo que necesitas en lenguaje sencillo: la IA clasifica miles de proyectos open-source curados por relevancia.

Start searching with AI

Alternativas open-source a Oapi Codegen

Proyectos open-source similares, clasificados según cuántas características comparten con Oapi Codegen.
  • deepmap/oapi-codegenAvatar de deepmap

    deepmap/oapi-codegen

    8,398Ver en GitHub↗

    oapi-codegen is a suite of generators that converts OpenAPI 3 specifications into type-safe Go client libraries, server boilerplate, and data models. It provides tools for producing production-ready HTTP clients and server-side interfaces to ensure that Go implementations remain compliant with defined API contracts. The tool supports server generation across various web frameworks and allows for extensive customization via template overrides, specification overlays, and custom type definition mappings. It handles complex API requirements through external reference resolution to organize code

    Go
    Ver en GitHub↗8,398
  • swagger-api/swagger-codegenAvatar de swagger-api

    swagger-api/swagger-codegen

    17,760Ver en GitHub↗

    Swagger Codegen is a template-driven engine and multi-language toolkit used to generate API client SDKs, server stubs, and human-readable documentation from OpenAPI specifications. It translates these specifications into functional libraries and boilerplate routing code across various target programming languages. The tool utilizes a pluggable generator module system and an integrated template engine, allowing for the customization of generated source code and the creation of new language-specific generators. It supports flexible specification sourcing via local files, remote HTTP endpoints,

    Mustacheopen-sourceopenapi-specificationopenapi3
    Ver en GitHub↗17,760
  • ricosuter/nswagAvatar de RicoSuter

    RicoSuter/NSwag

    7,342Ver en GitHub↗

    NSwag is an OpenAPI toolchain for .NET that provides a suite of generators for converting OpenAPI specifications and JSON schemas into clients, server stubs, and structured documentation. It enables the creation of type-safe client libraries and data transfer objects, as well as the generation of OpenAPI specifications by analyzing .NET controllers. The project supports contract-first API development by generating server controller stubs from specifications and offers dedicated TypeScript API integration to ensure type safety in frontend applications. It also provides tools for hosting intera

    C#angularaspnetaspnetcore
    Ver en GitHub↗7,342
  • rsuter/nswagAvatar de RSuter

    RSuter/NSwag

    7,342Ver en GitHub↗

    NSwag is a toolchain for the .NET ecosystem designed to automate the generation of API documentation, server controllers, and typed client proxies from OpenAPI contracts. It functions as a contract-first API tool that enables the creation of server-side boilerplate and client libraries based on predefined specifications. The suite distinguishes itself through its ability to extract OpenAPI specifications from existing ASP.NET Core code via reflection and its capacity to generate type-safe TypeScript client proxies. It also provides an interactive documentation server that hosts and renders th

    C#
    Ver en GitHub↗7,342
Ver las 30 alternativas a Oapi Codegen→

Preguntas frecuentes

¿Qué hace oapi-codegen/oapi-codegen?

oapi-codegen is an OpenAPI specification compiler and code generator for Go. It transforms OpenAPI definitions into type-safe Go client libraries, server boilerplate, and data models to facilitate contract-first API development.

¿Cuáles son las características principales de oapi-codegen/oapi-codegen?

Las características principales de oapi-codegen/oapi-codegen son: API-First Development Toolsets, API Client Generators, Schema Type Synchronization, Client Library Generation, Server Stub Generation, Server Boilerplate Generators, Strict Interface Generators, Go Code Generators.

¿Qué alternativas de código abierto existen para oapi-codegen/oapi-codegen?

Las alternativas de código abierto para oapi-codegen/oapi-codegen incluyen: deepmap/oapi-codegen — oapi-codegen is a suite of generators that converts OpenAPI 3 specifications into type-safe Go client libraries,… swagger-api/swagger-codegen — Swagger Codegen is a template-driven engine and multi-language toolkit used to generate API client SDKs, server stubs,… ricosuter/nswag — NSwag is an OpenAPI toolchain for .NET that provides a suite of generators for converting OpenAPI specifications and… rsuter/nswag — NSwag is a toolchain for the .NET ecosystem designed to automate the generation of API documentation, server… openapitools/openapi-generator-cli — OpenAPI Generator CLI is a command-line utility designed to automate the creation of API artifacts from specification… go-swagger/go-swagger — go-swagger is a toolkit for working with Swagger/OpenAPI 2.0 specifications in Go. It generates server, client, and…