https://bugzilla.wikimedia.org/show_bug.cgi?id=50511

--- Comment #1 from Krinkle <[email protected]> ---
It is in my opinion not feasible to get line numbers because we use a native
PHP extension to parse the JSON.

If the JSON syntax itself is invalid, there is nothing we can do. Best case
scenario the parser gives the type of error ("Unexpected comma", "Expected
closing curly brace" etc.) but a line number is unlikely.

Once the JSON is parsed, the TemplateData validation itself (e.g. sets
referring to existing parameters) we have full control over and gives pretty
informative errors with the full path to the property.

> Unexpected property "params.user.blabla".
> Property "params.timestamp.description" is expected to be of type 
> "string|object".

etc.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to