Page MenuHomePhabricator

Allow ZObject validation process in ZObjectFactory create method to return an array of errors instead of one.
Closed, ResolvedPublic

Description

Currently ZObjectFactory::create throws an InvalidArgumentException as soon as one validation error is found. To be able to return a ZError object with an array of concrete validation errors, we need to transform this logic so that the validation is always completed and not interrupted when finding the first error.

Event Timeline

Change 724766 had a related patch set uploaded (by Genoveva Galarza; author: Genoveva Galarza):

[mediawiki/extensions/WikiLambda@master] Decouple validation and ZObject creation to use function-schemata validator

https://gerrit.wikimedia.org/r/724766

Change 724766 merged by jenkins-bot:

[mediawiki/extensions/WikiLambda@master] Decouple validation and ZObject creation to use function-schemata validator

https://gerrit.wikimedia.org/r/724766