You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Logic could be added to check that the updates being sent are logical:
classTransformationUpdateModel(BaseModel):
state: TransformationState@validator("state")defcheck_state(cls, v):
ifvnotin [TransformationState.RUNNING, TransformationState.STOPPED]:
raiseValueError(
f"The state of the transformation must be either \{TransformationState.RUNNING} or {TransformationState.STOPPED}"
)
returnv
The text was updated successfully, but these errors were encountered:
Logic could be added to check that the updates being sent are logical:
The text was updated successfully, but these errors were encountered: