feat(team_endpoints): Apply suggestions from greptile

* Set greater-than constraint on key-limit
* Fix type
This commit is contained in:
Tomoya Tabuchi 2026-06-09 16:27:33 +09:00
parent 5013833136
commit b082486941
No known key found for this signature in database
GPG key ID: 5E5625FAC733CAF4
2 changed files with 3 additions and 3 deletions

View file

@ -3470,8 +3470,8 @@ async def team_info(
team_id: str = fastapi.Query(
default=None, description="Team ID in the request parameters"
),
key_limit: int = fastapi.Query(
default=None, description="Limit the number of keys returned"
key_limit: Optional[int] = fastapi.Query(
default=None, description="Limit the number of keys returned", gt=0
),
user_api_key_dict: UserAPIKeyAuth = Depends(user_api_key_auth),
):

View file

@ -48528,7 +48528,7 @@ export interface operations {
/** @description Team ID in the request parameters */
team_id?: string;
/** @description Limit the number of keys returned */
key_limit?: number;
key_limit?: number | null;
};
header?: never;
path?: never;