Skip to content

Commit

Permalink
Add to readme information about conversion verification
Browse files Browse the repository at this point in the history
  • Loading branch information
wjur committed Mar 12, 2021
1 parent 441f731 commit 54b5972
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,14 @@
# avsc2avdl
Avro Schema to Avro IDL converter

Usage: avsc2avdl [*.avsc]

The result schema, in Avro IDL format, will be printed to the standard output.

The result schema can be verified by converting the schema back to AVSC format using official Avro Tools. [Download avro-tools-1.10.1.jar](https://downloads.apache.org/avro/avro-1.10.1/java/avro-tools-1.10.1.jar).

```bash
$ ./avsc2avdl inputschema.avsc > schema.avdl
$ java -jar avro-tools-1.10.1.jar idl schema.avdl > recreated.avsc
$ diff inputschema.avsc recreated.avsc
```

0 comments on commit 54b5972

Please sign in to comment.