jsonix-schema-compiler | Compiles XML Schemas into XML - JSON mappings for Jsonix
kandi X-RAY | jsonix-schema-compiler Summary
kandi X-RAY | jsonix-schema-compiler Summary
Generates Jsonix mappings for XML Schemas. Please refer to Wiki for documentation.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Entry point for the Jsonixixixix plugin
- Builds the mapping
- Build the mapping dependency graph from modules
- Assigns a mapping to the mappings
- Generate the schema of element refs property
- Create a JsonSchema for an element type
- Creates the JSON Schema
- Generate the JSON Schema for a ANY element
- Given a list of schemas return a JsonSchemaBuilder
- Generate the JSON Schema
- Generate the schema of an attribute property
- Create the type information declaration
- Visit a element ref property
- Returns the value of the item
- Create the type info declaration
- Converts a locator to a string
- Generate the schema for an element property
- Generate a TypeInfoCompiler for the given BSD
- Returns the value of the item
- Visit a builtin leaf node
- Create a JS assignment expression
- Create an assignment expression
- Adds a property dependency
- Generates a JS assignment expression
- Visit an element ref property
- Process a builtin leaf info
jsonix-schema-compiler Key Features
jsonix-schema-compiler Examples and Code Snippets
Community Discussions
Trending Discussions on jsonix-schema-compiler
QUESTION
I have several XSD files, separated by requests and subjects, however the JSON Schema that I get as an output is one big file with thousands of lines. I would like to know if there is a setting to output the generated JSON Schema as several files using Jsonix. It would be easier to navigate in.
Below is the Jsonix part of my pom.xml:
...ANSWER
Answered 2019-Sep-04 at 07:58Author of Jsonix here.
I would like to know if there is a setting to output the generated JSON Schema as several files using Jsonix.
Yes, please read about modules and mappings.
In short a mapping more-or-less corresponds to one package in Java. A module is a collection of one or more mappings, is also a unit of generation.
You can configure the compiler to generate modules containing specific mappings.
If I understand your case correctly, you have a large schema and you'd like to divide mappings or JSON schemas into several files.
Here's how I'd approach it.
- Configure several mappings for your schema. You can specify exactly which type, elements, etc. go in which mappings. See includes configuration for this. Make sure to give your mappings unique names.
- Condigure several modules each of which would contain a subset of mappings.
I have to say I haven't really tried it in this scenario. Normally people do the opposite thing - group several mappings in one module. But I see no reason for this not to work.
An example configuration might look something like:
QUESTION
I am using Jsonix, I have used below mentioned command to generate jsonix mapping and jsonix schema as,
...ANSWER
Answered 2018-Feb-20 at 11:03The change of exclusiveMaximum
from boolean to number happened with Draft-06/07 of JSON Schema.
QUESTION
I've excluded some xml types from jaxb2 generation, due the corresponding classes already exists in Java. Generation is perfectly working and classes are founded.
When I'm trying to include the types by this tutorial, jsonix searches classes only in the package with generated jaxb2 classes. So it looks generated.entity.Position instead of entity.Position class.
...ANSWER
Answered 2017-Jan-12 at 07:33Author of Jsonix here.
Includes/excludes configuration does not what you probably think it does. It just filters types or elements you want to include in your mapping. This allows you to create smaller mappings with only stuff you need.
Still, mappings are generated per namespace/package. You can't put types from different packages to one mapping. You can, however, create a module which would contain several packages. Configuration is like:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install jsonix-schema-compiler
You can use jsonix-schema-compiler like any standard Java library. Please include the the jar files in your classpath. You can also use any IDE and you can run and debug the jsonix-schema-compiler component as you would do with any other Java program. Best practice is to use a build tool that supports dependency management such as Maven or Gradle. For Maven installation, please refer maven.apache.org. For Gradle installation, please refer gradle.org .
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page