[Wikidata-bugs] [Maniphest] [Commented On] T230117: Remove type: statement from JSON serialization of statements

2019-08-11 Thread LucasWerkmeister
LucasWerkmeister added a comment. I just discovered that in API requests (`wbsetclaim`, `wbeditentity`, etc.), the `type` is //not//, as I had assumed, optional – if you omit it, you’ll get some sort of error (though it seems to vary depending on situation – I’ve seen `invalid-claim` error

[Wikidata-bugs] [Maniphest] [Commented On] T230117: Remove type: statement from JSON serialization of statements

2019-08-08 Thread Lucas_Werkmeister_WMDE
Lucas_Werkmeister_WMDE added a comment. Even Pywikibot, which still calls Statements “Claims”, doesn’t read the `type` when deserializing a Statement (`Claim.fromJSON`), although it does emit a `type` when serializing it (`Claim.toJSON`). TASK DETAIL