You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jan 21, 2020. It is now read-only.
zendframework/zendframework#7440 Causes content validation to fail when using a Resource builtin inputFilter object to validate properties not passed as part of a POST payload.
Example:
PUT /my/[:id]
{"property": "value"}
Validator is defined for both property and id. Validation for id is done inside MyResource::update
Please see zendframework/zendframework#7474 for a grid detailing how the various combinations of required, allow_empty, and continue_if_empty are intended to work (and how they were fixed to work starting in 2.4.1). Updating to ZF 2.4.1 or later will ensure consistency of operations going forward.
zendframework/zendframework#7440 Causes content validation to fail when using a Resource builtin inputFilter object to validate properties not passed as part of a POST payload.
Example:
Validator is defined for both property and id. Validation for id is done inside MyResource::update
This 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).
filter configuration would something like this (in v2.3):
According to @bakura10's comment in the above zf2 issue, this issue may not be resolved in zf2 at all.
The text was updated successfully, but these errors were encountered: