import {body,oneOf} from "express-validator"; export const finavigatorTaskReqValidators = { create:() => [ body("type").exists(), body("author").exists(), body("body").exists()], update:() => [oneOf([ body("body").exists(), body("title").exists(), body("featured").exists(), body("tags").exists(), body("views").exists(),])], updateMany:() => [ body("ids").exists(), body("updates").exists(), oneOf([ body("updates.body").exists(), body("updates.title").exists(), body("updates.featured").exists(), body("updates.tags").exists(), body("updates.views").exists(),])], removeMany:() => [body("ids").exists()], };