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
Right now our REST API is very fluid: whatever is returned is returned. We should have a stricter API than this. This is especially bothersome as json crashes with binary data.
This formalization should do two things:
Don't send garbage/binary data through the REST API, which would cause a crash.
Show users the data encoding in the response and automatically ensure this encoding.
We could take the protobuf approach to this, making some kind of meta language for messages, for example:
Right now our REST API is very fluid: whatever is returned is returned. We should have a stricter API than this. This is especially bothersome as
json
crashes with binary data.This formalization should do two things:
We could take the
protobuf
approach to this, making some kind of meta language for messages, for example:The text was updated successfully, but these errors were encountered: