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
}
}
}