Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using value object collections with a CosmosDB repository causes duplicate explicit interface implementations #114

Open
stephanjohnson opened this issue Dec 16, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@stephanjohnson
Copy link

What happened?

In the Intent.CosmosDB.CosmosDBDocument template, if i have a property type as a value object, set as a collection, I get duplicate IReadOnlyList explicit interface implementations, one for the value object interface, and the other for the concrete type.

    public List<ClaimValueObjectDocument> IncomingClaims { get; set; } = default!;
    IReadOnlyList<IClaimValueObjectDocument> IEventDocument.IncomingClaims => IncomingClaims;
    IReadOnlyList<ClaimValueObjectDocument> IEventDocument.IncomingClaims => IncomingClaims;

for this interface

public interface IEventDocument
{
    string Id { get; }
    string TraceId { get; }
    string TokenId { get; }
    string UserId { get; }
    IReadOnlyList<IClaimValueObjectDocument> IncomingClaims { get; }
    IReadOnlyList<string> RequestedScopes { get; }
    Dictionary<string, string> Metadata { get; }
    DateTimeOffset Timestamp { get; }
}

What version of Intent Architect are you using?

4.3.9

Additional information

No response

@stephanjohnson stephanjohnson added the bug Something isn't working label Dec 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant