Added check to ApiSpec to ensure that numbers are non-negative