Skip to content

Commit e37dc5f

Browse files
committed
wrong import
1 parent 4c3f5be commit e37dc5f

File tree

1 file changed

+1
-4
lines changed
  • packages/models-library/src/models_library/api_schemas_webserver

1 file changed

+1
-4
lines changed

packages/models-library/src/models_library/api_schemas_webserver/users.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717
field_validator,
1818
)
1919
from pydantic.config import JsonDict
20-
from simcore_postgres_database.utils_users import MIN_USERNAME_LEN
2120

2221
from ..basic_types import IDStr
2322
from ..emails import LowerCaseEmailStr
@@ -155,9 +154,7 @@ def from_domain_model(
155154
class MyProfilePatch(InputSchemaWithoutCamelCase):
156155
first_name: FirstNameStr | None = None
157156
last_name: LastNameStr | None = None
158-
user_name: Annotated[
159-
IDStr | None, Field(alias="userName", min_length=MIN_USERNAME_LEN)
160-
] = None
157+
user_name: Annotated[IDStr | None, Field(alias="userName", min_length=4)] = None
161158

162159
privacy: MyProfilePrivacyPatch | None = None
163160

0 commit comments

Comments
 (0)