Closed addshore closed 9 years ago
@Benestar turns out we do needs this....
How should the serialization look like then? Should it contain the language code as an array key or should it only add the language code to all aliases individually? Also do we need an AliasGroupDeserializer as well? Otherwise this should be relatively easy.
I only need the Serializer, although a Deserializer would likely be useful for clients. I reckon only add the language code to the aliases individually. This would probably mean the Deserializer should make sure all of the aliases have the same language
Keep in mind that there could be multiple serilaizers for any given object. So there is no need to make one that makes most sense for all possible use cases.
This will be needed by the ResultBuilder class in Wikibase for API XML output.