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

Change default types of VCDM credential subjects. #570

Merged
merged 1 commit into from
Jul 3, 2024

Conversation

timothee-haudebourg
Copy link
Contributor

The current default type for VCDM credential subjects is json_syntax::Value. However the specs require the credential subject to be an object, and not an arbitrary value. The VCDM v2 spec even requires the object to be non empty.

To better fit the specs, I changed the default types for credential subjects:

  • Set the default VCDM v1 credential subject to Object.
  • Set the default VCDM v2 credential subject to NonEmptyObject, a new wrapper type around Object.

Set default VCDM v1 credential subject to `Object`.
Set default VCDM v2 credential subject to `NonEmptyObject`.
@timothee-haudebourg timothee-haudebourg merged commit 0e60cba into main Jul 3, 2024
4 checks passed
@timothee-haudebourg timothee-haudebourg deleted the fix-credential-subject-type branch July 3, 2024 11:44
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

Successfully merging this pull request may close these issues.

2 participants