Page MenuHomePhabricator

Apply data type specific validators to snak values received by the API
Closed, ResolvedPublic

Description

The API should check all snak values it receives from a client against the validators associated with a given data type (aka property type).

Note that these validators are specific to the snak's peroperty type, and apply to DataValue objects. This is a different layer of validation than the one applied when constructing DataValue objects (and another layer yet than parsing data values from strings).


Version: unspecified
Severity: normal

Details

Reference
bz49263

Event Timeline

bzimport raised the priority of this task from to High.Nov 22 2014, 1:56 AM
bzimport set Reference to bz49263.
bzimport added a subscriber: Unknown Object (MLST).

Related URL: https://gerrit.wikimedia.org/r/67892 (Gerrit Change I6b4eaa542291a6ad9ee8921371efc741e3d7465a)

Related URL: https://gerrit.wikimedia.org/r/68650 (Gerrit Change I7378838f9ab22a52261d79af6690f531f0f1ee2b)

Related URL: https://gerrit.wikimedia.org/r/68656 (Gerrit Change I67b9ae480c4a667043486b45027796c0c69c5ffa)

Related URL: https://gerrit.wikimedia.org/r/68685 (Gerrit Change Ieda3ea28c16d35d70b0cf814e8c86853edbecf5f)

https://gerrit.wikimedia.org/r/68650 (Gerrit Change I7378838f9ab22a52261d79af6690f531f0f1ee2b) | change APPROVED and MERGED [by Tobias Gritschacher]

https://gerrit.wikimedia.org/r/68656 (Gerrit Change I67b9ae480c4a667043486b45027796c0c69c5ffa) | change APPROVED and MERGED [by Tobias Gritschacher]

https://gerrit.wikimedia.org/r/68685 (Gerrit Change Ieda3ea28c16d35d70b0cf814e8c86853edbecf5f) | change APPROVED and MERGED [by Tobias Gritschacher]

Verified in Wikidata demo sprint 22-9