JsonSchema.Net 7.2.2
Summary
JsonSchema.Net fully implements the JSON Schema specifications, a declarative syntax for validation and annotating JSON data.
Supported specifications:
- Draft 6 -
http://json-schema.org/draft-06/schema# - Draft 7 -
http://json-schema.org/draft-07/schema# - Draft 2019-09 -
https://json-schema.org/draft/2019-09/schema - Draft 2020-12 -
https://json-schema.org/draft/2020-12/schema
This project also operates as a test bed for features proposed for the next version ("draft/next").
Links
Usage
Parse a schema:
var schema = JsonSchema.FromText(content);
Load one from a file:
var schema = JsonSchema.FromFile(filename);
Directly deserialize it:
var schema = JsonSerializer.Deserialize<JsonSchema>(content);
Or build it explicitly in code:
var schema = new JsonSchemaBuilder()
.Comment("a comment")
.Title("A title for my schema")
.Type(SchemaValueType.Object)
.Properties(
("foo", new JsonSchemaBuilder()
.Type(SchemaValueType.String)
),
("bar", new JsonSchemaBuilder()
.Type(SchemaValueType.Number)
)
)
.Build();
Use the schema to evaluate and annotate data:
var instance = JsonNode.Parse("{\"foo\":\"a value\",\"bar\":42}");
var results = schema.Evaluate(instance);
Sponsorship
If you found this library helpful and would like to promote continued development, please consider sponsoring the maintainers.
No packages depend on JsonSchema.Net.
Release notes can be found at https://json-everything.net/json-schema
Any 0.0
- JsonPointer.Net (>= 5.0.0)
| Version | Downloads | Last updated |
|---|---|---|
| 9.7.0 | 5 | 11/15/2026 |
| 9.6.0 | 8 | 11/11/2026 |
| 9.5.0 | 5 | 10/29/2026 |
| 9.4.1 | 7 | 10/12/2026 |
| 9.4.0 | 11 | 08/04/2026 |
| 9.3.0 | 12 | 07/21/2026 |
| 9.2.2 | 17 | 06/21/2026 |
| 9.2.1 | 13 | 06/21/2026 |
| 9.2.0 | 13 | 06/20/2026 |
| 9.1.5 | 10 | 06/21/2026 |
| 9.1.4 | 9 | 06/21/2026 |
| 9.1.3 | 13 | 06/23/2026 |
| 9.1.2 | 14 | 06/21/2026 |
| 9.1.1 | 10 | 06/23/2026 |
| 9.1.0 | 11 | 06/23/2026 |
| 9.1.0-beta | 12 | 06/23/2026 |
| 9.0.0 | 6 | 06/23/2026 |
| 8.0.5 | 12 | 06/23/2026 |
| 8.0.4 | 13 | 06/23/2026 |
| 8.0.3 | 10 | 06/23/2026 |
| 8.0.2 | 12 | 06/21/2026 |
| 8.0.1 | 10 | 06/23/2026 |
| 8.0.0 | 9 | 06/23/2026 |
| 7.4.0 | 15 | 06/21/2026 |
| 7.3.4 | 14 | 06/21/2026 |
| 7.3.3 | 12 | 06/23/2026 |
| 7.3.2 | 10 | 06/21/2026 |
| 7.3.1 | 20 | 06/23/2026 |
| 7.3.0 | 14 | 06/21/2026 |
| 7.2.3 | 99 | 11/05/2024 |
| 7.2.2 | 10 | 06/23/2026 |
| 7.2.1 | 16 | 06/20/2026 |
| 7.2.0 | 15 | 06/23/2026 |
| 7.1.2 | 11 | 06/21/2026 |
| 7.1.1 | 11 | 06/23/2026 |
| 7.1.0 | 13 | 06/23/2026 |
| 7.0.4 | 17 | 06/23/2026 |
| 7.0.3 | 11 | 06/23/2026 |
| 7.0.2 | 11 | 06/21/2026 |
| 7.0.1 | 14 | 06/21/2026 |
| 7.0.0.3 | 14 | 07/09/2026 |
| 6.1.2 | 11 | 06/23/2026 |
| 6.1.1 | 14 | 06/21/2026 |
| 6.1.0.1 | 12 | 07/19/2026 |
| 6.1.0 | 17 | 06/23/2026 |
| 6.0.7 | 9 | 06/23/2026 |
| 6.0.6 | 16 | 06/21/2026 |
| 6.0.5 | 16 | 06/23/2026 |
| 6.0.4 | 7 | 06/23/2026 |
| 6.0.3 | 14 | 06/21/2026 |
| 6.0.2 | 14 | 06/21/2026 |
| 6.0.1 | 14 | 06/21/2026 |
| 6.0.0 | 12 | 06/23/2026 |
| 5.5.1 | 39 | 10/02/2024 |
| 5.5.0 | 17 | 06/21/2026 |
| 5.4.3 | 17 | 06/21/2026 |
| 5.4.2 | 11 | 06/23/2026 |
| 5.4.1 | 13 | 06/23/2026 |
| 5.4.0 | 11 | 06/23/2026 |
| 5.3.1 | 19 | 06/23/2026 |
| 5.3.0 | 6 | 06/23/2026 |
| 5.2.7 | 9 | 06/21/2026 |
| 5.2.6 | 10 | 06/23/2026 |
| 5.2.5 | 15 | 06/23/2026 |
| 5.2.4 | 22 | 06/21/2026 |
| 5.2.3 | 12 | 06/23/2026 |
| 5.2.2 | 12 | 06/21/2026 |
| 5.2.1 | 9 | 06/23/2026 |
| 5.2.0 | 14 | 06/23/2026 |
| 5.1.3 | 13 | 06/23/2026 |
| 5.1.0 | 21 | 06/21/2026 |
| 5.0.0 | 13 | 06/23/2026 |
| 4.1.8 | 10 | 06/23/2026 |
| 4.1.7 | 10 | 06/23/2026 |
| 4.1.6 | 10 | 06/21/2026 |
| 4.1.5 | 10 | 06/23/2026 |
| 4.1.4 | 11 | 06/23/2026 |
| 4.1.3 | 12 | 06/23/2026 |
| 4.1.2 | 11 | 06/23/2026 |
| 4.1.1 | 15 | 06/21/2026 |
| 4.1.0 | 9 | 06/23/2026 |
| 4.0.7 | 10 | 06/23/2026 |
| 4.0.6 | 12 | 06/23/2026 |
| 4.0.5 | 11 | 06/23/2026 |
| 4.0.4 | 11 | 06/23/2026 |
| 4.0.3 | 10 | 06/23/2026 |
| 4.0.2 | 13 | 06/23/2026 |
| 4.0.1 | 10 | 06/23/2026 |
| 4.0.0 | 12 | 06/21/2026 |
| 4.0.0-beta3 | 9 | 06/24/2026 |
| 4.0.0-beta2 | 8 | 06/24/2026 |
| 4.0.0-beta1a | 12 | 06/21/2026 |
| 3.3.2 | 13 | 06/21/2026 |
| 3.3.1 | 13 | 06/23/2026 |
| 3.3.0 | 12 | 06/23/2026 |
| 3.2.1 | 12 | 06/21/2026 |
| 3.2.0 | 13 | 06/21/2026 |
| 3.1.5 | 12 | 06/21/2026 |
| 3.1.4 | 16 | 06/23/2026 |
| 3.1.3 | 11 | 06/23/2026 |
| 3.1.2 | 13 | 06/23/2026 |
| 3.1.1 | 15 | 06/23/2026 |
| 3.1.0 | 17 | 06/20/2026 |
| 3.0.0 | 13 | 06/23/2026 |
| 2.4.0 | 13 | 06/23/2026 |
| 2.3.0 | 15 | 06/21/2026 |
| 2.2.1 | 7 | 06/21/2026 |
| 2.2.0 | 14 | 06/23/2026 |
| 2.1.2 | 11 | 06/23/2026 |
| 2.1.1 | 14 | 06/23/2026 |
| 2.1.0 | 11 | 06/23/2026 |
| 2.0.3 | 12 | 06/21/2026 |
| 2.0.2 | 11 | 06/23/2026 |
| 2.0.1 | 10 | 06/21/2026 |
| 2.0.0 | 11 | 06/23/2026 |
| 1.13.0 | 12 | 06/23/2026 |
| 1.12.0 | 14 | 06/23/2026 |
| 1.11.6 | 10 | 06/23/2026 |
| 1.11.5 | 13 | 06/23/2026 |
| 1.11.4 | 11 | 06/23/2026 |
| 1.11.3 | 7 | 06/21/2026 |
| 1.11.2 | 12 | 06/21/2026 |
| 1.11.1 | 11 | 06/21/2026 |
| 1.11.0 | 10 | 06/23/2026 |
| 1.10.8 | 11 | 06/23/2026 |
| 1.10.7 | 10 | 06/23/2026 |
| 1.10.6 | 12 | 06/23/2026 |
| 1.10.5 | 14 | 06/23/2026 |
| 1.10.4 | 10 | 06/23/2026 |
| 1.10.3 | 12 | 06/23/2026 |
| 1.10.2 | 15 | 06/23/2026 |
| 1.10.1 | 13 | 06/21/2026 |
| 1.10.0 | 12 | 06/23/2026 |
| 1.9.4 | 9 | 06/23/2026 |
| 1.9.3 | 14 | 06/21/2026 |
| 1.9.2 | 9 | 06/23/2026 |
| 1.9.1 | 12 | 06/23/2026 |
| 1.9.0 | 9 | 06/23/2026 |
| 1.8.0 | 13 | 06/21/2026 |
| 1.7.1 | 18 | 06/20/2026 |
| 1.7.0 | 11 | 06/21/2026 |
| 1.6.1 | 10 | 06/23/2026 |
| 1.6.0 | 14 | 06/21/2026 |
| 1.5.4 | 13 | 06/23/2026 |
| 1.5.3 | 11 | 06/21/2026 |
| 1.5.2 | 12 | 06/23/2026 |
| 1.5.1 | 11 | 06/21/2026 |
| 1.5.0 | 14 | 06/23/2026 |
| 1.4.0 | 11 | 06/21/2026 |
| 1.3.1 | 17 | 06/21/2026 |
| 1.3.0 | 15 | 06/23/2026 |
| 1.2.0 | 12 | 06/21/2026 |
| 1.1.0 | 13 | 06/23/2026 |
| 1.0.3 | 15 | 06/21/2026 |
| 1.0.2 | 11 | 06/21/2026 |
| 1.0.1 | 11 | 06/23/2026 |
| 1.0.0 | 16 | 06/23/2026 |
| 1.0.0-rc2 | 11 | 06/23/2026 |
| 1.0.0-rc1 | 13 | 06/21/2026 |