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

Generating duplicated classes when object is reference more than once #2016

Open
Emad89 opened this issue Nov 14, 2023 · 1 comment · May be fixed by #2105
Open

Generating duplicated classes when object is reference more than once #2016

Emad89 opened this issue Nov 14, 2023 · 1 comment · May be fixed by #2105

Comments

@Emad89
Copy link

Emad89 commented Nov 14, 2023

Generated classes are duplicated in the following situation:

If object A is referenced as a response in API_endpoint1, And object B iis referenced as a response API_endpoint2, where B has a property that references A.
When resolving paths:

  • The relatvice path for object A resolved from API_endpoint1 looks like this: ./../A.

  • The relatvice path for the same object A resolved from object B looks like this: ../A.

In this scenario, the presence of both ./ and ../ can lead to the creation of duplicated objects.

@Emad89
Copy link
Author

Emad89 commented Nov 14, 2023

I quick work around is to condsider ./../A is the same as ../A, here is a PR to add this check
[PR] (#2015)

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

Successfully merging a pull request may close this issue.

1 participant