Page MenuHomePhabricator

Allow YAML as an alternative for JSON on MediaWiki pages
Closed, DeclinedPublic

Description

JSON is a very human-unfriendly format; that makes editing JSON pages, especially JSON pages with free text (e.g. the description field in EventLogging schemas, which tends to be very long and have newlines and quotation marks) cumbersome. We should support YAML as an alternative format.

This could happen in the form of a separate YAML content type (and then extensions would be updated to accept that alongside JSON), or the JSON content type could allow for YAML storage and somehow convert it transparently (although that seems fragile), or maybe YAML could be handled purely on the editor level, like how VisualEditor handles the WYSIWYG HTML (although that would assume JSON -> YAML conversion can be done in a useful way, which is probably not the case).

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald Transcript

Sounds fine to me however this is done!

However, MEP schemas use YAML by default. By the end of this FY we hope to not have to create any new on wiki EventLogging schemas (although the existent ones will continue to be supported).

Restricted Application edited projects, added Analytics; removed Analytics-Radar. · View Herald TranscriptJun 10 2020, 6:33 AM
Restricted Application edited projects, added Analytics; removed Analytics-Radar. · View Herald TranscriptJun 10 2020, 6:36 AM

On wiki jsonschemas for eventlogging are no longer supporrted.