{"action":"opened","issue":{"url":"https://api.github.com/repos/yiisoft/yii2/issues/8117","labels_url":"https://api.github.com/repos/yiisoft/yii2/issues/8117/labels{/name}","comments_url":"https://api.github.com/repos/yiisoft/yii2/issues/8117/comments","events_url":"https://api.github.com/repos/yiisoft/yii2/issues/8117/events","html_url":"https://github.com/yiisoft/yii2/issues/8117","id":69263537,"number":8117,"title":"CompareValidator fails on equality","user":{"login":"bhagwatchouhan","id":3871877,"avatar_url":"https://avatars.githubusercontent.com/u/3871877?v=3","gravatar_id":"","url":"https://api.github.com/users/bhagwatchouhan","html_url":"https://github.com/bhagwatchouhan","followers_url":"https://api.github.com/users/bhagwatchouhan/followers","following_url":"https://api.github.com/users/bhagwatchouhan/following{/other_user}","gists_url":"https://api.github.com/users/bhagwatchouhan/gists{/gist_id}","starred_url":"https://api.github.com/users/bhagwatchouhan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bhagwatchouhan/subscriptions","organizations_url":"https://api.github.com/users/bhagwatchouhan/orgs","repos_url":"https://api.github.com/users/bhagwatchouhan/repos","events_url":"https://api.github.com/users/bhagwatchouhan/events{/privacy}","received_events_url":"https://api.github.com/users/bhagwatchouhan/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-04-18T03:53:58Z","updated_at":"2015-04-18T03:53:58Z","closed_at":null,"body":"When we pass the attribute value and compareValue to check whether both are not equal, the validator fails.\r\n\r\n[ '<attribute>', 'compare', 'on' => '<scenario>', 'type' => 'number', 'compareValue' => 10, 'operator' => '!=', 'message' =>  'attribute must not be equal to 10.' ]\r\n\r\nEx:\r\n\r\nattribute value: 10\r\ncompareValue: 10\r\noperator: !=\r\n\r\nResult:\r\nIt shows the validation error.\r\n\r\nExpected Result:\r\nIt must not show error when values are same."}}