Closed MOTOO11 closed 8 months ago
Thank you! I will check it out if it is the issue of the usage or the framework.
"Object of type 'System.String' cannot be converted to type 'System.Collections.Generic.IEnumerable`1[System.ComponentModel.DataAnnotations.ValidationResult]'."
In SekibanApiListController.cs
at line 80,
I am attempting to create a CommandExecutorResponse
using reflection.
However, a string type is being passed to the constructor's IEnumerable<ValidationResult>? ValidationResults
.
Likely, it does not support the generation of default instances for IEnumerable.
public record CommandExecutorResponse(
Guid? AggregateId,
Guid? CommandId,
int Version,
IEnumerable<ValidationResult>? ValidationResults,
string? LastSortableUniqueId,
string AggregatePayloadOutTypeName,
int EventCount);
Upon launching the "BookBorrowing.Web.Cosmos" sample project and attempting to access the "/api/info/aggregates" endpoint through Swagger, a 500 Internal Server Error occurred.
Reproduction Steps