https://bugzilla.wikimedia.org/show_bug.cgi?id=66791
Bug ID: 66791 Summary: Do not omit empty fields from JSON Product: MediaWiki extensions Version: unspecified Hardware: All OS: All Status: NEW Severity: normal Priority: Unprioritized Component: WikidataRepo Assignee: wikidata-b...@lists.wikimedia.org Reporter: daniel.kinz...@wikimedia.de CC: wikidata-b...@lists.wikimedia.org Web browser: --- Mobile Platform: --- The new serialization code, Serializers\EntitySerializer, omits empty fields from the data structure. E.g. if there are no descriptions set, addDescriptionsToSerialization() will do nothing instead of adding $serialization['descriptions'] = array(); This is a breaking change versus the old serialization code, compare getSerialized() in Wikibase\Lib\Serializers\EntitySerializer. This leads to some parts of the JSON representation being optional, which forces consumers to always check for preses. This is likely to break existing consumers (bots, gadgets, etc). -- You are receiving this mail because: You are on the CC list for the bug. _______________________________________________ Wikibugs-l mailing list Wikibugs-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikibugs-l