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 3dc3051 commit 178da9cCopy full SHA for 178da9c
packages/models-library/src/models_library/progress_bar.py
@@ -1,5 +1,6 @@
1
from typing import Literal, TypeAlias
2
3
+from models_library.utils.json_schema import GenerateResolvedJsonSchema
4
from pydantic import BaseModel, ConfigDict
5
from pydantic.config import JsonDict
6
@@ -99,17 +100,9 @@ def composed_message(self) -> str:
99
100
{
101
"actual_value": 0.3,
102
"total": 1.0,
- "message": {
103
- "description": "downloading",
104
- "current": 2.0,
105
- "total": 5,
106
- "sub": {
107
- "description": "port 2",
108
- "current": 12.2,
109
- "total": 123,
110
- "unit": "Byte",
111
- },
112
+ "message": ProgressStructuredMessage.model_json_schema(
+ schema_generator=GenerateResolvedJsonSchema
+ )["examples"][2],
113
},
114
]
115
0 commit comments