Page MenuHomePhabricator

Please report linter-errors in parse-API too
Open, MediumPublicBUG REPORT

Description

Steps to replicate the issue (include links if applicable):

What happens?:
This simple call would create a wikipage with two linter errors of type missing-end-tag

What should have happened instead?:
I would be really glad, when there is some (maybe additional) parameter in the parse-API which reports those errors.

Event Timeline

Arlolra triaged this task as Medium priority.Aug 22 2023, 7:45 PM
Arlolra moved this task from Backlog to Action API on the MediaWiki-extensions-Linter board.
Arlolra added a subscriber: Arlolra.

A request can be made to the REST API to lint arbitrary wikitext,

> curl -X POST -H "Content-Type: application/json" -d '{"wikitext":"<div>test"}' https://www.mediawiki.org/api/rest_v1/transform/wikitext/to/lint
[{"type":"missing-end-tag","dsr":[0,9,5,0],"params":{"name":"div","inTable":false}}]

but the parse result isn't included.

A request can be made to the REST API to lint arbitrary wikitext,

Although it looks like that is being deprecated in T334238