"""规则版本创建 DTO。"""

from pydantic import BaseModel, Field


class RuleVersionCreateDTO(BaseModel):
    """创建规则版本请求。"""

    yamlText: str = Field(..., description="规则 YAML 正文")
    changeNote: str | None = Field(None, description="版本变更说明")
    editorUserId: int | None = Field(None, description="编辑者用户ID")
