Skip to content

Commit 8c6eefb

Browse files
committed
[API] Generator: Revert ignoring type
1 parent 36870cc commit 8c6eefb

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

elasticsearch-api/utils/thor/generate_source.rb

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -69,9 +69,7 @@ def generate(*files)
6969
@params = @spec['params'] || {}
7070
method = @spec['url']['paths'].map { |a| a['methods'] }.flatten.first
7171
@http_method = "HTTP_#{method}"
72-
@paths = @spec['url']['paths'].reject { |p| p['path'].include? 'type' }.map { |b| b['path'] }
73-
# TODO : Temporary Hack for deprecated method
74-
next if @method_name == 'exists_type'
72+
@paths = @spec['url']['paths'].map { |b| b['path'] }
7573

7674
@http_path = __http_path
7775
@required_parts = __required_parts

0 commit comments

Comments
 (0)