Error messages in RequestPartValidator prints typeof(DataType) instead of dataType.Id #6418
Labels
kind/bug
Used when there is a defect / something is not working as it should.
Milestone
Describe the bug
Example error:
"Error when comparing content to application metadata: The multipart section named vedleggDriftsplan has a Content-Type 'text/plain' which is invalid for element type 'Altinn.Platform.Storage.Interface.Models.DataType'."
The message contains the type name of DataType instead of the dataType.Id value.
To Reproduce
Steps to reproduce the behavior:
POST {org}/{app}/instances
where content type is invalid for at least one data element.Expected behavior
Error message includes the correct data type identifier.
The text was updated successfully, but these errors were encountered: