swaggest/jsonschema-go
JSON Schema mapping for Go
This is a tool for Go developers who work with data structures and need to ensure their data conforms to specific rules. It takes a Go struct (a defined data type) and automatically generates a JSON Schema document. This schema then precisely outlines the expected format, types, and constraints for that data, which is useful for API documentation, data validation, and clear data exchange specifications.
184 stars.
Use this if you are a Go developer building APIs or systems that exchange data, and you need to automatically generate precise, machine-readable JSON Schema definitions from your Go data structures to ensure data consistency and validate inputs/outputs.
Not ideal if you are not a Go developer or if you need to manually define JSON Schemas without relying on Go struct reflection.
Stars
184
Forks
17
Language
Go
License
MIT
Category
Last pushed
Nov 10, 2025
Commits (30d)
0
Get this data via API
curl "https://pt-edge.onrender.com/api/v1/quality/ai-coding/swaggest/jsonschema-go"
Open to everyone — 100 requests/day, no key needed. Get a free key for 1,000/day.
Higher-rated alternatives
googleapis/gapic-generator-python
Generate Python API client libraries from Protocol Buffers.
zeromicro/go-zero
A cloud-native Go microservices framework with cli tool for productivity.
omissis/go-jsonschema
A tool to generate Go data types from JSON Schema definitions.
openconfig/ygot
A YANG-centric Go toolkit - Go/Protobuf Code Generation; Validation; Marshaling/Unmarshaling
mailru/easyjson
Fast JSON serializer for golang.