Skip to content
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

CSharpClient code generator issues #4856

Open
MihaMarkic opened this issue Apr 15, 2024 · 1 comment
Open

CSharpClient code generator issues #4856

MihaMarkic opened this issue Apr 15, 2024 · 1 comment

Comments

@MihaMarkic
Copy link

I'm looking at this OpenAPI 3 schema: Bankart and C# generator generates wrong code (syntax error) on two issues:

  • ThreeDSecureData.3dsecure property - it generates constructor like public ThreeDSecureData(ThreeDSecureData_3dsecure? @3dsecure, ... where argument name can't start with a number and should be prefixed with an underscore public ThreeDSecureData(ThreeDSecureData_3dsecure? @_3dsecure instead. '@' doesn't do anything.
  • For some reasons it creates references to CLASS_NAME2 (it postfixes 2 to class name), like in Customer's paymentData argument - PaymentData2 instead of PaymentData) sometimes.
@AlexanderHawliczek-InterhomeGroup

Had the same problem.
Seems to be "classStyle": "Record" creates this broken constructors
Using "classStyle": "Poco" with "generateNativeRecords": true still gets me records but without the constructors

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants