Skip to content

fix: a bug where relative relative and sub-component JSON references would not resolve properly #2120

fix: a bug where relative relative and sub-component JSON references would not resolve properly

fix: a bug where relative relative and sub-component JSON references would not resolve properly #2120

Triggered via pull request June 11, 2025 18:48
Status Success
Total duration 4m 12s
Artifacts

sonarcloud.yml

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

Annotations

10 warnings
Build: src/Microsoft.OpenApi/Models/BaseOpenApiReference.cs#L58
Make this an auto-implemented property and remove its backing field. (https://rules.sonarsource.com/csharp/RSPEC-2292)
Build: src/Microsoft.OpenApi/Models/BaseOpenApiReference.cs#L87
Change this condition so that it does not always evaluate to 'True'. (https://rules.sonarsource.com/csharp/RSPEC-2589)
Build: src/Microsoft.OpenApi/Models/BaseOpenApiReference.cs#L88
Change this condition so that it does not always evaluate to 'True'. (https://rules.sonarsource.com/csharp/RSPEC-2589)
Build: src/Microsoft.OpenApi/Models/BaseOpenApiReference.cs#L334
Review this call, which partially matches an overload without 'params'. The partial match is 'string string.Join(string separator, System.Collections.Generic.IEnumerable<string> values)'. (https://rules.sonarsource.com/csharp/RSPEC-3220)
Build: src/Microsoft.OpenApi/Models/References/BaseOpenApiReferenceHolder.cs#L47
Remove this call from a constructor to the overridable 'CopyReference' method. (https://rules.sonarsource.com/csharp/RSPEC-1699)
Build: src/Microsoft.OpenApi/Models/BaseOpenApiReference.cs#L58
Make this an auto-implemented property and remove its backing field. (https://rules.sonarsource.com/csharp/RSPEC-2292)
Build: src/Microsoft.OpenApi/Models/BaseOpenApiReference.cs#L87
Change this condition so that it does not always evaluate to 'True'. (https://rules.sonarsource.com/csharp/RSPEC-2589)
Build: src/Microsoft.OpenApi/Models/BaseOpenApiReference.cs#L88
Change this condition so that it does not always evaluate to 'True'. (https://rules.sonarsource.com/csharp/RSPEC-2589)
Build: src/Microsoft.OpenApi/Models/BaseOpenApiReference.cs#L334
Review this call, which partially matches an overload without 'params'. The partial match is 'string string.Join(string? separator, System.Collections.Generic.IEnumerable<string?> values)'. (https://rules.sonarsource.com/csharp/RSPEC-3220)
Build: src/Microsoft.OpenApi/Models/References/BaseOpenApiReferenceHolder.cs#L47
Remove this call from a constructor to the overridable 'CopyReference' method. (https://rules.sonarsource.com/csharp/RSPEC-1699)