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

CosmosDB Trigger deserialization fails when property is required, init and null (but works with CosmosDB) #2471

Open
brian-thisisplantcurious opened this issue Apr 17, 2024 · 1 comment
Assignees
Labels

Comments

@brian-thisisplantcurious

Azure CosmosDB Trigger
.Net 8 Isolated

public class Sample
{
public required long? Value { get; init; }
}

This class works fine with serialization and deserialization to CosmosDB via the C# API but fails when it is used in a CosmosDB Trigger.

The workaround is as follows.

public class Sample
{
public long? Value { get; init; }
}

@bhagyshricompany
Copy link

bhagyshricompany commented Apr 22, 2024

Thanks for reporting could you share all the steps which you followed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants