Skip to content

Commit ebe4b87

Browse files
committed
@sanderegg review:doc
1 parent e8b8996 commit ebe4b87

File tree

1 file changed

+3
-1
lines changed
  • services/api-server/src/simcore_service_api_server/models/schemas

1 file changed

+3
-1
lines changed

services/api-server/src/simcore_service_api_server/models/schemas/_base.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,9 @@ class BaseService(BaseModel):
4545
]
4646
description: Annotated[
4747
str | None,
48-
StringConstraints( # NOTE: keep StringConstraints before to keep the openapi schema
48+
StringConstraints(
49+
# NOTE: Place `StringConstraints` before `trim_string_before` for valid OpenAPI schema due to a Pydantic limitation.
50+
# SEE `test_trim_string_before_with_string_constraints`
4951
max_length=1000
5052
),
5153
trim_string_before(max_length=1000),

0 commit comments

Comments
 (0)