Updates V3 with V2 PR's - previousVersion type https://github.com/payloadcms/payload/pull/6805 - tests from https://github.com/payloadcms/payload/pull/6805
27 lines
469 B
TypeScript
27 lines
469 B
TypeScript
import type { GlobalConfig } from 'payload'
|
|
|
|
import { globalSlugs } from '../../shared.js'
|
|
|
|
export const GlobalValidateDraftsOn: GlobalConfig = {
|
|
slug: globalSlugs.globalValidateDraftsOn,
|
|
fields: [
|
|
{
|
|
name: 'group',
|
|
type: 'group',
|
|
fields: [
|
|
{
|
|
name: 'title',
|
|
type: 'text',
|
|
required: true,
|
|
},
|
|
],
|
|
},
|
|
],
|
|
versions: {
|
|
drafts: {
|
|
autosave: true,
|
|
validate: true,
|
|
},
|
|
},
|
|
}
|