Skip to content

Commit

Permalink
add deprecated and change description
Browse files Browse the repository at this point in the history
  • Loading branch information
cl0ete committed Oct 28, 2024
1 parent 56a7cd7 commit 6969871
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions app/models/wallet.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,13 @@ class SetDidEndpointRequest(BaseModel):

class VCRecord(VCRecordAcaPy):
credential_id: str = Field(
..., alias="record_id", description="Rename record_id to credential_id"
..., alias="record_id", description="Credential/Record identifier"
)
record_id: str = Field(
..., alias="credential_id", description="For backwards compatibility"
...,
alias="credential_id",
description="(deprecated - renamed to credential_id) Credential/record identifier",
deprecated=True,
)


Expand All @@ -26,10 +29,13 @@ class VCRecordList(BaseModel):

class IndyCredInfo(IndyCredInfoAcaPy):
credential_id: str = Field(
..., alias="referent", description="Rename referent to credential_id"
..., alias="referent", description="Credential identifier"
)
referent: str = Field(
..., alias="credential_id", description="For backwards compatibility"
...,
alias="credential_id",
description="(deprecated - renamed to credential_id) Credential identifier",
deprecated=True,
)


Expand Down

0 comments on commit 6969871

Please sign in to comment.