We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e8b8996 commit ebe4b87Copy full SHA for ebe4b87
services/api-server/src/simcore_service_api_server/models/schemas/_base.py
@@ -45,7 +45,9 @@ class BaseService(BaseModel):
45
]
46
description: Annotated[
47
str | None,
48
- StringConstraints( # NOTE: keep StringConstraints before to keep the openapi schema
+ 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`
51
max_length=1000
52
),
53
trim_string_before(max_length=1000),
0 commit comments