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.
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:
Object
.NonEmptyObject
, a new wrapper type aroundObject
.