This issue describes the changes already outlined in #216 for simplifying the Article struct. The decoupling from the Cursive library is being done when rewriting the parser because the article gets the parsed elements from the parser. The following things would need to be done:
[ ] LanguageLink
Because the Language already includes the autonym and name properties of the link, we don't need them and can remove them safely.
The url parameter also is not needed
[ ] Section
Remove the getter methods and make the values public
[ ] InterwikiLinkLimitReportData can be removed
[ ] Removal of unnecessary article properties (in Article and Property)
Article::categories_html
Article::images
Article::external_links
Article::head_html
Article::indicators
Article::wikitext
Article::properties
Article::limit_report_html
Article::parse_tree
Article::parse_warnings - We could fetch them and log a warning for parse warning instead
Article::parse_warnings_html
Another major point would be to document all of the structs properly and with references to the mediawiki api documentation
Linked to #216
This issue describes the changes already outlined in #216 for simplifying the
Article
struct. The decoupling from theCursive
library is being done when rewriting the parser because the article gets the parsed elements from the parser. The following things would need to be done:[ ]
LanguageLink
Language
already includes theautonym
andname
properties of the link, we don't need them and can remove them safely.url
parameter also is not needed[ ]
Section
getter
methods and make the values public[ ]
InterwikiLink
LimitReportData
can be removed[ ] Removal of unnecessary article properties (in
Article
andProperty
)Article::categories_html
Article::images
Article::external_links
Article::head_html
Article::indicators
Article::wikitext
Article::properties
Article::limit_report_html
Article::parse_tree
Article::parse_warnings
- We could fetch them and log a warning for parse warning insteadArticle::parse_warnings_html
Another major point would be to document all of the structs properly and with references to the mediawiki api documentation