Came across this issue when deserializing the JSON retrieved from streamconfigs API in the Event Platform Client Library for iOS. Streams that are in the config but don't have any configs are rendered as [] (bad) instead of {} (good). Please fix this, thank you.
Steps to Reproduce:
https://meta.wikimedia.org/w/api.php?action=streamconfigs&format=json
Actual Results:
{ "streams": { "eventlogging_SearchSatisfaction": { "destination_event_service": "eventgate-analytics-external" }, "mediawiki.client.error": { "destination_event_service": "eventgate-logging-external" }, "kaios_app.error": { "destination_event_service": "eventgate-logging-external" }, "test.event": [], ... } }
Expected Results:
{ "streams": { "eventlogging_SearchSatisfaction": { "destination_event_service": "eventgate-analytics-external" }, "mediawiki.client.error": { "destination_event_service": "eventgate-logging-external" }, "kaios_app.error": { "destination_event_service": "eventgate-logging-external" }, "test.event": {}, ... } }
Testing with https://pai-test.wmflabs.org/streams for now