Skip to content

Highly configurable converter from JSON-schema to XML-schema (XSD).

License

Notifications You must be signed in to change notification settings

ethlo/jsons2xsd

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

51 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

jsons2xsd

Maven Central License: MIT Build Status

Json schema (http://json-schema.org/) to XML schema (XSD) converter.

Features

  • Single purpose library
  • Fast
  • Minimal dependencies (Jackson)

Usage

final Reader jsonSchema = ...;
final String targetNameSpaceUri = "http://my.example.com/ns";
final OuterWrapping wrapping = OuterWrapping.TYPE;
final String name = "mySpecialType";
final Document xsdDocument = Jsons2Xsd.convert(jsonSchema, targetNameSpaceUri, wrapping, name);