Page MenuHomePhabricator

Use the formal ZObject validation definitions from the function-schemata repo in the ZObjectFactory validation code
Open, MediumPublic

Description

… instead of local bespoke stuff.

Event Timeline

Jdforrester-WMF added a subscriber: cmassaro.

This would involve pulling in https://gerrit.wikimedia.org/r/plugins/gitiles/mediawiki/services/function-schemata/+/refs/heads/master as a git submodule and using the PHP bindings that @cmassaro put there to validate inputs from the json-schema files.

(This probably means we'll need to change our CI to use the local composer rather than production vendor quibble jobs.)

DVrandecic triaged this task as Medium priority.May 5 2021, 4:49 PM

Change 706380 had a related patch set uploaded (by Jforrester; author: Jforrester):

[mediawiki/extensions/WikiLambda@master] Inherit the composer dependencies from function-schemata sub-module

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