Skip to content
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: enum parsing when encountering unknown values should not default to first member #2049

Merged
merged 3 commits into from
Jan 9, 2025

Conversation

baywet
Copy link
Member

@baywet baywet commented Jan 8, 2025

No description provided.

@@ -82,10 +82,10 @@
/// </summary>
public OpenApiSecurityScheme(OpenApiSecurityScheme securityScheme)
{
Type = securityScheme?.Type ?? Type;
Type = securityScheme?.Type;

Check warning

Code scanning / CodeQL

Virtual call in constructor or destructor Warning

Avoid virtual calls in a constructor or destructor.
Description = securityScheme?.Description ?? Description;
Name = securityScheme?.Name ?? Name;
In = securityScheme?.In ?? In;
In = securityScheme?.In;

Check warning

Code scanning / CodeQL

Virtual call in constructor or destructor Warning

Avoid virtual calls in a constructor or destructor.
Copy link

sonarqubecloud bot commented Jan 8, 2025

Quality Gate Failed Quality Gate failed

Failed conditions
60.9% Coverage on New Code (required ≥ 80%)
21.1% Duplication on New Code (required ≤ 3%)

See analysis details on SonarQube Cloud

MaggieKimani1
MaggieKimani1 previously approved these changes Jan 9, 2025
@baywet baywet merged commit d4e155b into dev Jan 9, 2025
9 of 10 checks passed
@baywet baywet deleted the fix/enum-parsing branch January 9, 2025 17:20
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