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

Enforce non_null messages and message list #29

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

ahey
Copy link

@ahey ahey commented Oct 14, 2021

📖 Description and reason

The messages list included in the payload object was nullable, and each message in the list was also nullable. This makes the responses more ambiguous and is more work for the consuming clients.

👷 Work done

Additional notes

Relevant discussion: Ethelo/kronky#13

All existing tests continue to pass.

🎉 Result

The payload messages list and the messages themselves cannot be null. Having no errors is represented by an empty list.

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