I'm trying to generate a c# client from an AspNetCore Web API using NSwagStudio. The generated code contains a set of enums that, based on the attributes decorating them, are apparently flags for Json serialization - I can't locate where any of them are actually used. Several of these are generated with duplicate values, which makes the code not compile out of the box.
Example:
[System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "8.30.6304.31883")]
public enum ConstructorInfoMethodImplementationFlags
{
_0 = 0,
_0 = 0,
_1 = 1,
_2 = 2,
_3 = 3,
_3 = 3,
_4 = 4,
_4 = 4,
_8 = 8,
_16 = 16,
_32 = 32,
_64 = 64,
_128 = 128,
_256 = 256,
_4096 = 4096,
_65535 = 65535,
}
Is this a problem with the generator or something with my documentation? Is there a way to fix this without hand-editing the code?
Thanks.