Support paramsValidation option for Api