You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
comment I ran across in our current implementation:
// mamba validation issues have a poor interface. Best I can do is search in the description field when trying to find a specific issue in a list.
Tasks
change public init(description: IssueDescription, severity: IssueSeverity) to store the IssueDescription instead of just the description string
change public init(description: String, severity: IssueSeverity) to store the description as a .undefined(String) within IssueDescription enum
change description attribute to an accessor of the string of the stored IssueDescription
Open Questions
Does this seem like the right approach IYO @dcoufal ?
The text was updated successfully, but these errors were encountered:
(1) We'd like all users to be able to create custom ValidationIssues for their custom HLS tags. So, having a string is useful for that.
(2) We'd like to be able to id specific validation issues in code. An enum is best for that.
I wonder if we'd be better off with a IssueDescription protocol instead? Something like:
Users would probably implement this via a String enum. Then everyone could define their own, but by using the isEqual hack (which would have to do some casting, which is gross but useful) you'd also be able to tell what specific issue you are having.
Anyway, I'm also not eager to foist a second breaking change on our users so soon after 2.0 (this would have to be 3.0 if we just did it without a transition plan).
"Anyway, I'm also not eager to foist a second breaking change on our users so soon after 2.0 (this would have to be 3.0 if we just did it without a transition plan)."
totally agree with that, just wanted to bring it up since I ran across the comment
Description
comment I ran across in our current implementation:
// mamba validation issues have a poor interface. Best I can do is search in the description field when trying to find a specific issue in a list.
Tasks
public init(description: IssueDescription, severity: IssueSeverity)
to store theIssueDescription
instead of just the description stringpublic init(description: String, severity: IssueSeverity)
to store the description as a.undefined(String)
withinIssueDescription
enumdescription
attribute to an accessor of the string of the storedIssueDescription
Open Questions
The text was updated successfully, but these errors were encountered: