-
Notifications
You must be signed in to change notification settings - Fork 2
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
chore: add publish response class and polish publish methods #23
Conversation
topicName: String, | ||
value: String | ||
) async -> TopicPublishResponse { | ||
if cacheName.count < 1 { |
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.
Swift has an isEmpty
string property that may be more idiomatic for this, but both that property and this solution will consider " " valid. I found a neat extension method implementing isBlank
we could use, but I think maybe we should hold off on adding and using the extension method until we have validation factored out into it's own class/namespace. This is fine for now but let's revisit when we handle that ticket.
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.
LGTM!
Addresses #4
Also consolidates the error protocols (based on POC #24) and makes sdk error classes public (#28)