Closed
Description
Currently, putting a template will succeed if the JSON is valid even if the mapping couldn't be parsed. An error will be thrown when the index will be created and try to use the mapping, but that may be too late.
An example for such an error is described in #2414
The probable solution is to validate the mapping defined in the template when putting it.