Skip to content

fix: null reference exception for boolean component schemas #2906

fix: null reference exception for boolean component schemas

fix: null reference exception for boolean component schemas #2906

Triggered via pull request April 27, 2026 13:27
Status Success
Total duration 5m 12s
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#L357
Method has 8 parameters, which is greater than the 7 authorized.
Build: src/Microsoft.OpenApi/Models/OpenApiSchema.cs#L400
Refactor this method to reduce its Cognitive Complexity from 23 to the 15 allowed.
Build: src/Microsoft.OpenApi/Models/OpenApiSchema.cs#L357
Refactor this method to reduce its Cognitive Complexity from 17 to the 15 allowed.
Build: src/Microsoft.OpenApi/Models/OpenApiSchema.cs#L276
Refactor this constructor to reduce its Cognitive Complexity from 21 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/Reader/V32/OpenApiSchemaDeserializer.cs#L13
Refactor this field to reduce its Cognitive Complexity from 57 to the 15 allowed.
Build: src/Microsoft.OpenApi/Reader/V31/OpenApiSchemaDeserializer.cs#L13
Refactor this field to reduce its Cognitive Complexity from 57 to the 15 allowed.