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

Fixes duplicated models in single allOf scenarios #4694

Merged
merged 4 commits into from
May 21, 2024

Conversation

andrueastman
Copy link
Member

@andrueastman andrueastman commented May 21, 2024

Fixes #4191

Update the parameter for GetSchemaName to be calculated based on whether the schema is meaningful (if it isn't let's try to find the name as it could be flattened schema that's referenced) so that we avoid duplicate models in the same namespace.

Validated with graph V1 at microsoftgraph/msgraph-sdk-dotnet@3a7dcfd (essentially no diff present)

@andrueastman andrueastman marked this pull request as ready for review May 21, 2024 07:42
@andrueastman andrueastman requested a review from a team as a code owner May 21, 2024 07:42
@andrueastman andrueastman enabled auto-merge May 21, 2024 07:42
Copy link

@andrueastman andrueastman merged commit 41131a8 into main May 21, 2024
207 checks passed
@andrueastman andrueastman deleted the andrueastman/AllOfFix branch May 21, 2024 14:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

Multiple identical classes are generated for a component schema with allOf inheritance
2 participants