Open AArnott opened 3 years ago
Happens for Ceph OpenAPI definition as well: https://raw.githubusercontent.com/ceph/ceph/pacific/src/pybind/mgr/dashboard/openapi.yaml
PackageReferences:
<PackageReference Include="Microsoft.Extensions.ApiDescription.Client" Version="5.0.9">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="NSwag.ApiDescription.Client" Version="13.13.2">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
I am getting methods with commas in the name
public virtual async System.Threading.Tasks.Task<GridpointGeoJson> Gridpoints,Async(NWSForecastOfficeId wfo, int x, int y, System.Threading.CancellationToken cancellationToken)
When using NSwag.exe to generate C# code:
Where the openapi.json file came from: https://api.weather.gov/openapi.json
Generates C# code including this:
Which produces a number of compiler errors.
This was with the following references: