Page MenuHomePhabricator

YAML output should quote asterisk when used as key
Closed, ResolvedPublic

Description

Author: bjoern

Description:
In the API's YAML output, asterisks are used as keys without quoting them, for example:

extlinks:
  -
    *: |
      http://commons.wikimedia.org/wiki/North_Sea?uselang=de

This causes problems with some parsers (e.g. PyYAML), it should instead be something like

extlinks:
  -
    '*': |
      http://commons.wikimedia.org/wiki/North_Sea?uselang=de

Version: unspecified
Severity: normal
URL: http://de.wikipedia.org/w/api.php?titles=Nordsee&prop=extlinks&action=query&format=yamlfm

Details

Reference
bz21922

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 10:58 PM
bzimport added a project: MediaWiki-API.
bzimport set Reference to bz21922.