Would be great if we could add custom validators to dynamic attributes

For example: I need a min and max for integers and doubles. For strings i might want to do phone number validation etc.