when I add "style": "form" I get this:
public virtual async Task<Response> GetToHereAsync(Request request, CancellationToken cancellationToken)
{
if (request == null)
throw new System.ArgumentNullException("request");
var urlBuilder_ = new System.Text.StringBuilder();
urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/path/to/here?");
if (Request.Property1 != null)
{
urlBuilder_
.Append(System.Uri.EscapeDataString("Property1") + "=")
.Append(System.Uri.EscapeDataString(ConvertToString(Request.Property1, System.Globalization.CultureInfo.InvariantCulture)))
.Append("&");
}
if (Request.Property2 != null)
{
urlBuilder_
.Append(System.Uri.EscapeDataString("Property2") + "=")
.Append(System.Uri.EscapeDataString(ConvertToString(Request.Property2, System.Globalization.CultureInfo.InvariantCulture)))
.Append("&");
}
foreach (var item_ in Request.AdditionalProperties)
{
urlBuilder_
.Append(System.Uri.EscapeDataString(item_.Key) + "=")
.Append(System.Uri.EscapeDataString(ConvertToString(item_.Value, System.Globalization.CultureInfo.InvariantCulture)))
.Append("&");
}
urlBuilder_.Length--;
which is what I am trying to get, except for the use of the type again instead of the parameter.