Skip to content

Update dependency Microsoft.OpenApi to v2 #5725

Update dependency Microsoft.OpenApi to v2

Update dependency Microsoft.OpenApi to v2 #5725

Triggered via pull request March 13, 2026 12:40
Status Success
Total duration 8m 33s
Artifacts

test-and-analyze.yml

on: pull_request
Static code analysis
5m 55s
Static code analysis
Fit to window
Zoom out
Zoom in

Annotations

10 errors and 10 warnings
Static code analysis: src/Altinn.App.Api/Controllers/CustomOpenApiController.cs#L978
The type or namespace name 'IOpenApiAny' could not be found (are you missing a using directive or an assembly reference?)
Static code analysis: src/Altinn.App.Api/Extensions/SwaggerFilterExtensions.cs#L22
Reference to type 'OpenApiDocument' claims it is defined in 'Microsoft.OpenApi', but it could not be found
Static code analysis: src/Altinn.App.Api/Extensions/SwaggerFilterExtensions.cs#L24
The type or namespace name 'OpenApiDocument' could not be found (are you missing a using directive or an assembly reference?)
Static code analysis: src/Altinn.App.Api/Controllers/CustomOpenApiController.cs#L1617
'SchemaPostVisitor.Visit(OpenApiSchema)': no suitable method found to override
Static code analysis: src/Altinn.App.Api/Controllers/CustomOpenApiController.cs#L1564
The type or namespace name 'OpenApiReference' could not be found (are you missing a using directive or an assembly reference?)
Static code analysis: src/Altinn.App.Api/Extensions/SwaggerFilterExtensions.cs#L2
The type or namespace name 'Models' does not exist in the namespace 'Microsoft.OpenApi' (are you missing an assembly reference?)
Static code analysis: src/Altinn.App.Api/Controllers/CustomOpenApiController.cs#L22
The type or namespace name 'Services' does not exist in the namespace 'Microsoft.OpenApi' (are you missing an assembly reference?)
Static code analysis: src/Altinn.App.Api/Controllers/CustomOpenApiController.cs#L21
The type or namespace name 'Models' does not exist in the namespace 'Microsoft.OpenApi' (are you missing an assembly reference?)
Static code analysis: src/Altinn.App.Api/Controllers/CustomOpenApiController.cs#L20
The type or namespace name 'Extensions' does not exist in the namespace 'Microsoft.OpenApi' (are you missing an assembly reference?)
Static code analysis: src/Altinn.App.Api/Controllers/CustomOpenApiController.cs#L19
The type or namespace name 'Any' does not exist in the namespace 'Microsoft.OpenApi' (are you missing an assembly reference?)
Static code analysis: src/Altinn.App.Internal.Analyzers/AppImplementationInjectionAnalyzer.cs#L137
Refactor this method to reduce its Cognitive Complexity from 17 to the 15 allowed.
Static code analysis: src/Altinn.App.Analyzers/Diagnostics.cs#L60
Rename this field to not shadow the outer class' member with the same name.
Static code analysis: src/Altinn.App.Internal.Analyzers/AppImplementationInjectionAnalyzer.cs#L9
Initialize all 'static fields' inline and remove the 'static constructor'.
Static code analysis: src/Altinn.App.Analyzers/PolyFills.cs#L8
Remove this empty class, write its code or make it an "interface".
Static code analysis: src/Altinn.App.Analyzers/Diagnostics.cs#L45
Remove the unused private method 'Error'.
Static code analysis: src/Altinn.App.Analyzers/Utils/HashCode.cs#L55
Remove this commented out code.
Static code analysis: src/Altinn.App.Analyzers/FormDataWrapper/FormDataWrapperUtils.cs#L251
Complete the task associated to this 'TODO' comment.