From 4c90d2c025355a68a9a7b0f621e0bea6ecce98dd Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Beat=20K=C3=BCng?= <beat-kueng@gmx.net>
Date: Thu, 27 Sep 2018 11:03:59 +0200
Subject: [PATCH] module_schema: enforce serial config param names to end in
 _CONFIG or _CFG

For consistency & documentation
---
 validation/module_schema.yaml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/validation/module_schema.yaml b/validation/module_schema.yaml
index b1face9928..67b246e70d 100644
--- a/validation/module_schema.yaml
+++ b/validation/module_schema.yaml
@@ -37,7 +37,7 @@ serial_config:
                     name:
                         # Parameter name (e.g. TEL_FRSKY_CONFIG, MAV_${i}_CONFIG)
                         type: string
-                        regex: '[0-9A-Z_]+(\$\{i\}[0-9A-Z_]*)?'
+                        regex: '[0-9A-Z_]+(\$\{i\}[0-9A-Z_]*)?_(CONFIG|CFG)'
                         required: true
                     group:
                         # Associated parameter group (e.g. GPS)
-- 
GitLab