Array and number validation for schema