Closed ChALkeR closed 4 years ago
Merging #104 into master will increase coverage by
0.03%
. The diff coverage is100.00%
.
Impacted Files | Coverage Δ | |
---|---|---|
src/index.js | 98.90% <100.00%> (+0.04%) |
:arrow_up: |
src/scope-functions.js | 100.00% <100.00%> (ø) |
I could perhaps optimize this and would prefer to land the #111, #112 , #113 series first.
~Optimization will conflict with #106, so can we land that first?~ Ah, the other way around.
Will depend on https://github.com/ExodusMovement/schemasafe/pull/115 though.
Seems like we don't need to bother with extra optimization here and can land as is after #115.
This approach is completely different from what ajv does.
This sees "through"
$ref
s, building full error references from the top, and descending into refs like/something/$ref/path/continues
instead of replacing the whole path with the path where the reference resolves to.This way, it is actually possible to tell where the error originated from, unlike with ajv which makes it hard to understand which schema caused the error in some situations.
Fixes most of #56.
oneOf
(and similar) tbd.