Skip to content

Generated class names cause compiler warning. #4849

@KutanaDev

Description

@KutanaDev

I'm using this yaml file: https://github.com/legalesign/Legalesign-V1-OpenAPI3/blob/master/legalesign-api-v1.yaml

When I process that using nswag 13.8.2 it creates C# classes named Objects2 and Objects3 and this compiles without warnings.

However, when I use nswag 14.0.7 instead (the latest release), the created C# classes now have names objects and objects2.

Whilst that compiles, there's a warning that wasn't there with the older nswag release:

1>T:\Development\FB19960 - nuget\LegalEsignApi\obj\legalesign-api-v1Client.cs(8982,26,8982,33): warning CS8981: The type name 'objects' only contains lower-cased ascii characters. Such names may become reserved for the language.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions