Skip to content

Commit

Permalink
upgrade to 1.0.25 and update changelog and document
Browse files Browse the repository at this point in the history
  • Loading branch information
stevehu committed Nov 6, 2019
1 parent 9e0f9b3 commit bbddae6
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 3 deletions.
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,14 @@ and this project adheres to [Semantic Versioning](http://semver.org/).

### Changed

## 1.0.25 - 2019-11-06

### Added

### Changed

- fixes #206 IF-THEN-ELSE Conditional (Draft 7). Thanks @andersonf

## 1.0.24 - 2019-10-28

### Added
Expand Down
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,22 +71,24 @@ Maven:
<dependency>
<groupId>com.networknt</groupId>
<artifactId>json-schema-validator</artifactId>
<version>1.0.24</version>
<version>1.0.25</version>
</dependency>
```

Gradle:

```
dependencies {
compile(group: "com.networknt", name: "json-schema-validator", version: "1.0.24");
compile(group: "com.networknt", name: "json-schema-validator", version: "1.0.25");
}
```

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

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

## [Validators](doc/validators.md)

## [Configuration](doc/config.md)

## Known issues
Expand Down
15 changes: 15 additions & 0 deletions doc/validators.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
This document lists all the validators supported and gives users are guideline on how to use them.

### if-then-else

* Specification(s): draft7
* Contributor(s): @andersonf
* Reference: https://json-schema.org/understanding-json-schema/reference/conditionals.html
* Issues and PRs: https://github.com/networknt/json-schema-validator/pull/206

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.

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).

For usage, please refer to the test cases at https://github.com/networknt/json-schema-validator/blob/master/src/test/resources/tests/if.json

2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>com.networknt</groupId>
<artifactId>json-schema-validator</artifactId>
<version>1.0.24</version>
<version>1.0.25</version>
<packaging>bundle</packaging>
<description>A json schema validator that supports draft v4</description>
<url>https://github.com/networknt/json-schema-validator</url>
Expand Down

0 comments on commit bbddae6

Please sign in to comment.