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

Wikimedia Bugzilla is closed!

Wikimedia has migrated from Bugzilla to Phabricator. Bug reports should be created and updated in Wikimedia Phabricator instead. Please create an account in Phabricator and add your Bugzilla email address to it.
Wikimedia Bugzilla is read-only. If you try to edit or create any bug report in Bugzilla you will be shown an intentional error message.
In order to access the Phabricator task corresponding to a Bugzilla report, just remove "static-" from its URL.
You could still run searches in Bugzilla or access your list of votes but bug reports will obviously not be up-to-date in Bugzilla.
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