Closed wanghongcheng0302 closed 5 months ago
Fixed result
{
"type": "object",
"properties":
{
"upload":
{
"s-props":
{
"b": "b",
"a": "a"
}
}
}
}
$ref with sibling content is equal to 'allOf: [{$ref:"..."}, sibling]'. So to merge it correctly you can use allOf-merge tool
I dont think Object.assign is a good solution, as it only works for top level properties. I'm open to using @udamir's library, but I'm not sure how to best integrate it. Calling merge({allOf[$ref, resolvedValue]})
doesnt lead to expected values
Hi~ I have schema like this
the original reference's-props replace the resolved value's-props
this may be caused by this code
I think a better way is to merge the resolved value and the resolved value, rather than by replacing
this is my fix