Skip to content

Commit 84ce730

Browse files
robherringkuba-moo
authored andcommitted
dt-bindings: net: ethernet: Fix JSON pointer references
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 <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Jakub Kicinski <[email protected]>
1 parent 3e9c070 commit 84ce730

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Documentation/devicetree/bindings/net/ethernet-controller.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ properties:
205205
duplex is assumed.
206206

207207
pause:
208-
$ref: /schemas/types.yaml#definitions/flag
208+
$ref: /schemas/types.yaml#/definitions/flag
209209
description:
210210
Indicates that pause should be enabled.
211211

Documentation/devicetree/bindings/net/ethernet-switch.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ additionalProperties: true
5555
$defs:
5656
base:
5757
description: An ethernet switch without any extra port properties
58-
$ref: '#/'
58+
$ref: '#'
5959

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

0 commit comments

Comments
 (0)