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