Potential fix for pull request finding

Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
Artem 2026-07-02 02:48:24 +02:00 committed by GitHub
parent 294d70e8c6
commit 2ccf253af1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -12,9 +12,10 @@ class CreateApiTokenRequestDto(BaseModel):
serialization_alias="name"
)
expires_in_days: float = Field(serialization_alias="expiresInDays", ge=1)
scopes: List[str] = Field(default_factory=lambda: [Scope.WILDCARD])
"""API token scopes. Pass :class:`remnawave.enums.Scope` members (or raw strings).
Defaults to ``["*"]`` (full access). See ``GET /api/tokens/scopes`` for the catalog."""
scopes: List[str] = Field(
default_factory=lambda: [Scope.WILDCARD],
description='API token scopes. Pass :class:`remnawave.enums.Scope` members (or raw strings). Defaults to ["*"] (full access). See GET /api/tokens/scopes for the catalog.',
)
def __init__(self, **data):
# Backward compatibility: `token_name` was renamed to `name` in v2.8.0