Skip to content

Commit 7685cbd

Browse files
authored
Merge pull request #17 from OpSecId/fix-signed-credential-model
Edit signed credential schema
2 parents 8f97ed2 + bb0dd70 commit 7685cbd

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

schemas/signed_credential.py

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
from typing import Annotated
1+
from typing import Annotated, List
22
from fastapi import Body
33
from pydantic import BaseModel
44
from schemas import Signed
@@ -11,10 +11,16 @@ class SignedCredential(Signed, BaseModel):
1111
list[str], Body(validation_alias="@context", serialization_alias="@context")
1212
]
1313
id: str
14-
type: list[str]
14+
type: List[str] | str
1515
issuer: str | dict
1616
validFrom: str
17-
validUntil: str
17+
validUntil: str = None
1818
name: str | dict | None = None
1919
description: str | dict | None = None
2020
credentialSubject: dict
21+
credentialSchema: List[dict] | dict = None
22+
credentialStatus: List[dict] | dict = None
23+
refreshService: List[dict] | dict = None
24+
renderMethod: List[dict] | dict = None
25+
termsOfUse: List[dict] | dict = None
26+
relatedResources: List[dict] | dict = None

0 commit comments

Comments
 (0)