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

Fixed two string case issues #9

Merged
merged 1 commit into from
Sep 14, 2023
Merged

Fixed two string case issues #9

merged 1 commit into from
Sep 14, 2023

Conversation

andyward
Copy link
Collaborator

  1. ValueConstraint.IsSatisifedBy(val, ignoreCase: true) would fail unless BaseType was set to String (from default of Undefined)

Fixed by always using string comparison when ignoreCase = true (which must be string)

  1. When ValueConstraints had BaseType set to String, facet equality was broken

Fixed the logic, which was inversed.

TODO: Need to better understand the approach to storing and testing values ValueConstraint - it feels over-elaborate and brittle... Also unclear why we're specialcase using CaseInsensitiveEquals in just PropertySet Facets Equality

1. ValueConstraint.IsSatisifedBy(.. ignoreCase: true) would fail unless BaseType was set to String (from default of Undefined)

Fixed by always using string comparison when ignoreCase = true (which must be string)

2. When ValueConstraints had BaseType set to String, facet equality was broken

Fixed the logic, which was inversed.

TODO: Need to better understand the approach to storing and testing values ValueConstraint - it feels over-elaborate and brittle...
Also unclear why we're specialcase using CaseInsensitiveEquals in just PropertySet Facets Equality
@andyward andyward merged commit 25f2b74 into main Sep 14, 2023
1 check passed
@andyward andyward deleted the fix/case-sensitivity branch February 14, 2024 09:34
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.

1 participant