Skip to content

Commit e0edfbc

Browse files
committed
Update project name to JSchema
1 parent 8fff9b9 commit e0edfbc

File tree

31 files changed

+397
-397
lines changed

31 files changed

+397
-397
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ Let's explore an example of our schema for a typical JSON API response containin
3737
}
3838
}
3939
```
40-
In the above example, two types of constraints are used: constraint functions (also referred to as validation functions, such as `@range(1, 10000)`) and constraint data types (also referred to as validation data types, such as `#integer`). All constraint functions begin with the `@` symbol, while all constraint data types start with `#`. C-style comments are also supported within the schema. In this example, `address` can be `null` (like an optional input for users) and if it is `null` then no constraints of `address` are applicable. The following JSON is one of the examples that will be successfully validated against the above schema. To start your journey with the JSON validation library, please consult the documentation available [here](https://relogiclabs.github.io/JsonSchema-Java/articles/intro).
40+
In the above example, two types of constraints are used: constraint functions (also referred to as validation functions, such as `@range(1, 10000)`) and constraint data types (also referred to as validation data types, such as `#integer`). All constraint functions begin with the `@` symbol, while all constraint data types start with `#`. C-style comments are also supported within the schema. In this example, `address` can be `null` (like an optional input for users) and if it is `null` then no constraints of `address` are applicable. The following JSON is one of the examples that will be successfully validated against the above schema. To start your journey with the JSON validation library, please consult the documentation available [here](https://relogiclabs.github.io/JSchema-Java/articles/intro).
4141
```json
4242
{
4343
"user": {
@@ -63,7 +63,7 @@ In the above example, two types of constraints are used: constraint functions (a
6363
}
6464
```
6565
## Extended Example
66-
The next example represents an expanded version of the previous one, which brings more complexity. To effectively construct such schemas with multiple layers of nested structures, it's beneficial to have a fundamental understanding of this schema format. While the syntax may seem difficult at first, it becomes straightforward once you have a basic understanding of it. For more detailed information, reference documentation is available [here](https://relogiclabs.github.io/JsonSchema-Java/articles/intro).
66+
The next example represents an expanded version of the previous one, which brings more complexity. To effectively construct such schemas with multiple layers of nested structures, it's beneficial to have a fundamental understanding of this schema format. While the syntax may seem difficult at first, it becomes straightforward once you have a basic understanding of it. For more detailed information, reference documentation is available [here](https://relogiclabs.github.io/JSchema-Java/articles/intro).
6767
```cpp
6868
%title: "Extended User Profile Dashboard API Response"
6969
%version: 2.0.0
@@ -224,4 +224,4 @@ The subsequent JSON sample is an illustrative example that successfully validate
224224
}
225225
}
226226
```
227-
For more information about the schema syntax format and library functionalities, please refer to the reference documentation [here](https://relogiclabs.github.io/JsonSchema-Java/api/index.html).
227+
For more information about the schema syntax format and library functionalities, please refer to the reference documentation [here](https://relogiclabs.github.io/JSchema-Java/api/index.html).

doc/content/_index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,5 @@ date = 2023-10-08T09:38:53+06:00
77
The New JSON Schema prioritizes simplicity, conciseness, and readability, making it user-friendly and accessible without the need for extensive prior knowledge. It offers efficient read-write facilities, precise JSON document definition through various data types and functions, and extensibility to meet modern web service diverse requirements. For a comprehensive overview of this JSON Schema, we invite you to explore our dedicated post available [here](https://www.relogiclabs.com/p/json-schema.html).
88

99
<div class="banner-image">
10-
<img src="/JsonSchema-Java/images/json-schema.webp" alt="New Json Schema">
10+
<img src="/JSchema-Java/images/json-schema.webp" alt="New Json Schema">
1111
</div>

doc/content/articles/datatypes.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,13 +80,13 @@ The date-time data type serves as the parent data type for both date and time ty
8080
```
8181

8282
### The Date Data Type
83-
The date data type accepts a string representation of a date, conforming to the ISO 8601 standard (date part only). This is the default configuration, which can be modified using the directive described [here](/JsonSchema-Java/articles/directives). It is a subtype of date-time type and thus also formatted as per the JSON string specification. Detailed explanations of the ISO 8601 standard can be found in this [document](https://www.iso.org/iso-8601-date-and-time-format.html). Furthermore, you can refer to this [document](/JsonSchema-Java/articles/datetime) for a detailed description of the date pattern associated with this data type. To define this data type in schema, use the following syntax:
83+
The date data type accepts a string representation of a date, conforming to the ISO 8601 standard (date part only). This is the default configuration, which can be modified using the directive described [here](/JSchema-Java/articles/directives). It is a subtype of date-time type and thus also formatted as per the JSON string specification. Detailed explanations of the ISO 8601 standard can be found in this [document](https://www.iso.org/iso-8601-date-and-time-format.html). Furthermore, you can refer to this [document](/JSchema-Java/articles/datetime) for a detailed description of the date pattern associated with this data type. To define this data type in schema, use the following syntax:
8484
```html
8585
#date
8686
```
8787

8888
### The Time Data Type
89-
The time data type accepts a string representation of a time (including both date and time parts), in accordance with the ISO 8601 standard. This default configuration can be modified using the directive described [here](/JsonSchema-Java/articles/directives). Similar to the date data type, it is a subtype of date-time data type and thus also formatted as per the JSON string specification. Here is the ISO 8601 standard [document](https://www.iso.org/iso-8601-date-and-time-format.html), which contains detailed explanations. Furthermore, you can refer to this [document](/JsonSchema-Java/articles/datetime) for a detailed description of the date-time pattern associated with this data type. To define this data type in schema, use the following syntax:
89+
The time data type accepts a string representation of a time (including both date and time parts), in accordance with the ISO 8601 standard. This default configuration can be modified using the directive described [here](/JSchema-Java/articles/directives). Similar to the date data type, it is a subtype of date-time data type and thus also formatted as per the JSON string specification. Here is the ISO 8601 standard [document](https://www.iso.org/iso-8601-date-and-time-format.html), which contains detailed explanations. Furthermore, you can refer to this [document](/JSchema-Java/articles/datetime) for a detailed description of the date-time pattern associated with this data type. To define this data type in schema, use the following syntax:
9090
```html
9191
#time
9292
```

doc/content/articles/directives.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,13 +43,13 @@ The default value of this directive is `false`, which means that by default, und
4343
```
4444

4545
### Date Data Type Format
46-
The `DateDataTypeFormat` pragma directive enables you to customize the default format of the `#date` data type. By default, the `#date` data type follows the ISO 8601 standard, precisely using the format `YYYY-MM-DD`. Additional details on date-time patterns and formats are available [here](/JsonSchema-Java/articles/datetime). The subsequent example illustrates the process of defining a customized date format for the `#date` data type:
46+
The `DateDataTypeFormat` pragma directive enables you to customize the default format of the `#date` data type. By default, the `#date` data type follows the ISO 8601 standard, precisely using the format `YYYY-MM-DD`. Additional details on date-time patterns and formats are available [here](/JSchema-Java/articles/datetime). The subsequent example illustrates the process of defining a customized date format for the `#date` data type:
4747
```js
4848
%pragma DateDataTypeFormat: "DD-MM-YYYY"
4949
```
5050

5151
### Time Data Type Format
52-
To customize the default format of the `#time` data type, utilize the `TimeDataTypeFormat` pragma directive. By default, the `#time` data type follows the ISO 8601 standard, precisely in the format `YYYY-MM-DD'T'hh:mm:ss.FZZ`. Further information on date-time patterns and formats can be found [here](/JsonSchema-Java/articles/datetime). The following example demonstrates how to specify a customized time format for the `#time` data type:
52+
To customize the default format of the `#time` data type, utilize the `TimeDataTypeFormat` pragma directive. By default, the `#time` data type follows the ISO 8601 standard, precisely in the format `YYYY-MM-DD'T'hh:mm:ss.FZZ`. Further information on date-time patterns and formats can be found [here](/JSchema-Java/articles/datetime). The following example demonstrates how to specify a customized time format for the `#time` data type:
5353
```js
5454
%pragma TimeDataTypeFormat: "DD-MM-YYYY hh:mm:ss"
5555
```
@@ -69,7 +69,7 @@ The `IgnoreObjectPropertyOrder` pragma directive provides a means to enforce a s
6969
## Definition / Define Directive
7070
This feature in JSON schemas allows you to define a name for a component or fragment of schema or validation rules, which can be referenced from various parts of your schema. This means that if you encounter similar validation requirements in different sections of your schema, you can conveniently refer to the named component instead of duplicating the same validation rules.
7171

72-
By providing clear and descriptive names for these validation rules or sub-schemas, you can enhance the overall clarity and context of your schema. This clarity not only makes it easier to understand the structure and intent of the schema but also contributes to keeping your complex schema well-organized, concise, and more manageable. For more information about the schema component syntax and format, please refer to the documentation [here](/JsonSchema-Java/articles/components).
72+
By providing clear and descriptive names for these validation rules or sub-schemas, you can enhance the overall clarity and context of your schema. This clarity not only makes it easier to understand the structure and intent of the schema but also contributes to keeping your complex schema well-organized, concise, and more manageable. For more information about the schema component syntax and format, please refer to the documentation [here](/JSchema-Java/articles/components).
7373

7474
The name or alias of the directive is always start with `$` which also refers to that they are named fragment defined elsewhere in the schema. Here is a simple example of how to use this directive:
7575
```js

doc/content/articles/functions.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -179,12 +179,12 @@ Validates whether the `target` string is a valid phone number. It follows the IT
179179
```stylus
180180
#string target - @date(pattern)
181181
```
182-
Validates that the `target` string matches the date and time pattern specified by the `pattern` parameter. It fully supports the ISO 8601 date and time format. Beyond this standard, it also allows custom date and time formats, ensuring compatibility with various systems and meeting diverse users and businesses requirements. This [document](/JsonSchema-Java/articles/datetime) provides a comprehensive overview of the date-time custom patterns.
182+
Validates that the `target` string matches the date and time pattern specified by the `pattern` parameter. It fully supports the ISO 8601 date and time format. Beyond this standard, it also allows custom date and time formats, ensuring compatibility with various systems and meeting diverse users and businesses requirements. This [document](/JSchema-Java/articles/datetime) provides a comprehensive overview of the date-time custom patterns.
183183

184184
```
185185
#string target - @time(pattern)
186186
```
187-
Both the `@date` and `@time` functions support a complete range of date-time patterns, enabling the precise definition of any date and time scenario. Therefore, these functions can be used interchangeably. When the sole consideration is the date or day of the month in a year, employing the `@date` function is the more convenient choice. In contrast, when it becomes necessary to specify a particular time on a date, the `@time` function is the more appropriate option. To learn more about date-time patterns, please refer to [this page](/JsonSchema-Java/articles/datetime).
187+
Both the `@date` and `@time` functions support a complete range of date-time patterns, enabling the precise definition of any date and time scenario. Therefore, these functions can be used interchangeably. When the sole consideration is the date or day of the month in a year, employing the `@date` function is the more convenient choice. In contrast, when it becomes necessary to specify a particular time on a date, the `@time` function is the more appropriate option. To learn more about date-time patterns, please refer to [this page](/JSchema-Java/articles/datetime).
188188

189189
### Date and Time Range
190190
```stylus

doc/content/articles/intro.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,15 @@ weight = 1
88
JSON, short for JavaScript Object Notation, is one of the most widely used data exchange formats that are both user-friendly and machine-readable. New JSON Schema is a practical tool for defining and validating the structure of JSON documents. It allows you to specify the expected format, data types, and constraints of JSON data. The following guides offer comprehensive details about the New JSON Schema. This document provides a list of links, each corresponding to a specific detail document available in this project.
99
<br/>
1010

11-
* <font size="4">[Getting Started & Installation](/JsonSchema-Java/articles/quickstart)</font>
12-
* <font size="4">[Validation Syntax & Format](/JsonSchema-Java/articles/validation)</font>
13-
* <font size="4">[Validation Directives & Pragmas](/JsonSchema-Java/articles/directives)</font>
14-
* <font size="4">[Schema Specification & Grammar](/JsonSchema-Java/articles/specification)</font>
15-
* <font size="4">[Data Types & Validation](/JsonSchema-Java/articles/datatypes)</font>
16-
* <font size="4">[Functions & Validation](/JsonSchema-Java/articles/functions)</font>
17-
* <font size="4">[Date & Time Patterns](/JsonSchema-Java/articles/datetime)</font>
18-
* <font size="4">[Reusable Components of Validation](/JsonSchema-Java/articles/components)</font>
19-
* <font size="4">[Build from Source Code](/JsonSchema-Java/articles/sourcebuild)</font>
20-
* <font size="4">[API Reference Documentation](/JsonSchema-Java/api/index.html)</font>
11+
* <font size="4">[Getting Started & Installation](/JSchema-Java/articles/quickstart)</font>
12+
* <font size="4">[Validation Syntax & Format](/JSchema-Java/articles/validation)</font>
13+
* <font size="4">[Validation Directives & Pragmas](/JSchema-Java/articles/directives)</font>
14+
* <font size="4">[Schema Specification & Grammar](/JSchema-Java/articles/specification)</font>
15+
* <font size="4">[Data Types & Validation](/JSchema-Java/articles/datatypes)</font>
16+
* <font size="4">[Functions & Validation](/JSchema-Java/articles/functions)</font>
17+
* <font size="4">[Date & Time Patterns](/JSchema-Java/articles/datetime)</font>
18+
* <font size="4">[Reusable Components of Validation](/JSchema-Java/articles/components)</font>
19+
* <font size="4">[Build from Source Code](/JSchema-Java/articles/sourcebuild)</font>
20+
* <font size="4">[API Reference Documentation](/JSchema-Java/api/index.html)</font>
2121

2222
<br/>

doc/content/articles/quickstart.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,4 +162,4 @@ Actual (Json Line: 3:14): found #string inferred by "not number"
162162
at org.example.SampleSchema.checkIsValid(SampleSchema.java:64)
163163
at org.example.Main.main(Main.java:5)
164164
```
165-
For more information about the schema syntax format and library functionalities, please refer to the reference documentation [here](/JsonSchema-Java/api/index.html).
165+
For more information about the schema syntax format and library functionalities, please refer to the reference documentation [here](/JSchema-Java/api/index.html).

doc/content/articles/sourcebuild.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@ This comprehensive guide illustrates the procedures for retrieving source code f
1010
## Build the Library
1111
To get started, clone the project from the following URL using your preferred Git client (command line or GUI). You can open a terminal and enter the following Git clone command as shown below:
1212
```shell
13-
git clone https://github.com/relogiclabs/JsonSchema-Java.git
13+
git clone https://github.com/relogiclabs/JSchema-Java.git
1414
```
15-
Next, navigate to the project root directory of the `JsonSchema-Java` that you just cloned. Inside the directory, you should find a `pom.xml` file. This file contains the project configuration and dependencies required to build the library. Use the `cd` command to enter the project root directory and execute the following Maven command to build the Json Schema library:
15+
Next, navigate to the project root directory of the `JSchema-Java` that you just cloned. Inside the directory, you should find a `pom.xml` file. This file contains the project configuration and dependencies required to build the library. Use the `cd` command to enter the project root directory and execute the following Maven command to build the Json Schema library:
1616

1717
```shell
1818
mvn clean install
@@ -173,4 +173,4 @@ Actual (Json Line: 3:14): found #string inferred by "not number"
173173
at org.example.SampleSchema.checkIsValid(SampleSchema.java:64)
174174
at org.example.Main.main(Main.java:5)
175175
```
176-
For more information about the schema syntax format and library functionalities, please refer to the reference documentation [here](/JsonSchema-Java/api/index.html).
176+
For more information about the schema syntax format and library functionalities, please refer to the reference documentation [here](/JSchema-Java/api/index.html).

doc/hugo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
baseURL = "https://relogiclabs.github.io/JsonSchema-Java"
1+
baseURL = "https://relogiclabs.github.io/JSchema-Java"
22
languageCode = "en-us"
33
title = "New Json Schema"
44

doc/layouts/partials/head.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
<link rel="stylesheet" href="/JsonSchema-Java/css/style.css" type="text/css" media="all" />
2-
<link rel="stylesheet" href="/JsonSchema-Java/css/syntax.css" type="text/css" media="all" />
3-
<link rel="icon" href="/JsonSchema-Java/images/favicon.ico">
1+
<link rel="stylesheet" href="/JSchema-Java/css/style.css" type="text/css" media="all" />
2+
<link rel="stylesheet" href="/JSchema-Java/css/syntax.css" type="text/css" media="all" />
3+
<link rel="icon" href="/JSchema-Java/images/favicon.ico">
44
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.7.1/jquery.min.js"></script>
5-
<script src="/JsonSchema-Java/js/script.js"></script>
5+
<script src="/JSchema-Java/js/script.js"></script>

0 commit comments

Comments
 (0)