Skip to content

Commit

Permalink
🎨 Fix model description and type
Browse files Browse the repository at this point in the history
  • Loading branch information
ff137 committed Nov 20, 2024
1 parent 71a9d16 commit de1e30c
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions app/models/wallet.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,9 @@ class DIDCreate(DIDCreateAcaPy):

method: Optional[StrictStr] = Field(
default="sov",
description="Method for the requested DID. Supported methods are 'sov', `web`, `did:peer:2` or `did:peer:4`.",
description=(
"Method for the requested DID. Supported methods are 'sov', 'key', 'web', 'did:peer:2', or 'did:peer:4'."
),
examples=["sov", "key", "web", "did:peer:2", "did:peer:4"],
)
options: Optional[DIDCreateOptions] = Field(
Expand All @@ -72,10 +74,9 @@ class DIDCreate(DIDCreateAcaPy):
description="Key type to use for the DID key_pair. Validated with the chosen DID method's supported key types.",
examples=["ed25519", "bls12381g2"],
)
did: Optional[str] = Field(
did: Optional[StrictStr] = Field(
default=None,
description="Specify the final value of DID (including `did:<method>:` prefix) if the method supports it.",
strict=True,
)

@model_validator(mode="before")
Expand Down

0 comments on commit de1e30c

Please sign in to comment.