Fix validator for api response.