[api] [minor] Export `validator` on resource