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.
126
JsonSchema.Net.Generation
Extends JsonSchema.Net to provide schema generation functionality.
62
JsonSchema.Net.Generation
Extends JsonSchema.Net to provide schema generation functionality.
51
JsonSchema.Net.Generation
Extends JsonSchema.Net to provide schema generation functionality.
49
JsonSchema.Net.Generation
Extends JsonSchema.Net to provide schema generation functionality.
48
JsonSchema.Net.Generation
Extends JsonSchema.Net to provide schema generation functionality.
47
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. Read the full documentation at https://docs.json-everything.net/schema/schema-generation/.
45
JsonSchema.Net.Generation
Extends JsonSchema.Net to provide schema generation functionality.
44
JsonSchema.Net.Generation
Extends JsonSchema.Net to provide schema generation functionality.
43
JsonSchema.Net.Generation
Extends JsonSchema.Net to provide schema generation functionality. Read the full documentation at https://docs.json-everything.net/schema/schema-generation/.
43
JsonSchema.Net.Generation
Extends JsonSchema.Net to provide schema generation functionality. Read the full documentation at https://docs.json-everything.net/schema/schema-generation/.
42
JsonSchema.Net.Generation
Extends JsonSchema.Net to provide schema generation functionality.
41
JsonSchema.Net.Generation
Extends JsonSchema.Net to provide schema generation functionality.
40

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

Any 0.0

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