As part of #10669 we discussed adding the ability to validation capability to the refactored QueryBuilders. This could be a new method in the QueryBuilder interface that all queries have to implement and that can be called either after parsing (on coordinating node in the future), before or after the query gets serialized to other nodes or by hooking into the existing request validation mechanism (ActionRequest#validate).
As part of #10669 we discussed adding the ability to validation capability to the refactored QueryBuilders. This could be a new method in the QueryBuilder interface that all queries have to implement and that can be called either after parsing (on coordinating node in the future), before or after the query gets serialized to other nodes or by hooking into the existing request validation mechanism (ActionRequest#validate).