Commit 84ce730f authored by Rob Herring's avatar Rob Herring Committed by Jakub Kicinski

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: default avatarRob Herring <robh@kernel.org>
Link: https://lore.kernel.org/r/20230418150628.1528480-1-robh@kernel.orgSigned-off-by: default avatarJakub Kicinski <kuba@kernel.org>
parent 3e9c0700
...@@ -205,7 +205,7 @@ properties: ...@@ -205,7 +205,7 @@ properties:
duplex is assumed. duplex is assumed.
pause: pause:
$ref: /schemas/types.yaml#definitions/flag $ref: /schemas/types.yaml#/definitions/flag
description: description:
Indicates that pause should be enabled. Indicates that pause should be enabled.
......
...@@ -55,7 +55,7 @@ additionalProperties: true ...@@ -55,7 +55,7 @@ additionalProperties: true
$defs: $defs:
base: base:
description: An ethernet switch without any extra port properties description: An ethernet switch without any extra port properties
$ref: '#/' $ref: '#'
patternProperties: patternProperties:
"^(ethernet-)?port@[0-9]+$": "^(ethernet-)?port@[0-9]+$":
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment