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: refactor ToIdentifier() to normalize flaggable enums #2156

Merged
merged 15 commits into from
Feb 20, 2025

Conversation

MaggieKimani1
Copy link
Contributor

@MaggieKimani1 MaggieKimani1 commented Feb 18, 2025

  • Adds support for normalizing flaggable enums by returning an array of strings
  • Supports casting of type arrays to the flaggable enum type
  • Adds tests to validate

Fixes #2078
Fixes #1924

Copy link
Member

@baywet baywet left a comment

Choose a reason for hiding this comment

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

Thank you for making the changes!
A couple of additional remarks for performance.

Note: we could also use frozen dictionary for the static reference but I'm not sure the extra dependency is worth it.

MaggieKimani1 and others added 4 commits February 20, 2025 17:21
Co-authored-by: Vincent Biret <vibiret@microsoft.com>
Co-authored-by: Vincent Biret <vibiret@microsoft.com>
Co-authored-by: Vincent Biret <vibiret@microsoft.com>
Signed-off-by: Vincent Biret <vibiret@microsoft.com>
@baywet baywet disabled auto-merge February 20, 2025 16:48
@baywet baywet enabled auto-merge (squash) February 20, 2025 16:49
Signed-off-by: Vincent Biret <vibiret@microsoft.com>
@baywet baywet merged commit b80e934 into main Feb 20, 2025
10 of 13 checks passed
@baywet baywet deleted the fix/lowercase-json-schema-type-values branch February 20, 2025 16:54
Copy link

Quality Gate Failed Quality Gate failed

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

See analysis details on SonarQube Cloud

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants