thiemowmde added a comment. |
I had a look at the wbsetlabel API module, but it's not possible to have API parameters that depend on each other. The only solution would be to set the language parameter to string, with no strict limitation to a set of known languages, and do the strict validation manually whenever a label is set.
Same must then be done for all API modules.
I suggest to not do this because it makes the code error prone and is not necessary after a proper cleanup.
TASK DETAIL
EMAIL PREFERENCES
To: thiemowmde
Cc: Smalyshev, thiemowmde, Sjoerddebruin, Liuxinyu970226, gerritbot, Nikki, Urbanecm, TerraCodes, Luke081515, hoo, daniel, aude, Lydia_Pintscher, adrianheine, Aklapper, Addshore, Zppix, Lewizho99, Maathavan, D3r1ck01, Izno, Wikidata-bugs, Mbch331
Cc: Smalyshev, thiemowmde, Sjoerddebruin, Liuxinyu970226, gerritbot, Nikki, Urbanecm, TerraCodes, Luke081515, hoo, daniel, aude, Lydia_Pintscher, adrianheine, Aklapper, Addshore, Zppix, Lewizho99, Maathavan, D3r1ck01, Izno, Wikidata-bugs, Mbch331
_______________________________________________ Wikidata-bugs mailing list Wikidata-bugs@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs