有 Java 编程相关的问题?

你可以在下面搜索框中键入要查询的问题!

java如何打印解析和合并的JsonSchemas?

如果我有这个:

{
"$schema":"http://json-schema.org/draft-07/schema#",
"$ref":"localFile.json#/definitions/blah1"
}

还有这个本地文件。json:

{
"$schema":"http://json-schema.org/draft-07/schema#",
"type":"object",
"properties":{
  "stuff":{},
  "otherStuff":{
     "$ref":"someresourceOnline"
  }
 }
}

这个在线资源:

{
"$schema":"http://json-schema.org/draft-07/schema#",
"type":"object",
"properties":{
"onlineStuff":{}
}}

如何获取所有内容并将其放入一个架构中:

 {
  "$schema": "http://json-schema.org/draft-07/schema#",
  "type": "object",
  "properties": {
    "stuff": {},
    "otherStuff": {
      "type": "object",
      "properties": {
        "onlineStuff": {}
      }
    }
  }
}

我已经在线搜索了所有可用的LIB,但没有成功。我可以自己写一些代码,但我相信一定有一些已经可用


共 (0) 个答案