Skip to content

Commit 4c66908

Browse files
Use string in versions map for serialization
1 parent 8150786 commit 4c66908

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

compiler/src/dump/extract-routes.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -126,12 +126,12 @@ function serializeForest (forest: Forest): string {
126126
127127
// Code generated from the elasticsearch-specification DO NOT EDIT.
128128
var routes = forest{
129-
map[byte]trees{
129+
map[string]trees{
130130
`
131131
output += begin
132132

133133
for (const [version, tree] of forest.byVersion) {
134-
output += `\n'${version}': { byMethod: map[string]node{`
134+
output += `\n"${version}": { byMethod: map[string]node{`
135135
output += serializeTree(tree)
136136
output += '},'
137137
}

0 commit comments

Comments
 (0)