Open vaibhavrajsingh2001 opened 2 days ago
@udamir please let me know if you need additional information/usecases from my side. Thanks for this awesome project! ❤️
Hi, the current behavior is correct. After merging the title
from oneOf
with the root title
, you get the title
from oneOf
, as the merge strategy for the title
field is to use the last title
encountered.
When using
mergeCombinarySibling
to combine anyOf/oneOf with sibling content, the output object only contains anyOf/oneOf and strips away other fields, liketitle
.e.g.
A Schema where the parent object has a
title
field and the oneOf variants also havetitle
fields:Would result in an output where the parent object's
title
field is lost: