-
Notifications
You must be signed in to change notification settings - Fork 37
JSON Schema Generation
Alexey Valikov edited this page May 2, 2015
·
10 revisions
Warning: JSON Schema generation is an experimental feature. Please use with caution and file issues if you encounter any problems.
Jsonix Schema Compiler supports the generation of the JSON Schema alongside with Jsonix mappings.
The generated JSON Schema naturally matches the generated Jsonix mappings. It can be used to validate JavaScript objects after you unmarshall them from XML or before you marshall the as XML.
Generates Jsonix mappings and JSON Schema for XML Schemas.
Example:
java -jar jsonix-schema-compiler-full.jar
-generateJsonSchema
-p PO
schemas/purchaseorder.xsd
Generates:
-
PO.js
- Jsonix mappings -
PO.jsonschema
- JSON Schema
Here's a example of the generated JSON Schema.
JSON Schema generation is explain in the following pages:
- Usage
- Basic Concepts
- Generation
- Configuration
- Advanced Topics
- Sample Projects
- Troubleshooting
- Development