in packages/rulesets/src/spectral/functions/utils.ts [142:157]
function diffSchemaInternal(a: any, b: any, paths: string[]) {
if (!(a || b)) {
return
}
if (a && b) {
const propsA = getProperties(a)
const propsB = getProperties(b)
Object.keys(propsA).forEach((p: string) => {
if (propsB[p]) {
diffSchemaInternal(propsA[p], propsB[p], [...paths, p])
} else {
notMatchedProperties.push([...paths, p].join("."))
}
})
}
}