Rename Elasticsearch valueBody() methods
ProprietaryIn Elasticsearch Java Client 9.0, the generic valueBody() method and valueBody(...) builder methods have been replaced with specific getter and setter methods that better reflect the type of data being returned. Similarly, for GetRepositoryResponse, the result field also got altered to repositories.
io. moderne. elastic. elastic9. RenameApiFieldRequired
The fully qualified name of the class containing the field to rename.
The name of the field/method to rename.
The new name for the field/method.
mod run . --recipe= io. moderne. elastic. elastic9. RenameApiField \
-P fullyQualifiedName= co. elastic. clients. elasticsearch. snapshot. RepositoryVerifyIntegrityResponse \
-P field= valueBody \
-P newField= resultInstall it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.