From d9c536e25ad0274664d45beebf26c6dfd56fad85 Mon Sep 17 00:00:00 2001 From: Marcus Holl Date: Mon, 17 Dec 2018 12:11:15 +0100 Subject: [PATCH] [fix] Required parameter is not labeled as required in case there is a default Otherwise the meaning of required is confusing. --- createDocu.groovy | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/createDocu.groovy b/createDocu.groovy index 8ed2271a7..166425439 100644 --- a/createDocu.groovy +++ b/createDocu.groovy @@ -501,9 +501,11 @@ def handleStep(stepName, prepareDefaultValuesStep, gse) { it -> + def defaultValue = Helper.getValue(defaultConfig, it.split('/')) + def parameterProperties = [ - defaultValue: Helper.getValue(defaultConfig, it.split('/')), - required: requiredParameters.contains((it as String)) + defaultValue: defaultValue, + required: requiredParameters.contains((it as String)) && defaultValue == null ] step.parameters.put(it, parameterProperties)