Jarrod Flesch
3a941c7c8a
chore: duplicates prev value PRs from v2 ( #7414 )
...
Updates V3 with V2 PR's
- previousVersion type https://github.com/payloadcms/payload/pull/6805
- tests from https://github.com/payloadcms/payload/pull/6805
2024-07-29 16:28:28 -04:00
Alessio Gravili
83fd4c6622
chore: run lint and prettier on entire codebase
2024-07-11 15:27:01 -04:00
Jarrod Flesch
45e86832c2
fix: global draft validations ( #6709 )
...
- Extends draft validation from https://github.com/payloadcms/payload/pull/6677 to work with globals as
well
- Fixes bug from https://github.com/payloadcms/payload/pull/6677 where
autosave was not saving properly after first autosave
2024-06-10 12:31:22 -04:00
Jarrod Flesch
52c81ad525
feat: adds draft validation option ( #6677 )
...
## Description
Allows draft validation to be enabled at the config level.
You can enable this by:
```ts
// ...collectionConfig
versions: {
drafts: {
validate: true // defaults to false
}
}
```
2024-06-07 15:22:03 -04:00