Skip to content

Commit bbddae6

Browse files
committed
upgrade to 1.0.25 and update changelog and document
1 parent 9e0f9b3 commit bbddae6

File tree

4 files changed

+28
-3
lines changed

4 files changed

+28
-3
lines changed

CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,14 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
99

1010
### Changed
1111

12+
## 1.0.25 - 2019-11-06
13+
14+
### Added
15+
16+
### Changed
17+
18+
- fixes #206 IF-THEN-ELSE Conditional (Draft 7). Thanks @andersonf
19+
1220
## 1.0.24 - 2019-10-28
1321

1422
### Added

README.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,22 +71,24 @@ Maven:
7171
<dependency>
7272
<groupId>com.networknt</groupId>
7373
<artifactId>json-schema-validator</artifactId>
74-
<version>1.0.24</version>
74+
<version>1.0.25</version>
7575
</dependency>
7676
```
7777

7878
Gradle:
7979

8080
```
8181
dependencies {
82-
compile(group: "com.networknt", name: "json-schema-validator", version: "1.0.24");
82+
compile(group: "com.networknt", name: "json-schema-validator", version: "1.0.25");
8383
}
8484
```
8585

8686
For the latest version, please check the [release](https://github.com/networknt/json-schema-validator/releases) page.
8787

8888
## [Quick Start](doc/quickstart.md)
8989

90+
## [Validators](doc/validators.md)
91+
9092
## [Configuration](doc/config.md)
9193

9294
## Known issues

doc/validators.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
This document lists all the validators supported and gives users are guideline on how to use them.
2+
3+
### if-then-else
4+
5+
* Specification(s): draft7
6+
* Contributor(s): @andersonf
7+
* Reference: https://json-schema.org/understanding-json-schema/reference/conditionals.html
8+
* Issues and PRs: https://github.com/networknt/json-schema-validator/pull/206
9+
10+
The `if`, `then` and `else` keywords allow the application of a subschema based on the outcome of another schema, much like the `if/then/else` constructs you’ve probably seen in traditional programming languages.
11+
12+
If `if` is valid, `then` must also be valid (and `else` is ignored.) If `if` is invalid, `else` must also be valid (and `then` is ignored).
13+
14+
For usage, please refer to the test cases at https://github.com/networknt/json-schema-validator/blob/master/src/test/resources/tests/if.json
15+

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
<modelVersion>4.0.0</modelVersion>
2020
<groupId>com.networknt</groupId>
2121
<artifactId>json-schema-validator</artifactId>
22-
<version>1.0.24</version>
22+
<version>1.0.25</version>
2323
<packaging>bundle</packaging>
2424
<description>A json schema validator that supports draft v4</description>
2525
<url>https://github.com/networknt/json-schema-validator</url>

0 commit comments

Comments
 (0)