Skip to content

Commit

Permalink
feat: remove elasticsearch, block elasticsearch_version
Browse files Browse the repository at this point in the history
  • Loading branch information
byashimov committed Nov 19, 2024
1 parent 0f7a492 commit f1bbbda
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 607 deletions.
11 changes: 11 additions & 0 deletions internal/gen/gen.go
Original file line number Diff line number Diff line change
Expand Up @@ -311,5 +311,16 @@ func Run(fileNames ...string) (types.GenerationResult, error) {
}
}
}

removeBlockedFields(result)
return result, nil
}

func removeBlockedFields(result types.GenerationResult) {
services, ok := result[types.KeyServiceTypes]
if ok {
if v, ok := services["opensearch"]; ok {
delete(v.Properties, "elasticsearch_version")
}
}
}
Loading

0 comments on commit f1bbbda

Please sign in to comment.