decentralized-identity / credential-schemas

Repo for Credential Schemas work item in the Claims and Credentials Working Group
https://identity.foundation/credential-schemas/
Other
3 stars 0 forks source link

Types as strings are duplicative of `type` mechanism #24

Open msporny opened 2 weeks ago

msporny commented 2 weeks ago

The type mechanism used in W3C VCs provide something similar to the identifierType and similar properties in this section (and others):

https://identity.foundation/credential-schemas/#identifiers-object

Arbitrary strings as types, while they might seem like a good idea, are usually not a great idea since it harms interop (if you don't know the full possibility of types, the liklihood that you end up with a failure in the ecosystem due to an unknown type is high).

Try to re-use the type mechanism provided by the serialization languages instead of creating an arbitrary string-based one.