Closed snapshotpl closed 8 years ago
This issue tracker is only for bugs and feature requests. Please post your question in a Q&A site like Stackoverflow.
Hint: Play with this snippet
$inputSpecification = [
'allow_empty' => true, // keep this as true always
'continue_if_empty' => true, // keep this as true always
'validators' => [
[
'break_chain_on_failure' => true,
'name' => 'Zend\\Validator\\NotEmpty',
],
],
];
I use InputFilter in Apigility validation POST data. I want to make optional user object in json. However if it's appear then some fields should be required.
My InputFilter config:
In this case I need to send all fields (only
locality
is not required), but I need to be able to not send wholeuser
object.Any advice?