We plan to store index templates in Phabricator and would like to validate a diff before landing it and HTTP PUT to ES.
Welcome to our community! 
This isn't something that currently exists in Elasticsearch. If you'd like to see it, please create a feature request on GitHub.