# xeipuuv/gojsonschema

An implementation of JSON Schema, draft v4 v6 & v7 - Go language

Repository: https://github.com/xeipuuv/gojsonschema
Canonical: https://ross.abutalabs.com/products/gojsonschema
Language: Go
License Family: other
Last push: 2024-06-28T22:32:47+00:00

## Health v2 (maintenance only)
Score: 23/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 0, release rhythm 8, longevity 100
- inputs: {"age_days": 4936, "days_push": 796, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_license
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 2737, forks 374 (observed 2026-08-28T04:07:16.355984+00:00)

## What it is
A Go library implementing JSON Schema validation for draft-04, draft-06, and draft-07. It loads schemas and documents from files, URLs, strings, or Go types and reports detailed validation errors.

## Use cases
- validate  documents against a schema in go
- check api request payloads match a  schema
- validate config files against a  schema
- load  schema from url or file and validate
- get detailed  schema validation errors

## When to choose
- you need JSON Schema draft-04/06/07 validation in a Go project
- you want flexible loaders for JSON from files, HTTP, strings, or Go structs
- you need detailed per-error validation reporting

## When to avoid
- you need newer drafts like 2019-09 or 2020-12
- you need a maintained library with an explicit license
- you are not working in Go

## Facets
- artifact type: library
- maturity: maintenance
- function: parser, developer-tools
- domain: developer-tools, apis, backend
- platform: go, cross-platform
- tags: -schema, validation, draft-04, draft-06, draft-07

## Member repositories
- xeipuuv/gojsonschema (main) score 23

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:07:16.355984+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T02:14:16.312739+00:00, confidence not recorded.
  - readme: https://github.com/xeipuuv/gojsonschema (fetched 2026-08-28T04:07:16.355984+00:00, sha 8d4015b57804)
- Data as of 2026-08-30T08:39:29.467469+00:00.
