Add idiomatic documentation to Go, Java, Python, and Rust clients

This commit is contained in:
Joseph Doherty
2026-04-30 12:04:46 -04:00
parent eed1e88a37
commit 8d3352f2c6
44 changed files with 1631 additions and 102 deletions
+3
View File
@@ -14,13 +14,16 @@ class ApiKey:
value: str
def __post_init__(self) -> None:
"""Validate that the API key value is non-empty."""
if not self.value:
raise ValueError("api_key must not be empty")
def __repr__(self) -> str:
"""Return a repr that redacts the secret value."""
return f"{type(self).__name__}({REDACTED!r})"
def bearer_value(self) -> str:
"""Return the value formatted as an HTTP `Bearer` token."""
return f"Bearer {self.value}"