Last modified: 2010-01-27 22:03:12 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T23922, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 21922 - YAML output should quote asterisk when used as key
YAML output should quote asterisk when used as key
Status: RESOLVED FIXED
Product: MediaWiki
Classification: Unclassified
API (Other open bugs)
unspecified
All All
: Normal normal (vote)
: ---
Assigned To: Roan Kattouw
http://de.wikipedia.org/w/api.php?tit...
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2009-12-22 15:10 UTC by Bjoern Hoehrmann
Modified: 2010-01-27 22:03 UTC (History)
4 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Bjoern Hoehrmann 2009-12-22 15:10:41 UTC
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
Comment 1 Sam Reed (reedy) 2010-01-27 22:03:12 UTC
r61609

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links