forked from robherring/dt-schema
-
Notifications
You must be signed in to change notification settings - Fork 67
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
schema: Another take on checking additionalProperties/unevaluatedProp…
…erties Complete schemas need to have additionalProperties or unevaluatedProperties constraint in order to prevent undefined properties. Attempts to check this with meta-schemas resulted in corner cases which couldn't be fixed or required redundant unevaluatedProperties. The problem is we need to know if a referenced schema has the constraint already or not. So let's solve this with code to look into $ref's to see if the ref constrains the properties or not. Signed-off-by: Rob Herring <robh@kernel.org>
- Loading branch information
1 parent
8733c90
commit a5bbb3e
Showing
1 changed file
with
36 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters