fixes #2286
cleanup
added inherit to api check
Merge pull request #2898 from digi604/fix-2286

fixes #2286 (api validates templates)