lib/elasticsearch/api/actions/machine_learning/validate.rb in elasticsearch-api-8.1.0 vs lib/elasticsearch/api/actions/machine_learning/validate.rb in elasticsearch-api-8.1.2
- old
+ new
@@ -27,14 +27,13 @@
# @see https://www.elastic.co/guide/en/machine-learning/8.1/ml-jobs.html
#
def validate(arguments = {})
raise ArgumentError, "Required argument 'body' missing" unless arguments[:body]
+ arguments = arguments.clone
headers = arguments.delete(:headers) || {}
- body = arguments.delete(:body)
-
- arguments = arguments.clone
+ body = arguments.delete(:body)
method = Elasticsearch::API::HTTP_POST
path = "_ml/anomaly_detectors/_validate"
params = {}