Skip to content

Commit e1d822b

Browse files
committed
fix
1 parent 449f53c commit e1d822b

File tree

1 file changed

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

1 file changed

+3
-4
lines changed

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

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -182,8 +182,6 @@ class ServiceSummary(CatalogOutputSchema):
182182

183183
contact: LowerCaseEmailStr | None
184184

185-
service_type: Annotated[ServiceType, Field(alias="type")]
186-
187185
@staticmethod
188186
def _update_json_schema_extra(schema: JsonDict) -> None:
189187
schema.update(
@@ -196,7 +194,6 @@ def _update_json_schema_extra(schema: JsonDict) -> None:
196194
"description": _EXAMPLE_SLEEPER["description"],
197195
"version_display": _EXAMPLE_SLEEPER["version_display"],
198196
"contact": _EXAMPLE_SLEEPER["contact"],
199-
"type": _EXAMPLE_SLEEPER["type"],
200197
},
201198
{
202199
"key": _EXAMPLE_FILEPICKER["key"],
@@ -205,7 +202,6 @@ def _update_json_schema_extra(schema: JsonDict) -> None:
205202
"description": _EXAMPLE_FILEPICKER["description"],
206203
"version_display": None,
207204
"contact": _EXAMPLE_FILEPICKER["contact"],
208-
"type": _EXAMPLE_FILEPICKER["type"],
209205
},
210206
]
211207
}
@@ -220,6 +216,9 @@ def _update_json_schema_extra(schema: JsonDict) -> None:
220216

221217
class _BaseServiceGetV2(ServiceSummary):
222218
# Model used in catalog's rpc and rest interfaces
219+
220+
service_type: Annotated[ServiceType, Field(alias="type")]
221+
223222
thumbnail: HttpUrl | None = None
224223
icon: HttpUrl | None = None
225224

0 commit comments

Comments
 (0)