api should error out on validation failure