UNPKG

strapi-plugin-users-permissions

Version:

Protect your API with a full-authentication process based on JWT

10 lines (7 loc) 273 B
import * as yup from 'yup'; import { translatedErrors } from 'strapi-helper-plugin'; const schema = yup.object().shape({ name: yup.string().required(translatedErrors.required), description: yup.string().required(translatedErrors.required), }); export default schema;