diff --git a/RESTFulSense/Controllers/RESTFulController.cs b/RESTFulSense/Controllers/RESTFulController.cs index a4302099..5d1d9aa5 100644 --- a/RESTFulSense/Controllers/RESTFulController.cs +++ b/RESTFulSense/Controllers/RESTFulController.cs @@ -742,7 +742,10 @@ private void MapExceptionDataToProblemDetail( problemDetail.Errors.Add( key: errorKey, - value: ((List)error.Value)?.ToArray()); + + value: error.Value.GetType() == typeof(List) + ? ((List)error.Value)?.ToArray() + : (string[]) error.Value); } } diff --git a/RESTFulSense/RESTFulSense.csproj b/RESTFulSense/RESTFulSense.csproj index df067c7e..a63a4168 100644 --- a/RESTFulSense/RESTFulSense.csproj +++ b/RESTFulSense/RESTFulSense.csproj @@ -11,9 +11,9 @@ true api.png - 2.19 - 2.19.0.0 - 2.19.0.0 + 2.20 + 2.20.0.0 + 2.20.0.0 en-US https://www.restfulsense.net