This commit is contained in:
Timothy Jaeryang Baek 2026-10-12 19:08:40 +04:00
parent 1aa6ba58ba
commit 6229405b4d
2 changed files with 2 additions and 3 deletions

View file

@ -107,7 +107,7 @@ class AppManifestForm(StrictModel):
class AppForm(StrictModel):
manifest: Manifest
url: str = Field(max_length=2048)
api_key: SecretStr = Field(min_length=32, max_length=4096)
api_key: SecretStr = Field(min_length=1, max_length=4096)
slug: str = Field(pattern=r'^[a-z][a-z0-9-]{0,39}$')
granted_scopes: list[Scope]
access_grants: list[dict] = Field(
@ -129,7 +129,7 @@ class AppTokenForm(StrictModel):
class AppConnectionForm(StrictModel):
api_key: SecretStr | None = Field(default=None, min_length=32, max_length=4096)
api_key: SecretStr | None = Field(default=None, min_length=1, max_length=4096)
####################

View file

@ -374,7 +374,6 @@
class={inputClass}
bind:value={apiKey}
required={!app?.configured}
minlength="32"
maxlength="4096"
placeholder={app?.configured ? '••••••••' : ''}
/>