Open tfactor2 opened 10 months ago
Thanks @tfactor2 . The goal of the code is to see if there is a compatible set of differences, not necessarily to find the optimal delta between the two schemas. In this case it found that even if src.anyOf[0] is compared to target.anyOf[1] and src.anyOf[1] is compared to target.anyOf[0], the schemas are still compatible.
@rayokota, thx for the response.
But the library returns sets of differences that can be interpreted as incompatible: OPTIONAL_PROPERTY_ADDED_TO_UNOPEN_CONTENT_MODEL
, PROPERTY_REMOVED_FROM_OPEN_CONTENT_MODEL
and so on.
I would expect only ADDITIONAL_PROPERTIES_ADDED
.
Any progress here?
Hi, Having polymorphic property (using
anyOf
) with differentadditionalProperties
values produce unexpected results. Expected: onlyadditionalProperties
related differences (ADDITIONAL_PROPERTIES_ADDED
). Actual:Java code: