Jsonix Schema Compiler is a Java-based tool that generates Jsonix mappings and JSON Schema definitions from XML Schema (XSD) files. Version 2.3.9 is the latest stable release, with active but infrequent updates. It is a companion to the Jsonix library for XML-JSON conversion. Key differentiators: handles complex XML Schema features like enums, minOccurs/maxOccurs, xs:duration, and built-in type detection. Requires Java runtime to run, integrates via Java JAR or Maven plugin. Unlike pure JavaScript alternatives, it provides full XSD compliance. Does not support XML Schema 1.1 and has no TypeScript type generation.
npm install jsonix-schema-compilerNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows how to use the compiler via npm prepublish and then use generated mappings with Jsonix for XML marshalling/unmarshalling.
Use the CLI command `java -jar node_modules/jsonix-schema-compiler/lib/jsonix-schema-compiler-full.jar`. Do not expect to import anything from this package in JavaScript.
Change scripts from `prepublish` to `prepare` in package.json.
Ensure Java 8+ is installed and available in PATH.
Regenerate mappings after upgrading to 2.3.7+ and use compatible Jsonix version.
Check the actual JAR file in `node_modules/jsonix-schema-compiler/lib/` after install and adjust command accordingly.
Verify that jsonix-schema-compiler is installed and the JAR exists. Check exact filename in lib/ directory.
Use the correct JAR file: `jsonix-schema-compiler-full.jar` which is an executable JAR. Do not invoke without -jar.
Ensure the generated mapping file path matches the import statement. The compiler outputs to a 'mapping' directory by default.