[PATCH v2 0/4] interface define: add support for validation against schema