MCPcopy Create free account
hub / github.com/Emmimal/control-layer / max_positive

Method max_positive

control_layer.py:138–141  ·  view source on GitHub ↗
(cls, v)

Source from the content-addressed store, hash-verified

136 @field_validator("max_length")
137 @classmethod
138 def max_positive(cls, v):
139 if v is not None and v <= 0:
140 raise ValueError("max_length must be positive")
141 return v
142
143 @model_validator(mode="after")
144 def min_lt_max(self):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected