Skip to content
This repository has been archived by the owner on Dec 12, 2024. It is now read-only.

Commit

Permalink
oh well
Browse files Browse the repository at this point in the history
  • Loading branch information
gabe committed Aug 21, 2024
1 parent ecffd7d commit bd939a8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions credential/credentials.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,17 +27,17 @@ const (
// vc-data-model spec https://www.w3.org/TR/vc-data-model-2.0/#verifiable-credentials
type VerifiableCredential struct {
Context SingleOrArray[string] `json:"@context,omitempty" validate:"required"`
ID string `json:"id,omitempty"`
Type SingleOrArray[string] `json:"type,omitempty" validate:"required"`
ID string `json:"id,omitempty"`
// either a URI or an object containing an `id` property.
Issuer *IssuerHolder `json:"issuer,omitempty" validate:"required"`
// https://www.w3.org/TR/xmlschema11-2/#dateTimes
ValidFrom string `json:"validFrom,omitempty" validate:"required"`
ValidUntil string `json:"validUntil,omitempty"`
CredentialStatus SingleOrArray[any] `json:"credentialStatus,omitempty"`
ValidFrom string `json:"validFrom,omitempty" validate:"required"`
ValidUntil string `json:"validUntil,omitempty"`
// This is where the subject's ID *may* be present
CredentialSubject Subject `json:"credentialSubject,omitempty"`
CredentialSchema SingleOrArray[Schema] `json:"credentialSchema,omitempty"`
CredentialStatus SingleOrArray[any] `json:"credentialStatus,omitempty"`
TermsOfUse SingleOrArray[any] `json:"termsOfUse,omitempty"`
Evidence SingleOrArray[any] `json:"evidence,omitempty"`
}
Expand Down
2 changes: 1 addition & 1 deletion credential/testdata_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ var (
//go:embed testdata
testVectors embed.FS
vcTestVectors = []string{VCExample1}
vpTestVectors = []string{VPEnvelopedVCExample1, VPEnvelopedVPExample1}
vpTestVectors = []string{VPEnvelopedVCExample1}
)

func TestVCVectors(t *testing.T) {
Expand Down

0 comments on commit bd939a8

Please sign in to comment.