openapi-mock VS oapi-codegen

Compare openapi-mock vs oapi-codegen and see what are their differences.

openapi-mock

OpenAPI mock server with random data generation (by muonsoft)

oapi-codegen

Generate Go client and server boilerplate from OpenAPI 3 specifications (by oapi-codegen)
InfluxDB – Built for High-Performance Time Series Workloads
InfluxDB 3 OSS is now GA. Transform, enrich, and act on time series data directly in the database. Automate critical tasks and eliminate the need to move data externally. Download now.
www.influxdata.com
featured
Sevalla - Deploy and host your apps and databases, now with $50 credit!
Sevalla is the PaaS you have been looking for! Advanced deployment pipelines, usage-based pricing, preview apps, templates, human support by developers, and much more!
sevalla.com
featured
openapi-mock oapi-codegen
2 75
505 7,533
0.0% 1.7%
0.0 8.9
about 1 year ago 12 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.

openapi-mock

Posts with mentions or reviews of openapi-mock. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2024-01-25.

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 2025-08-04.

What are some alternatives?

When comparing openapi-mock and oapi-codegen you can also consider the following projects:

eskimo - Eski is an undemanding mock server for developers and testers, that aims to abstract the complexities of coding a mock server into simple JSON configurations. [Moved to: https://github.com/kappasquare/eski]

ogen - OpenAPI v3 code generator for go

typed-openapi - Generate a headless Typescript API client from an OpenAPI spec - optionally with a @tanstack/react-query client using queryOptions

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

swagmock - Mock data generator for swagger api

CORS - Go net/http configurable handler to handle CORS requests

InfluxDB – Built for High-Performance Time Series Workloads
InfluxDB 3 OSS is now GA. Transform, enrich, and act on time series data directly in the database. Automate critical tasks and eliminate the need to move data externally. Download now.
www.influxdata.com
featured
Sevalla - Deploy and host your apps and databases, now with $50 credit!
Sevalla is the PaaS you have been looking for! Advanced deployment pipelines, usage-based pricing, preview apps, templates, human support by developers, and much more!
sevalla.com
featured

Did you know that Go is
the 4th most popular programming language
based on number of references?