api gen representer inheritance spec