OpenSearch/client
Julie Tibshirani ae8308252b
Ensure we emit a warning when using the deprecated 'template' field. (#50831)
Since 6.0, the 'template' field has been deprecated in put template requests in
favour of index_patterns. Previously, the PutIndexTemplateRequest would accept
the 'template' field in its 'source' methods and silently convert it to
'index_patterns'. This meant that users specifying 'template' in the source
would not receive a deprecation warning from the server.

This PR makes a small change to no longer silently convert 'template' to
'index_patterns', which ensures that users receive a deprecation warning.

Follow-up to #49460.
2020-01-10 09:26:53 -08:00
..
benchmark [Backport] Remove dependency substitutions 7.x (#42866) 2019-06-04 13:50:23 -07:00
client-benchmark-noop-api-plugin Remove Settings from BaseRestRequest Constructor (#45418) (#45429) 2019-08-12 05:14:45 +02:00
rest Apply 2-space indent to all gradle scripts (#49071) 2019-11-14 11:01:23 +00:00
rest-high-level Ensure we emit a warning when using the deprecated 'template' field. (#50831) 2020-01-10 09:26:53 -08:00
sniffer Support es7 node http publish_address format (#49279) (#49839) 2019-12-05 13:53:42 -05:00
test Apply 2-space indent to all gradle scripts (#49071) 2019-11-14 11:01:23 +00:00
transport [Backport] Remove dependency substitutions 7.x (#42866) 2019-06-04 13:50:23 -07:00