Skip to content

fix: null reference exception for boolean component schemas #2904

fix: null reference exception for boolean component schemas

fix: null reference exception for boolean component schemas #2904

Triggered via pull request April 27, 2026 11:57
Status Success
Total duration 5m 46s
Artifacts

sonarcloud.yml

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

Annotations

10 warnings
Build: src/Microsoft.OpenApi/Services/OpenApiWorkspace.cs#L293
Change this condition so that it does not always evaluate to 'True'.
Build: src/Microsoft.OpenApi/Services/OpenApiWorkspace.cs#L84
Refactor this method to reduce its Cognitive Complexity from 67 to the 15 allowed.
Build: src/Microsoft.OpenApi/Models/References/BaseOpenApiReferenceHolder.cs#L47
Remove this call from a constructor to the overridable 'CopyReference' method.
Build: src/Microsoft.OpenApi/Services/OpenApiWorkspace.cs#L396
Refactor this method to reduce its Cognitive Complexity from 21 to the 15 allowed.
Build: src/Microsoft.OpenApi/Services/OpenApiWorkspace.cs#L293
Change this condition so that it does not always evaluate to 'True'.
Build: src/Microsoft.OpenApi/Services/OpenApiWorkspace.cs#L84
Refactor this method to reduce its Cognitive Complexity from 67 to the 15 allowed.
Build: src/Microsoft.OpenApi/Models/References/BaseOpenApiReferenceHolder.cs#L47
Remove this call from a constructor to the overridable 'CopyReference' method.
Build: src/Microsoft.OpenApi/Services/OpenApiWorkspace.cs#L396
Refactor this method to reduce its Cognitive Complexity from 21 to the 15 allowed.
Build: src/Microsoft.OpenApi/Services/OpenApiWorkspace.cs#L293
Change this condition so that it does not always evaluate to 'True'.
Build: src/Microsoft.OpenApi/Services/OpenApiWorkspace.cs#L84
Refactor this method to reduce its Cognitive Complexity from 67 to the 15 allowed.