[PATCH net-next] dt-bindings: net: dsa: Fix JSON pointer references

Subsystems: networking drivers, networking [dsa], open firmware and flattened device tree bindings, the rest

STALE1111d LANDED

Landed in mainline as cf3e913bf41d on 2023-07-20.

2 messages, 2 authors, 2023-07-20 · open the first message on its own page

[PATCH net-next] dt-bindings: net: dsa: Fix JSON pointer references

From: Rob Herring <robh@kernel.org>
Date: 2023-07-18 20:32:44

A JSON pointer reference to the entire document must not have a trailing
"/" and should be just a "#". The existing jsonschema package allows
these, but changes in 4.18 make allowed "$ref" URIs stricter and throw
errors on these references.

Signed-off-by: Rob Herring <robh@kernel.org>
---
 Documentation/devicetree/bindings/net/dsa/dsa.yaml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/Documentation/devicetree/bindings/net/dsa/dsa.yaml b/Documentation/devicetree/bindings/net/dsa/dsa.yaml
index 8d971813bab6..ec74a660beda 100644
--- a/Documentation/devicetree/bindings/net/dsa/dsa.yaml
+++ b/Documentation/devicetree/bindings/net/dsa/dsa.yaml
@@ -36,7 +36,7 @@ additionalProperties: true
 $defs:
   ethernet-ports:
     description: A DSA switch without any extra port properties
-    $ref: '#/'
+    $ref: '#'
 
     patternProperties:
       "^(ethernet-)?ports$":
-- 
2.40.1

Re: [PATCH net-next] dt-bindings: net: dsa: Fix JSON pointer references

From: patchwork-bot+netdevbpf@kernel.org
Date: 2023-07-20 10:00:30

Hello:

This patch was applied to netdev/net-next.git (main)
by Paolo Abeni [off-list ref]:

On Tue, 18 Jul 2023 14:32:03 -0600 you wrote:
A JSON pointer reference to the entire document must not have a trailing
"/" and should be just a "#". The existing jsonschema package allows
these, but changes in 4.18 make allowed "$ref" URIs stricter and throw
errors on these references.

Signed-off-by: Rob Herring <robh@kernel.org>

[...]
Here is the summary with links:
  - [net-next] dt-bindings: net: dsa: Fix JSON pointer references
    https://git.kernel.org/netdev/net-next/c/cf3e913bf41d

You are awesome, thank you!
-- 
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html

Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help