Skip to content

Implement JSON Schema inlining #133

Open
@prashanthseshadri

Description

@prashanthseshadri

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

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions