[C#] Issue with enum members
Created by: albator1932
I very recently started to study the migration of our API from swagger-codegen to openapi-generator and I encounter a problem with enumeration members.
Our API is C# .NET Core based and the Swagger JSON is generated through the latest swashbuckle-aspnetcore I believe almost everyone is using in this context.
I'm using the latest stable of openapi-generator: 3.1.1
What the swagger-codegen generation looks like:
/// <summary>
/// Enum DataMatrix for value: DataMatrix
/// </summary>
[EnumMember(Value = "DataMatrix")]
DataMatrix = 2
What the openapi-generator generation looks like:
/// <summary>
/// Enum DataMatrix for value: DataMatrix
/// </summary>
DataMatrix = DataMatrix
This generation does not compile and gives a "The evaluation of the constant value for 'BarcodeInfo.TypeEnum.DataMatrix' involves a circular definition" error.
Any idea what is going on ?