marrus-sh / laboratory

An API framework for interfacing with Mastodon servers
MIT License
3 stars 0 forks source link

Don't assume the server response will be what you expect #8

Closed marrus-sh closed 7 years ago

marrus-sh commented 7 years ago

I mean it would be great if we could just trust each other to get along but never trust computers amirite

marrus-sh commented 7 years ago

This is especially important in the client-registering and authorization stage, throw early errors if this stuff doesn't line up. Constructors should check this stuff regularly since they can be called by clients too lol.

marrus-sh commented 7 years ago

I think we're actually good on this; Laboratory is pretty well designed not to make assumptions