Browse Source

Change date range format which fails to parse in some clients (#83397)

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
Steve Gordon 3 years ago
parent
commit
41752425ab

+ 3 - 1
rest-api-spec/src/yamlRestTest/resources/rest-api-spec/test/search.aggregation/40_range.yml

@@ -457,7 +457,9 @@ setup:
               range:
                 field: date
                 ranges:
-                  { from: 2021-05-01T00:00:00Z, to: 2021-05-05T00:00:00Z }
+                 -
+                   from: 2021-05-01T00:00:00Z
+                   to: 2021-05-05T00:00:00Z
 
   - match: { hits.total.value: 5 }
   - length: { aggregations.date_range.buckets: 1 }