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.


-- 
Daniel Kinzler
Senior Software Developer

Wikimedia Deutschland
Gesellschaft zur Förderung Freien Wissens e.V.

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

Reply via email to