strapi/packages/core/content-releases/shared/validation-schemas.ts

12 lines
270 B
TypeScript
Raw Normal View History

import * as yup from 'yup';
export const RELEASE_SCHEMA = yup
.object()
.shape({
name: yup.string().trim().required(),
// scheduledAt is a date, but we always receive strings from the client
scheduledAt: yup.string(),
})
.required()
.noUnknown();