我需要将一个实例映射到Maven 插件用来创建 POJOjava.util.Map
的 JSON 模式。org.jsonschema2pojo
我没有找到一个好的和简单的解决方案。
有人可以帮我吗?
这是我实际的 json-schema 文件
{
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "Response",
"description": "A Response object",
"type": "object",
"properties": {
"result": {
"type": "string",
"description": "describes response status"
},
"msg": {
"type": "string",
"description": "user msgs"
}
},
"required": ["result"],
"additionalProperties": false
}
我需要添加一个在 Java"errors"
中转换为 a的字段。java.util.Map<String, String>