Why was negative price accepted

while creating the JOI schema we have mentioned the price to be minimum 0, then why didnt -130000 throw an error