async-validator icon indicating copy to clipboard operation
async-validator copied to clipboard

Is a bug for required of deep rule ?

Open woshihaoren opened this issue 7 years ago • 2 comments

below rule is ok, required can work.

var descriptor = {
   storage: {
      type: 'array',
      required: true,
      trigger: 'blur',
      fields: {
        0: {type: 'object', required: true}
      }
}

when using defaultfields, required can‘t work.

var descriptor = {
   storage: {
      type: 'array',
      required: true,
      trigger: 'blur',
      defaultField: {
        type: 'object',
        required: true,
        fields: {
          name: {type: 'string', required: true},
          src: {type: 'string', required: true},
          dest: {type: 'string', required: true}
        }
      }
}

woshihaoren avatar Jun 20 '18 08:06 woshihaoren

Same problems, too, the required is not working.

aprilandjan avatar Jul 23 '18 08:07 aprilandjan

The same problem

andrey-hohlov avatar Mar 12 '20 14:03 andrey-hohlov