-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Open
Labels
type: bugcode to address defects in shipped codecode to address defects in shipped code
Description
I think this similar but not the same as #7383
Describe the bug
When an object field is optional but has a required field, it fails validation when all its fields are empty.
To Reproduce
Add this field to a collection:
- name: submittedBy
label: Submitted by
widget: object
summary: '{{fields.name}}'
required: false
i18n: false
fields:
- name: name
label: Name
widget: string
- name: url
label: Url (separate multiple entries with a comma)
widget: list
required: falseTry to save an item without setting submittedBy.name
Expected behavior
Validation should pass, and item be saved without subittedBy
Screenshots
Instead:
Applicable Versions:
- Decap CMS version: 3.9.0
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
type: bugcode to address defects in shipped codecode to address defects in shipped code