Closed eberman-quic closed 10 months ago
We should bail out if the meta-schema fails which would catch many other errors. However, we need to allow DT meta schema errors, but not draft7 errors because we want to use existing schemas which have new DT meta schema errors.
I think I got that we should treat this as an error? Could we improve the error reporting? I can try to spend some time on that front if you agree.
This should now be fixed in main.
An schema which passes non-strict validation could contain a
properties
value which isn't an object. Later fixups (like fixups_interrupts) assume thatproperties
, if it exists, is an object. Pop theproperties
from the schema if it's not a dictionary to preserve the assumption.Using the following schema patch as an example, dt-mk-schema can crash with the stack below:
Schema
Stack: