Skip to content

Latest commit

 

History

History
 
 

tools

Tools

Tools for transforming OData CSDL XML ($metadata) files into JSON Schema documents.

The core ingredient is the V4-CSDL-to-JSONSchema.xsl transformation.

transform.cmd for Windows Command

This script transforms all XML files given as parameters into JSON Schema documents and verifies that the produced JSON Schema documents are well-formed.

Installation

The prerequisites are listed within transform.cmd. It's quite a lot:

  • Java SE is installed and in the PATH
  • git is installed and in the PATH
  • Xalan is installed and CLASSPATH contains xalan.jar and serializer.jar
  • YAJL's json_reformat has been compiled and is in the PATH
  • Node.js is installed
  • ajv-cli is installed

Usage

In the tools folder execute

transform ..\examples\*.xml

validate.cmd for Windows Command

This script validates example OData responses against the JSON Schema documents generated by transform.cmd.

Usage

In the tools folder execute

validate