Skip to content

Commit

Permalink
add description to models
Browse files Browse the repository at this point in the history
  • Loading branch information
cl0ete committed Jul 15, 2024
1 parent 7638e12 commit 51d1628
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions app/models/wallet.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,17 +12,25 @@ class SetDidEndpointRequest(BaseModel):


class VCRecord(VCRecordAcaPy):
credential_id: str = Field(..., alias="record_id")
record_id: str = Field(..., alias="credential_id")
credential_id: str = Field(
..., alias="record_id", description="Rename record_id to credential_id"
)
record_id: str = Field(
..., alias="credential_id", description="For backwards compatibility"
)


class VCRecordList(BaseModel):
results: Optional[List[VCRecord]] = None


class IndyCredInfo(IndyCredInfoAcaPy):
credential_id: str = Field(..., alias="referent")
referent: str = Field(..., alias="credential_id")
credential_id: str = Field(
..., alias="referent", description="Rename referent to credential_id"
)
referent: str = Field(
..., alias="credential_id", description="For backwards compatibility"
)


class CredInfoList(BaseModel):
Expand Down

0 comments on commit 51d1628

Please sign in to comment.