JOJ3-config-generator/joj3_config_generator/models/answer.py
张泊明518370910136 b43a25285e
All checks were successful
build / build (push) Successful in 1m53s
feat: sample create command
2025-03-13 20:57:05 -04:00

21 lines
427 B
Python

from enum import Enum
from typing import List
from pydantic import AliasChoices, BaseModel, Field
class StageEnum(str, Enum):
COMPILATION = "Compilation"
CPPCHECK = "Cppcheck"
CPPLINT = "Cpplint"
CLANG_TIDY = "Clang-Tidy"
class Answers(BaseModel):
name: str
type_: str = Field(
serialization_alias="type",
validation_alias=AliasChoices("type_", "type"),
)
stages: List[str]