From d4522941243c2d0575915f377900bdc3b7a473f4 Mon Sep 17 00:00:00 2001 From: spalger Date: Tue, 14 Feb 2017 18:36:42 -0700 Subject: [PATCH] limit sending scrollId as the body to 5.3+ --- scripts/generate/overrides.js | 23 +++++++++++++++-------- 1 file changed, 15 insertions(+), 8 deletions(-) diff --git a/scripts/generate/overrides.js b/scripts/generate/overrides.js index c728b9e93..4076462a0 100644 --- a/scripts/generate/overrides.js +++ b/scripts/generate/overrides.js @@ -2,14 +2,8 @@ module.exports = [ { version: '*', paramAsBody: { - scroll: { - param: 'scrollId', - body: 'scroll_id' - }, - clearScroll: { - param: 'scrollId', - body: 'scroll_id' - } + scroll: 'scrollId', + clearScroll: 'scrollId', } }, { @@ -259,5 +253,18 @@ function (spec) { examples: { scroll: 'scroll_5.0+.asciidoc' } + }, + { + version: '>=5.3', + paramAsBody: { + scroll: { + param: 'scrollId', + body: 'scroll_id' + }, + clearScroll: { + param: 'scrollId', + body: 'scroll_id' + } + } } ];