Bug, i have required field and can make and publish new entity. Version Strapi 4.25.6

I have a relation with a specialist (main article) below code:
“specialists”: {
“type”: “relation”,
“relationship”: “ManyToOne”,
“purpose”: “api::specialist.specialist”,
“inversedBy”: “articles”,
“required”: true
},
And the code itself is essentially a specialist with the link article:
“articles”: {
“type”: “relation”,
“relation”: “oneToMany”,
“target”: “api::article.article”,
“mappedBy”: “specialist”
},

This topic has been created from a Discord post (1271457390482690148) to give it more visibility.
It will be on Read-Only mode here.
Join the conversation on Discord

It’s not considered a bug, but a feature. It’s on the canny feedback board Specify relation column as required | Content Editing XP | Strapi

You can achieve it by using lifecycles though ----------------------
Here’s an example of how you can do this:

module.exports = {
  lifecycles: {
    async beforeCreate(data) {
      if (!data.relationField) {
        throw strapi.errors.badRequest('relationField is required');
      }
    },
    async beforeUpdate(params, data) {
      if (!data.relationField) {
        throw strapi.errors.badRequest('relationField is required');
      }
    },
  },
};