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.
schemas: Improve graph schema to allow extending
The initial graph schema is not flexible enough to handle cases with additional properties in endpoint nodes. The problem is a $ref plus 'unevaluatedProperties: false' only works on immediate properties and doesn't work for child properties in an endpoint schema. So endpoint nodes must have their own $ref. Rework the to add base definitions 'port-base' and 'endpoint-base' which can be used by graph users to extend the schema. For users without additional properties, they can reference '/properties/port' and 'properties/endpoint'. Signed-off-by: Rob Herring <robh@kernel.org>
- Loading branch information
1 parent
b92867d
commit d4edb08
Showing
1 changed file
with
39 additions
and
18 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