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

chore: add publish response class and polish publish methods #23

Merged
merged 7 commits into from
Nov 13, 2023

Conversation

anitarua
Copy link
Collaborator

@anitarua anitarua commented Nov 10, 2023

Addresses #4

Also consolidates the error protocols (based on POC #24) and makes sdk error classes public (#28)

@anitarua anitarua requested a review from pgautier404 November 13, 2023 17:27
@anitarua anitarua requested a review from pgautier404 November 13, 2023 18:04
topicName: String,
value: String
) async -> TopicPublishResponse {
if cacheName.count < 1 {
Copy link
Collaborator

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.

Copy link
Collaborator

@pgautier404 pgautier404 left a comment

Choose a reason for hiding this comment

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

LGTM!

@anitarua anitarua merged commit 1ec3d53 into main Nov 13, 2023
@anitarua anitarua deleted the polish-publish branch November 13, 2023 18:50
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.

2 participants