go-jsonschema VS oapi-codegen

Compare go-jsonschema vs oapi-codegen and see what are their differences.

go-jsonschema

A tool to generate Go data types from JSON Schema definitions. (by omissis)

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
go-jsonschema oapi-codegen
2 65
517 5,268
- 3.3%
9.1 9.1
6 days ago 4 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.

go-jsonschema

Posts with mentions or reviews of go-jsonschema. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-11-05.
  • Building a high performance JSON parser
    19 projects | news.ycombinator.com | 5 Nov 2023
    For json schema specifically there are some tools like go-jsonschema[1] but I've never used them personally. But you can use something like ffjson[2] in go to generate a static serialize/deserialize function based on a struct definition.

    [1] https://github.com/omissis/go-jsonschema

  • JSON Schema generator
    3 projects | /r/golang | 7 Feb 2023
    What I have tried: https://github.com/atombender/go-jsonschema gave that a spin and wasn't able to generate any successful types from the few items under objects I tried.

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 go-jsonschema and oapi-codegen you can also consider the following projects:

ocsf-schema - OCSF Schema

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

ffjson - faster JSON serialization for Go

GoSwagger - Swagger 2.0 implementation for go

graphql-go-tools - GraphQL Router / API Gateway framework written in Golang, focussing on correctness, extensibility, and high-performance. Supports Federation v1 & v2, Subscriptions & more.

ogen - OpenAPI v3 code generator for go

jsoncut

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

sonic - A blazingly fast JSON serializing & deserializing library

go-oas3 - Open API v3 server code generator

muon - µON - a compact and simple binary object notation

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