项目作者: schlothauer-wauer

项目描述 :
tool that converts xsd schemas to json schemas
高级语言: Groovy
项目地址: git://github.com/schlothauer-wauer/xsd2jsonSchema.git
创建时间: 2017-07-12T15:06:22Z
项目社区:https://github.com/schlothauer-wauer/xsd2jsonSchema

开源协议:MIT License

下载


xsd2jsonSchema

A simple Groovy based program to do convert XSD definitions to JSON schema.

This tool is in a terrible early state, but for me it works :D

Requirements

  • Java 8
  • Gradle v4.*
  • xjc in JAVA_HOME/bin or in search path

Handle with gradle

Using with gradle

  1. # do a complete release to configured maven repository
  2. gradle publish
  3. # builds a release with all dependencies
  4. # release is built in PROJECT_DIR/build/release
  5. # before a release is build the tests are executed - skip not possible
  6. gradle buildRelease
  7. # run program without any arguments from project
  8. gradle myRun

Usage of the release

After you built a release with gradle or you download a release bundle you can start
the program with the contained start script. If you start it with the help option you
get a full description of the possible parameters

  1. # or a similar path
  2. cd build/release
  3. # start program in bash environment
  4. ./xsd2jsonSchema.sh -x PATH_TO_XSD_FILE -o PATH_TO_OUTPUT_FILE -e ENTRY_TYPE_FOR_SERIALIZATION
  5. # show help in bash environment
  6. ./xsd2jsonSchema.sh --help