Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

JSON formatversion #3

Open
hartman opened this issue Sep 15, 2016 · 1 comment
Open

JSON formatversion #3

hartman opened this issue Sep 15, 2016 · 1 comment

Comments

@hartman
Copy link

hartman commented Sep 15, 2016

Another thing you might want to consider adding to your default options is formatversion=2.

https://www.mediawiki.org/wiki/API:JSON_version_2

@Fannon
Copy link
Contributor

Fannon commented Sep 15, 2016

That's an interesting idea (I don't like the default JSON output, either), but I'm not quite sure that it's worth the consequences: It would make mwbot by default not compatible with MW < 1.25. Having compatibility with older wikis is something I need for my own use cases.

but do note that the output formatting isn't entirely stable yet and might change in MediaWiki 1.26.

This is also making me a bit unsure, because it indicates that at best the documentation is not up to date, at worst that the new API is not reliable, yet.

One compromise I could think of is having a configuration to optionally activate json v2 output. I'd have to make sure that convenience functions like .batch() will detect whether the outut is v1 and v2 and support both.

What are your expeniences with the version 2 JSON format? Thanks for your input!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants