You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We have standardized DID and VC type requirements as defined here and here. And part of that standardization is a requirement for the existence of some type properties. For example, a VC issuanceDate is always required to exist, but a VC expirationDate is not required to exist.
Let's use the JSON Schemas to enforce this requirement.
Design proposal
Two possible approaches, and we could choose to do both
We could add functions specific to validating, which the consuming app is expected to call -- this would be useful given they already have the type instantiated and didn't use the json marshalling functionality
We could write custom json unmarshalling/marshalling functions (ex how we're doing this in jwt/jwt.gohere) -- this would be useful if they were unmarshalling/marshalling the data
The text was updated successfully, but these errors were encountered:
Created as a result of the work of #109
We have standardized DID and VC type requirements as defined here and here. And part of that standardization is a requirement for the existence of some type properties. For example, a VC
issuanceDate
is always required to exist, but a VCexpirationDate
is not required to exist.Let's use the JSON Schemas to enforce this requirement.
Design proposal
Two possible approaches, and we could choose to do both
jwt/jwt.go
here) -- this would be useful if they were unmarshalling/marshalling the dataThe text was updated successfully, but these errors were encountered: