Extend the definition of what is well-formed:
For every well-formed ZObject, ensure that the value of the Z1K1/type key is the ZID of an object that exists in the wiki.
Extend the definition of what is well-formed:
For every well-formed ZObject, ensure that the value of the Z1K1/type key is the ZID of an object that exists in the wiki.
Subject | Repo | Branch | Lines +/- | |
---|---|---|---|---|
Validate that a ZObject's type exists | mediawiki/extensions/WikiLambda | master | +549 -3 |
Status | Subtype | Assigned | Task | ||
---|---|---|---|---|---|
Resolved | DVrandecic | T258898 Display header of ZObjects | |||
Resolved | DVrandecic | T258899 Ensure the ZObject's type exists | |||
Resolved | DVrandecic | T258894 Check for local ZObject well-formedness | |||
Resolved | DVrandecic | T258893 Set up Wikilambda repo |
Change 617171 had a related patch set uploaded (by Jforrester; owner: Jforrester):
[mediawiki/extensions/WikiLambda@master] Validate that a ZObject's type exists
Change 617171 merged by jenkins-bot:
[mediawiki/extensions/WikiLambda@master] Validate that a ZObject's type exists
Seems to currently only check the top level object, not yet embedded objects, i.e. the following serialization stores fine.
{ "Z1K1": "Z2", "Z2K2": { "Z1K1": "Foo", "K1": "Bar" } }
With the latest version of the getValue() patch, this won't let you store it any more, but gives a fatal PHP error. Will fix that bit.