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.
meta-schemas: Relax vendor-props meta-schema type checks
Now that we check globally for properties with missing type, there's not a need to enforce that in the meta-schema. Doing it in the meta-schema is not very flexible as it doesn't allow defining a property in one place and adding just constraints in another place except for places we allow it (if/then/else schemas) or fail to walk (additionalProperties). Now an error from the global check will cause a schema author to add 'type' or a $ref. Then when one of those are present, the meta-schema will require 'description'. Signed-off-by: Rob Herring <robh@kernel.org>
- Loading branch information
1 parent
8e378d1
commit df71e72
Showing
2 changed files
with
16 additions
and
46 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -76,7 +76,7 @@ properties: | |
description: 0 | ||
|
||
vendor,property: | ||
enum: [ 0, 1, 2 ] | ||
type: boolean | ||
|
||
required: | ||
- model | ||
|