modified: Do not modify generated_models.py directly; use openapi.yaml instead.
This commit is contained in:
@@ -29,6 +29,7 @@ datamodel-codegen \
|
||||
--use-subclass-enum \
|
||||
--field-constraints \
|
||||
--strict-types bytes \
|
||||
--use-double-quotes \
|
||||
--input openapi.yaml \
|
||||
--output comfyui_manager/data_models/generated_models.py \
|
||||
--output-model-type pydantic_v2.BaseModel
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
# generated by datamodel-codegen:
|
||||
# filename: openapi.yaml
|
||||
# timestamp: 2025-06-21T23:40:24+00:00
|
||||
# timestamp: 2025-06-27T04:01:45+00:00
|
||||
|
||||
from __future__ import annotations
|
||||
|
||||
@@ -109,9 +109,9 @@ class SecurityLevel(str, Enum):
|
||||
|
||||
class RiskLevel(str, Enum):
|
||||
block = "block"
|
||||
high_p = "high+"
|
||||
high_ = "high+"
|
||||
high = "high"
|
||||
middle_p = "middle+"
|
||||
middle_ = "middle+"
|
||||
middle = "middle"
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user