Skip to content

Conversation

@baywet
Copy link
Member

@baywet baywet commented Jan 24, 2025

partial #1998, review #2090 first

@baywet baywet self-assigned this Jan 24, 2025
if (OpenApiConstants.Links.Equals(propertyName, StringComparison.Ordinal) &&
responseElement?.Links != null &&
responseElement.Links.TryGetValue(mapKey, out var linkElement) &&
linkElement is IOpenApiReferenceable referenceable2)

Check warning

Code scanning / CodeQL

Useless type test Warning

There is no need to test whether an instance of
IOpenApiLink
is also an instance of
IOpenApiReferenceable
- it always is.
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This will be fixed when we migrate the link proxy design pattern implementation to

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

{
Description = response?.Description ?? Description;
Headers = response?.Headers != null ? new Dictionary<string, OpenApiHeader>(response.Headers) : null;
Headers = response?.Headers != null ? new Dictionary<string, IOpenApiHeader>(response.Headers) : null;

Check warning

Code scanning / CodeQL

Virtual call in constructor or destructor Warning

Avoid virtual calls in a constructor or destructor.
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This will be fixed when we fix the proxy design pattern for that type.

@sonarqubecloud
Copy link

Quality Gate Failed Quality Gate failed

Failed conditions
71.3% Coverage on New Code (required ≥ 80%)

See analysis details on SonarQube Cloud

Base automatically changed from fix/callback-reference to dev January 27, 2025 07:54
@baywet baywet marked this pull request as ready for review January 27, 2025 11:26
@baywet baywet enabled auto-merge January 27, 2025 11:26
@baywet baywet merged commit 1b65d40 into dev Jan 28, 2025
13 of 14 checks passed
@baywet baywet deleted the fix/headers-reference branch January 28, 2025 06:59
@baywet baywet added this to the v2-Preview6 milestone Jan 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants