-
Notifications
You must be signed in to change notification settings - Fork 242
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix/headers reference #2091
fix/headers reference #2091
Conversation
Signed-off-by: Vincent Biret <[email protected]>
Signed-off-by: Vincent Biret <[email protected]>
Signed-off-by: Vincent Biret <[email protected]>
Signed-off-by: Vincent Biret <[email protected]>
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
OpenApiLink
IOpenApiReferenceable
There was a problem hiding this comment.
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
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@@ -63,7 +64,7 @@ | |||
public OpenApiResponse(OpenApiResponse response) | |||
{ | |||
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
There was a problem hiding this comment.
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.
Signed-off-by: Vincent Biret <[email protected]>
…references Signed-off-by: Vincent Biret <[email protected]>
Quality Gate failedFailed conditions |
partial #1998, review #2090 first