Skip to content

Commit

Permalink
Merge pull request #17 from OpSecId/fix-signed-credential-model
Browse files Browse the repository at this point in the history
Edit signed credential schema
  • Loading branch information
amanji authored Nov 26, 2024
2 parents 8f97ed2 + bb0dd70 commit 7685cbd
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions schemas/signed_credential.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from typing import Annotated
from typing import Annotated, List
from fastapi import Body
from pydantic import BaseModel
from schemas import Signed
Expand All @@ -11,10 +11,16 @@ class SignedCredential(Signed, BaseModel):
list[str], Body(validation_alias="@context", serialization_alias="@context")
]
id: str
type: list[str]
type: List[str] | str
issuer: str | dict
validFrom: str
validUntil: str
validUntil: str = None
name: str | dict | None = None
description: str | dict | None = None
credentialSubject: dict
credentialSchema: List[dict] | dict = None
credentialStatus: List[dict] | dict = None
refreshService: List[dict] | dict = None
renderMethod: List[dict] | dict = None
termsOfUse: List[dict] | dict = None
relatedResources: List[dict] | dict = None

0 comments on commit 7685cbd

Please sign in to comment.