-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Rafal Kluszczynski
committed
Jan 3, 2017
1 parent
4cfe16a
commit 13d49b1
Showing
2 changed files
with
47 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,48 @@ | ||
avro-cli | ||
======== | ||
|
||
TODO | ||
# Quickstart | ||
|
||
To see usage, you need to have Java 8 installed. Then just download latest release and type: | ||
|
||
```bash | ||
java -jar avro-cli-X.X.X.jar | ||
``` | ||
|
||
where X.X.X stands for version. | ||
|
||
# Commands | ||
|
||
## Native Avro validation | ||
|
||
``` | ||
Usage: validate [options] | ||
Options: | ||
--compatibility, -c | ||
One of compatibility strategy. | ||
Default: FULL | ||
Possible Values: [BACKWARD, FORWARD, FULL] | ||
--latest, -l | ||
Use only latest validator. | ||
Default: false | ||
--previousSchemaFile, -p | ||
Sources of previous schemas in order of appearance in command line. | ||
Default: [] | ||
* --schemaFile, -f | ||
Source of schema to read. | ||
``` | ||
|
||
Example of usage: | ||
|
||
```bash | ||
java -jar avro-cli-X.X.X.jar validate -c backward -f schema2-string-null-field.json -p schema1-string-field.json | ||
``` | ||
|
||
where files can bee seen [here](https://github.com/rkluszczynski/avro-cli/tree/master/src/test/resources/validation). | ||
|
||
# Credits | ||
|
||
* [Apache Avro™ 1.8.1 Specification](http://avro.apache.org/docs/1.8.1/spec.html) | ||
* [Spring boot](https://projects.spring.io/spring-boot) | ||
* [JCommander](http://jcommander.org) |