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: wikidata-b...@lists.wikimedia.org
          Reporter: adrian.l...@wikimedia.de
                CC: wikidata-b...@lists.wikimedia.org
       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.
_______________________________________________
Wikibugs-l mailing list
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to