Skip to content
YosoiDocs

ValidatedRecord

yosoi.contracts.ValidatedRecord

class ValidatedRecord[T: 'Contract'](ImmutableModel):

Pydantic-accepted typed value with original candidate evidence retained.

Attributes: value: Record accepted by the Contract’s Pydantic model validators. candidate: Original grouped findings and provenance.

Source: python/yosoi/contracts.py:406

Members below are declared on this class. Inherited Pydantic methods and generated constructor signatures are not expanded.

value: SerializeAsAny[T] = PydanticField(repr=False)
candidate: SerializeAsAny[Candidate] = PydanticField(repr=False)