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

Fix for failed lookups by GetReferenceIdFromOriginalSchema in multilevel AllOfs #2446

Merged
merged 2 commits into from
Mar 22, 2023

Conversation

andrueastman
Copy link
Member

Related to failed build at https://dev.azure.com/microsoftgraph/Graph%20Developer%20Experiences/_build/results?buildId=110434&view=results

Currently GetReferenceIdFromOriginalSchema function would lookup reference ids from AllOf definitions only one level up.

In the event that a lookup was more than once level up across different namespaces, this would cause failed lookups resulting to model duplication due in the two namespaces causing build errors.

This PR updates the GetReferenceIdFromOriginalSchema function to call the GetSchemaReferenceIds function which will find referenceIds recursively through AllOfs OneOfs and AnyOfs.

Generation run at
https://dev.azure.com/microsoftgraph/Graph%20Developer%20Experiences/_build/results?buildId=110634&view=logs&j=09be00da-8404-5a6e-d496-3b97eba1ba4f&t=8df1ae88-b8fc-5f10-3e45-77a7724c8a3f

Related to microsoftgraph/msgraph-beta-sdk-dotnet#634

@sonarcloud
Copy link

sonarcloud bot commented Mar 21, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

0.0% 0.0% Coverage
0.0% 0.0% Duplication

@andrueastman andrueastman merged commit 0119d15 into main Mar 22, 2023
@andrueastman andrueastman deleted the andrueastman/failedloookup branch March 22, 2023 13:43
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 this pull request may close these issues.

2 participants