Rename `'warning'` event to `'invalid'`.