Skip to content
YosoiDocs

FieldSchema

yosoi.contracts.FieldSchema

class FieldSchema(ImmutableModel):

Native transport field meaning, cardinality, and scalar type metadata.

Attributes: id: Authored identifier matching locator output evidence. description: Nonblank business meaning; it does not discover a locator. cardinality: exactly_one, zero_or_one, or many describes candidate field shape. value_type: Native transport type, string. Python Contracts map other annotations to string and validate raw findings in Pydantic.

Source: python/yosoi/contracts.py:115

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

id: FieldId
description: str
cardinality: Cardinality
value_type: str