Skip to content

Commit 8a22850

Browse files
author
Andrei Neagu
committed
fixed pydanticv1 issue
1 parent 838bc84 commit 8a22850

File tree

1 file changed

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

1 file changed

+4
-1
lines changed

packages/models-library/src/models_library/api_schemas_catalog/services.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,10 @@ class ServiceUpdate(ServiceMetaDataEditable, ServiceAccessRights):
205205
class ServiceGet(
206206
ServiceMetaDataPublished, ServiceAccessRights, ServiceMetaDataEditable
207207
): # pylint: disable=too-many-ancestors
208-
owner: LowerCaseEmailStr | None
208+
owner: LowerCaseEmailStr | None = Field(
209+
None,
210+
description="None when the owner email cannot be found in the database",
211+
)
209212

210213
model_config = ConfigDict(
211214
extra="ignore",

0 commit comments

Comments
 (0)