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
The UpdateMessage type contains every possible field an incoming message can have. Because not every message will have every field, each field is an option type. This is less than ideal –
To understand what messages it's possible to send, you must inspect the message switch code.
To understand the correct combination of fields for a message, you must understand the implementation of each the message handler.
It's possible to construct badly formed messages at the point of serialisation.
Short description
The
UpdateMessage
type contains every possible field an incoming message can have. Because not every message will have every field, each field is an option type. This is less than ideal –We should use a sum type, and parse, rather than validating.
This PR details a possible solution.
The text was updated successfully, but these errors were encountered: