update documentation part3 - add code examples (#2369)

This commit is contained in:
Shuchang Zheng
2025-05-16 19:06:41 -07:00
committed by GitHub
parent 89fd604022
commit d2419d82d7
4 changed files with 922 additions and 353 deletions

View File

@@ -92,7 +92,7 @@ class CredentialItem(BaseModel):
class CreateCredentialRequest(BaseModel):
"""Request model for creating a new credential."""
name: str = Field(..., description="Name of the credential", examples=["My Credential"])
name: str = Field(..., description="Name of the credential", examples=["Amazon Login"])
credential_type: CredentialType = Field(..., description="Type of credential to create")
credential: NonEmptyPasswordCredential | NonEmptyCreditCardCredential = Field(
...,
@@ -109,7 +109,7 @@ class CredentialResponse(BaseModel):
..., description="The credential data"
)
credential_type: CredentialType = Field(..., description="Type of the credential")
name: str = Field(..., description="Name of the credential", examples=["My Credential"])
name: str = Field(..., description="Name of the credential", examples=["Amazon Login"])
class Credential(BaseModel):