Closed yannham closed 6 months ago
Maybe we could have a test JSON schema that doesn't contain a toplevel always
? I'm a bit suprised that the test suite didn't catch this...
Well before #70 we used to panick on external refs, so I guess no test in the test suite could possibly test for this code path. But yeah, might be worth adding a test for this now.
Ah, of course. Maybe there's even explicitly disabled tests with external references in the test suite, then.
External refs are now replaced with
Dyn
contract since #70. The corresponding predicate ispredicates.always
. We were incorrectly usingdefinitions.predicate.always
instead, which might not even be defined - definitions are specific to each JSON schema.