File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed
elasticsearch-api/utils/thor Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -229,10 +229,12 @@ def docs_helper(name, info)
229
229
info [ 'type' ] = 'String' if info [ 'type' ] == 'enum' # Rename 'enums' to 'strings'
230
230
tipo = info [ 'type' ] ? info [ 'type' ] . capitalize : 'String'
231
231
description = info [ 'description' ] ? info [ 'description' ] . strip : '[TODO]'
232
- options = info [ 'options' ] ? "\n # (options: #{ info [ 'options' ] . join ( ', ' . strip ) } )" : nil
233
- required = info [ 'required' ] ? ' (*Required*)' : ''
234
- deprecated = info [ 'deprecated' ] ? ' *Deprecated*' : ''
235
- "# @option arguments [#{ tipo } ] :#{ name } #{ description } #{ required } #{ deprecated } #{ options } \n "
232
+ options = info [ 'options' ] ? "(options: #{ info [ 'options' ] . join ( ', ' ) . strip } )" : nil
233
+ required = info [ 'required' ] ? '(*Required*)' : ''
234
+ deprecated = info [ 'deprecated' ] ? '*Deprecated*' : ''
235
+ optionals = [ required , deprecated , options ] . join ( ' ' ) . strip
236
+
237
+ "# @option arguments [#{ tipo } ] :#{ name } #{ description } #{ optionals } \n "
236
238
end
237
239
238
240
def stability_doc_helper ( stability )
You can’t perform that action at this time.
0 commit comments