File tree Expand file tree Collapse file tree 1 file changed +8
-5
lines changed Expand file tree Collapse file tree 1 file changed +8
-5
lines changed Original file line number Diff line number Diff line change @@ -124,13 +124,16 @@ abstract class GeneratePluginDocsTask : DefaultTask() {
124124 options.forEach {
125125 val defaultValue = it[" default" ]
126126 val type = it[" type" ]
127- val isStringValue =
128- (type == " SECRET" || type == " STRING" || type == " STRING_LIST" ) && defaultValue != null
127+ val isStringValue = type == " SECRET" || type == " STRING" || type == " STRING_LIST"
129128
130129 append(" $i ${it[" name" ]} : " )
131- if (isStringValue) append(" \" " )
132- append(defaultValue)
133- if (isStringValue) append(" \" " )
130+ if (defaultValue != null ) {
131+ if (isStringValue) append(" \" " )
132+ append(defaultValue)
133+ if (isStringValue) append(" \" " )
134+ } else {
135+ append(" <optional>" )
136+ }
134137 appendLine()
135138 }
136139 }
You can’t perform that action at this time.
0 commit comments