2016-12-28 89 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子文件夾中給出的二進制文件。