-
Notifications
You must be signed in to change notification settings - Fork 251
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
fix/headers reference #2091
fix/headers reference #2091
Conversation
Signed-off-by: Vincent Biret <vibiret@microsoft.com>
Signed-off-by: Vincent Biret <vibiret@microsoft.com>
Signed-off-by: Vincent Biret <vibiret@microsoft.com>
Signed-off-by: Vincent Biret <vibiret@microsoft.com>
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
IOpenApiLink
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 <vibiret@microsoft.com>
…references Signed-off-by: Vincent Biret <vibiret@microsoft.com>
|
partial #1998, review #2090 first