Skip to content

Commit

Permalink
dt-bindings: net: ethernet: Fix JSON pointer references
Browse files Browse the repository at this point in the history
A JSON pointer reference (the part after the "#") must start with a "/".
Conversely, references to the entire document must not have a trailing "/"
and should be just a "#". The existing jsonschema package allows these,
but coming changes make allowed "$ref" URIs stricter and throw errors on
these references.

Signed-off-by: Rob Herring <robh@kernel.org>
Link: https://lore.kernel.org/r/20230418150628.1528480-1-robh@kernel.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
  • Loading branch information
Rob Herring authored and Jakub Kicinski committed Apr 20, 2023
1 parent 3e9c070 commit 84ce730
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ properties:
duplex is assumed.

pause:
$ref: /schemas/types.yaml#definitions/flag
$ref: /schemas/types.yaml#/definitions/flag
description:
Indicates that pause should be enabled.

Expand Down
2 changes: 1 addition & 1 deletion Documentation/devicetree/bindings/net/ethernet-switch.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ additionalProperties: true
$defs:
base:
description: An ethernet switch without any extra port properties
$ref: '#/'
$ref: '#'

patternProperties:
"^(ethernet-)?port@[0-9]+$":
Expand Down

0 comments on commit 84ce730

Please sign in to comment.