Skip to content

Commit 1971355

Browse files
committed
[API] Generator: Avoid duplicating docs when value included in params and parts
1 parent b387c2f commit 1971355

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

elasticsearch-api/utils/thor/templates/_documentation_top.erb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
<%- end -%><%# Body -%>
1313
<%# URL parameters -%>
1414
<%- @params.each do |name, info| -%>
15-
<%= docs_helper(name, info) -%>
15+
<%= docs_helper(name, info) unless ([email protected]? && @parts.keys.include?(name)) -%>
1616
<%- end -%>
1717
# @option arguments [Hash] :headers Custom HTTP headers
1818
<%- if @spec['body'] -%>

0 commit comments

Comments
 (0)