Skip to content

Commit cbb0278

Browse files
add example
1 parent 54f08fb commit cbb0278

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

packages/models-library/src/models_library/rpc_auth_api_keys.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,4 +22,14 @@ class ApiKeyGet(BaseModel):
2222

2323
model_config = ConfigDict(
2424
from_attributes=True,
25+
json_schema_extra={
26+
"examples": [
27+
{
28+
"id": "42",
29+
"display_name": "test-api-forever",
30+
"api_key": "key",
31+
"api_secret": "secret",
32+
},
33+
]
34+
},
2535
)

0 commit comments

Comments
 (0)