You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: pages/overview/what-is-jsonschema.md
+5-4
Original file line number
Diff line number
Diff line change
@@ -3,26 +3,27 @@ section: docs
3
3
title: What is JSON Schema?
4
4
---
5
5
JSON Schema is a declarative language for annotating and validating JSON documents' structure, constraints, and data types. It provides a way to standardize and define expectations for JSON data.
6
-
<br/><br/>
7
-

6
+
<br/>
8
7
9
8
10
9
## How does JSON Schema work?
11
10
12
-
When it comes to data exchange, JSON Schema stands out as a powerful standard for defining the structure and rules of JSON data. It uses various[keywords](https://json-schema.org/learn/glossary#keyword) to define the properties of your data.
11
+
When it comes to data exchange, JSON Schema stands out as a powerful standard for defining the structure and rules of JSON data. It uses a set of[keywords](https://json-schema.org/learn/glossary#keyword) to define the properties of your data.
13
12
14
13
While JSON Schema provides the language, validating a JSON [instance](https://json-schema.org/learn/glossary#instance) against a [schema](https://json-schema.org/learn/glossary#schema) requires a JSON Schema [validator](https://json-schema.org/implementations#tools). The JSON validator checks if the JSON documents conform to the schema.
15
14
16
15
JSON validators are open-source and commercial tools that implement the JSON Schema specification. They make it very easy to integrate JSON Schema into projects of any size.
17
16
17
+

18
+
18
19
## Benefits of JSON Schema for Developers
19
20
20
21
JSON Schema empowers developers in the following ways:
21
22
22
23
***Structured Data Description**: JSON Schema allows developers to describe the structure, constraints, and data types of existing JSON formats.
23
24
***Rule Definition and Enforcement**: By adhering to JSON schema constraints, it becomes easier to exchange structured data between applications as it maintains a consistent pattern.
24
25
***Produce clear documentation**: JSON Schema supports the creation of machine and human readable documentation.
25
-
***Extensibility:** JSON Schema offers high adaptability to developers' needs. Custom keywords, formats, and validation rules can be created to tailor schemas according to specific requirements..
26
+
***Extensibility:** JSON Schema offers high adaptability to developers' needs. Custom keywords, formats, and validation rules can be created to tailor schemas according to specific requirements.
26
27
***Data Validation:** JSON Schema ensures data validity through:
27
28
* Automated Testing: Validation enables automated testing, ensuring data consistently complies with specified rules and constraints.
28
29
* Improved Data Quality: By enforcing validation rules, JSON Schema aids in maintaining the quality of client-submitted data, reducing inconsistencies, errors, and potential security vulnerabilities.
0 commit comments