# RicoSuter/NJsonSchema

JSON Schema reader, generator and validator for .NET

Repository: https://github.com/RicoSuter/NJsonSchema
Canonical: https://ross.abutalabs.com/products/njsonschema
Homepage: http://NJsonSchema.org
Language: C#
License: MIT
License Family: permissive
Last push: 2026-06-20T17:24:21+00:00

## Health v2 (maintenance only)
Score: 83/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 88, release rhythm 68, longevity 100
- inputs: {"age_days": 4285, "days_push": 74, "days_rel": 135, "gap_med": 32.5, "n_releases_24m": 11}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1583, forks 550 (observed 2026-08-28T04:05:07.244233+00:00)

## What it is
NJsonSchema is a .NET library for reading, generating, and validating JSON Schema draft v4+ documents. It can generate schemas from .NET classes and generate C# or TypeScript code from schemas.

## Use cases
- validate  payloads against a  schema in .net
- generate  schema from c# classes
- generate c# classes from a  schema
- generate typescript interfaces from a  schema
- read and write  schemas from yaml

## When to choose
- you need  schema support in a .NET application
- you want bidirectional mapping between .NET types and JSON Schema
- you need C# or TypeScript code generation from schemas

## When to avoid
- you work outside the .NET ecosystem
- you need full support for the latest JSON Schema draft features beyond v4+

## Facets
- artifact type: library
- maturity: stable
- function: serialization, parser, form-handling
- domain: developer-tools, apis, files
- platform: dotnet, cross-platform
- tags: -schema, csharp, typescript-codegen, yaml, schema-validation, code-generation

## Member repositories
- RicoSuter/NJsonSchema (main) score 83

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:05:07.244233+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-30T03:55:59.762515+00:00, confidence not recorded.
  - readme: https://github.com/RicoSuter/NJsonSchema (fetched 2026-08-28T04:05:07.244233+00:00, sha 0156b044ce12)
- Data as of 2026-08-30T08:39:29.467469+00:00.
