Required validation for Relational fields and validating others fields based on the value

System Information
  • Strapi Version: v4.0.0
  • Operating System: Windows
  • Database: Postgres
  • Node Version: v14.18.1
  • NPM Version: v6.14.15
  • Yarn Version:


I was wondering that why not required option for Relation properties.
Also I am looking for validating fields based on other field(Relation fields) values.

I am having content type collection which has relation with other collection. Utilizing these collections using Rest API. I need to validate fields of collection as and when this related field is selected.
(Ex: Collection is related category collection and when creating the record when category selected, need to validate fields.) How can I achieve this?

Any help would be greatly appreciated! Thanks.