Skip to content

fix: duplicate schema example when serializing to v2 #3389

fix: duplicate schema example when serializing to v2

fix: duplicate schema example when serializing to v2 #3389

Triggered via pull request August 20, 2026 12:55
Status Success
Total duration 13m 13s
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

11 warnings
Build: src/Microsoft.OpenApi/Models/OpenApiSchema.cs#L441
Change this condition so that it does not always evaluate to 'True'.
Build: src/Microsoft.OpenApi/Models/OpenApiSchema.cs#L463
Change this condition so that it does not always evaluate to 'True'.
Build: src/Microsoft.OpenApi/Models/OpenApiSchema.cs#L456
Change this condition so that it does not always evaluate to 'True'.
Build: src/Microsoft.OpenApi/Models/OpenApiSchema.cs#L435
Change this condition so that it does not always evaluate to 'True'.
Build: src/Microsoft.OpenApi/Models/OpenApiSchema.cs#L431
Method has 8 parameters, which is greater than the 7 authorized.
Build: src/Microsoft.OpenApi/Models/OpenApiSchema.cs#L431
Refactor this method to reduce its Cognitive Complexity from 17 to the 15 allowed.
Build: src/Microsoft.OpenApi/Models/OpenApiSchema.cs#L323
Refactor this constructor to reduce its Cognitive Complexity from 28 to the 15 allowed.
Build: src/Microsoft.OpenApi/Models/References/BaseOpenApiReferenceHolder.cs#L166
Remove this call from a constructor to the overridable 'CopyReference' method.
Build: src/Microsoft.OpenApi/Models/OpenApiSchema.cs#L254
Do not forget to remove this deprecated code someday.
Build: src/Microsoft.OpenApi/Models/OpenApiSchema.cs#L125
Complete the task associated to this 'TODO' comment.
Build
The 'adopt' legacy AdoptOpenJDK distribution is deprecated and will be removed in setup-java v6. Please migrate to the 'temurin' distribution.