We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5fe6bd1 commit 8707850Copy full SHA for 8707850
elasticsearch-api/utils/thor/generate_source.rb
@@ -222,7 +222,7 @@ def docs_helper(name, info)
222
info['type'] = 'String' if info['type'] == 'enum' # Rename 'enums' to 'strings'
223
tipo = info['type'] ? info['type'].capitalize : 'String'
224
description = info['description'] ? info['description'].strip : '[TODO]'
225
- options = info['options'] ? "\n # (options: #{info['options'].join(', '.strip)})\n" : ''
+ options = info['options'] ? "\n # (options: #{info['options'].join(', '.strip)})" : nil
226
required = info['required'] ? ' (*Required*)' : ''
227
deprecated = info['deprecated'] ? ' *Deprecated*' : ''
228
"# @option arguments [#{tipo}] :#{name} #{description} #{required} #{deprecated} #{options}\n"
0 commit comments