Open
Description
Hi,
Is it possible to get the expanded version of Json Schema (resolved along with references) in the Java code so that i get a flattened JSON version?
eg:
===== A.json =========
{
"type": "object",
"properties": {
"foo": {
"type": "string"
}
}
}
========= B.json ==============
{
"type": "object",
"properties": {
"bar": {
"type": "array",
"items": {
"$ref": "A.json#/properties/foo"
}
}
}
}
to give me the output as :
{
"type": "object",
"properties": {
"bar": {
"type": "array",
"items": {
"type": "string"
}
}
}
}
Also, is it possible to serialize this data? Jackson was throwing error on serializing it since JsonSchema itself does not have any field to be serialized.
Thanks in advance