Skip to content

Commit 769ba59

Browse files
committed
[API] Generator: Renames Int to Integer on source code docs
1 parent 5cf2a62 commit 769ba59

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

elasticsearch-api/utils/thor/generate_source.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -226,6 +226,7 @@ def __required_parts
226226

227227
def docs_helper(name, info)
228228
info['type'] = 'String' if info['type'] == 'enum' # Rename 'enums' to 'strings'
229+
info['type'] = 'Integer' if info['type'] == 'int' # Rename 'int' to 'Integer'
229230
tipo = info['type'] ? info['type'].capitalize : 'String'
230231
description = info['description'] ? info['description'].strip : '[TODO]'
231232
options = info['options'] ? "(options: #{info['options'].join(', ').strip})" : nil

0 commit comments

Comments
 (0)