Skip to content

Commit 234a8c7

Browse files
committed
increase company name on validation classes
1 parent 40ba155 commit 234a8c7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tcsocket/app/validation.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ class SortOn(str, Enum):
3939

4040

4141
class CompanyCreateModal(BaseModel):
42-
name: constr(min_length=3, max_length=63)
42+
name: constr(min_length=3, max_length=255)
4343
domains: Optional[List[constr(max_length=255)]] = []
4444
name_display: NameOptions = NameOptions.first_name_initial
4545
public_key: constr(min_length=18, max_length=20) = None
@@ -55,7 +55,7 @@ def set_private_key(cls, v):
5555

5656

5757
class CompanyUpdateModel(BaseModel):
58-
name: constr(min_length=3, max_length=63) = None
58+
name: constr(min_length=3, max_length=255) = None
5959
public_key: constr(min_length=18, max_length=20) = None
6060
private_key: constr(min_length=20, max_length=50) = None
6161

0 commit comments

Comments
 (0)