https://bugzilla.wikimedia.org/show_bug.cgi?id=63299
Bug ID: 63299
Summary: A snak with a quantity property and a string value is
rendered normally instead of showing an error
Product: MediaWiki extensions
Version: master
Hardware: All
OS: All
Status: NEW
Severity: normal
Priority: Unprioritized
Component: WikidataRepo
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected]
Web browser: ---
Mobile Platform: ---
DispatchingValueFormatter::getFormatter first searches a PT formatter, then a
VT formatter. Currently, most of the mappings in WikibaseValueFormatterBuilders
are VT, which means there is no error for type mismatches if the property has
one of those types.
I have no clue if we should move most of the VT to PT mappings or change the
logic or whatever. JS does this correctly.
--
You are receiving this mail because:
You are on the CC list for the bug.
You are the assignee for the bug.
_______________________________________________
Wikidata-bugs mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs