SchemaShaper is a commandline tool for schema conversions. It reads a schema in input format and writes it in the specified output format.
SchemaShaper is targeted to schemas used for data transfer (e.g. messaging).
Supported input schemas:
- avro (Apache AVRO)
- edmx (MS Entity Framework/OData)
- overarch (Overarch Class Model)
Supported output schemas:
- avro (Apache AVRO)
- overarch (Overarch Class Model)
The Overarch output can be used to visualize schemas in an UML class diagram.
SchemaShaper may use only parts of the input schema relevant to data transfer. It is also in its early stages, so it might or might not support your use case yet.
SchemaShaper is written in Clojure and gets built with leiningen. To build it, you need to have Java 11 or higher and leiningen installed.
In the cloned SchemaShaper repository, run
lein uberjar
to build a JAR file with all dependencies. This JAR file is created in the target folder and is named schemashaper.jar
SchemaShaper is a commandline tool to convert one data schema into another data schema.
SchemaShaper Schema Conversion CLI
Reads a schema in input format and writes it in output format.
Usage: java -jar schemashaper.jar [options].
Options:
-I, --input-format FORMAT :edmx Input format (edmx, overarch)
-i, --input-file FILENAME Input file
-O, --output-format FORMAT :avro Output format (avro, overarch)
-o, --output-file FILENAME Output file
-c, --config-file FILENAME optional EDN file with a conversion configuration
-h, --help Print help
--debug Print debug information
java -jar schemashaper.jar -i examples/sap-sample-edmx.xml -o generated/sample-avro.json
© 2024 Ludger Solbach
Eclipse Public License 1.0 (EPL1.0)