Browse Source

module_schema: enforce serial config param names to end in _CONFIG or _CFG

For consistency & documentation
sbg
Beat Küng 6 years ago committed by Lorenz Meier
parent
commit
4c90d2c025
  1. 2
      validation/module_schema.yaml

2
validation/module_schema.yaml

@ -37,7 +37,7 @@ serial_config:
name: name:
# Parameter name (e.g. TEL_FRSKY_CONFIG, MAV_${i}_CONFIG) # Parameter name (e.g. TEL_FRSKY_CONFIG, MAV_${i}_CONFIG)
type: string type: string
regex: '[0-9A-Z_]+(\$\{i\}[0-9A-Z_]*)?' regex: '[0-9A-Z_]+(\$\{i\}[0-9A-Z_]*)?_(CONFIG|CFG)'
required: true required: true
group: group:
# Associated parameter group (e.g. GPS) # Associated parameter group (e.g. GPS)

Loading…
Cancel
Save