Add capability validators for integer/positive integer

Signed-off-by: Alin Dreghiciu <adreghiciu@gmail.com>