Skip to content

fix: discriminator property validation fails any/allOf cases when it shouldn't #2646

fix: discriminator property validation fails any/allOf cases when it shouldn't

fix: discriminator property validation fails any/allOf cases when it shouldn't #2646

Triggered via pull request January 19, 2026 16:18
Status Success
Total duration 4m 9s
Artifacts

sonarcloud.yml

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

Annotations

10 warnings
Build: src/Microsoft.OpenApi/Validations/Rules/OpenApiSchemaRules.cs#L72
Do not forget to remove this deprecated code someday. (https://rules.sonarsource.com/csharp/RSPEC-1133)
Build: src/Microsoft.OpenApi/Validations/Rules/OpenApiSchemaRules.cs#L27
Loop should be simplified by calling Select(property => property.Key)) (https://rules.sonarsource.com/csharp/RSPEC-3267)
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/Validations/Rules/OpenApiSchemaRules.cs#L111
Do not forget to remove this deprecated code someday. (https://rules.sonarsource.com/csharp/RSPEC-1133)
Build: src/Microsoft.OpenApi/Validations/Rules/OpenApiSchemaRules.cs#L72
Do not forget to remove this deprecated code someday. (https://rules.sonarsource.com/csharp/RSPEC-1133)
Build: src/Microsoft.OpenApi/Validations/Rules/OpenApiSchemaRules.cs#L27
Loop should be simplified by calling Select(property => property.Key)) (https://rules.sonarsource.com/csharp/RSPEC-3267)
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/Validations/Rules/OpenApiSchemaRules.cs#L111
Do not forget to remove this deprecated code someday. (https://rules.sonarsource.com/csharp/RSPEC-1133)
Build: src/Microsoft.OpenApi/Validations/Rules/OpenApiSchemaRules.cs#L72
Do not forget to remove this deprecated code someday. (https://rules.sonarsource.com/csharp/RSPEC-1133)
Build: src/Microsoft.OpenApi/Validations/Rules/OpenApiSchemaRules.cs#L27
Loop should be simplified by calling Select(property => property.Key)) (https://rules.sonarsource.com/csharp/RSPEC-3267)