Files
payload/docs/fields
Paul 03d854ed18 feat: validate field names for reserved names (#7130)
We now validate the names of the field against an array of protected
field names.

Also added JSDoc since we can't enforce type strictness yet if `string |
const[]` as it always evaluates to `string`.

```
The name of the field. Must be alphanumeric and cannot contain ' . '

Must not be one of protected field names: ['__v', 'salt', 'hash', 'file']

@link — [https://payloadcms.com/docs/fields/overview#field-names](vscode-file://vscode-app/usr/share/code/resources/app/out/vs/code/electron-sandbox/workbench/workbench.html)
```
2024-07-12 16:27:10 -04:00
..
2024-07-11 14:55:13 -04:00
2024-07-11 14:55:13 -04:00
2024-07-11 14:55:13 -04:00
2024-07-11 14:55:13 -04:00
2024-07-11 14:55:13 -04:00
2024-07-11 14:55:13 -04:00
2024-07-11 14:55:13 -04:00
2024-07-11 14:55:13 -04:00
2024-07-11 09:54:21 -04:00
2024-07-11 14:55:13 -04:00
2024-07-11 14:55:13 -04:00
2024-07-11 14:55:13 -04:00
2024-07-11 14:55:13 -04:00
2024-07-11 17:49:54 -04:00