2016-12-28 86 views
0

我想通过以下方式将jsonSchema转换为POJO: http://www.jsonschema2pojo.org/ 但它给出错误:未找到绝对URI。 那么,有没有在线转换器来处理这个问题。将jsonSchema转换为POJO其中,jsonSchema属性具有对其他jsonSchemas的引用

For example my jsonschema is: 

A.json 
    { 
    "$schema": "http://json-schema.org/draft-04/hyper-schema#", 
    "title": "A", 
    "type": "object", 
    "description": "About A", 
    "properties": { 
    "property1": { 
    "description": "First property", 
    "$ref": "B.json" 
    } 
    } 
    } 

    where B.json : 

    { 
    "$schema": "http://json-schema.org/draft-04/hyper-schema#", 
    "title": "B", 
    "type": "object", 
    "properties": { 
    "name": { 
    "description": "The username", 
    "type": "string", 
    "minLength": 1 
    } 
    } 
    } 

回答

0

您使用编译的工具(可从发行版page下载)。 只需下载最新的zip文件并使用bin子文件夹中给出的二进制文件。