-
Notifications
You must be signed in to change notification settings - Fork 3
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
refactor: Restrict heterogeneous ConfidenceValue lists #86
Conversation
public init(valueList: [ConfidenceValue]) { | ||
self.value = .list(valueList.map { $0.value }) | ||
} |
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.
Here we could make this private (or delete this), but then the problem is how to convert heterogeneous Values from OpenFeature
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.
I think it would be nicer to have multiple inits:
public init(valueList: [String]) {}
public init(valueList: [Int64]) {}
public init(valueList: [Bool]) {}
...
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.
oh, you had that just below :D
* Add ConfidenceValue * Add ConfidenceValueTests * Remove DateComponents * Simplify and finalize ConfidenceValue * Test fix * Update demo app * Variable renaming * ConfidenceValue is only Codable * Add Confidence-OF converstions * refactor: Restrict heterogeneous ConfidenceValue lists (#86) * Change ConfidenceValue constructors for more control * Setup for list restrictions * Remove unused converters * Change time-related arg labels * Fix date format * Explicit UTC settings and TZ tests * Best effort convert OF lists * Rename bool to boolean * Rename TZ offset from timestamps * Add swiftpm back
* Add ConfidenceValue * Add ConfidenceValueTests * Remove DateComponents * Simplify and finalize ConfidenceValue * Test fix * Update demo app * Variable renaming * ConfidenceValue is only Codable * Add Confidence-OF converstions * refactor: Restrict heterogeneous ConfidenceValue lists (#86) * Change ConfidenceValue constructors for more control * Setup for list restrictions * Remove unused converters * Change time-related arg labels * Fix date format * Explicit UTC settings and TZ tests * Best effort convert OF lists * Rename bool to boolean * Rename TZ offset from timestamps * Add swiftpm back
Exploratory PR not meant for merging yet.