dev #10
|
@ -82,8 +82,7 @@ class Stage(BaseModel):
|
|||
cases: Optional[Dict[str, "Stage"]] = None
|
||||
diff: Optional[ParserDiff] = ParserDiff()
|
||||
|
||||
class Config:
|
||||
extra = "allow"
|
||||
model_config = {"extra": "allow"}
|
||||
jon-lee marked this conversation as resolved
Outdated
|
||||
|
||||
@model_validator(mode="before")
|
||||
jon-lee marked this conversation as resolved
Outdated
李衍志523370910113
commented
this should be the this should be the `StrEnum`
张泊明518370910136
commented
yes yes
李衍志523370910113
commented
It is supported now. It is supported now.
|
||||
@classmethod
|
||||
|
|
Loading…
Reference in New Issue
Block a user
deprecated
@bomingzh any suggestions on the structure?
fixed with
model_config
str here need to be a
StrEnum
now.But I guess we don't know the set of case in advance, making it dynamic
StrEnum
is meaninglessline changed, the comment is for
parsers