StackOverflowException during kiota update --clean-output -o Generated #5391
Labels
fixed
Status: No Recent Activity
status:waiting-for-author-feedback
Issue that we've responded but needs author feedback to close
type:bug
A broken experience
What are you generating using Kiota, clients or plugins?
API Client/SDK
In what context or format are you using Kiota?
Nuget tool
Client library/SDK language
None
Describe the bug
I encountered a StackOverflowException while attempting to update the generated output using the kiota update --clean-output -o Generated command.
Expected behavior
The
kiota update --clean-output
command should successfully update the generated files without throwing aStackOverflowException
.How to reproduce
dotnet tool install --global Microsoft.OpenApi.Kiota
dotnet tool update --global Microsoft.OpenApi.Kiota
kiota update --clean-output -o Generated
Received a StackOverflowException with the following stack trace:
`Stack overflow.
Repeat 1053 times:
at System.Linq.Enumerable.SequenceEqual[[System.Collections.Generic.KeyValuePair...
at Kiota.Builder.Validation.OpenApiSchemaComparer.EqualsInternal(Microsoft.OpenApi.Models.OpenApiSchema...
at System.Linq.Enumerable.SequenceEqual...
at Kiota.Builder.Validation.DivergentResponseSchema...
at Microsoft.OpenApi.Validations.OpenApiValidator.Validate...
at Kiota.Builder.KiotaBuilder.CreateOpenApiDocumentAsync...
at Kiota.Builder.Caching.DocumentCachingProvider+d__13.MoveNext()...`
Open API description file
No response
Kiota Version
1.18.0
Latest Kiota version known to work for scenario above?(Not required)
No response
Known Workarounds
dotnet tool uninstall --global Microsoft.OpenApi.Kiota
dotnet tool install --global Microsoft.OpenApi.Kiota --version 1.17.0
kiota update --clean-output -o Generated
Configuration
No response
Debug output
Click to expand log
```The text was updated successfully, but these errors were encountered: