Skip to content

Commit

Permalink
increase company name on validation classes
Browse files Browse the repository at this point in the history
  • Loading branch information
alextford11 committed Jan 27, 2022
1 parent 40ba155 commit 234a8c7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tcsocket/app/validation.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ class SortOn(str, Enum):


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


class CompanyUpdateModel(BaseModel):
name: constr(min_length=3, max_length=63) = None
name: constr(min_length=3, max_length=255) = None
public_key: constr(min_length=18, max_length=20) = None
private_key: constr(min_length=20, max_length=50) = None

Expand Down

0 comments on commit 234a8c7

Please sign in to comment.