mirror of
https://github.com/strapi/strapi.git
synced 2025-12-05 19:42:05 +00:00
9 lines
208 B
JavaScript
9 lines
208 B
JavaScript
import * as yup from 'yup';
|
|
import { translatedErrors } from 'strapi-helper-plugin';
|
|
|
|
const schema = yup.object().shape({
|
|
name: yup.string().required(translatedErrors.required),
|
|
});
|
|
|
|
export default schema;
|