AFAIK, in objects, there's no difference in fields order, these two objects should be equal.
But emplace_unique (or whatever doing the job) cannot handle this case:
@Ge11ert We've added some optimisations to prevent this which are now in master if you'd like to give it a go. We'll get this into our next release of Drafter (Protagonist, etc).
Let's assume, I have the next apib:
And for this input I get such JSON Schema:
This is fine. I have equal structures as array's nested members and field "anyOf" contains only one member.
The next step: I swap the places of the second object fields:
AFAIK, in objects, there's no difference in fields order, these two objects should be equal. But
emplace_unique
(or whatever doing the job) cannot handle this case:What I expected to see: the same output as the first JSON Schema.
FYI, I have the latest version (4.0.0-pre2)
I think this has some relation to #566