Validation that fails during IInstantiationValidator returns only the "text key" from resource-file back to the user in JSON-response. #812
Labels
good-first-issue
Issues that are easy to fix for new team members or external contributors
kind/feature-request
New feature or request
Description of the bug
We allow users to send in data via "maskinell innrapportering", such as doing it by Postman through pure JSON or creating their own front-end. This works fine for the most part, but while validation of most elements returns both the text key and the actual text the user should get back from the
resource.[language].json
file, when validation fails during theIInstantiationValidator
process specifically the user is only given back the key. This can be cryptic, as the user has no idea what (for instance)rrh.notinregister
means.The source code is in this app: https://altinn.studio/repos/brg/rrh-innrapportering
URL in TT02: https://brg.apps.tt02.altinn.no/brg/rrh-innrapportering/
Steps To Reproduce
(You might also see it not being there in the JSON response given back through a regular failed instantiation by using the app itself, but I'm not sure.)
Additional Information
No response
The text was updated successfully, but these errors were encountered: