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 e009e0e commit 0979a80Copy full SHA for 0979a80
packages/models-library/src/models_library/api_schemas_directorv2/comp_tasks.py
@@ -18,7 +18,17 @@ class ComputationGet(ComputationTask):
18
stop_url: AnyHttpUrl | None = Field(
19
None, description="the link where to stop the task"
20
)
21
- model_config = ConfigDict(json_schema_extra={"examples": []})
+
22
+ model_config = ConfigDict(
23
+ json_schema_extra={
24
+ "examples": [
25
+ x | {"url": "http://example.com"} # type:ignore[operator]
26
+ for x in ComputationTask.model_config[ # type:ignore[index,union-attr]
27
+ "json_schema_extra"
28
+ ]["examples"]
29
+ ]
30
+ }
31
+ )
32
33
34
class ComputationCreate(BaseModel):
0 commit comments