jsondesc: Disallow unknown properties #1748
Reference in New Issue
Block a user
Delete Branch "dpn/artiq:schema-disallow-unknown"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
This helps to catch typos made in drafting core device schemata.
For instance, previously typo'ing
"edge_counter": trueas"edge_counters": truewould lead to it silently being ignored.This required switching to a (meta-)schema version more recent by
one release, as unevaluatedProperties is not supported in draft-7
yet.
I am not very familar with JSON Schema, so alternative suggestions are very welcome, but in my limited tests, this appears to be doing the right thing (disallow properties not matched against in the various peripheral cases).