If dependencies is present, only check 'required' if all dependencies are validated

Actually, we can define a field with dependencies but it works only with required=False, because when required=True, even if dependencies do not exists,this field is always mandatory.