private static ValidationProblemDetails ToValidationProblemDetails(SerializableError serializableError) { var validationErrors = serializableError .Where(x => x.Value is string[]) .ToDictionary(x => x.Key, x => x.Value as string[]); return(new ValidationProblemDetails(validationErrors)); }
private static IDictionary <string, string[]> GetValidationErrors(SerializableError error) { return(error.Where(x => x.Value is string[]).ToDictionary(x => x.Key, x => (string[])x.Value)); }