Skip to content

Commit a90972f

Browse files
committed
[DOCS] Updates code generator for keys with dot in name, use =>
1 parent 1aa7fd9 commit a90972f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

rake_tasks/doc_generator.rake

+1
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,7 @@ namespace :docs do
134134
'body: ' +
135135
JSON.pretty_generate(body)
136136
.gsub(/\"([a-z_]+)\":/,'\\1: ') # Use Ruby 2 hash syntax
137+
.gsub(/"([a-z_.]+\.[a-z_]+)+":/, '"\\1" =>')
137138
.gsub('aggs', 'aggregations') # Replace 'aggs' with 'aggregations' for consistency
138139
end
139140

0 commit comments

Comments
 (0)