From 8bd8eeda3326c2fb9ede10cc23000b53b9dccf0e Mon Sep 17 00:00:00 2001 From: Stephan Gerhold Date: Fri, 14 Feb 2025 11:22:38 +0100 Subject: [PATCH] schema.yaml: Fix ftdi_gpio patternProperties "patternProperties" must be on the same indentation level as "properties", otherwise it just defines a property called "patternProperties" in cdba.yaml. Also add additionalProperties: false, so properties not matching the regex are actually disallowed and reported. --- schema.yaml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/schema.yaml b/schema.yaml index fbcad82..b892a8f 100644 --- a/schema.yaml +++ b/schema.yaml @@ -123,9 +123,10 @@ properties: minimin: 0 devicenode: $ref: "#/$defs/device_path" - patternProperties: - "^power|fastboot_key|power_key|usb_disconnect|output_enable$": - $ref: "#/$defs/ftdi_gpio" + patternProperties: + "^power|fastboot_key|power_key|usb_disconnect|output_enable$": + $ref: "#/$defs/ftdi_gpio" + additionalProperties: false dependentRequired: index: