utils: validateBody can use types