module.yaml: make long param description optional

Some params are very simple and don't need more.
This commit is contained in:
Beat Küng 2021-11-02 16:06:36 +01:00 committed by Daniel Agar
parent 1b7f4b6003
commit 6537f480b1
2 changed files with 2 additions and 2 deletions

View File

@ -145,7 +145,7 @@ def parse_yaml_parameters_config(yaml_config, ethernet_supported):
*/
PARAM_DEFINE_{param_type}({name}, {default_value});
'''.format(short_descr=param['description']['short'].replace("\n", "\n * "),
long_descr=param['description']['long'].replace("\n", "\n * "),
long_descr=param['description'].get('long', "").replace("\n", "\n * "),
tags=tags,
param_type=param_type,
name=param_name.replace('${i}', str(i+instance_start)),

View File

@ -118,7 +118,7 @@ parameters:
long:
# Long description (can be multiple lines)
type: string
required: true
required: false
type:
# Define the parameter type