trussed-dev / ctap-types

3 stars 9 forks source link

Use enums instead of string constants #52

Closed robin-nitrokey closed 3 months ago

robin-nitrokey commented 3 months ago

Previously, we used String<_> to represent string constants in some responses. This has multiple drawbacks:

This patch introduces enums to replace these constants. As cbor_smol serializes enums using the variant index instead of the string, we need to manually implement the string conversion.