Skip to content

Commit 8adb0f4

Browse files
fix: openapi-spec
1 parent 2254e8d commit 8adb0f4

File tree

3 files changed

+11
-4
lines changed

3 files changed

+11
-4
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ class SearchFilters(InputSchema):
8686
str,
8787
ensure_pattern_has_enough_characters(),
8888
Field(
89-
description=f"Name pattern with wildcard support {tuple(WILDCARD_CHARS)}. "
89+
description=f"Name pattern with wildcard support ({', '.join(WILDCARD_CHARS)}). "
9090
f"Minimum of {MIN_NON_WILDCARD_CHARS} non-wildcard characters required.",
9191
),
9292
]

packages/models-library/src/models_library/utils/common_validators.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ class MyModel(BaseModel):
2525
from pydantic import BaseModel, BeforeValidator
2626
from pydantic.alias_generators import to_camel
2727

28-
WILDCARD_CHARS: Final[set[str]] = {"*", "?"}
28+
WILDCARD_CHARS: Final[list[str]] = ["*", "?"]
2929
MIN_NON_WILDCARD_CHARS: Final[int] = 3
3030

3131

services/web/server/src/simcore_service_webserver/api/v0/openapi.yaml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17124,13 +17124,20 @@ components:
1712417124
namePattern:
1712517125
type: string
1712617126
title: Namepattern
17127-
description: Name pattern with wildcard support ('*', '?'). Minimum of 3
17128-
non-wildcard characters required.
17127+
description: Name pattern with wildcard support (*, ?). Minimum of 3 non-wildcard
17128+
characters required.
1712917129
modifiedAt:
1713017130
anyOf:
1713117131
- $ref: '#/components/schemas/SearchTimerangeFilter'
1713217132
- type: 'null'
1713317133
description: Filter results based on modification date range
17134+
projectId:
17135+
anyOf:
17136+
- type: string
17137+
format: uuid
17138+
- type: 'null'
17139+
title: Projectid
17140+
description: If provided, only files within this project are searched
1713417141
type: object
1713517142
required:
1713617143
- namePattern

0 commit comments

Comments
 (0)