-
Notifications
You must be signed in to change notification settings - Fork 82
Generating Mappings from XML Schemas
highsource edited this page Jan 4, 2015
·
3 revisions
Add schema generation as a preinstall script.
{
...,
"dependencies": {
"jsonix": "~<VERSION>"
},
"scripts": {
"preinstall" : "java
-jar node_modules/jsonix/lib/jsonix-schema-compiler-full.jar
-d mappings purchaseorder.xsd -b bindings.xjb"
}
}
(Line breaks are added for readablility.)
Generation of the compact mappings is an experimental feature. While compact naming is stable and ready to use, the way you tell the Jsonix Schema Compiler to generate compact mappings may change in the future. Please be warned that you may need to update your generation scripts then.
Since Jsonix Schema Compiler version 2.2.0.
You can generate compact mappings using the following additional switch:
-Xjsonix-compact