| WMDE-leszek created this task. WMDE-leszek added projects: Wikidata-Sprint, Wikidata, Lexicographical data. |
It shouldn't be possible to remove language and/or lexical category of the Lexeme entity when using API's wbeditentity action.
While it is OK to change those values (obvious case being fixing a mistake), we consider language and lexical category to be required parts of the Lexeme entity. Without those Lexeme is incomplete. Therefore users should not be allowed to remove those values from existing entities.
When it comes to implementation this should probably be done in respective ChangeOpDeserializer that should refuse to set language/lexical category to an empty value (null etc). Such attempt should result in a relevant error message returned by the API (ie. ChangeOpDeserializer should use dedicated "error code", that API would translate into the error message).
Cc: Lydia_Pintscher, daniel, Ladsgroup, Aklapper, WMDE-leszek, D3r1ck01, Izno, Wikidata-bugs, aude, Darkdadaah, Mbch331
_______________________________________________ Wikidata-bugs mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs
