- 
                Notifications
    You must be signed in to change notification settings 
- Fork 37
Turning on JSON Schema Generation
        Alexey Valikov edited this page Apr 27, 2015 
        ·
        1 revision
      
    You can turn on JSON Schema generation with one of the following options:
- Use -generateJsonSchemaor-Xjsonix-generateJsonSchemacommand line options or XJC plugin arguments.
- Alternatively add <jsonix:jsonSchema .../>to your configuration on the top level or within<jsonix:module .../>configuration elements.
java -jar node_modules/jsonix-schema-compiler/lib/jsonix-schema-compiler-full.jar
  -generateJsonSchema
  -d mappings
  schemas/purchaseorder.xsd
  -b bindings 
<jsonix:module name="PurchaseOrder">
	<jsonix:mapping name="PO" package="org.hisrc.jsonix.demos.po" schemaId="PurchaseOrder.jsonschema#"/>
	<jsonix:output naming="standard" fileName="${module.name}.standard.js"/>
	<jsonix:output naming="compact" fileName="${module.name}.compact.js"/>
	<jsonix:jsonSchema/>
</jsonix:module>See this demo project, specifically bindings.xjb.
- Usage
- Basic Concepts
- Generation
- Configuration
- Advanced Topics
- Sample Projects
- Troubleshooting
- Development