| daniel added a comment. |
Please distinguish between
a) normalization applied by the API, when receiving a JASON structure representing a sting value.
b) normalization applied by the API when parsing user input, and returning a string value
c) normalization applied by the _javascript_ widget before sending user input to the API
I believe we should do (b), but not (a). We can also do (c), but with (b) in place, this seems redundant.
The reason I believe we should not do (a) is that we are not dealing with user input then, but with a DataValue object. DataValue objects are either valid or they are not, we should not guess intent. Clients that supply DataValues should take care to apply any normalization they desire.
TASK DETAIL
EMAIL PREFERENCES
To: daniel
Cc: Esc3300, Aklapper, ChristianKl, D3r1ck01, Izno, Wikidata-bugs, aude, Mbch331
Cc: Esc3300, Aklapper, ChristianKl, D3r1ck01, Izno, Wikidata-bugs, aude, Mbch331
_______________________________________________ Wikidata-bugs mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs
