Bruce Johnston

Results issues of Bruce Johnston

Currently the user agent for all AutoRest-generated clients is set like this: ``` csharp HttpClient.DefaultRequestHeaders.UserAgent.Add(new ProductInfoHeaderValue(type.FullName, GetAssemblyVersion())); ``` Rather than use the assembly version, which is typically just a major...

help wanted

This issue probably affects generated Java code as well; I haven't checked. If you have Swagger like this: ``` "TextWeights": { "properties": { "weights": { "type": "object", "additionalProperties": { "type":...

Every time the AutoRest version changes and we regenerate code, every file changes because of the version number in the copyright header. Normally this wouldn't be a big deal, but...

There appears to be an empty static extensions class for each client: ``` csharp // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt...

Using `x-ms-parameter-grouping` in multiple operations results in a class with a summary comment that is derived from only the first operation in the Swagger file. For example, here is the...

Currently the C# code generated by AutoRest serializes HTTP request payloads like this: ``` csharp // Serialize Request string _requestContent = SafeJsonConvert.SerializeObject(dataSource, this.Client.SerializationSettings); _httpRequest.Content = new StringContent(_requestContent, Encoding.UTF8); ``` This...

help wanted

The comment for the `credentials` property of generated `ServiceClient` constructors assumes that the generated client is a management client, since it mentions "Azure subscription credentials". This is incorrect for data...

C#

This is a follow-on to this issue: https://github.com/Azure/autorest/issues/789 When AutoRest generates a non-Azure C# client, the `ServiceClient`-derived class includes a partial `CustomInitialize` method. This would be really handy to have...

C#

We have an API that takes a parameter that must be a single character. Although this is represented as a string in JSON, it would be helpful if it could...

C#

The C# code generator seems to needlessly escape backslashes when generating /// comments. For example, this Swagger: ``` JSON "pattern": { "type": "string", "default": "\\W+", "description": "A regular expression pattern...

C#