strapi/packages/core/content-releases/shared/validation-schemas.ts
Fernando Chávez 677a639124
feat(content-releases): update cron scheduling when release scheduledAt is changed (#19456)
* feat(content-releases): update cron scheduling when release scheduledAt is changed

* fix ts issue
2024-02-08 14:24:12 +01:00

12 lines
281 B
TypeScript

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().nullable(),
})
.required()
.noUnknown();