{"action":"closed","issue":{"url":"https://api.github.com/repos/zfcampus/zf-content-validation/issues/42","labels_url":"https://api.github.com/repos/zfcampus/zf-content-validation/issues/42/labels{/name}","comments_url":"https://api.github.com/repos/zfcampus/zf-content-validation/issues/42/comments","events_url":"https://api.github.com/repos/zfcampus/zf-content-validation/issues/42/events","html_url":"https://github.com/zfcampus/zf-content-validation/issues/42","id":67885138,"number":42,"title":"Content validation fails due to zf2.4 BC issue","user":{"login":"YonmaNBehalf","id":10613680,"avatar_url":"https://avatars.githubusercontent.com/u/10613680?v=3","gravatar_id":"","url":"https://api.github.com/users/YonmaNBehalf","html_url":"https://github.com/YonmaNBehalf","followers_url":"https://api.github.com/users/YonmaNBehalf/followers","following_url":"https://api.github.com/users/YonmaNBehalf/following{/other_user}","gists_url":"https://api.github.com/users/YonmaNBehalf/gists{/gist_id}","starred_url":"https://api.github.com/users/YonmaNBehalf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/YonmaNBehalf/subscriptions","organizations_url":"https://api.github.com/users/YonmaNBehalf/orgs","repos_url":"https://api.github.com/users/YonmaNBehalf/repos","events_url":"https://api.github.com/users/YonmaNBehalf/events{/privacy}","received_events_url":"https://api.github.com/users/YonmaNBehalf/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-04-12T08:07:16Z","updated_at":"2015-07-08T15:52:35Z","closed_at":"2015-07-08T15:52:35Z","body":"https://github.com/zendframework/zf2/issues/7440 Causes content validation to fail when using a Resource builtin inputFilter object to validate properties not passed as part of a POST payload.\r\nExample:\r\n\r\n```\r\nPUT /my/[:id]\r\n{\"property\": \"value\"}\r\n```\r\n\r\nValidator is defined for both property and id. Validation for id is done inside MyResource::update\r\n\r\n```\r\n$this->getInputFilter()->setData(array('id' => $id));\r\n```\r\n\r\nThis is done, because my API's id has to pass through a few filters (to perform sanitation, filtering and in some cases manipulation of values).\r\n\r\nfilter configuration would something like this (in v2.3):\r\n```\r\n'MyResource\\\\Validator' => array(\r\n            0 => array(\r\n                'name' => 'id',\r\n                'required' => false,\r\n                'filters' => array(\r\n                    0 => array(\r\n                        'name' => 'Zend\\\\Filter\\\\StringTrim',\r\n                        'options' => array(),\r\n                    ),\r\n                    1 => array(\r\n                        'name' => 'MySpecialFilter',\r\n                    ),\r\n                ),\r\n                'validators' => array(\r\n                    1 => array(\r\n                        'name' => 'Zend\\\\I18n\\\\Validator\\\\Alnum',\r\n                        'options' => array(),\r\n                    ),\r\n                ),\r\n                'description' => '',\r\n                'allow_empty' => true,\r\n                'continue_if_empty' => true,\r\n            ),\r\n            1 => array(\r\n                'name' => 'property',\r\n                'required' => false,\r\n                'validators' => array(\r\n                    0 => array(\r\n                        'name' => 'Zend\\\\Validator\\\\StringLength',\r\n                        'options' => array(\r\n                            'max' => 255,\r\n                        ),\r\n                    ),\r\n                ),\r\n                'description' => '',\r\n                'allow_empty' => false,\r\n                'continue_if_empty' => false,\r\n            ),\r\n....\r\n```\r\n\r\nAccording to @bakura10's comment in the above zf2 issue, this issue may not be resolved in zf2 at all."}}