Skip to content

fix(library): serialize additionalProperties schema in OpenAPI V2 documents #2759

fix(library): serialize additionalProperties schema in OpenAPI V2 documents

fix(library): serialize additionalProperties schema in OpenAPI V2 documents #2759

Re-run triggered February 19, 2026 23:01
Status Success
Total duration 3m 58s
Artifacts

sonarcloud.yml

on: pull_request
check if SONAR_TOKEN is set in github secrets
4s
check if SONAR_TOKEN is set in github secrets
Fit to window
Zoom out
Zoom in

Annotations

10 warnings
Build: src/Microsoft.OpenApi/Models/OpenApiSchema.cs#L689
Refactor this method to reduce its Cognitive Complexity from 18 to the 15 allowed. (https://rules.sonarsource.com/csharp/RSPEC-3776)
Build: src/Microsoft.OpenApi/Models/OpenApiSchema.cs#L394
Refactor this method to reduce its Cognitive Complexity from 17 to the 15 allowed. (https://rules.sonarsource.com/csharp/RSPEC-3776)
Build: src/Microsoft.OpenApi/Models/OpenApiSchema.cs#L367
Change this condition so that it does not always evaluate to 'True'. (https://rules.sonarsource.com/csharp/RSPEC-2589)
Build: src/Microsoft.OpenApi/Models/OpenApiSchema.cs#L361
Change this condition so that it does not always evaluate to 'True'. (https://rules.sonarsource.com/csharp/RSPEC-2589)
Build: src/Microsoft.OpenApi/Models/OpenApiSchema.cs#L383
Change this condition so that it does not always evaluate to 'True'. (https://rules.sonarsource.com/csharp/RSPEC-2589)
Build: src/Microsoft.OpenApi/Models/OpenApiSchema.cs#L376
Change this condition so that it does not always evaluate to 'True'. (https://rules.sonarsource.com/csharp/RSPEC-2589)
Build: src/Microsoft.OpenApi/Models/OpenApiSchema.cs#L355
Change this condition so that it does not always evaluate to 'True'. (https://rules.sonarsource.com/csharp/RSPEC-2589)
Build: src/Microsoft.OpenApi/Models/OpenApiSchema.cs#L351
Method has 8 parameters, which is greater than the 7 authorized. (https://rules.sonarsource.com/csharp/RSPEC-107)
Build: src/Microsoft.OpenApi/Models/OpenApiSchema.cs#L351
Refactor this method to reduce its Cognitive Complexity from 17 to the 15 allowed. (https://rules.sonarsource.com/csharp/RSPEC-3776)
Build: src/Microsoft.OpenApi/Models/OpenApiSchema.cs#L270
Refactor this constructor to reduce its Cognitive Complexity from 21 to the 15 allowed. (https://rules.sonarsource.com/csharp/RSPEC-3776)