Page MenuHomePhabricator

Add fields based on the output mode
Open, Needs TriagePublic

Description

Inside getResponseBodySchema in includes/Rest/Handler/RevisionSourceHandler.php

This is about adding specs for the 'html_url' field (in 'bare' mode) and 'source' field (on 'source' mode).
We should do this, since otherwise the output violates the schema.

Both fields are strings (one is a url, the other is wikitext).