HasanAkgun_WMDE added a comment.

  @Lucas_Werkmeister_WMDE I think we can add problematic part of a property as 
a parameter to the API response? UI can also highlight the issue with the input 
as well. I don't know if it's a good idea to add it as a parameter though.
  
  Example:
  
    {
        "error": {
            "code": "wikibase-validator-malformed-value",
            "info": "Malformed input: hmm\u00a0"
        },
        "results": [
            {
                "raw": "hmm\u00a0",
                "value": {
                    "text": "hmm\u00a0",
                    "language": "en"
                },
                "type": "monolingualtext",
                "error": "ValidationError",
                "messages": [
                    {
                        "name": "wikibase-validator-malformed-value",
                        "parameters": [
                            "hmm\u00a0",
                            "\u00a0"
                        ],
                        "html": {
                            "*": "Malformed input: hmm "
                        }
                    }
                ],
                "validation-errors": [
                    "malformed-value"
                ]
            }
        ]
    }

TASK DETAIL
  https://phabricator.wikimedia.org/T304943

EMAIL PREFERENCES
  https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: HasanAkgun_WMDE
Cc: So9q, gabbyprecious, Dominicbm, Lucas_Werkmeister_WMDE, Manuel, Aklapper, 
Jainitbafna, Astuthiodit_1, karapayneWMDE, Invadibot, Gaurav24072002, 
Abhinay76, Annysah01, Rohitgeddam, maantietaja, ItamarWMDE, Akuckartz, Soda, 
Chaytanya, JorisDarlingtonQuarshie, wiki-helenatxu, Dinadineke, DannyS712, 
Klein, Nandana, Tks4Fish, Mh-3110, tabish.shaikh91, Lahi, Gq86, 
GoranSMilovanovic, Jayprakash12345, JakeTheDeveloper, QZanden, merbst, 
LawExplorer, _jensen, rosalieper, xSavitar, Scott_WUaS, MuhammadShuaib, 
Tmalhotra, SimmeD, Wikidata-bugs, aude, Lydia_Pintscher, TheDJ, Mbch331
_______________________________________________
Wikidata-bugs mailing list -- wikidata-bugs@lists.wikimedia.org
To unsubscribe send an email to wikidata-bugs-le...@lists.wikimedia.org

Reply via email to