# santhosh-tekuri/jsonschema

JSONSchema (draft 2020-12, draft 2019-09, draft-7, draft-6, draft-4) Validation using Go

Repository: https://github.com/santhosh-tekuri/jsonschema
Canonical: https://ross.abutalabs.com/products/santhosh-tekuri-jsonschema
Language: Go
License: Apache-2.0
License Family: permissive
Topics: golang, json-schema, jsonschema, validator, golang-library, go, draft4, draft6, draft7, draft2019-09, json, validation, draft2020-12
Last push: 2026-08-06T09:23:44+00:00

## Health v2 (maintenance only)
Score: 86/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 96, release rhythm 64, longevity 100
- inputs: {"age_days": 3403, "days_push": 27, "days_rel": 27, "gap_med": 439, "n_releases_24m": 2}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1262, forks 132 (observed 2026-08-28T04:04:10.299266+00:00)

## What it is
A Go library for validating JSON documents against JSON Schema, supporting drafts 4, 6, 7, 2019-09, and 2020-12 with full test-suite compliance. It offers extensible vocabularies, custom formats, content assertions, introspectable hierarchical errors, and infinite-loop detection.

## Use cases
- validate  payloads against a  schema in go
- check api request bodies conform to a schema
- validate config files with draft 2020-12 schemas
- register custom formats and vocabularies for schema validation
- get detailed structured validation errors for debugging
- validate base64-encoded or  content assertions

## When to choose
- you need a spec-compliant JSON Schema validator in Go across multiple drafts
- you need custom vocabularies, formats, or regex engines
- you need introspectable, hierarchical validation error output

## When to avoid
- you need schema validation in a language other than Go
- you need JSON Schema code generation rather than runtime validation

## Facets
- artifact type: library
- maturity: stable
- function: serialization, developer-tools
- domain: developer-tools, apis
- platform: go
- tags: -schema, validation, -schema-validator, draft-2020-12, draft-2019-09, draft-7, data-engineering

## Member repositories
- santhosh-tekuri/jsonschema (main) score 86

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:04:10.299266+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-30T05:04:15.081199+00:00, confidence not recorded.
  - readme: https://github.com/santhosh-tekuri/jsonschema (fetched 2026-08-28T04:04:10.299266+00:00, sha c833bb774a53)
- Data as of 2026-08-30T08:39:29.467469+00:00.
