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

Code generation enters infinite loop in v1.8.0 #77

Open
MichaelF1989 opened this issue Dec 20, 2022 · 2 comments
Open

Code generation enters infinite loop in v1.8.0 #77

MichaelF1989 opened this issue Dec 20, 2022 · 2 comments
Labels
bug Something isn't working

Comments

@MichaelF1989
Copy link

Describe the bug

When reading a schema MyClass with properties being named MyClass and MyClass1, the service enters an infinite loop and can only be cancelled by shutting down Visual Studio 2022 via the task manager.
I suspect that this seems to be a problem with the newest version 1.8.0 of this extension, as there weren't any issues for me a few weeks ago.

Steps to reproduce

Store the following json-file locally and try to generate the code from it (check "Generate CSharp Client" and then in the CSharp Client Settings uncheck GenerateClientClasses)

{
  "openapi": "3.0.1",
  "info": {
    "title": "My Web API",
    "version": "v2"
  },
  "paths": {
  },
  "components": {
    "schemas": {
      "MyClass": {
        "type": "object",
        "properties": {
          "MyClass": {
            "type": "string"
          },
          "MyClass1": {
            "type": "string"
          }
        }
      }
    }
  }
}

Expected result

Previously the property MyClass was renamed to MyClass2 in the generated code.

Actual result

Upon hitting finish, the service enters an infinite loop. The console output gets stuck as shown on the screenshot below.

Screenshots

console_output

@MichaelF1989 MichaelF1989 added the bug Something isn't working label Dec 20, 2022
@unchase
Copy link
Owner

unchase commented Jun 5, 2023

Hi, @MichaelF1989

Could you try again with v1.9.1?

@MichaelF1989
Copy link
Author

Unfortunately, the problem seems to persist with v1.9.1.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants