Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

jsonix-schema-compiler

highsource4192.3.9

Jsonix Schema Compiler generates Jsonix mappings from XML Schemas

json, xml, unmarshal, unmarshalling, marshal, marshalling, parse, parsing, serialize, serializing, javascript objects, dom, util, utility, jaxb, jsonix, jsonix-schema-compiler, xs, xsd, xml schema, wsdl, dtd, relax ng, relaxng, relax ng compact, relaxng compact, jsonschema, json schema

readme

Jsonix Schema Compiler

Generates Jsonix mappings for XML Schemas.

Please refer to Wiki for documentation.

This package provides the Jsonix Schema Compiler (under lib/jsonix-schema-compiler-full.jar). So you can invoke the schema compiler via command line as follows:

java -jar node_modules/jsonix-schema-compiler/lib/jsonix-schema-compiler-full.jar schema.xsd

Usage

Typical usage is as follows:

  • Make your package depend on jsonix-schema-compiler.
  • Invoke the Jsonix Schema Compiler in scripts/prepublish.

Example

{
    "name": "mypackage",
    ...
    "dependencies": {
        ...
        "jsonix-schema-compiler": "~<VERSION>"
        ...
    },
    ...
    "scripts": {
        ...
        "prepublish" : "java -jar node_modules/jsonix-schema-compiler/lib/jsonix-schema-compiler-full.jar schema.xsd"
        ...
    }
    ...
}