-
-
Notifications
You must be signed in to change notification settings - Fork 6.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[C#] Issue with enum members #635
Comments
Nobody even acknowledge that there is indeed an issue with the C# generator being broken? |
@albator1932 let me look into this... |
While browsing the pull requests I found out that Jim made the same observation: #737 |
Yes, he also mentioned that. Let me dig into it and hopefully file a PR shortly. (sorry I missed your issue report earlier. busy with too many things...) |
@albator1932 I've filed #774. Please review when you've time. |
Looks like it's good, I regenerated the client from our project and there is no more enumeration problems, good job! I do have issues with float values though, they are missing a "f" so it's not confused with double. Not sure if it's related, going to dig this a bit if I have some time today. |
@albator1932 do you mean float value in enum? or just float in general (model properties, parameters)? |
It is always in model properties afaik (at least that's where I have the issue), for instance I do have this JSON generated in my API:
And the generated C# result will be:
|
@albator1932 thanks for the details. Please open a separate issue if you don't mind. For this PR, if @jimschubert has no concern, I'll merge it later tonight. |
Sure, will do. |
@wing328 what PR are you referring to? Looks like you've merged the enum one, and I don't see one for the float issue mentioned. |
@jimschubert #774 (still open) For the float issue, I've not filed any PR yet. |
@albator1932 PR merged into master. Thanks again for reporting the issue and sorry for the delay in fixing it. |
Hello all, the problem seem to be still present in all version above 5.1.1 I have just tried to generate csharp-netcore client from the onfido yml specs available here |
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:
What the openapi-generator generation looks like:
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 ?
The text was updated successfully, but these errors were encountered: