MCPcopy Create free account
hub / github.com/VitoHowe/glm-coding / validate_auth

Method validate_auth

app/models.py:249–253  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

247
248 @field_validator("scheduled_start_time")
249 @classmethod
250 def validate_scheduled_start_time(cls, value: str | None) -> str | None:
251 normalized = (value or "").strip()
252 if not normalized:
253 return ""
254 parts = normalized.split(":")
255 if len(parts) not in (2, 3) or any(not part.isdigit() for part in parts):
256 raise ValueError("scheduled_start_time 必须是 HH:MM 或 HH:MM:SS")

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected