trussed-dev / ctap-types

3 stars 9 forks source link

Add more de-/serialization tests #54

Open robin-nitrokey opened 3 months ago

robin-nitrokey commented 3 months ago

It is easy to break serialization, for example because enums are serialized using their variant index by default, byte slices are serialized as sequences of integers instead of hex strings, and reordering or removing fields can break serde-indexed. Therefore we should have basic de-/serialization tests for all requests and responses.