Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Types as strings are duplicative of type mechanism #24

Open
msporny opened this issue Nov 5, 2024 · 0 comments
Open

Types as strings are duplicative of type mechanism #24

msporny opened this issue Nov 5, 2024 · 0 comments

Comments

@msporny
Copy link

msporny commented Nov 5, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant