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
10
JsonSchema.Net.Generation
Extends JsonSchema.Net to provide schema generation functionality.
6
JsonSchema.Net.Generation
Extends JsonSchema.Net to provide schema generation functionality. Read the full documentation at https://docs.json-everything.net/schema/schema-generation/.
6
JsonSchema.Net.Generation
Extends JsonSchema.Net to provide schema generation functionality
6
JsonSchema.Net.Generation
Extends JsonSchema.Net to provide schema generation functionality
5
JsonSchema.Net.Generation
Extends JsonSchema.Net to provide schema generation functionality.
5
JsonSchema.Net.Generation
Extends JsonSchema.Net to provide schema generation functionality. Read the full documentation at https://docs.json-everything.net/schema/schema-generation/.
4
JsonSchema.Net.Generation
Extends JsonSchema.Net to provide schema generation functionality.
4
JsonSchema.Net.Generation
Extends JsonSchema.Net to provide schema generation functionality
4

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

Any 0.0

Version Downloads Last updated
8.0.5 5 12/29/2025
8.0.4 9 12/18/2025
8.0.3 8 12/14/2025
8.0.2 8 12/12/2025
8.0.1 9 12/10/2025
8.0.0 8 12/10/2025
7.4.0 2 12/10/2025
7.3.4 2 01/02/2026
7.3.3 4 12/12/2025
7.3.2 4 12/13/2025
7.3.1 2 12/14/2025
7.3.0 3 12/13/2025
7.2.3 4 12/13/2025
7.2.2 3 12/11/2025
7.2.1 2 12/13/2025
7.2.0 3 12/13/2025
7.1.2 3 12/14/2025
7.1.1 6 12/13/2025
7.1.0 3 12/10/2025
7.0.4 7 12/10/2025
7.0.3 3 12/15/2025
7.0.2 2 12/13/2025
7.0.1 3 12/13/2025
7.0.0.3 6 12/09/2025
7.0.0 2 12/17/2025
6.1.2 3 12/11/2025
6.1.1 2 12/19/2025
6.1.0.1 3 12/11/2025
6.1.0 4 12/13/2025
6.0.7 2 01/02/2026
6.0.6 4 12/10/2025
6.0.5 6 12/15/2025
6.0.4 2 12/09/2025
6.0.3 4 12/29/2025
6.0.2 2 12/15/2025
6.0.1 5 12/10/2025
6.0.0 1 12/27/2025
5.5.1 3 12/14/2025
5.5.0 1 12/10/2025
5.4.3 4 12/10/2025
5.4.2 3 12/10/2025
5.4.1 2 01/01/2026
5.4.0 1 01/01/2026
5.3.1 5 12/13/2025
5.3.0 1 12/19/2025
5.2.7 3 12/11/2025
5.2.6 4 12/13/2025
5.2.5 2 01/01/2026
5.2.4 4 12/13/2025
5.2.3 2 12/13/2025
5.2.2 1 12/14/2025
5.2.1 3 12/14/2025
5.2.0 3 12/13/2025
5.1.3 3 12/13/2025
5.1.0 1 12/10/2025
5.0.0 3 12/28/2025
4.1.8 2 12/13/2025
4.1.7 2 12/14/2025
4.1.6 4 12/13/2025
4.1.5 4 12/13/2025
4.1.4 2 12/12/2025
4.1.3 5 12/13/2025
4.1.2 6 12/12/2025
4.1.1 2 12/19/2025
4.1.0 4 12/10/2025
4.0.7 2 12/14/2025
4.0.6 2 12/13/2025
4.0.5 2 12/13/2025
4.0.4 2 12/09/2025
4.0.3 2 12/15/2025
4.0.2 5 12/12/2025
4.0.1 3 12/13/2025
4.0.0 5 12/15/2025
4.0.0-beta3 6 12/10/2025
4.0.0-beta2 2 12/13/2025
4.0.0-beta1a 2 12/12/2025
3.3.2 2 12/13/2025
3.3.1 3 12/14/2025
3.3.0 3 12/13/2025
3.2.1 3 12/13/2025
3.2.0 2 12/13/2025
3.1.5 2 12/14/2025
3.1.4 2 12/14/2025
3.1.3 4 12/14/2025
3.1.2 3 12/11/2025
3.1.1 4 12/13/2025
3.1.0 5 12/15/2025
3.0.0 7 12/11/2025
2.4.0 3 12/25/2025
2.3.0 1 12/14/2025
2.2.1 6 12/10/2025
2.2.0 2 01/01/2026
2.1.2 3 12/16/2025
2.1.1 4 12/11/2025
2.1.0 1 01/01/2026
2.0.3 3 12/12/2025
2.0.2 1 01/01/2026
2.0.1 1 01/01/2026
2.0.0 1 01/02/2026
1.13.0 4 12/14/2025
1.12.0 4 12/11/2025
1.11.6 2 12/10/2025
1.11.5 2 12/21/2025
1.11.4 2 12/14/2025
1.11.3 3 12/13/2025
1.11.2 6 12/14/2025
1.11.1 3 12/13/2025
1.11.0 2 01/01/2026
1.10.8 4 12/13/2025
1.10.7 2 12/28/2025
1.10.6 4 12/15/2025
1.10.5 3 12/13/2025
1.10.4 5 12/13/2025
1.10.3 4 12/14/2025
1.10.2 1 01/01/2026
1.10.1 4 12/13/2025
1.10.0 3 12/13/2025
1.9.4 2 01/01/2026
1.9.3 1 01/02/2026
1.9.2 1 01/01/2026
1.9.1 2 12/14/2025
1.9.0 4 12/13/2025
1.8.0 2 12/14/2025
1.7.1 4 12/13/2025
1.7.0 2 12/13/2025
1.6.1 2 12/13/2025
1.6.0 2 12/12/2025
1.5.4 3 12/14/2025
1.5.3 2 12/13/2025
1.5.2 3 01/01/2026
1.5.1 1 01/01/2026
1.5.0 4 12/14/2025
1.4.0 3 12/13/2025
1.3.1 5 12/22/2025
1.3.0 3 12/13/2025
1.2.0 1 12/14/2025
1.1.0 2 12/13/2025
1.0.3 3 12/17/2025
1.0.2 3 12/12/2025
1.0.1 2 12/13/2025
1.0.0 2 12/25/2025
1.0.0-rc2 2 01/02/2026
1.0.0-rc1 3 12/13/2025