2 comments (2 comments)1 reaction (1 reaction)0 assignees (0 assignees)JavaScript14,656 stars (14,656 stars)2,288 forks (2,288 forks)batch import
bughelp wanted
Description
Steps to reproduce the behavior
- Create list with required field with type
Name
- Get model and create new item
keystone.List(listName).model().save()
Expected behavior
Get validation error
Actual behavior
Item successfully saved
- Issue type
- bug
- Prerequisites
- None
- Research direction
- Investigate the validation logic for the 'Name' field type in KeystoneJS. Look at the source files for field types (e.g., fields/types/Name) and check how 'required' validation is enforced. The issue might be that the required check is bypassed for 'Name' fields. Compare with other field types like 'Text' to see how they handle required validation. Look for any test files that cover required field validation for Name.