| 31 | |
| 32 | |
| 33 | class TokenResponse(pydantic.BaseModel): |
| 34 | token: str |
| 35 | project_id: str |
| 36 | project_prem_status: str |
| 37 | |
| 38 | @pydantic.field_validator("project_id", "token", mode="before") |
| 39 | @classmethod |
| 40 | def format_uuid(cls, v): |
| 41 | """Convert UUID to string format.""" |
| 42 | if isinstance(v, str): |
| 43 | return v |
| 44 | return str(v) |
| 45 | |
| 46 | |
| 47 | class VerifyTokenResponse(pydantic.BaseModel): |
no outgoing calls
no test coverage detected
searching dependent graphs…