daniel added a comment.

wbsetclaim taks data values. That's already structured data, so there is 
nothing to parse. If the data value is valid, why should we not save it?

Normalization is an interesting point though. Validation should make sure that 
the value is already in normalized form, and reject it if it isn't. Is this not 
the case? Are we seeing "unnormalized" values being saved this way?

A related issues is that we currently validate IDs against a pattern, because 
the validation code is based on DataValeus, not Snaks, so it doesn't have the 
property ID, and thus can't know what pattern to check against. Is that what 
you are thinking of?


TASK DETAIL
  https://phabricator.wikimedia.org/T122357

EMAIL PREFERENCES
  https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: daniel
Cc: Aklapper, StudiesWorld, Lydia_Pintscher, aude, daniel, hoo, Wikidata-bugs, 
Mbch331



_______________________________________________
Wikidata-bugs mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs

Reply via email to