Skip to content

Refit serialization problem #1581

Discussion options

You must be logged in to vote

I think I figured out the issue with the List<Guid> model problem. I had to add Buffered: true to the Body attribute.

public interface IRefitApiClient 
{
   [HttpPost("/api/xyz/customer/process")]
   [Headers("content-type: application/json")]
   public async Task<int> ProcessCustomers([Body(Buffered: true)] IEnumerable<Guids> customerIds, CancellationToken token);
}

Why is this not a default?! I wasted so many hours trying so many things. Please make it a default. If someone wants to stream their content, let them explicitly set it.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by gitterdonewell
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant