For some output formats (in particular, XML as generated by ApiFormat), ID-based maps are problematic, and should be replaced by plain lists (with a tag name meta-marker set, see T78652).
- Mentioned In
- T73170: [Story] Ensure feature parity of serialization based on WikibaseDataModelSerialization with what we do with WikibaseLib
- Mentioned Here
- T78652: DataModelSerialization: Serializers to be used with the MediaWiki API need to inject meta-info like _indexTagNames, to allow XML output from API modules.
This blocks "WikibaseDataModelSerialization with what we do with WikibaseLib" and although we have totally removed the Lib Serialization I would not consider this task complete in regards to WikibaseDataModelSerialization..
Still looking into potentially 1 change in core for our use case to remove keys and shove them somewhere else in an element.
Then after a breaking change to our XML output (as they are different anyway) we could probably use the same serialization for all formats...