Skip to content

Commit ec84fc3

Browse files
committed
[API] Generator: Skip _internal APIs
1 parent 8c75825 commit ec84fc3

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

elasticsearch-api/utils/thor/generate_source.rb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,10 @@ def generate_source
7474
@full_namespace = __full_namespace
7575
@namespace_depth = @full_namespace.size > 0 ? @full_namespace.size - 1 : 0
7676
@module_namespace = @full_namespace[0, @namespace_depth]
77+
78+
# Don't generate code for internal APIs:
79+
next if @module_namespace.flatten.first == '_internal'
80+
7781
@method_name = @full_namespace.last
7882
@parts = __endpoint_parts
7983
@params = @spec['params'] || {}

0 commit comments

Comments
 (0)