Open
Description
openedon May 26, 2021
Describe the issue or request
Today, there isn't great support for reordering and setting defaults without wrapping the generated API yourself.
Describe your ideas for solutions
Run generator as-is. I get:
public virtual Task<Response> SendToUserAsync(string userId, string contentType, RequestContent requestBody, RequestOptions requestOptions = null);
Add an override file with:
public class WebPubSubService
{
[Operation("WebPubSubService_SendToUser")]
public extern virtual Task<Response> SendToUserAsync(string userId, RequestContent requestBody, string contentType = "application/json", RequestOptions requestOptions = null);
}
Which tells the generator to rearrange parameters and default one of them
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment