omissis / go-jsonschema
github.com/omissis/go-jsonschemaIndexed at 5c08d7eUp to date with upstream
What is go-jsonschema?
go-jsonschema is a tool for generating Go data types and structs from JSON Schema definitions. It also generates unmarshalling code that validates JSON input against the schema's validation rules. go-jsonschema is written in Go.
Written by a model from the README and the source
Code health
Health scores land with the first index: complexity, duplication, coverage, churn and ownership across every file.
Use omissis/go-jsonschema in your agent
Point Claude Code, Cursor, Codex or VS Code at this repository. Your agent gets the index this page is built from: cited answers, callers, history and health for any file.
- 1.In Claude, open Customize → Connectors, click +, then Add custom connector. On a Team or Enterprise plan an owner adds it first under Organization settings → Connectors.
- 2.Paste the server URL below as the Remote MCP server URL, then click Add.
- 3.Click Connect. A Repowise sign-in window opens. Approve access.
- 4.Repowise's tools are now available in your Claude chats.
Connect with one click. Sign in with Repowise (OAuth), no API key to copy. Works in Claude on the web, desktop, and mobile.
Docshttps://api.repowise.dev/mcp/omissis/go-jsonschema
This repo is public, so anyone with a Repowise account and an API key can connect.
Try asking
- get_overview()
- get_answer("how is go-jsonschema put together?")
- get_why("why is go-jsonschema structured this way?")
Explore go-jsonschema
- DocumentationModule-by-module documentation, written from the source.
- ArchitectureDependency graph, layers and third-party dependencies.
- Code healthEvery file's score and the findings behind it.
- CommitsEach commit's effect on code health.
- OverviewEverything else the index found: contributors, decisions, what changed this week.
Key features of go-jsonschema
- go-jsonschema generates Go data types and structs corresponding to JSON Schema definitions.
- go-jsonschema generates unmarshalling code that validates input JSON according to schema validation rules.
- go-jsonschema can generate code for multiple schemas in one run and write output to different files inside different packages.
- go-jsonschema supports references against top-level names in the same schema and in external files.
- go-jsonschema provides SerializableDate and SerializableTime types for JSON serialization and deserialization.
- go-jsonschema supports validation features including enum, type, numeric constraints, string constraints, array constraints, required properties, properties, and dates and times.
How omissis/go-jsonschema works
Schema files enter through the go-jsonschema command, which can process one or more JSON Schema definitions in a run. The generator creates Go source code for the schema's data types and structs, then emits unmarshalling code for validating JSON input. Generated output can be written to standard output or mapped to files and packages with schema package and schema output options. The pkg directory holds the library code, while the internal directory contains internal implementation code. The tests directory contains test files and golden files used to check generated output, and the scripts directory contains project scripts.
Getting started with go-jsonschema
- Generate Go source for schema.json under package main.
go-jsonschema -p main schema.json
Commands copied from the README
omissis/go-jsonschema FAQ
What is go-jsonschema?
go-jsonschema is a tool that generates Go data types, structs, and validating unmarshalling code from JSON Schema definitions.
How does go-jsonschema work?
go-jsonschema reads JSON Schema files and writes generated Go source to standard output or configured files and packages. The generated unmarshalling code validates JSON input against schema rules.
How do I install go-jsonschema?
go-jsonschema can be installed from source with Go 1.25 or later using go get and go install. It can also be installed with Homebrew.
What language is go-jsonschema written in?
go-jsonschema is written in Go.
How is the go-jsonschema code organized?
go-jsonschema organizes library code in pkg and internal implementation code in internal. Tests and golden files are in tests, and project scripts are in scripts.
Who is go-jsonschema for?
go-jsonschema is for developers who need Go data types and validating unmarshalling code generated from JSON Schema definitions.
What license does go-jsonschema use?
go-jsonschema uses the MIT license.
The summary, features and answers on this page are written by a model from the README and the source, and refreshed with each index.
About this page
Get a page like this for your own codebase
Repowise built this map of omissis/go-jsonschema from its source and git history. It parses every symbol, draws the dependency graph, scores each file's health from complexity, duplication, coverage and churn, finds hotspots and owners in the history, and writes documentation for every module. Your coding agent reads the same index over MCP, so its answers cite real files.
Prefer local? pip install repowise && repowise init indexes your own checkout, no account needed.
Maintain omissis/go-jsonschema?
Claim this page, add a badge to the README, or re-index it.
Claim this page
Sign in with GitHub and we check that you are an admin or maintainer of omissis/go-jsonschema. Then add a badge to the README that links readers here.
Add a badge to your README
Every badge is public, cached, and updates on its own after every index. Nothing to install.
Repowise badge
Links to this page, with no score on it. Adding it also re-indexes the repo every week.
[](https://repowise.dev/repo/omissis/go-jsonschema?src=badge_wiki)Code health badge
The repo's health score out of 10, from the latest index.
[](https://repowise.dev/repo/omissis/go-jsonschema?src=badge_health)Code health card
A larger card with the score, its change since the last index, and when it was measured. The HTML version follows the reader's light or dark theme.
[](https://repowise.dev/repo/omissis/go-jsonschema?src=badge_card)