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.
131
JsonSchema.Net.Generation
Extends JsonSchema.Net to provide schema generation functionality.
70
JsonSchema.Net.Generation
Extends JsonSchema.Net to provide schema generation functionality.
61
JsonSchema.Net.Generation
Extends JsonSchema.Net to provide schema generation functionality.
57
JsonSchema.Net.Generation
Extends JsonSchema.Net to provide schema generation functionality.
56
JsonSchema.Net.Generation
Extends JsonSchema.Net to provide schema generation functionality.
54
JsonSchema.Net.Generation
Extends JsonSchema.Net to provide schema generation functionality.
53
JsonSchema.Net.Generation
Extends JsonSchema.Net to provide schema generation functionality. Read the full documentation at https://docs.json-everything.net/schema/schema-generation/.
53
JsonSchema.Net.Generation
Extends JsonSchema.Net to provide schema generation functionality.
52
JsonSchema.Net.Generation
Extends JsonSchema.Net to provide schema generation functionality. Read the full documentation at https://docs.json-everything.net/schema/schema-generation/.
52
JsonSchema.Net.Generation
Extends JsonSchema.Net to provide schema generation functionality.
51
JsonSchema.Net.Generation
Extends JsonSchema.Net to provide schema generation functionality.
49

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

Any 0.0

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