JsonSchema.Net 7.0.0.3

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").

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);

Showing the top 20 packages that depend on JsonSchema.Net.

Packages Downloads
JsonSchema.Net.Generation
Extends JsonSchema.Net to provide schema generation functionality
46
JsonSchema.Net.Generation
Extends JsonSchema.Net to provide schema generation functionality
45
JsonSchema.Net.Generation
Extends JsonSchema.Net to provide schema generation functionality
44
JsonSchema.Net.Generation
Extends JsonSchema.Net to provide schema generation functionality
42
JsonSchema.Net.Generation
Extends JsonSchema.Net to provide schema generation functionality.
41
JsonSchema.Net.Generation
Extends JsonSchema.Net to provide schema generation functionality
39
JsonSchema.Net.Generation
Extends JsonSchema.Net to provide schema generation functionality
38
JsonSchema.Net.Generation
Extends JsonSchema.Net to provide schema generation functionality. Read the full documentation at https://docs.json-everything.net/schema/schema-generation/.
36
JsonSchema.Net.Generation
Extends JsonSchema.Net to provide schema generation functionality.
36
JsonSchema.Net.Generation
Extends JsonSchema.Net to provide schema generation functionality
36
JsonSchema.Net.Generation
Extends JsonSchema.Net to provide schema generation functionality.
35
JsonSchema.Net.Generation
Extends JsonSchema.Net to provide schema generation functionality
35
JsonSchema.Net.Generation
Extends JsonSchema.Net to provide schema generation functionality. Read the full documentation at https://docs.json-everything.net/schema/schema-generation/.
34
JsonSchema.Net.Generation
Extends JsonSchema.Net to provide schema generation functionality
34

Release notes can be found at https://json-everything.net/json-schema

Any 0.0

Version Downloads Last updated
9.4.0 14 07/27/2026
9.3.0 14 07/20/2026
9.2.2 18 06/14/2026
9.2.1 23 05/18/2026
9.2.0 37 04/15/2026
9.1.5 35 04/15/2026
9.1.4 31 04/04/2026
9.1.3 39 03/15/2026
9.1.2 37 03/12/2026
9.1.1 41 02/24/2026
9.1.0 39 02/12/2026
9.1.0-beta 40 02/12/2026
9.0.0 38 02/01/2026
8.0.5 43 12/29/2025
8.0.4 45 12/18/2025
8.0.3 40 12/14/2025
8.0.2 38 12/12/2025
8.0.1 47 12/10/2025
8.0.0 42 12/10/2025
7.4.0 44 12/10/2025
7.3.4 31 01/02/2026
7.3.3 40 12/12/2025
7.3.2 35 12/13/2025
7.3.1 32 12/14/2025
7.3.0 37 12/13/2025
7.2.3 29 12/13/2025
7.2.2 29 12/11/2025
7.2.1 32 12/13/2025
7.2.0 30 12/13/2025
7.1.2 23 12/14/2025
7.1.1 36 12/13/2025
7.1.0 29 12/10/2025
7.0.4 38 12/10/2025
7.0.3 39 12/15/2025
7.0.2 23 12/13/2025
7.0.1 32 12/13/2025
7.0.0.3 32 12/09/2025
7.0.0 31 12/17/2025
6.1.2 23 12/11/2025
6.1.1 33 12/19/2025
6.1.0.1 35 12/11/2025
6.1.0 34 12/13/2025
6.0.7 31 01/02/2026
6.0.6 33 12/10/2025
6.0.5 23 12/15/2025
6.0.4 37 12/09/2025
6.0.3 33 12/29/2025
6.0.2 36 12/15/2025
6.0.1 30 12/10/2025
6.0.0 27 12/27/2025
5.5.1 33 12/14/2025
5.5.0 32 12/10/2025
5.4.3 37 12/10/2025
5.4.2 30 12/10/2025
5.4.1 32 01/01/2026
5.4.0 29 01/01/2026
5.3.1 30 12/13/2025
5.3.0 27 12/19/2025
5.2.7 35 12/11/2025
5.2.6 34 12/13/2025
5.2.5 31 01/01/2026
5.2.4 33 12/13/2025
5.2.3 34 12/13/2025
5.2.2 28 12/14/2025
5.2.1 30 12/14/2025
5.2.0 36 12/13/2025
5.1.3 32 12/13/2025
5.1.0 28 12/10/2025
5.0.0 29 12/28/2025
4.1.8 32 12/13/2025
4.1.7 29 12/14/2025
4.1.6 31 12/13/2025
4.1.5 33 12/13/2025
4.1.4 31 12/12/2025
4.1.3 41 12/13/2025
4.1.2 38 12/12/2025
4.1.1 34 12/19/2025
4.1.0 35 12/10/2025
4.0.7 30 12/14/2025
4.0.6 34 12/13/2025
4.0.5 33 12/13/2025
4.0.4 38 12/09/2025
4.0.3 28 12/15/2025
4.0.2 32 12/12/2025
4.0.1 21 12/13/2025
4.0.0 38 12/15/2025
4.0.0-beta3 31 12/10/2025
4.0.0-beta2 27 12/13/2025
4.0.0-beta1a 32 12/12/2025
3.3.2 34 12/13/2025
3.3.1 28 12/14/2025
3.3.0 27 12/13/2025
3.2.1 30 12/13/2025
3.2.0 25 12/13/2025
3.1.5 31 12/14/2025
3.1.4 19 12/14/2025
3.1.3 31 12/14/2025
3.1.2 33 12/11/2025
3.1.1 33 12/13/2025
3.1.0 32 12/15/2025
3.0.0 33 12/11/2025
2.4.0 30 12/25/2025
2.3.0 23 12/14/2025
2.2.1 25 12/10/2025
2.2.0 20 01/01/2026
2.1.2 29 12/16/2025
2.1.1 30 12/11/2025
2.1.0 28 01/01/2026
2.0.3 25 12/12/2025
2.0.2 28 01/01/2026
2.0.1 27 01/01/2026
2.0.0 26 01/02/2026
1.13.0 33 12/14/2025
1.12.0 28 12/11/2025
1.11.6 26 12/10/2025
1.11.5 35 12/21/2025
1.11.4 23 12/14/2025
1.11.3 35 12/13/2025
1.11.2 31 12/14/2025
1.11.1 31 12/13/2025
1.11.0 29 01/01/2026
1.10.8 37 12/13/2025
1.10.7 30 12/28/2025
1.10.6 32 12/15/2025
1.10.5 28 12/13/2025
1.10.4 35 12/13/2025
1.10.3 33 12/14/2025
1.10.2 31 01/01/2026
1.10.1 30 12/13/2025
1.10.0 31 12/13/2025
1.9.4 29 01/01/2026
1.9.3 35 01/02/2026
1.9.2 29 01/01/2026
1.9.1 28 12/14/2025
1.9.0 32 12/13/2025
1.8.0 31 12/14/2025
1.7.1 30 12/13/2025
1.7.0 31 12/13/2025
1.6.1 27 12/13/2025
1.6.0 35 12/12/2025
1.5.4 30 12/14/2025
1.5.3 30 12/13/2025
1.5.2 39 01/01/2026
1.5.1 25 01/01/2026
1.5.0 34 12/14/2025
1.4.0 30 12/13/2025
1.3.1 29 12/22/2025
1.3.0 29 12/13/2025
1.2.0 25 12/14/2025
1.1.0 28 12/13/2025
1.0.3 31 12/17/2025
1.0.2 33 12/12/2025
1.0.1 33 12/13/2025
1.0.0 29 12/25/2025
1.0.0-rc2 31 01/02/2026
1.0.0-rc1 24 12/13/2025