-
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/example reference #2089
fix/example reference #2089
Conversation
Signed-off-by: Vincent Biret <[email protected]>
Signed-off-by: Vincent Biret <[email protected]>
Signed-off-by: Vincent Biret <[email protected]>
@@ -87,7 +88,7 @@ | |||
Schemas = components?.Schemas != null ? new Dictionary<string, OpenApiSchema>(components.Schemas) : null; | |||
Responses = components?.Responses != null ? new Dictionary<string, OpenApiResponse>(components.Responses) : null; | |||
Parameters = components?.Parameters != null ? new Dictionary<string, OpenApiParameter>(components.Parameters) : null; | |||
Examples = components?.Examples != null ? new Dictionary<string, OpenApiExample>(components.Examples) : null; | |||
Examples = components?.Examples != null ? new Dictionary<string, IOpenApiExample>(components.Examples) : 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 one will get fixed as we update the other types
@@ -115,7 +116,7 @@ | |||
AllowReserved = header?.AllowReserved ?? AllowReserved; | |||
_schema = header?.Schema != null ? new(header.Schema) : null; | |||
Example = header?.Example != null ? JsonNodeCloneHelper.Clone(header.Example) : null; | |||
Examples = header?.Examples != null ? new Dictionary<string, OpenApiExample>(header.Examples) : null; | |||
Examples = header?.Examples != null ? new Dictionary<string, IOpenApiExample>(header.Examples) : 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 one will get fixed as we update the other types
@@ -168,7 +169,7 @@ | |||
Explode = parameter?.Explode ?? Explode; | |||
AllowReserved = parameter?.AllowReserved ?? AllowReserved; | |||
_schema = parameter?.Schema != null ? new(parameter.Schema) : null; | |||
Examples = parameter?.Examples != null ? new Dictionary<string, OpenApiExample>(parameter.Examples) : null; | |||
Examples = parameter?.Examples != null ? new Dictionary<string, IOpenApiExample>(parameter.Examples) : 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 one will get fixed as we update the other types
Quality Gate failedFailed conditions |
Issues
partial #1998
Commits
Details
This PR:
steps 4 and below need to be replicated for all other types.