Skip to content

Commit b5c94d5

Browse files
[chore] Regenerate data models after OpenAPI fixes
- Updated generated_models.py to reflect OpenAPI 3.1 nullable format changes - Models now use Optional[type] instead of nullable: true - All affected models regenerated with datamodel-codegen - Syntax and linting checks pass
1 parent 09cefd6 commit b5c94d5

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

comfyui_manager/data_models/generated_models.py

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# generated by datamodel-codegen:
22
# filename: openapi.yaml
3-
# timestamp: 2025-06-13T18:46:51+00:00
3+
# timestamp: 2025-06-14T01:44:21+00:00
44

55
from __future__ import annotations
66

@@ -99,7 +99,7 @@ class ManagerPackInstallType(str, Enum):
9999
cnr = 'cnr'
100100

101101

102-
class UpdateState(str, Enum):
102+
class UpdateState(Enum):
103103
false = 'false'
104104
true = 'true'
105105

@@ -206,14 +206,16 @@ class QueueStatus(BaseModel):
206206
)
207207

208208

209-
class ManagerMapping(BaseModel):
209+
class ManagerMappings1(BaseModel):
210210
title_aux: Optional[str] = Field(None, description='The display name of the pack')
211211

212212

213213
class ManagerMappings(
214-
RootModel[Optional[Dict[str, List[Union[List[str], ManagerMapping]]]]]
214+
RootModel[Optional[Dict[str, List[Union[List[str], ManagerMappings1]]]]]
215215
):
216-
root: Optional[Dict[str, List[Union[List[str], ManagerMapping]]]] = None
216+
root: Optional[Dict[str, List[Union[List[str], ManagerMappings1]]]] = Field(
217+
None, description='Tuple of [node_names, metadata]'
218+
)
217219

218220

219221
class ModelMetadata(BaseModel):

0 commit comments

Comments
 (0)