Workaround · Customization · Annoyance
Relation field cannot be required in the UI; schema file edit works
1 source thread · first seen 2023-01
Every GitHub thread behind this report is closed (latest 2023-01). The problem may be fixed in current versions; check the source threads below before relying on it.
Summary
The content-type builder does not offer a required option for relations. Adding required to the schema file by hand makes validation work.
- Workaround
- Add required: true to the relation in the schema.json file
Evidence
Excerpts are copied word for word from the source; follow the link to read it in full.
“it should be possible to mark this data field as required, but this can't be done”