Handling Unknown Members in Union Schemas
Is there an "easy" way to express unknown members of a union in a schema for forward-compatibility purposes? For example, I would like to be able to write the following (or similar):
Or is the current consensus that it's best to let decoding fail and then report such cases to Sentry or similar? On the other hand, if the rest of the data can be parsed without issues and it's just that whoever sent the data is on a newer version of the schema and the server could still process such request, why should it fail because of the schema version mismatch? It may still be processed successfully without that detail.
Or is the current consensus that it's best to let decoding fail and then report such cases to Sentry or similar? On the other hand, if the rest of the data can be parsed without issues and it's just that whoever sent the data is on a newer version of the schema and the server could still process such request, why should it fail because of the schema version mismatch? It may still be processed successfully without that detail.
