On Sat, Feb 28, 2015 at 12:20 PM, Daniel Kinzler <[email protected]> wrote: > Am 28.02.2015 um 11:57 schrieb Jeroen De Dauw: >> Hey, >> >>> I think the serializer should just drop empty references >> >> This seems like the wrong place do to that. I suggest to do this in the model >> itself, very similar to what we are doing with empty alias groups in lists of >> alias groups: >> https://github.com/wmde/WikibaseDataModel/blob/5c78e35ee1a382d3b132ddfd760772b94d600daa/src/Term/AliasGroupList.php#L114-L127 > > Sure, the model should do that. > > And if the serializer encounters an empty reference for some reason, it should > drop it, too. It's not a valid reference. There is no JSON binding for it.
The interesting question for me: How did they get in in the first place? And how do we prevent that? Both edits are fairly recent and from two different editors. This looks fishy to me. Cheers Lydia -- Lydia Pintscher - http://about.me/lydia.pintscher Product Manager for Wikidata Wikimedia Deutschland e.V. Tempelhofer Ufer 23-24 10963 Berlin www.wikimedia.de Wikimedia Deutschland - Gesellschaft zur Förderung Freien Wissens e. V. Eingetragen im Vereinsregister des Amtsgerichts Berlin-Charlottenburg unter der Nummer 23855 Nz. Als gemeinnützig anerkannt durch das Finanzamt für Körperschaften I Berlin, Steuernummer 27/681/51985. _______________________________________________ Wikidata-l mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/wikidata-l
