{"push_id":1447838161,"size":1,"distinct_size":1,"ref":"refs/heads/5.x","head":"c8e45c392b395fa53918a4274ae7e86c56678667","before":"d3aecec618abc6c3cf44255b19555769c234d00e","commits":[{"sha":"c8e45c392b395fa53918a4274ae7e86c56678667","author":{"name":"Nik Everett","email":"8f968e953049b60f3547bb43375dfdb757e1c88c@gmail.com"},"message":"Better error message when _parent isn't an object (#21987)\n\nIf you make a mistake and specify a mapping like:\r\n```\r\n{\r\n  \"parent\": {\r\n    \"properties\": {}\r\n  },\r\n  \"child\": {\r\n    \"_parent\": \"parent\",\r\n    \"properties\": {}\r\n  }\r\n}\r\n```\r\n\r\nthen the error message you get back amounts to\r\n`Failed to parse mapping for [child]: can't cast a String to a Map`.\r\nSince it doens't tell you *which* string can't be cast to a map you\r\nhave to dig through the stack trace to figure out what to fix. This\r\nreplaces the error message with:\r\n```\r\nFailed to parse mapping [child]: [_parent] must be an object containing [type]\r\n```\r\nso you can tell that the problem is with the `parent` field.","distinct":true,"url":"https://api.github.com/repos/NSIT/elasticsearch/commits/c8e45c392b395fa53918a4274ae7e86c56678667"}]}
{"actor":{"display_login":"pmvs-deploy"}}