atlp-rwanda/atlp-devpulse-fn

View on GitHub
src/validation/blogSchema.ts

Summary

Maintainability
A
0 mins
Test Coverage
import joi from "joi";

//blogs validations
const blogSchema = joi.object({
  title: joi
    .string()
    .required(),
  content: joi.string().required(),
  tags: joi.array().required(),
  coverImage: joi.required(),
  images: joi.array(),
});

export default blogSchema;