Skip to content

Commit

Permalink
Bump version to 0.13.0.
Browse files Browse the repository at this point in the history
  • Loading branch information
leadpony committed Feb 27, 2019
1 parent 6d0d464 commit b290191
Show file tree
Hide file tree
Showing 4 changed files with 35 additions and 8 deletions.
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,14 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## 0.13.0 - 2019-02-27
### Added
- JsonSchemaReaderFactoryBuilder#withCustomFormatAttributes() method for deactivating custom format attributes.
- [CLI] Options to resolve remote schema references. (Issue #4 proposed by @kerrykimbrough)

### Changed
- [CLI] Revised completely with new syntax.

## 0.12.0 - 2019-02-08
### Added
- JsonSchema#containsKeyword() which tests whether a schema contains the specified keyword or not.
Expand Down
31 changes: 25 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ the following two dependencies are all you need to add to your pom.xml.
<dependency>
<groupId>org.leadpony.justify</groupId>
<artifactId>justify</artifactId>
<version>0.12.0</version>
<version>0.13.0</version>
</dependency>

<dependency>
Expand Down Expand Up @@ -93,7 +93,8 @@ try (JsonReader reader = service.createReader(path, schema, handler)) {

## Command-Line Interface

Justify CLI is a command-line utility for validating JSON documents based on the JSON Schema specification.
Justify CLI is a command-line wrapper of Justify library.
This utility can be used to validate JSON documents against JSON schemas without writing any code.

### Downloads

Expand All @@ -105,16 +106,34 @@ whichever you prefer. The software requires Java 8 or higher to run.
After unpacking the downloaded file, just typing the following command validates a JSON instance against a JSON schema.

```bash
$ ./justify <path/to/JSON-schema> <path/to/JSON-instance>
$ ./justify -s <path/to/schema> -i <path/to/instance>
```

For validating a JSON schema only:
The following command validates a JSON schema against its metaschema.

```bash
$ ./justify <path/to/JSON-schema>
$ ./justify -s <path/to/schema>
```

Invoking the utility with `-h` option shows the syntax and available options for the utility.
#### Options

##### -s _<path/to/schema>_

Required option to specify a path to a JSON schema against which one or more JSON instances will be validated.

##### -i _<path/to/instance>_ ...

Optional option to specify a path to a JSON instance to be validated.
Multiple instances can be specified using whitespace as a delimiter.

##### -r _<path/to/schema>_ ...

Optional option to specify a path to a JSON schema to be referenced by other JSON schemas.
Multiple schemas can be specified using whitespace as a delimiter.

##### -h

Displays all available options including those shown above.

## Additional Resources

Expand Down
2 changes: 1 addition & 1 deletion justify-cli/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

<groupId>org.leadpony.justify</groupId>
<artifactId>justify-cli</artifactId>
<version>0.13.0-SNAPSHOT</version>
<version>0.13.0</version>
<packaging>jar</packaging>
<name>org.leadpony.justify.cli</name>
<description>
Expand Down
2 changes: 1 addition & 1 deletion justify/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

<groupId>org.leadpony.justify</groupId>
<artifactId>justify</artifactId>
<version>0.13.0-SNAPSHOT</version>
<version>0.13.0</version>
<packaging>jar</packaging>
<name>org.leadpony.justify</name>
<description>
Expand Down

0 comments on commit b290191

Please sign in to comment.