Skip to contentSkip to conversation

dt-bindings: nvmem: u-boot,env: Add missing additionalProperties on child node schemas

PATCH Applied Rob Herring 4 participants 4 messages Sep 26, 2023 – Oct 7, 2023

Subsystems (2)
lore
Share & tools
lore

Rob Herring

author maintainer
#0 lore raw

PATCH 1/1 dt-bindings: nvmem: u-boot,env: Add missing additionalProperties on child node schemas

Just as unevaluatedProperties or additionalProperties are required at the top level of schemas, they should (and will) also be required for child node schemas. That ensures only documented properties are present for any node.

---
 Documentation/devicetree/bindings/nvmem/u-boot,env.yaml | 2 ++
 1 file changed, 2 insertions(+)
Documentation/devicetree/bindings/nvmem/u-boot,env.yaml +2 -0
index 36d97fb87865..9c36afc7084b 100644
@@ -51,6 +51,8 @@ properties:
   ethaddr:
     type: object
     description: Ethernet interfaces base MAC address.
+    additionalProperties: false
+
     properties:
       "#nvmem-cell-cells":
         description: The first argument is a MAC address offset.
Signature · 1 line
2.40.1
#3 lore raw
In reply to Rob Herring
Quoted 6 lines · Rob Herring

Just as unevaluatedProperties or additionalProperties are required at the top level of schemas, they should (and will) also be required for child node schemas. That ensures only documented properties are present for any node.

Applied, thanks!

[1/1] dt-bindings: nvmem: u-boot,env: Add missing additionalProperties on child node schemas

      commit: 8beb2ec54b65eb08891c9b9c23428712d46d8e15

Best regards,

Signature · 1 line
Srinivas Kandagatla <[email protected]>