modified: Do not modify generated_models.py directly; use openapi.yaml instead.

This commit is contained in:
Dr.Lt.Data
2025-06-28 07:54:17 +09:00
parent 002e549a86
commit 43041cebed
4 changed files with 9 additions and 8 deletions

View File

@@ -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

View File

@@ -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"