pass entire api to validator